/* ==================== 1. ОБЩИЕ СТИЛИ И ПЕРЕМЕННЫЕ ==================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@100..900&display=swap');


:root {
    /* Цветовая палитра */
    --primary-color: #8c1d40;
    --primary-hover-color: #701733;
    --secondary-color: #ffc107; /* Оранжевый/желтый цвет из макета */
    --dark-text-color: #111827;
    --light-text-color: #6b7280;
    --border-color: #d1d5db;
    --background-color: #ffffff;
    --light-gray-bg: #f8f7ee; /* Светло-серый фон */
    
    /* Шрифты */
    --main-font: 'Geist', sans-serif;
}



/* ==================== СТИЛИ ДЛЯ АНИМАЦИИ ПРИ СКРОЛЛЕ ==================== */

/*
 * 1. Начальное состояние элемента (до появления)
 * Он будет прозрачным и сдвинутым вниз.
*/
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px); /* Сдвигаем на 30px вниз */
    transition: opacity 0.9s ease-out, transform 0.6s ease-out;
}

/*
 * 2. Конечное состояние элемента (когда он видим)
 * Этот класс будет добавляться через JavaScript.
*/
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0); /* Возвращаем на исходную позицию */
}


body {
    font-family: var(--main-font);
    margin: 0;
    background-color: var(--page-background);
    color: var(--dark-text-color);
    /* ДОБАВЬТЕ ЭТУ СТРОКУ */
    overflow-x: hidden; /* Запрещаем горизонтальную прокрутку */
}

html {
  scroll-behavior: smooth;
}

/* ДОБАВЬТЕ ЭТИ СТИЛИ */
.page-wrapper {
    /* Это наш новый "холст", который мы будем обрезать */
    overflow: hidden;
    position: relative; /* Создаем контекст для дочерних абсолютных элементов, если нужно */
}

.container {
    max-width: 1360px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 15px;
    padding-right: 15px;
}


.bg-grey{
    background-color: var(--light-gray-bg);
}


/* ==================== СТИЛИ СЕКЦИИ HEADER ==================== */

/* --- Сначала определим все стили для десктопа --- */

.site-header {
    background-color: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow 0.3s ease-in-out;
}

.site-header--scrolled {
    background-color: #ffffffeb;
    box-shadow: 0px 2px 4px rgb(0 0 0 / 5%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.site-header__wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header__logo img {
    display: block;
    height: 48px;
}

/* Навигация на десктопе */
.site-header__nav {
    margin: 0 auto;
}

.nav__list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 32px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--dark-text-color);
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav__link:hover {
    color: var(--primary-color);
}

.nav__arrow {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.nav__link--dropdown:hover .nav__arrow {
    transform: rotate(180deg);
}

/* Кнопки на десктопе */
.site-header__actions {
    display: flex;
    gap: 12px;
}

.btn { /* Общий класс для кнопок, если он не определен в другом месте */
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    font-weight: 600;
    border-radius: 48px;
}

.site-header__actions .btn {
    padding: 12px 24px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 48px;
}

.site-header__actions .btn--secondary {
    border-color: var(--border-color);
    color: var(--dark-text-color);
}

.site-header__actions .btn--secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.site-header__actions .btn--primary {
    background-color: var(--primary-color);
    color: #fff;
}

.site-header__actions .btn--primary:hover {
    background-color: var(--primary-hover-color);
}

/* Мобильные элементы по умолчанию скрыты на десктопе */
.site-header__mobile-controls {
    display: none;
}


/* --- Теперь переопределим стили для мобильных устройств (ширина экрана 992px и меньше) --- */
@media (max-width: 992px) {
    .site-header__nav,
    .site-header__actions {
        display: none;
    }

    .site-header__logo img{
        height: 36px;
    }

    /* 2. Показываем обертку для мобильных контролов */
    .site-header__mobile-controls {
        display: flex; /* Используем flex для выравнивания */
    }

    /* 3. Стили для новой мобильной кнопки */
    .site-header__cta-mobile {
        display: inline-block;
        background-color: var(--primary-color);
        color: #fff;
        padding: 10px 16px;
        font-size: 15px;
        border-radius: 48px; /* Как у десктопной */
        text-decoration: none;
    }
     .site-header__cta-mobile:hover {
         background-color: var(--primary-hover-color);
    }

    /* 4. ВРЕМЕННО СКРЫВАЕМ кнопку-бургер */
    .site-header__mobile-toggle {
        display: none;
    }

    .site-header__mobile-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--dark-text-color);
        border-radius: 3px;
        transition: all 0.3s ease-in-out;
    }
    .site-header.mobile-menu-open .site-header__mobile-toggle span {
        background-color: #ffffff;
    }

    /* 4. Анимация бургера в крестик */
    .site-header.mobile-menu-open .site-header__mobile-toggle span:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }
    .site-header.mobile-menu-open .site-header__mobile-toggle span:nth-child(2) {
        opacity: 0;
    }
    .site-header.mobile-menu-open .site-header__mobile-toggle span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }
    
    /* 5. СТИЛИ ДЛЯ ВЫЕЗЖАЮЩЕГО МЕНЮ (НОВЫЙ ПОДХОД) */
    .site-header__nav {
        /* ИЗНАЧАЛЬНОЕ СОСТОЯНИЕ: Меню полностью убрано из DOM */
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: var(--primary-color);
        z-index: 1001;
        
        /* Стили для содержимого */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        
        /* Анимация появления */
        opacity: 0;
        transition: opacity 0.3s ease-in-out;
        
        padding: 40px;
        box-sizing: border-box;
    }

    /* КОНЕЧНОЕ СОСТОЯНИЕ: Меню появляется */
    .site-header.mobile-menu-open .site-header__nav {
        display: flex; /* Возвращаем в DOM */
        opacity: 1; /* Делаем видимым */
    }

    /* 6. Стили для элементов внутри меню (без изменений) */
    .nav__list {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    .nav__link {
        color: #FFFFFF;
        font-size: 24px;
    }
    .nav__link:hover {
        color: var(--secondary-color);
    }
    .nav__arrow {
        display: none;
    }
}
/* ==================== СТИЛИ СЕКЦИИ HERO (v3 - Card Design) ==================== */

