/* Expert Block Styles */

.expert-block {
    width: 100%;
    background: #FFFFFF;
    padding: 36px;
    border-radius: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.expert-container {
    max-width: 100%;
}

.expert-content {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

/* Avatar - первая колонка */
.expert-avatar-wrapper {
    flex-shrink: 0;
}

.expert-avatar {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Meta - вторая колонка (имя, должность, иконки) */
.expert-meta {
    flex-shrink: 0;
    width: 25%; /* 25% от общей ширины контейнера */
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Description - третья колонка (текст) */
.expert-description {
    flex: 1;
}

.expert-description p {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    letter-spacing: 0%;
    color: #34363D;
    margin: 0 0 12px 0;
}

.expert-description p:last-child {
    margin-bottom: 0;
}

/* Expert Name */
.expert-name {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 28px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #34363D;
    margin: 0;
}

/* Expert Title */
.expert-title {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #ACACB5;
    text-transform: uppercase;
    margin: 0;
}

/* Social Links */
.expert-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.expert-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #F0EFF8;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #9797B2 !important;
    transition: all 0.3s ease;
}

.expert-social-link:hover {
    background: #F3F4F6;
    color: #34363D;
    transform: translateY(-2px);
}

.expert-social-link svg {
    width: 16px;
    height: 16px;
    color: #9797B2 !important;
}

/* Responsive */
/* Адаптив для планшетов и средних экранов */
@media (max-width: 1400px) {
    .expert-block {
        padding: 16px;
    }
}

@media (max-width: 1280px) {
    .expert-content {
        gap: 24px;
        display: block;
    }

    .expert-avatar {
        width: 120px;
        height: 120px;
    }

    .expert-meta {
        width: 250px;
        min-width: 200px;
        gap: 10px;
    }

    .expert-name {
        font-size: 24px;
    }

    .expert-title {
        font-size: 13px;
    }

    .expert-description p {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 768px) {
    /* Expert блок перед FAQ на мобильных */
    .expert-block {
        padding: 20px;
        border-radius: 20px;
        order: 1;
    }

    .expert-content {
        display: block;
    }

    /* Аватар слева, имя справа */
    .expert-avatar-wrapper {
        float: left;
        margin-right: 24px;
    }

    .expert-avatar {
        width: 64px;
        height: 64px;
    }

    .expert-meta {
        display: block;
    }

    .expert-name {
        font-size: 22px;
        line-height: 110%;
        word-break: break-word;
        overflow-wrap: break-word;
        margin-top: 10px;
        margin-bottom: 0;
    }

    /* Должность на всю ширину под аватаром и именем */
    .expert-title {
        font-size: 14px;
        line-height: 100%;
        word-wrap: break-word;
        clear: both;
        display: block;
        width: 100%;
        padding-top: 14px;
    }

    .expert-social {
        justify-content: flex-start;
        margin-top: 12px;
        clear: both;
    }

    .expert-social-link {
        width: 32px;
        height: 32px;
    }

    .expert-social-link svg {
        width: 14px;
        height: 14px;
    }

    .expert-description {
        clear: both;
        padding-top: 12px;
    }

    .expert-description p {
        font-size: 14px;
        line-height: 20px;
        margin: 0 0 8px 0;
    }
}
