/**
 * БФ «Ева» — Стили страницы «О фонде»
 */

/* ==========================================================================
   О фонде: базовая раскладка
   ========================================================================== */

/* Макет О фонде */
.about-layout {
    display: flex;
    gap: 40px;
    margin-top: 80px;
    margin-bottom: 100px;
}

.about-sidebar { flex: 0 0 300px; }

.about-menu {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
}

.about-menu li a {
    display: block;
    padding: 20px 30px;
    color: var(--text-light);
    font-weight: 500;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
    font-family: 'Manrope', sans-serif;
    font-size: 17px;
}

.about-menu li a::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--primary);
    transform: scaleY(0);
    transition: var(--transition);
}

.about-menu li a:hover, .about-menu li a.active {
    background-color: #fcfcfd;
    color: var(--primary);
    padding-left: 35px;
}

.about-menu li a.active::before { transform: scaleY(1); }

/* ==========================================================================
   О фонде: адаптивные стили меню
   ========================================================================== */

/* Адаптивные стили */
@media (max-width: 992px) {
    .about-layout {
        flex-direction: column;
    }
    .about-sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
    .about-menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        border-radius: var(--radius-sm);
        -webkit-overflow-scrolling: touch;
    }
    .about-menu li {
        flex: 0 0 auto;
    }
    .about-menu li a {
        border-bottom: none;
        border-right: 1px solid #f5f5f5;
        padding: 15px 20px;
    }
    .about-menu li a::before {
        left: 0; right: 0; bottom: 0; top: auto;
        width: 100%; height: 4px;
        transform: scaleX(0);
    }
    .about-menu li a.active::before { transform: scaleX(1); }
    .about-menu li a:hover, .about-menu li a.active {
        padding-left: 20px;
        background-color: rgba(197, 78, 112, 0.05);
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
    }
    
    .hero {
        padding: 70px 0 50px;
        text-align: center;
        border-radius: 0 0 24px 24px;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero p {
        font-size: 18px;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-content > div {
        flex-direction: column;
        width: 100%;
    }
    .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }
    
    .photo-card-img {
        height: 180px;
    }
    .photo-cards-grid {
        gap: 20px;
    }
    .about-content {
        padding: 30px 20px;
    }
    .tab-content h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
}

/* ==========================================================================
   Таблица реквизитов
   ========================================================================== */

/* Таблица реквизитов */
.requisites-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.req-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    font-size: 15px;
}

.req-table tr {
    border-bottom: 1px solid #eee;
}

.req-table tr:last-child {
    border-bottom: none;
}

.req-table td {
    padding: 15px 10px;
    vertical-align: top;
    line-height: 1.5;
}

.req-table td.label-cell {
    font-weight: bold;
    color: var(--text-light);
    width: 30%;
}

.req-table td.value-cell {
    color: var(--text-dark);
    font-weight: 500;
}

@media (max-width: 576px) {
            .req-table td {
                display: block;
                width: 100%;
                padding: 8px 10px;
            }
            .req-table td.label-cell {
                padding-top: 15px;
                border-bottom: none;
            }
            .req-table td.value-cell {
                padding-bottom: 15px;
            }
}

/* ==========================================================================
   О фонде: миссия, документы, команда, директор
   ========================================================================== */

/* О фонде */
.about-hero {
    background: linear-gradient(135deg, #1A1A24 0%, #2d1a28 100%);
    color: #fff;
    padding: 100px 0 70px;
    text-align: center;
    border-radius: 0 0 40px 40px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('assets/fon.jpg') center/cover no-repeat;
    opacity: 0.15;
}
.about-hero h1 {
    position: relative;
    color: #fff;
    font-size: 52px;
    margin-bottom: 20px;
}
.about-hero p {
    position: relative;
    font-size: 20px;
    color: rgba(255,255,255,0.85);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Вводный блок и миссия */
.about-mission-card {
    background: rgba(197, 78, 112, 0.03);
    border-left: 5px solid var(--primary);
    padding: 30px;
    border-radius: var(--radius-sm);
    margin-bottom: 40px;
}
.about-mission-badge {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 10px;
}
.about-mission-title {
    font-size: 28px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.25;
}
.about-mission-desc {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 900px;
    margin: 0;
}

/* Официальные документы и свидетельства */
.doc-section-title {
    font-size: 18px;
    color: var(--text-dark);
    margin: 40px 0 15px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    border-bottom: 2px solid rgba(197, 78, 112, 0.1);
    padding-bottom: 8px;
}
.doc-certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}
.doc-cert-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-light);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}
.doc-cert-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.doc-cert-img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eaeaea;
}
.doc-cert-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 10px;
    color: var(--text-dark);
}