.hero__wrapper {
    display: grid;
    grid-template-columns: 50% 50%; /* Разделение на 2 колонки */
    align-items: center;
    min-height: 600px;
    position: relative; /* Важно для позиционирования дочерних элементов */

    /* Стили самой "карточки" */
    background: linear-gradient(
    180deg,
    rgba(246, 245, 239, 0.5) 0%,
    rgba(241, 239, 226, 1) 100%
    );
    border-radius: 24px; /* Закругленные углы */
    overflow: hidden; /* ГЛАВНОЕ ПРАВИЛО: всё, что выходит за рамки, обрезается */
}

/* --- Левая колонка: Контент --- */
.hero__content {
    padding: 48px;
    position: relative; /* Чтобы текст был выше фона */
    z-index: 2;
}

.hero__pre-title {
    background-color: rgba(255, 193, 7, 0.2);
    color: #111827;
    font-weight: 500;
    padding: 12px 16px;
    border-left: 4px solid #fec064;
    font-size: 18px;
    border-radius: 16px;
    margin-bottom: 24px;
    display: inline-block;
}

.hero__title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 20px 0;
    color: #111827;
}

.hero__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: #6b7280;
    margin: 0 0 32px 0;
    max-width: 450px;
}

.hero__cta-btn {
    background-color: #8c1d40;
    color: #fff;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 48px;
    transition: background-color 0.2s ease;
    display: inline-block;
}

.hero__cta-btn:hover {
    background-color: #701733;
}

/* --- Правая колонка: Визуал --- */
.hero__visuals {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1; /* Визуал находится под контентом, но над фоном */
}

.hero__background-shape {
    position: absolute;
    top: 40%;
    left: 70%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: auto;
    z-index: 1;
}

.hero__image {
    position: relative;
    display: block;
    max-width: 750px;
    margin: 0 auto;
    top: 25px;
    z-index: 2;
    left: -40px;
}

.hero__deco-svg {
    position: absolute;
    z-index: 3; /* Пузыри над всем */
    width: auto;
    height: auto;
    transition: transform 0.5s ease-out; /* Плавный возврат в исходное положение */
}

.hero__deco-svg--ayti { top: 10%; left: 75%; max-width: 120px; }
.hero__deco-svg--ielts { top: 60%; left: -10%; max-width: 120px; }
.hero__deco-svg--sat { top: 70%; right: 5%; max-width: 120px; }
.hero__deco-svg--qabul { top: 75%; right: 20%; max-width: 370px; transform: rotate(1deg); }

/* --- Адаптация секции HERO для мобильных (v3 - Card Design) --- */
@media (max-width: 992px) {
    .hero {
        padding-top: 0px;
        padding-bottom: 24px;
    }

    .hero__wrapper {
        grid-template-columns: 1fr; /* Одна колонка */
        min-height: auto;
        gap: 0; /* Убираем промежуток, т.к. фон теперь сплошной */
        justify-items: center;
        justify-content: center;
    }

    .hero__content {
        padding: 15px;
        text-align: center;
        order: 1; /* Текст будет вторым */
    }

    .hero__subtitle{
        font-size: 18px;
        padding: 15px;
    }

    .hero__content .hero__pre-title,
    .hero__content .hero__cta-btn {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__title {
        font-size: 24px;
    }
    
    /* --- Визуал на мобильных --- */
    .hero__visuals {
        order: 2; /* Картинка будет первой */
        min-height: 380px;
        padding-top: 20px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-top: -30px;
    }

    .hero__background-shape {
        display: none; /* Скрываем фоновый щит, т.к. есть сплошной фон */
    }

    .hero__image {
        max-width: 446px;
        position: relative;
        place-self: end;
        top: 0;
        z-index: 2;
        left: 0;
    }
    
    .hero__deco-svg--ayti { display: none; top: 0%; left: auto; right: 6%; max-width: 110px; }
    .hero__deco-svg--ielts { display: none; top: 60%; left: 5%; max-width: 110px; }
    .hero__deco-svg--sat { display: none; top: 35%; left: 10%; max-width: 110px; }
    .hero__deco-svg--qabul { top: 75%; right: 9%; max-width: 350px; transform: rotate(1deg); }
}


/* ==================== СТИЛИ СЕКЦИИ ABOUT ==================== */
.about {
    background-color: #ffffff;
    padding: 72px 0;
}

.about__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Контент (левая колонка) --- */
.about__title {
    font-size: 36px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 24px 0;
}

.about__text p {
    font-size: 18px;
    line-height: 1.6;
    color: #242424;
    margin: 0 0 16px 0;
}

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

.about__text strong {
    color: #8c1d40; /* primary-color */
    font-weight: 700;
}

.about__projects {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 32px 0;
}

.about__projects img {
    display: block;
    height: 72px;
    width: 72px;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item__number {
    font-size: 48px;
    font-weight: 700;
    color: #8c1d40; /* primary-color */
}

.stat-item__label {
    font-size: 20px;
    color: #242424;
    margin-top: 4px;
}

/* --- Медиа (правая колонка) --- */
.about__media {
    position: relative;
}

.about__image {
    display: block;
    width: 100%;
    border-radius: 20px;
}

.about__play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.2s ease;
}

.about__play-btn:hover {
    transform: translate(-50%, -50%) scale(1.1);
}

/* --- Адаптация секции ABOUT для мобильных --- */
@media (max-width: 992px) {
    .about {
        padding: 60px 0;
    }

    .about__wrapper {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
    }

    .about__title {
        font-size: 28px;
        text-align: center;
    }

    .about__text {
        text-align: center;
    }

    .about__projects {
        justify-content: center;
    }

    .about__stats {
        grid-template-columns: 1fr; /* Статистика в один столбец */
        text-align: center;
        gap: 30px;
        padding-top: 24px;
    }
}


/* ==================== СТИЛИ СЕКЦИИ FEATURES ==================== */
.features {
    background-color: #f8f7ee;
    padding: 72px 0;
}

/* --- Заголовок секции --- */
.features__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px auto;
}

