/**
 * БФ «Ева» — Стили главной страницы
 */

/* ==========================================================================
   Главный экран (Hero)
   ========================================================================== */

/* Главный экран */
.hero {
    position: relative;
    padding: 70px 0 60px;
    background: #f4f6f9;
    color: var(--text-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    border-radius: 0 0 40px 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 520px;
}
.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    object-position: right center;
    z-index: 1;
    opacity: 0.98;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(244,246,249,0.98) 0%, rgba(244,246,249,0.95) 42%, rgba(244,246,249,0.6) 56%, rgba(244,246,249,0.1) 72%, transparent 85%);
    z-index: 2;
}
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    display: flex;
    align-items: center;
}
.hero-content {
    position: relative;
    z-index: 3;
    max-width: 580px;
    margin: 0;
    margin-right: auto;
}
.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.hero-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 18px;
}
.hero-title-logo {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.08));
    transition: transform 0.3s ease;
}
.hero-title-logo:hover {
    transform: scale(1.05);
}
.hero-title-row h1,
.hero h1 {
    font-size: 42px;
    line-height: 1.15;
    margin-bottom: 0;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
}
.hero p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.5;
    max-width: 520px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #9c3c57 100%);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--shadow-lg);
    display: inline-block;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 45px rgba(197, 78, 112, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-dark);
    padding: 16px 36px;
    border-radius: 100px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Manrope', sans-serif;
    box-shadow: var(--shadow-sm);
    display: inline-block;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
}
.btn-secondary:hover {
    background: #f9f9f9;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ==========================================================================
   Интерактивный слайдер программ на главной
   ========================================================================== */

/* Сетка карточек */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 100px;
}

.card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.card:hover::before { transform: scaleX(1); }

.card-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: inline-block;
    padding: 15px;
    background: rgba(197, 78, 112, 0.05);
    border-radius: 20px;
    color: var(--primary);
}

.card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.card p {
    color: var(--text-light);
    font-size: 16px;
}

/* ==========================================================================
   Информационные блоки и статистика главной
   ========================================================================== */

/* Информационные блоки */
.info-block {
    background: linear-gradient(135deg, rgba(235, 160, 78, 0.03) 0%, rgba(197, 78, 112, 0.02) 100%);
    border: 1px solid rgba(235, 160, 78, 0.25);
    border-radius: var(--radius-sm);
    padding: 24px 30px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.01);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition);
}
.info-block:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
    background: linear-gradient(135deg, rgba(235, 160, 78, 0.07) 0%, rgba(197, 78, 112, 0.04) 100%);
}
.info-block::before {
    content: '';
    position: absolute;
    width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(197, 78, 112, 0.05) 0%, rgba(255,255,255,0) 70%);
    top: -50px; right: -50px;
    border-radius: 50%;
    pointer-events: none;
}
.info-block-icon {
    width: 44px; height: 44px;
    background: rgba(235, 160, 78, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--secondary);
    transition: var(--transition);
}
.info-block:hover .info-block-icon {
    transform: scale(1.08) rotate(5deg);
    background: var(--secondary);
    color: #fff;
}
.info-block-icon svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.info-block-content {
    flex: 1;
}
.info-block h4 {
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}
.info-block p {
    margin: 0;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   Партнеры фонда
   ========================================================================== */

/* Партнеры фонда */
.partners-section {
    padding: 40px 0 60px;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    border-top: 1px solid rgba(0,0,0,0.03);
}
.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.partner-logo-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 16px;
    height: 100px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.partner-logo-card svg,
.partner-logo-card img {
    width: 100%;
    height: 100%;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition);
}
.partner-logo-card:hover {
    transform: translateY(-5px);
    background: #fff;
    border-color: rgba(197, 78, 112, 0.15);
    box-shadow: var(--shadow-md);
}
.partner-logo-card:hover svg,
.partner-logo-card:hover img {
    opacity: 1;
    filter: grayscale(0);
}

@media (max-width: 768px) {
    .info-block {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    .partners-logo-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 15px;
    }
    .partner-logo-card {
        height: 80px;
        padding: 12px;
    }
}

/* ==========================================================================
   Карточки расписания на главной
   ========================================================================== */

/* Расписание онлайн-мероприятий на главной */
.online-activities-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(235, 160, 78, 0.01) 0%, rgba(197, 78, 112, 0.02) 100%);
    border-radius: var(--radius);
    border: 1px solid rgba(197, 78, 112, 0.05);
    margin-bottom: 80px;
}
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.schedule-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02), 0 2px 4px rgba(0, 0, 0, 0.01);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 270px;
}
.schedule-card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 78, 112, 0.15);
    box-shadow: 0 15px 35px rgba(197, 78, 112, 0.06), 0 4px 10px rgba(0, 0, 0, 0.01);
}
.schedule-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.schedule-card-time {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: #FDF4F6;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: 'Manrope', sans-serif;
}
.schedule-card-day {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    letter-spacing: 0.5px;
    font-family: 'Manrope', sans-serif;
}
.schedule-card-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: 12px;
    font-family: 'Manrope', sans-serif;
    flex-grow: 1;
}
.schedule-card-instructor {
    font-size: 15px;
    color: #5A5A72;
    margin-bottom: 24px;
    line-height: 1.5;
}
.schedule-card-btn {
    width: 100%;
    text-align: center;
    padding: 12px;
    background: transparent;
    border: 1px solid rgba(197, 78, 112, 0.15);
    border-radius: 12px;
    color: var(--primary);
    font-weight: 700;
    font-size: 15px;
    font-family: 'Manrope', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}
.schedule-card-btn:hover {
    background: #FDF4F6;
    border-color: rgba(197, 78, 112, 0.3);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(197, 78, 112, 0.05);
}