/* Статистика */
.stats-band {
    background: linear-gradient(135deg, var(--primary), #9c3c57);
    border-radius: var(--radius);
    padding: 50px 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    text-align: center;
    margin-bottom: 70px;
    color: #fff;
}
.stat-item .num {
    font-size: 52px;
    font-weight: 800;
    font-family: 'Manrope', sans-serif;
    line-height: 1;
    color: #fff;
}
.stat-item .label {
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
    line-height: 1.4;
}

/* Навигация — липкая горизонтальная панель */
.about-tabs-nav-container {
    position: sticky;
    top: 78px; 
    z-index: 100;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-bottom: 40px;
    background: #f8f4f6;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
}
.about-tabs-nav {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: transparent;
    max-width: 1280px;
    margin: 0 auto;
    justify-content: center;
}
.about-tabs-nav::-webkit-scrollbar { display: none; }

@media (max-width: 992px) {
            .about-tabs-nav {
                justify-content: flex-start;
                padding-left: 20px;
                padding-right: 20px;
            }
}
.about-tab-btn {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 16px 10px;
    background: var(--white);
    border: 2px solid #eaeaea;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    text-align: center;
    line-height: 1.3;
    white-space: nowrap;
}
.about-tab-btn svg {
    width: 32px; height: 32px;
    transition: var(--transition);
}
.about-tab-btn svg path,
.about-tab-btn svg rect,
.about-tab-btn svg circle:not([fill="#EBA04E"]) {
    stroke: var(--text-light);
    transition: var(--transition);
}
.about-tab-btn svg circle[fill="#EBA04E"] {
    fill: var(--secondary);
    opacity: 0.25;
    transition: var(--transition);
}
.about-tab-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(197,78,112,0.04);
}
.about-tab-btn:hover svg path,
.about-tab-btn:hover svg rect,
.about-tab-btn:hover svg circle:not([fill="#EBA04E"]) {
    stroke: var(--primary);
}
.about-tab-btn:hover svg circle[fill="#EBA04E"] {
    fill: var(--secondary);
    opacity: 0.4;
}
.about-tab-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(197,78,112,0.3);
}
.about-tab-btn.active svg path,
.about-tab-btn.active svg rect,
.about-tab-btn.active svg circle:not([fill="#EBA04E"]) {
    stroke: #fff;
}
.about-tab-btn.active svg circle[fill="#EBA04E"] {
    fill: #fff;
    opacity: 0.35;
}

/* Контент */
.about-content {
    background: var(--white);
    border-radius: var(--radius);
    padding: 50px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    min-height: 400px;
    margin-bottom: 80px;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
.tab-content h2 {
    font-size: 36px;
    color: var(--text-dark);
    margin-bottom: 30px;
}
.tab-content p { 
    color: var(--text-light); 
    line-height: 1.7; 
    margin-bottom: 18px; 
    font-size: 17px;
}

/* Фото-баннер внутри раздела */
.section-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 30px;
}
.section-photo-half {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 30px;
}
.section-photo-half img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