.features__title {
    font-size: 36px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 16px 0;
}

.features__subtitle {
    font-size: 20px;
    color: #737165;
    line-height: 1.5;
    margin: 0;
}

/* --- Сетка карточек --- */
.features__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 32px; /* Увеличил вертикальный отступ для эффекта */
}

.feature-card {
    background-color: #ffffff;
    border-radius: 32px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    position: relative;
    z-index: 1;
}

/* Эффект "двойной" карточки */
.feature-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: -5px; /* Сдвигаем заднюю карту вниз */
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 32px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    z-index: -1;
    transition: top 0.3s ease;
}

.feature-card:hover::before {
    box-shadow: 0 3px 10px rgba(255, 170, 0, 0.2);
}


.feature-card__pin {
    position: absolute;
    top: -5px;
    right: 0px;
}

/* ИСПРАВЛЕНО: Стили для иконки как для единого изображения */
.feature-card__icon {
    display: block;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-card__title {
    font-size: 24px;
    font-weight: 500;
    color: #242424;
    margin: 0 0 12px 0;
}

.feature-card__description {
    font-size: 18px;
    color: #737165;
    line-height: 1.6;
    margin: 0;
}

.feature-card__description strong {
    font-weight: 600;
    color: #930443;
}

/* --- Адаптация секции FEATURES для мобильных --- */

/* Планшеты */
@media (max-width: 992px) {
    .features__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 16px;
    }
}

/* Смартфоны */
@media (max-width: 768px) {
    .features {
        padding: 60px 0;
    }

    .features__header {
        margin-bottom: 32px;
    }

    .features__title {
        font-size: 28px;
    }

    .features__subtitle {
        font-size: 16px;
    }

    .features__grid {
        grid-template-columns: 1fr;
    }

    .feature-card__title {
        font-size: 20px;
    }

    .feature-card__description {
        font-size: 16px;
    }
}


/* ==================== СТИЛИ СЕКЦИИ CURRICULUM ==================== */
.curriculum {
    padding: 72px 0;
    /* Можно добавить фон, если он отличается от основного, например:
    background-color: #fcfcfc; */
}

.curriculum__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.curriculum__title {
    font-size: 36px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 16px 0;
}

.curriculum__subtitle {
    font-size: 18px;
    color: #737165;
    line-height: 1.5;
    margin: 0;
}

.curriculum__cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.program-card {
    display: grid;
    grid-template-columns: 55% 45%;
    border-radius: 24px;
    overflow: hidden; /* Важно для обрезки декора */
    position: relative;
}

.program-card__content {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.program-card__tag {
    display: inline-block;
    padding: 6px 12px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    margin-bottom: 24px;
    align-self: flex-start;
}

.program-card__title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.program-card__description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1; /* Заставляет текст занять все доступное место, отодвигая кнопку вниз */
}

.program-card__button {
    margin-top: 32px;
    padding: 10px 20px;
    border: 1px solid;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    align-self: flex-start;
}