/* ==========================================================================
   Фото-карточки направлений помощи
   ========================================================================== */

/* Фото-карточки направлений */
.programs-section {
    padding: 100px 0;
}
.photo-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.photo-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.03);
    text-decoration: none;
    color: inherit;
}
.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.photo-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background-color: #eee;
}
.photo-card-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.custom-icon {
    width: 60px; height: 60px;
    margin-bottom: 20px;
}
.photo-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.photo-card p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    flex-grow: 1;
}
.photo-card-link {
    color: var(--primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
@media (max-width: 768px) {
            .hero {
                padding: 40px 0 35px;
                border-radius: 0 0 24px 24px;
                text-align: center;
                min-height: auto;
            }
            .hero-overlay {
                background: rgba(244, 246, 249, 0.94);
            }
            .hero-container {
                justify-content: center;
            }
            .hero-content {
                max-width: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                margin: 0 auto;
            }
            .hero-title-row {
                flex-direction: column;
                align-items: center;
                gap: 12px;
                margin-bottom: 14px;
            }
            .hero-title-logo {
                height: 52px;
            }
            .hero-title-row h1,
            .hero h1 {
                font-size: 28px;
                line-height: 1.25;
                margin-bottom: 0;
            }
            .hero p {
                font-size: 15px;
                margin-bottom: 20px;
                max-width: 100%;
            }
            .hero-btns,
            .hero-content > div:last-child {
                flex-direction: column;
                gap: 10px;
                width: 100%;
            }
            .hero-content .btn-primary {
                width: 100%;
                text-align: center;
                font-size: 16px;
                padding: 12px 24px;
            }
            .programs-section {
                padding: 40px 0;
            }
            .photo-cards-grid {
                gap: 20px;
            }
}

/* ==========================================================================
   Карусель афиши на главной странице
   ========================================================================== */

/* Информационный блок */
.afisha-how-to-join {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.05);
    margin-bottom: 60px;
    box-shadow: var(--shadow-sm);
}
.afisha-how-to-join .steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.step-item {
    display: flex;
    gap: 16px;
}
.afisha-how-to-join .step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(197, 78, 112, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .afisha-page-title {
        font-size: 32px;
    }
    .afisha-mosaic-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .mosaic-card-image-wrap {
        height: 200px;
    }
    .afisha-how-to-join {
        padding: 25px;
    }
}

.afisha-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 35px;
    flex-wrap: wrap;
    gap: 20px;
}
.afisha-carousel-wrapper {
    position: relative;
}
.afisha-carousel-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 10px 4px 25px 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.afisha-carousel-track::-webkit-scrollbar {
    display: none;
}
.afisha-carousel-track .schedule-card {
    flex: 0 0 350px;
    max-width: 350px;
    scroll-snap-align: start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--white);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.07);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.afisha-carousel-track .schedule-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.1);
}
.schedule-card-image-wrap {
    width: 100%;
    height: 230px;
    position: relative;
    overflow: hidden;
    background: #f1f3f7;
}
.schedule-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.schedule-card:hover .schedule-card-img {
    transform: scale(1.05);
}
.schedule-card-format-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.schedule-card-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
@media (max-width: 768px) {
            .afisha-carousel-track .schedule-card {
                flex: 0 0 85vw;
                max-width: 85vw;
            }
            .schedule-card-image-wrap {
                height: 195px;
            }
            .schedule-card-body {
                padding: 18px 20px;
            }
            .afisha-header-row {
                align-items: flex-start;
            }
}
.afisha-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid rgba(0,0,0,0.1);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.afisha-nav-btn:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: scale(1.05);
}
.afisha-nav-btn.disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
    transform: none;
}
.btn-all-afisha-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(197,78,112,0.08);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(197,78,112,0.15);
}
.btn-all-afisha-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.afisha-header-text {
    max-width: 650px;
}
.afisha-header-badge {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 1px;
    display: block;
    margin-bottom: 12px;
}
.afisha-header-title {
    font-size: 38px;
    color: var(--text-dark);
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.afisha-header-desc {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}
.afisha-header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.afisha-nav-group {
    display: flex;
    gap: 8px;
}
.schedule-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}
.schedule-card-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(197, 78, 112, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
}
.schedule-card-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.schedule-card-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.schedule-card-actions .schedule-card-btn {
    flex: 1;
}
.schedule-card-btn--booking {
    background: var(--secondary);
    border-color: var(--secondary);
}
.schedule-empty-card {
    width: 100%;
    max-width: 450px;
    text-align: center;
    padding: 30px;
}
.schedule-empty-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.schedule-card-format-tag--zoom {
    background: rgba(197, 78, 112, 0.94);
    color: #fff;
}
.schedule-card-format-tag--offline {
    background: rgba(235, 160, 78, 0.95);
    color: #fff;
}
.schedule-empty-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}
.schedule-empty-text {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}
.afisha-cta-row {
    text-align: center;
    margin-top: 35px;
}
.afisha-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 34px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}
.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.hero-btns .btn-outline {
    background: rgba(0, 0, 0, 0.04);
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
    box-shadow: none;
    padding: 14px 28px;
    border-radius: 100px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hero-btns .btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(197, 78, 112, 0.05);
}
.showcase-more-btn {
    padding: 10px 24px;
    font-size: 14px;
    width: auto;
    display: inline-block;
    text-decoration: none;
}
.showcase-preview-btn {
    padding: 12px 30px;
    font-size: 14px;
    text-decoration: none;
}
.partners-title {
    text-align: center;
    margin-bottom: 15px;
}
.partners-desc {
    text-align: center;
    color: var(--text-light);
    max-width: 650px;
    margin: 0 auto 40px;
    font-size: 17px;
    line-height: 1.6;
}
