/* ---=== Experts Page ===--- */
.experts-page-body {
    background-color: #00062B;
}

.container-expert-page {
    padding-bottom: 6rem; /* Отступ снизу для пространства перед футером */
    padding-top: 120px; /* Увеличиваем отступ сверху */
}

/* Добавляем отступ от header для страниц отдельных экспертов */
.expert-content {
    margin-top: 40px; /* Дополнительный отступ для контента */
}

.experts-page-header {
    text-align: center;
    margin: 80px 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.experts-page-header h1 {
    font-size: 4.5rem; /* Увеличено */
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 1.5rem;
}

.team-grid--overview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem; /* Увеличено */
    justify-content: center;
    max-width: 1600px; /* Увеличено */
    margin: 0 auto;
    padding: 0 20px;
}

.team-grid--overview .team-portrait {
    width: 100%;
    aspect-ratio: 1 / 1.15; /* Изменено */
}

@media (max-width: 1200px) {
    .team-grid--overview {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .experts-page-header h1 {
        font-size: 3.8rem; /* Изменено */
    }
}

@media (max-width: 991px) {
    .container-expert-page {
        padding-top: 100px;
    }
    .expert-content {
        margin-top: 30px;
    }
    
    .team-grid--overview {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experts-page-header h1 {
        font-size: 3.2rem;
    }
    
    .experts-page-header {
        margin: 60px 0;
    }
}

@media (max-width: 576px) {
    .container-expert-page {
        padding-top: 80px;
    }
    .expert-content {
        margin-top: 20px;
    }
    
    .team-grid--overview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .experts-page-header h1 {
        font-size: 2.8rem;
    }
    
    .experts-page-header {
        margin: 40px 0;
    }
}

.team-portrait {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Убираем подчеркивание ссылки */
    color: var(--light-text); /* Устанавливаем белый цвет текста */
}

.team-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Добавлено для центрирования */
    transition: transform 0.4s ease;
}

.team-portrait:hover img {
    transform: scale(1.05);
}

.team-portrait:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--light-text); /* Сохраняем белый цвет текста при наведении */
    text-decoration: none; /* Убираем подчеркивание при наведении */
}

.portrait-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 47, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    z-index: 2;
}

.team-portrait:hover .portrait-overlay {
    opacity: 1;
}

.expert-name-overlay {
    color: var(--light-text) !important; /* Принудительно устанавливаем белый цвет */
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 1rem;
}

.expert-detail-view {
    display: none;
    padding: 6rem 0;
    margin-top: 2rem;
    color: var(--light-text);
}

.expert-detail-view.active {
    display: block;
}

.back-to-grid-btn {
    display: none; /* Скрываем по умолчанию */
    margin-bottom: 2rem;
}

.expert-nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px; /* Для отступа подчеркивания */
    font-weight: 500;
    display: inline-block; /* Для корректного позиционирования */
    transition: color 0.3s ease;
}

.expert-nav-link:hover {
    color: var(--secondary-color);
}

.expert-nav-link::before {
    content: '┐';
    position: absolute;
    top: -20px;
    right: -14px;
    font-size: 1.5rem;
    font-weight: 600;
}

.expert-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
}

.details-active .back-to-grid-btn {
    display: inline-block; /* Показываем в детальном виде */
}

.details-active .back-to-main-header {
    display: none; /* Скрываем в детальном виде */
}

.expert-content {
    display: flex;
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.expert-photo-large {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 2rem;
}

.expert-photo-large img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.expert-bio {
    flex: 2;
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.expert-bio .expert-name {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.expert-bio .expert-title {
    font-size: 1.4rem;
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.expert-bio .expert-section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light-text);
    margin: 2.5rem 0 1.2rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.expert-bio .expert-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.expert-bio p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.2rem;
}

.expert-info-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.expert-info-left,
.expert-info-right {
    flex: 1;
}

.expert-info-left .expert-section-title,
.expert-info-right .expert-section-title {
    margin-top: 0;
    font-size: 1.2rem;
}

.expert-info-left p,
.expert-info-right p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.expert-subsection-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.bio-list {
    list-style: none;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.bio-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.bio-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.4rem;
}

.expert-info-columns {
    display: flex;
    gap: 3rem;
    margin-top: 2rem;
}

.expert-info-col {
    flex: 1;
}

.expert-info-col .expert-section-title {
    margin-top: 0;
    font-size: 1.2rem;
}

.expert-info-col p {
    margin: 0;
    line-height: 1.6;
}

.expert-education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expert-education-list li {
    margin-bottom: 0.75rem;
}

/* ---=== Tablet Styles for Expert Pages (820x1180) ===--- */
@media (min-width: 769px) and (max-width: 1199px) {
    .container-expert-page {
        padding-top: 100px;
    }

    .expert-content {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .expert-photo-large {
        position: static;
        max-width: 450px; /* Немного увеличим для планшета */
        text-align: center;
    }

    .expert-photo-large img {
        width: 100%;
        height: auto;
    }

    .expert-bio {
        flex: 1; /* Занимает всю доступную ширину */
        width: 100%;
        max-width: 800px; /* Ограничим максимальную ширину для читаемости */
        padding: 2.5rem;
    }

    .expert-bio .expert-name {
        font-size: 3rem;
        text-align: center;
    }

    .expert-bio .expert-title {
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 3rem;
    }

    .expert-info-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .expert-bio .expert-section-title {
        font-size: 1.6rem;
    }

    .expert-bio p {
        font-size: 1.05rem;
    }

    .back-to-main {
        display: block;
        margin-top: 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .expert-content {
        flex-direction: column;
        gap: 3rem;
        padding: 0 1.5rem;
    }

    .expert-photo-large {
        max-width: 100%;
        position: relative;
        top: 0;
    }

    .expert-photo-large img {
        max-width: 400px;
        margin: 0 auto;
    }

    .expert-bio {
        padding: 2rem;
    }

    .expert-bio .expert-name {
        font-size: 2.8rem;
    }

    .expert-info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .expert-content {
        padding: 0 1rem;
    }

    .expert-bio {
        padding: 1.5rem;
    }

    .expert-bio .expert-name {
        font-size: 2.4rem;
    }

    .expert-bio .expert-title {
        font-size: 1.2rem;
    }

    .expert-bio .expert-section-title {
        font-size: 1.6rem;
    }

    .expert-bio p,
    .bio-list li {
        font-size: 1rem;
    }
} 