/* Карточка директора */
.director-card {
    display: flex;
    gap: 40px;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 35px;
    margin-bottom: 30px;
    align-items: flex-start;
}
.director-avatar {
    width: 120px; height: 120px;
    border-radius: 50%;
    background: #f1f4f8;
    border: 3px solid #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #4b5563;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}
.director-quote {
    border: 1px solid rgba(235, 160, 78, 0.3);
    padding: 24px 30px;
    background: linear-gradient(135deg, rgba(235, 160, 78, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
    border-radius: var(--radius-sm);
    font-style: italic;
    color: var(--text-dark);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(235, 160, 78, 0.02);
}

/* Команда */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.team-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: var(--transition);
}
.team-card:nth-child(even) { border-top-color: var(--secondary); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-avatar {
    width: 72px; height: 72px;
    background: #f1f4f8;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #4b5563; font-weight: 700;
    font-family: 'Manrope', sans-serif;
}
.team-card h4 { font-size: 17px; color: var(--text-dark); margin-bottom: 6px; }
.team-card p { font-size: 13px; color: var(--primary); margin: 0; }
.team-card .edu { font-size: 12px; color: var(--text-light); margin-top: 6px; }


/* Реквизиты */
.requisites-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.requisites-table tr { border-bottom: 1px solid #f0f0f0; }
.requisites-table tr:last-child { border-bottom: none; }
.requisites-table td {
    padding: 14px 10px;
    font-size: 15px;
    vertical-align: top;
    word-break: break-word;
}
.requisites-table td:first-child {
    color: var(--text-light);
    width: 40%;
    font-weight: 500;
}
.requisites-table td:last-child {
    color: var(--text-dark);
    font-weight: 600;
}

/* МТО */
.mto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin: 20px 0;
}
.mto-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
}
.mto-item h4 { font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.mto-item p { font-size: 14px; color: var(--text-light); margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
            .about-layout { grid-template-columns: 1fr; }
            .about-sidebar { position: static; }
            .about-menu { display: flex; overflow-x: auto; border-radius: 12px; }
            .about-menu li { flex: 0 0 auto; }
            .about-menu li a { border-bottom: none; border-right: 1px solid #f5f5f5; white-space: nowrap; }
            .about-menu li a.active { border-left: none; border-bottom: 4px solid var(--primary); }
            .about-content { padding: 24px 16px; margin-bottom: 40px; }
            .about-hero { padding: 45px 0 35px; margin-bottom: 30px; border-radius: 0 0 24px 24px; }
            .about-hero h1 { font-size: 28px; }
            .about-hero p { font-size: 15px; }
            .director-card { flex-direction: column; gap: 20px; padding: 20px; }
            .stats-band { padding: 24px 16px; gap: 20px; margin-bottom: 35px; }
            .stat-item .num { font-size: 36px; }
            .about-tabs-nav-container { margin-bottom: 25px; }
            .tab-content h2 { font-size: 24px; margin-bottom: 15px; }
            .tab-content p { font-size: 15px; margin-bottom: 12px; }
            .section-photo { height: 200px; margin-bottom: 20px; }
            .section-photo-half { gap: 12px; margin-bottom: 20px; }
            .section-photo-half img { height: 140px; }
}

/* ==========================================================================
   Доступная среда
   ========================================================================== */

/* Доступная среда */
.access-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    margin: 50px 0;
}
.access-info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.access-info-card h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-family: 'Manrope', sans-serif;
}
.access-info-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}
.access-info-card ul {
    padding-left: 20px;
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 16px;
}
.access-info-card ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}
.doc-download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.doc-download-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(197, 78, 112, 0.03);
    border: 1px solid rgba(197, 78, 112, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
}
.doc-download-item:hover {
    background: rgba(197, 78, 112, 0.07);
    border-color: var(--primary);
    transform: translateX(5px);
}
.doc-download-icon {
    width: 40px;
    height: 40px;
    background: rgba(197, 78, 112, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}
@media (max-width: 900px) {
            .access-grid {
                grid-template-columns: 1fr;
            }
}

/* ==========================================================================
   О фонде: дополнительные элементы
   ========================================================================== */

/* О фонде (дополнительные стили) */
.team-avatar-img, .team-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    object-position: top;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--primary);
    font-size: 36px;
    color: #fff;
    font-weight: 700;
}
.team-avatar {
    background: #f1f4f8;
    color: #4b5563;
    border: 2px solid #e2e8f0;
}
.director-avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 4px solid var(--primary);
    box-shadow: 0 8px 25px rgba(197, 78, 112, 0.15);
    margin-right: 30px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .director-card-inner {
        flex-direction: column;
        text-align: center;
    }
    .director-avatar-img {
        margin-right: 0;
        margin-bottom: 20px;
    }
    .team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .doc-certificates-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .mto-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .stats-band {
        grid-template-columns: 1fr;
        padding: 24px 16px;
        gap: 20px;
    }
    .access-info-card {
        padding: 20px 16px;
    }
    .team-card {
        padding: 20px 16px;
        min-width: 0;
    }
}