/* --- Цветовые схемы карточек --- */
.program-card--purple { background-color: #EAE6FF; border: 1px solid #d8d1fc;}
.program-card--purple .program-card__tag { background-color: #D5CCFF; color: #5B21B6; }
.program-card--purple .program-card__title { color: #4C1D95; }
.program-card--purple .program-card__description { color: #5B21B6; }
.program-card--purple .program-card__button { border-color: #5B21B6; color: #5B21B6; }
.program-card--purple .program-card__button:hover { background-color: #5B21B6; color: #fff; }
.program-card--purple .program-card__separator svg { fill: #EAE6FF; }

.program-card--orange { background-color: #FEF3C7; border: 1px solid #fec064}
.program-card--orange .program-card__tag { background-color: #fec064; color: #ba5d22; }
.program-card--orange .program-card__title { color: #92400E; }
.program-card--orange .program-card__description { color: #B45309; }
.program-card--orange .program-card__button { border-color: #B45309; color: #B45309; }
.program-card--orange .program-card__button:hover { background-color: #B45309; color: #fff; }
.program-card--orange .program-card__separator svg { fill: #FEF3C7; }

/* --- Медиа часть карточки --- */
.program-card__media {
    position: absolute;
    align-self: end;
    right: 0px;
}

.program-card__media img{
    width: 95%;
}

.program-card__image {
    display: block;
    width: 100%;
    position: relative;
    z-index: 2;
}

.program-card__separator {
    position: absolute;
    top: -49px;
    right: 0;
    height: 100%;
    z-index: 1;
}

.program-card__separator img{
    width: 170%;
    top: -80px;
}


/* --- Адаптация секции CURRICULUM для мобильных --- */
@media (max-width: 992px) {
    .curriculum__cards {
        grid-template-columns: 1fr; /* Одна колонка */
    }
}

@media (max-width: 768px) {
    .curriculum {
        padding: 60px 0;
    }

    .curriculum__title {
        font-size: 28px;
    }

    .curriculum__subtitle {
        font-size: 16px;
    }
    
    .program-card {
        grid-template-columns: 1fr; /* Внутренняя сетка карточки тоже в 1 колонку */
        padding: 0;
    }
    
    .program-card__content {
        padding: 24px;
        order: 2;
        align-items: flex-start;
        text-align: left;
    }

    .program-card__media {
        order: 1;
        padding: 0 24px;
        right: -60px;
        width: 45%;
    }

    .program-card__separator {
        display: none; /* Скрываем разделитель на мобильных */
    }

    .program-card__title {
        font-size: 28px;
    }
    
    .program-card__button {
        align-self: flex-start;
    }

    .program-card__description{
        width: 80%;
    }
}


/* ==================== СТИЛИ СЕКЦИИ EXTRACURRICULAR ==================== */
.extracurricular {
    padding: 0 0 72px 0;
}

.extracurricular__header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px auto;
}

.extracurricular__title {
    font-size: 36px;
    font-weight: 700;
    color: #242424;
    margin: 0 0 16px 0;
}

.extracurricular__subtitle {
    font-size: 18px;
    color: #737165;
    line-height: 1.5;
    margin: 0;
}

.extracurricular__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.activity-card {
    border-radius: 24px;
    padding: 32px;
    position: relative;
    min-height: 400px; /* Задаем минимальную высоту для выравнивания */
    display: flex;
    flex-direction: column;
}

.activity-card__content {
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.activity-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.activity-card__icon {
    border-radius: 12px;
    width: 56px;
    height: 56px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.activity-card__title {
    font-size: 22px;
    font-weight: 600;
    color: #111827;
}

.activity-card__description {
    font-size: 16px;
    line-height: 1.6;
    color: #57534E;
    margin-bottom: 24px;
}

.activity-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-card__list li {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #111827;
}

/* Стилизация маркера списка */
.activity-card__list li::before {
    content: '';
    display: inline-block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid;
    margin-right: 12px;
}

.activity-card__illustration {
    position: absolute;
    right: 24px;
    bottom: 0px; /* Выводим иллюстрацию за пределы карточки */
    z-index: 1;
    width: 180px; /* Примерный размер, можно настроить */
}

.activity-card__illustration img {
    width: 100%;
    display: block;
}

/* --- Цветовые схемы --- */
.activity-card--tech { background-color: #F3F4F6; }
.activity-card--tech .activity-card__list li::before { border-color: #7C3AED; }

.activity-card--lang { background-color: #FEFCE8; }
.activity-card--lang .activity-card__list li::before { border-color: #F59E0B; }

.activity-card--dev { background-color: #F5F3FF; }
.activity-card--dev .activity-card__list li::before { border-color: #D946EF; }

/* --- Адаптация секции EXTRACURRICULAR для мобильных --- */
@media (max-width: 992px) {
    .extracurricular__cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .extracurricular {
        padding: 60px 0;
    }
    
    .extracurricular__title {
        font-size: 28px;
    }
    
    .extracurricular__subtitle {
        font-size: 16px;
    }

    .activity-card {
        padding-bottom: 24px; /* Добавляем место снизу для иллюстрации */
        padding: 15px;
    }

    .activity-card__illustration {
        right: 30%;
        transform: translateX(50%);
        width: 160px;
    }
    

    .activity-card__illustration img {
        width: 100%;
        display: block;
    }
}

/* ==================== СТИЛИ СЕКЦИИ CTA-FORM ==================== */
.cta-form {
    padding: 80px 0;
}

.cta-form__card {
    background-color: #242424;
    background-image: url(../assets/images/cta-bg-pattern.svg);
    background-size: 440px;
    background-repeat: no-repeat;
    background-position: bottom;
    border-radius: 24px;
    padding: 64px;
}

.cta-form__wrapper {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 64px;
    align-items: center;
}

/* --- Текстовый контент --- */
.cta-form__content {
    color: #FFFFFF;
}

.cta-form__title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: #FEC064;
}

.cta-form__description {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.8;
    margin: 0;
    max-width: 450px;
}

/* --- Форма --- */
.cta-form__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cta-form__form input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background-color: #FFFFFF;
    font-size: 16px;
    font-family: 'Geist', sans-serif; /* Наследуем основной шрифт */
    box-sizing: border-box; /* Чтобы padding не влиял на ширину */
}

.cta-form__form input::placeholder {
    color: #A1A1AA;
}

.cta-form__button {
    background-color: #8c1d40; /* primary-color */
    color: #FFFFFF;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.cta-form__button:hover {
    background-color: #701733; /* primary-hover-color */
}

/* --- Адаптация секции CTA-FORM для мобильных --- */
@media (max-width: 992px) {
    .cta-form__wrapper {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 40px;
    }

    .cta-form__content {
        text-align: center;
    }
    
    .cta-form__description {
        margin: 0 auto; /* Центрируем текст */
    }
}

@media (max-width: 768px) {
    .cta-form {
        padding: 60px 0;
    }

    .cta-form__card {
        padding: 40px 24px;
    }

    .cta-form__title {
        font-size: 28px;
    }
}

/* ==================== 3. БЛОК ВОЗМОЖНОСТЕЙ (OPPORTUNITIES) ==================== */
/* 
 * ПРИМЕЧАНИЕ: Классы были переименованы с 'features-' на 'opportunities-',
 * чтобы избежать конфликтов с другим блоком на странице.
*/

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.opportunities-section {
    padding: 100px 0;
    background-color: var(--light-gray-bg);
    overflow: hidden;
}

.opportunities-header {
    text-align: center;
    margin-bottom: 70px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.opportunities-header h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-text-color);
    margin: 0 0 15px;
}

.opportunities-header p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text-color);
    margin: 0;
}

.opportunities-grid {
    display: grid;
    /* Изменено для соответствия макету: 2 колонки карточек и 1 для картинки */
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    gap: 40px;
}

.opportunities-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.opportunity-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background-color: var(--background-color);
    padding: 24px;
    border-radius: 24px;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.08);
}

.opportunity-card__icon-wrapper img {
    width: 50px;
    height: 50px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border-radius: 12px;;
}

.opportunity-card__text h4 {
    margin: 0 0 8px 0;
    font-size: 19px;
    font-weight: 600;
    color: var(--dark-text-color);
}

.opportunity-card__text p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: var(--light-text-color);
}

.opportunities-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.opportunities-image-wrapper::after {
    content: '';
    position: absolute;
    width: 105%;
    height: 105%;
    background-color: #e6e0f3;
    border-radius: 45px;
    transform: rotate(-2deg);
    z-index: 0;
    transition: transform 0.4s ease-in-out;
}

.opportunities-image-wrapper:hover::after {
    transform: rotate(1deg);
}

.opportunities-student-img {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 430px;
}

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */

@media (max-width: 1200px) {
    .opportunities-grid {
        gap: 25px;
    }
    .opportunities-student-img {
        max-width: 320px;
    }
}

@media (max-width: 992px) {
    .opportunities-section {
        padding: 80px 0;
    }
    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .opportunities-header h2 {
        font-size: 36px;
    }

    .opportunities-image-wrapper {
        order: 2;
        margin: 40px auto;
        width: 70%;
        max-width: 400px;
    }
    
    .opportunities-student-img {
        max-width: 100%;
    }

    .opportunities-column:first-child { order: 1; }
    .opportunities-column:last-child { order: 3; }
}

@media (max-width: 768px) {
    .opportunities-column{
        gap: 15px;
    }
    .opportunities-section {
        padding: 60px 0;
    }
    .opportunities-header {
        margin-bottom: 50px;
    }
    .opportunities-header h2 {
        font-size: 30px;
    }
    .opportunities-header p {
        font-size: 16px;
    }
    .opportunity-card {
        padding: 20px;
    }
    .opportunity-card__text h4 {
        font-size: 18px;
    }
    .opportunity-card__text p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .opportunity-card {
       flex-direction: column;
       align-items: center;
       text-align: center;
    }
    .opportunity-card__icon-wrapper {
        margin-bottom: 10px;
    }
    .opportunities-image-wrapper {
        width: 90%;
    }
}


/* ==================== СТИЛИ СЕКЦИИ ADMISSION PROCESS ==================== */

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.admission-process {
    padding: 100px 0;
    background-color: var(--background-color);
}

.admission-process__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.admission-process__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-text-color);
    margin: 0 0 16px 0;
}

.admission-process__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text-color);
    margin: 0;
}

/* Обертка для пунктирной рамки */
.admission-process__steps-wrapper {
    border: 2px dashed var(--border-color);
    border-radius: 32px;
    padding: 40px;
}

.admission-process__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.step-card {
    background-color: var(--light-gray-bg);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    padding-top: 60px; /* Оставляем место для номера */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.07);
}

.step-card__number {
    position: absolute;
    top: -10px;
    left: 24px;
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    color: var(--background-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    line-height: 1; /* Убираем лишнюю высоту строки */
    box-shadow: 0 8px 15px rgba(140, 29, 64, 0.2);
}

.step-card__title {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark-text-color);
    margin: 0 0 12px 0;
}

.step-card__description {
    font-size: 16px;
    line-height: 1.65;
    color: var(--light-text-color);
    margin: 0;
}

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */
@media (max-width: 992px) {
    .admission-process__steps-wrapper {
        padding: 32px;
    }
    .admission-process__grid {
        gap: 24px;
    }
}


@media (max-width: 768px) {
    .admission-process {
        padding: 80px 0;
    }
    .admission-process__title {
        font-size: 32px;
    }
    .admission-process__subtitle {
        font-size: 16px;
    }

    /* На мобильных сетка превращается в одну колонку */
    .admission-process__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .admission-process {
        padding: 60px 0;
    }
    
    /* На самых маленьких экранах убираем пунктирную рамку, чтобы не мешала */
    .admission-process__steps-wrapper {
        border: none;
        padding: 0;
    }
    
    .step-card {
        padding: 24px;
        padding-top: 50px;
    }
    
    .step-card__number {
        width: 56px;
        height: 56px;
        font-size: 30px;
        left: 20px;
    }

    .step-card__title {
        font-size: 20px;
    }
}


/* ==================== СТИЛИ СЕКЦИИ КОМАНДЫ (TEAM) ==================== */

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.team-section {
    padding: 100px 0;
    background-color: #f8f7ee; /* Фоновый цвет из макета */
    overflow: hidden;
}

.team-section__header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.team-section__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-text-color);
    margin: 0 0 16px 0;
}

.team-section__subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--light-text-color);
    margin: 0;
}

.team-section__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.team-member-card {
    background-color: var(--background-color);
    border-radius: 40px;
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.1);
}

/* Фотография сотрудника */
.team-member-card__photo {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 2; /* Фото выше фоновой фигуры, но ниже инфо-блока */
}

/* Декоративная фоновая фигура */
.team-member-card__bg-shape {
    position: absolute;
    bottom: -15%;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    z-index: 1; /* Самый нижний слой */
    pointer-events: none; /* Чтобы не мешала кликам */
}

/* Информационный блок с эффектом "стекла" */
.team-member-card__info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 3; /* Самый верхний слой */
    
    padding: 16px;
    border-radius: 16px;
    text-align: center;
    
    /* Эффект матового стекла */
    background: rgba(255, 255, 255, 0.6);
    -webkit-backdrop-filter: blur(12px); /* Для Safari */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.team-member-card__role {
    font-size: 13px;
    color: var(--light-text-color);
    display: block;
    margin-bottom: 4px;
}

.team-member-card__name {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text-color);
    margin: 0;
}

.team-member-card__experience {
    font-size: 14px;
    color: var(--light-text-color);
    display: block;
    margin-top: 4px;
}

/* Блок с кнопками под сеткой */
.team-section__actions {
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap; /* Для мобильных */
}

/* Новый стиль для кнопок */
.btn--outline {
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #FDBF60; /* Оранжевый из макета */
    color: var(--dark-text-color);
    border-radius: 50px;
    transition: all 0.2s ease-in-out;
}

.btn--outline:hover {
    background-color: #FDBF60;
    color: var(--dark-text-color);
}

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */

@media (max-width: 1200px) {
    .team-section__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .team-section {
        padding: 80px 0;
    }
    .team-section__title {
        font-size: 32px;
    }
    .team-section__subtitle {
        font-size: 16px;
    }
    .team-section__grid {
        grid-template-columns: 1fr;
    }
    /* Делаем карточки немного больше на мобильных для удобства */
    .team-member-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .team-section {
        padding: 60px 0;
    }
    .team-section__actions {
        flex-direction: column;
        gap: 12px;
    }
    .btn--outline {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}


/* ==================== СТИЛИ СЕКЦИИ FAQ ==================== */

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.faq-section {
    padding: 72px 0;
}

.faq-card {
    background-color: var(--background-color);
    border-radius: 32px;
    padding: 64px;
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Левая колонка уже, правая шире */
    gap: 64px;
    align-items: start;
}

/* Левая колонка */
.faq-card__title {
    font-size: 42px;
    font-weight: 700;
    color: var(--dark-text-color);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.faq-card__description {
    font-size: 16px;
    line-height: 1.6;
    color: var(--light-text-color);
    margin: 0 0 32px 0;
}

.faq-card__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.faq-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: transform 0.2s ease;
    width: fit-content;
}
.faq-btn:hover {
    transform: translateY(-2px);
}
.faq-btn svg {
    width: 20px;
    height: 20px;
}
.faq-btn--telegram {
    background-color: #0088cc;
    color: white;
}
.faq-btn--whatsapp {
    background-color: #25D366;
    color: white;
}

/* Правая колонка - Аккордеон */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    background-color: #F8F7EE;
    border-radius: 16px;
    transition: background-color 0.3s ease;
}
/* Стили для открытого элемента */
.accordion-item[open] {
    background-color: #FFFBEB; /* Более насыщенный желтый */
}

.accordion-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    cursor: pointer;
    list-style: none; /* Убираем стандартный маркер */
}
/* Убираем маркер и для WebKit-браузеров */
.accordion-item__header::-webkit-details-marker {
    display: none;
}

.accordion-item__question {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark-text-color);
}

