*{
    font-weight: 400;
    font-family: 'Forum';
}

.lawyers{
    margin-top: 150px;
}

.lawyers {
    display: block;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.lawyer-card {
    background: var(--bg-dark);
    border-radius: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    height: 580px;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: row;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.lawyer-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 540px;
    margin-left: 100px;
}

.card-image {
    flex-shrink: 0;
    width: 350px;
    height: 450px;
    position: relative;
    top: -100px;
    left: -100px;
    margin-bottom: -50px;
}

.card-image img {
    width: 450px;
    height: 670px;
    object-fit: cover;
    object-position: top;
    border-radius: 10px;
    transition: transform 0.5s ease;
}

.lawyer-card h3 {
    width: 400px;
    font-family: 'Forum';
    font-size: 48px;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 30px;
}

.experience {
    color: #EDE0D4;
    font-weight: 400;
    margin-bottom: 10px;
    font-size: 20px;
}

.specialization-badge {
    color: #EDE0D4;
    font-weight: 400;
    margin-top: 10px;
    font-size: 20px;
}

/* Новый блок с подробной информацией */
.lawyer-details {
    background: white;
    border-radius: 0 0 16px 16px; /* Закругление только снизу */
    padding: 40px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    border-top: none; /* Убираем верхнюю границу */
    margin-top: -30px;
}

.lawyer-details h2 {
    font-family: 'Forum';
    font-size: 36px;
    color: var(--bg-dark);
    margin-bottom: 30px;
    padding-top: 30px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.year {
    font-weight: 400;
    color: var(--bg-dark);
    min-width: 80px;
    font-size: 18px;
    width: 125px;
}

.description {
    color: #070A0E;
    flex: 1;
    line-height: 1.6;
}


.timeline_con {
    display: flex;
    gap: 20px;
}

.timeline_con i{
    font-size: 30px;
    color: #070A0E;
    width: 24px;
    text-align: center;
}

.tel{
    font-size: 20px;
    color: #070A0E;
    text-align: center;
}


@media (max-width: 768px) {
    .lawyer-page {
        padding: 40px 0;
    }

    .lawyer-info {
        flex-direction: column;
    }

    .lawyer-info img {
        width: 100%;
        height: 300px;
        border-radius: 0;
        border: none;
    }

    .lawyer-details {
        padding: 20px;
        text-align: center;
    }

    .lawyer-details h1 {
        font-size: 28px;
    }

    .lawyer-bio h2 {
        font-size: 20px;
    }
    .lawyer-card {
        flex-direction: column !important;
        height: auto !important;
        margin-bottom: 40px;
        text-align: center;
    }
    .card-image_2 {
        width: 100% !important;
        height: auto !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 20px !important;
        order: 1;
    }

    .card-image_2 img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: contain !important;
    }

    .card-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        order: 2;
    }

    .card-content h3 {
        width: 100% !important;
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .specialization-badge,
    .experience {
        font-size: 16px !important;
    }

    hr {
        width: 60% !important;
        margin: 10px auto !important;
    }



    .lawyer-details h2 {
        font-size: 30px;
    }


    .lawyer-card {
        flex-direction: column !important;
        height: auto !important;
        margin-bottom: 40px;
    }

    .card-content {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px;
        order: 2;
        text-align: center;
    }

    .card-content h3 {
        width: 100% !important;
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }

    .specialization-badge,
    .experience {
        font-size: 16px !important;
        margin: 8px 0;
    }

    hr {
        width: 60% !important;
        margin: 10px auto !important;
        border-color: #322b25 !important;
    }

    .card-image {
        width: 100% !important;
        height: auto !important;
        top: 0 !important;
        left: 0 !important;
        margin-bottom: 0 !important;
        order: 1;
    }

    .card-image img {
        width: 100% !important;
        height: auto !important;
        max-height: 400px;
        object-fit: contain !important;
        border-radius: 10px;
    }

    .pos_img {
        position: relative;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .lawyer-details h1 {
        font-size: 24px;
    }

    .lawyer-bio {
        padding: 20px;
    }

    .lawyer-info img {
        height: 250px;
    }
}