.accordion-item__icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: 2px solid #FDBF60;
    border-radius: 50%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}
/* Рисуем плюсик с помощью псевдо-элементов */
.accordion-item__icon::before,
.accordion-item__icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background-color: #FDBF60;
    transition: all 0.3s ease;
}
.accordion-item__icon::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.accordion-item__icon::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}
/* Стили для открытого элемента: иконка */
.accordion-item[open] .accordion-item__icon {
    transform: rotate(135deg);
    background-color: #FDBF60;
}
.accordion-item[open] .accordion-item__icon::before,
.accordion-item[open] .accordion-item__icon::after {
    background-color: white;
}


.accordion-item__body {
    padding: 0 20px 20px 20px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--light-text-color);
}

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */
@media (max-width: 992px) {
    .faq-card {
        grid-template-columns: 1fr; /* Одна колонка */
    }
    .faq-card__content {
        text-align: center;
    }
    .faq-card__actions {
        flex-direction: row; /* Кнопки в ряд */
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 80px 0;
    }
    .faq-card {
        padding: 24px 15px;
    }
    .faq-card__title {
        font-size: 32px;
    }
}

@media (max-width: 480px) {
    .faq-card__actions {
        flex-direction: column; /* Кнопки снова в колонку */
        align-items: stretch;
        text-align: center;
    }
}


/* ==================== СТИЛИ СЕКЦИИ LOCATION ==================== */

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.location-section {
    padding: 72px 0;
}

.location-section__wrapper {
    position: relative; /* Основа для позиционирования карточки */
    border-radius: 32px;
    overflow: hidden; /* Обрезает углы iframe */
    box-shadow: 0 10px 40px -5px rgba(0, 0, 0, 0.07);
}

.location-section__map iframe {
    display: block; /* Убирает лишние отступы */
    width: 100%;
    border: 0;
}

.location-card {
    position: absolute;
    top: 40px;
    left: 40px;
    bottom: 40px;
    width: 380px;
    padding: 32px;
    border-radius: 24px;
    
    /* Эффект матового стекла */
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.location-card__label {
    display: block;
    font-size: 16px;
    color: var(--light-text-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.location-card__text {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark-text-color);
    margin: 0 0 16px 0;
}

.btn--location {
    display: inline-block;
    background-color: #FDBF60;
    color: var(--dark-text-color);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.btn--location:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.location-card__phone {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text-color);
    text-decoration: none;
}
.location-card__phone:hover {
    color: var(--primary-color);
}


.location-card__socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    transition: transform 0.2s ease;
}
.social-link:hover {
    transform: scale(1.1);
}
.social-link svg {
    width: 22px;
    height: 22px;
}

.social-link--tg { background-color: #0088cc; }
.social-link--insta { background-color: #333; }
.social-link--insta svg {
    stroke: white;
    stroke-width: 2;
    fill: none;
}
.social-link--yt { background-color: #FF0000; }

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */
@media (max-width: 992px) {
    /* На планшетах карточка становится меньше и прижимается к краю */
    .location-card {
        top: 24px;
        left: 24px;
        bottom: 24px;
        width: 320px;
        padding: 24px;
        gap: 16px;
    }
}


@media (max-width: 768px) {
    /* На мобильных устройствах карточка перемещается под карту */
    .location-section {
        padding: 80px 0;
    }

    .location-section__map {
       height: 400px;
    }
    .location-section__map iframe {
        height: 100%;
    }
    
    .location-card {
        position: static;
        width: 100%;
        border-radius: 0 0 24px 24px;
        backdrop-filter: none; /* Убираем эффект, т.к. карточка не над картой */
        background: var(--background-color);
        box-sizing: border-box; /* Важно для корректной ширины */
        margin-top: -1px; /* Чтобы не было щели между картой и блоком */
    }
}

@media (max-width: 480px) {
    .location-section {
        padding: 60px 0;
    }
     .location-section__map {
       height: 350px;
    }
    .location-card {
        padding: 32px 24px;
    }
    .location-card__text { font-size: 18px; }
    .location-card__phone { font-size: 20px; }
}



/* ==================== СТИЛИ ФУТЕРА (SITE FOOTER) - ОБНОВЛЕННАЯ СТРУКТУРА ==================== */

/* -------------------- Стили для десктопа (Desktop styles) -------------------- */
.site-footer {
    background-color: var(--primary-color);
    color: #FFFFFF;
    padding: 72px 0 16px 0;
}

.site-footer__main {
    display: grid;
    /* Изменено: теперь 2 колонки. Вторая колонка займет больше места */
    grid-template-columns: 1fr 2.5fr; 
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-footer__col--info {
    display: flex;
    flex-direction: column;
}

.site-footer__logo {
    display: block;
    width: 150px;
    margin-bottom: 24px;
}
.site-footer__logo img {
    width: 100%;
}

.site-footer__description,
.site-footer__contacts p,
.site-footer__contacts a {
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px 0;
    text-decoration: none;
}
.site-footer__contacts a:hover {
    color: white;
    text-decoration: underline;
}

/* Новая обертка для всего контента справа */
.site-footer__content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 32px; /* Расстояние между рядом навигации и рядом партнеров */
}

/* Новая сетка для колонок навигации */
.footer-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* Навигация в футере */
.footer-nav__title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin: 0 0 20px 0;
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav__link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-nav__link:hover {
    color: white;
}

/* Карточки партнеров */
.site-footer__partners {
    display: grid;
    /* Сетка для партнеров, чтобы они были одинаковой ширины */
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.partner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    transition: background-color 0.2s ease;
}
.partner-card:hover {
    background-color: rgba(0, 0, 0, 0.3);
}
.partner-card img {
    height: 28px;
    flex-shrink: 0;
}

/* Нижняя часть футера */
.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.site-footer__legal-links {
    display: flex;
    gap: 24px;
}
.site-footer__legal-links a {
    color: inherit;
    text-decoration: none;
}
.site-footer__legal-links a:hover {
    text-decoration: underline;
    color: white;
}

/* -------------------- Мобильная адаптация (Mobile adaptation) -------------------- */
@media (max-width: 992px) {
    .site-footer__main {
        /* На планшетах делаем одну колонку, все будет идти по порядку */
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .site-footer{
        padding: 48px 0 15px 0;
    }
    .footer-nav-grid {
        /* На мобильных навигация выстраивается в 2 колонки */
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer__partners {
        /* Партнеры тоже в 2 колонки */
        grid-template-columns: repeat(2, 1fr);
    }
    .site-footer__bottom {
        flex-direction: column-reverse; /* Сначала ссылки, потом копирайт */
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-nav-grid {
        /* На самых маленьких экранах все в одну колонку */
        grid-template-columns: 1fr;
    }
     .site-footer__partners {
        grid-template-columns: 1fr;
    }
}


/* ==================== СТИЛИ ФИКСИРОВАННОЙ CTA-КНОПКИ (v5 - Nested Gradient) ==================== */

/* Регистрируем кастомное свойство --gradient-angle */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* Анимация вращения угла градиента */
@keyframes rotation {
    from { --gradient-angle: 0deg; }
    to { --gradient-angle: 360deg; }
}

/* Основной контейнер (без изменений) */
.cta-sticky-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 16px;
    box-sizing: border-box;
}
.cta-sticky-bar__wrapper {
    max-width: -webkit-fill-available;
    margin: 0 auto;
    position: relative;
    height: 140px; 
}
.cta-sticky-bar__actions {
    position: absolute;
    bottom: 72px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}
.cta-sticky-bar.is-open .cta-sticky-bar__actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
/* ... стили для .cta-sticky-bar__action-btn остаются теми же ... */
.cta-sticky-bar__action-btn { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px; border-radius: 16px; text-decoration: none; font-weight: 600; font-size: 16px; color: white; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.cta-sticky-bar__action-btn svg { width: 20px; height: 20px; }
.cta-sticky-bar__action-btn--telegram { background-color: #0088cc; }
.cta-sticky-bar__action-btn--form { background-color: #8c1d40; }
.cta-sticky-bar__action-btn--phone { background-color: #25D366; }


/* === Основная кнопка-контейнер для анимации === */
.cta-sticky-bar__toggle-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    padding: 2px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    box-sizing: border-box;

    /* Shisha effekt uchun gradient va fon */
    background: rgb(181 21 70 / 17%);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(px);
    border: 1px solid rgb(181 21 70 / 17%);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.cta-sticky-bar__toggle-btn:hover {
    background: rgb(181 21 70 / 25%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* Ichki kontent: oq fonda yaxshi ko‘rinishi uchun */
.cta-sticky-bar__toggle-btn-inner {
    width: auto;
    height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #000; /* qora fon uchun yaxshi ko‘rinadi */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@media (prefers-color-scheme: dark) {
  .cta-sticky-bar__toggle-btn-inner {
      background: rgba(0, 0, 0, 0.4);
      color: #fff;
  }

  .cta-sticky-bar__toggle-btn {
      border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

.cta-sticky-bar__arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}
.cta-sticky-bar:not(.is-open) .cta-sticky-bar__arrow {
    transform: rotate(0deg);
}
.cta-sticky-bar.is-open .cta-sticky-bar__arrow {
    transform: rotate(180deg);
}


/* Показываем блок только на мобильных устройствах */
@media (max-width: 992px) {
    .cta-sticky-bar {
        display: block;
    }
}



/* ==================== СТИЛИ МОДАЛЬНОГО ОКНА ==================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: -webkit-fill-available;
    height: 100%;
    z-index: 2000; /* Выше чем все остальные элементы */

    display: flex;
    justify-content: center;
    align-items: center;

    /* Изначально окно скрыто */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Класс для отображения окна */
.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6); /* --dark-text-color с прозрачностью */
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.modal__content {
    position: relative;
    background-color: #242424;
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-image: url(../assets/images/cta-bg-pattern.svg);
    background-size: 440px;
    background-repeat: no-repeat;
    background-position: bottom;

    /* Анимация появления */
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal.is-open .modal__content {
    transform: scale(1);
}

.modal__close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--light-text-color);
    transition: color 0.2s ease;
}
.modal__close-btn:hover {
    color: var(--dark-text-color);
}
.modal__close-btn svg {
    width: 24px;
    height: 24px;
}

/* Стили для контента внутри модального окна */
.modal-form__header {
    text-align: center;
    margin-bottom: 32px;
}
.modal-form__header .cta-form__title {
    font-size: 28px;
}
.modal-form__header .cta-form__description {
    max-width: none;
}


/* Адаптация модального окна */
@media (max-width: 768px) {
    .modal {
        /* На мобильных прижимаем к краям для лучшего вида */
        padding: 15px;
    }
    .modal__content {
        padding: 32px 24px;
    }
}