/* ===== CSS-переменные ===== */
:root {
    --primary: #5F55EC;
    --gray: #d4d4d8;
}

/* Общие настройки */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

/* Внешний контейнер хедера */
.header-outer {
    width: 100%;
    height: clamp(60px, 5vh, 72px);
    padding-left: clamp(16px, 8%, 20px);
    padding-right: clamp(16px, 8%, 20px);
    border-bottom: 1px solid #000;
    opacity: 1;
    background-color: #FFFFFF;
    margin: 0 auto;
    position: fixed;
    z-index: 3;
}

/* Внутренний контейнер */
.header-inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: 0 auto;
    opacity: 1;
}

/* Контейнер логотипа */
.header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    text-decoration: none;
}

.logo-image {
    height: 36px;
    width: 36px;
    object-fit: contain;
    display: block;
    border-radius: 50%;
    flex-shrink: 0;
}

.logo-wordmark {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    color: #1F2022;
    letter-spacing: -0.3px;
    white-space: nowrap;
}

.logo-wordmark-accent {
    color: #5F55EC;
}

.logo-text span {
    color: #FFB701;
}


/* Навигация */
.header-nav {
    display: flex;
    gap: clamp(16px, 2.5%, 32px);
    height: auto;
    align-items: center;
    justify-content: center;
}

/* Ссылки */
.nav-link {
    display: inline-block;
    text-decoration: none;
    opacity: 1;
    transition: transform 0.2s ease, color 0.2s ease;
    }

/* Текст ссылок */
.nav-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: clamp(12px, 1.2vw, 14px);
    line-height: 1.7;
    letter-spacing: 0%;
    vertical-align: middle;
    white-space: nowrap;
    color: #000;
    }


/* Hover эффект */
.nav-link:hover .nav-text {
    color: #FFB701;
    /* цвет при наведении */
    transform: scale(1.05);
    }



.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.messenger-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #000;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.messenger-icon-btn:hover {
    background: #f5f5f5;
}

.header-divider {
    width: 1px;
    height: 20px;
    background: #000;
    margin: 0 4px;
    opacity: 0.15;
}

.header-cta-btn {
    background: #5F55EC;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 0 18px;
    height: 36px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(12px, 1.2vw, 14px);
    cursor: pointer;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.1s ease;
}

.header-cta-btn:hover {
    background: #4e45d4;
    color: #FFB701;
}

.header-cta-btn:active {
    transform: scale(0.97);
}

/* ===== CTA в хедере (мобиль) ===== */
.mobile-header-cta {
    display: none;
    background: #5F55EC;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0 14px;
    height: 34px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease;
}

.mobile-header-cta:hover {
    background: #4e45d4;
}

/* ===== Бургер-кнопка (мобиль) ===== */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

.burger-line {
    display: block;
    width: 18px;
    height: 2px;
    background: #1F2022;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
    transform-origin: center;
}

.mobile-menu-btn.open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open .burger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Выпадающее мобильное меню ===== */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 0;
    z-index: 2;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1F2022;
    text-decoration: none;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: color 0.15s ease;
}

.mobile-nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-link:hover {
    color: #5F55EC;
}

.mobile-menu-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 12px 0;
}

.mobile-menu-socials {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.mobile-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1F2022;
    text-decoration: none;
    transition: background 0.15s ease;
}

.mobile-social-link:hover {
    background: #f5f5f5;
}

.mobile-cta-btn {
    width: 100%;
    background: #5F55EC;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mobile-cta-btn:hover {
    background: #4e45d4;
}

/* Главная секция */
.main-section {
    width: 100%;
    height: auto;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    position: relative;
    z-index: 1;
}

.text-block {
    flex: 1;
    z-index: 2;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 32px 36px;
}


.section-title {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.3;
    color: #1F2022;
    font-family: 'Montserrat', sans-serif;
    font-style: normal;
    text-transform: uppercase;
}

.section-title span {
    color: #5F55EC;
}

.image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 2;
}

.section-image {
    max-width: 100%;
    border-radius: 20px;
    transform: rotate(-8deg);
    transform-origin: center;
}

/* ===== HERO: доп. элементы (badge, subtitle, features, CTA) ===== */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 1000px;
    background: #EFEEFF;
    color: #5F55EC;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
}

.hero-badge-star {
    color: #FFB701;
    font-size: 16px;
    line-height: 1;
}

.hero-subtitle {
    margin-top: 20px;
    max-width: 540px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
}

.hero-features {
    list-style: none;
    margin: 28px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    color: #1F2022;
}

.hero-feature-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 1000px;
    background: #5F55EC;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.hero-cta-row {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.hero-cta-btn {
    padding: 18px 36px;
    border-radius: 8px;
    border: none;
    background: #5F55EC;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    cursor: pointer;
    box-shadow: 0px 10px 30px rgba(95, 85, 236, 0.3);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.hero-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    background: #4e45d4;
    box-shadow: 0px 14px 40px rgba(95, 85, 236, 0.4);
    color: #FFB701;
}

.hero-cta-btn:active {
    transform: scale(0.98);
}

.hero-cta-note {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.4;
    color: #1F2022;
    opacity: 0.6;
}

.vector-2 {
    position: absolute;
    top: 0;
    left: -20%;
    width: 140%;
    height: auto;
    z-index: 0;
}

.main-section > .container {
    position: relative;
    z-index: 1;
}


/* Картинка */


.image-wrapper {
    position: relative;
    }


/* Общий стиль для SVG-кривых декора */
.section-curves {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Skills Section ===== */
.skills-section {
    width: 100%;
    padding: 80px 0 90px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.skills-header {
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.skills-decor-right {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 30%;
    right: -20px;
    transform: translateY(-50%) rotate(-12deg);
    pointer-events: none;
    z-index: 0;
}

.skills-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.2;
    color: #1F2022;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.skills-title span {
    color: #5F55EC;
}

.skills-subtitle {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #666;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* Обычная карточка */
.skill-card {
    background: #F6F6F7;
    border-radius: 20px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(95, 85, 236, 0.1);
}

.skill-icon {
    width: 56px;
    height: 56px;
    background: #ece9fd;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.skill-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 17px;
    line-height: 1.3;
    color: #1F2022;
}

.skill-text {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 14px;
    line-height: 22px;
    color: #555;
}

/* Акцентная карточка — языковая, полная ширина */
.skill-card--accent {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #5F55EC 0%, #3d35b8 100%);
    flex-direction: row;
    align-items: center;
    padding: 36px 40px;
    gap: 0;
}

.skill-card--accent:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(95, 85, 236, 0.35);
}

.skill-accent-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.skill-accent-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.skill-icon--light {
    background: rgba(255, 255, 255, 0.15);
}

.skill-title--light {
    color: #fff;
    font-size: 20px;
}

.skill-accent-tag {
    display: inline-block;
    margin-top: 6px;
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    font-family: Montserrat;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.skill-text--light {
    color: rgba(255, 255, 255, 0.85);
    font-size: 15px;
    line-height: 24px;
    max-width: 820px;
}

/* ===== Courses Section ===== */
.courses-section {
    width: 100%;
    padding: 90px 0 80px 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.courses-section::before {
    content: '';
    position: absolute;
    top: 4%;
    left: -60px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #5F55EC 0%, transparent 65%);
    opacity: 0.17;
    pointer-events: none;
    z-index: 0;
}

.courses-section::after {
    content: '';
    position: absolute;
    bottom: 6%;
    right: -60px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, #38139D 0%, transparent 65%);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.courses-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.courses-blob--mid-right {
    top: 38%;
    right: -40px;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #5F55EC 0%, transparent 65%);
    opacity: 0.10;
}

.courses-blob--mid-left {
    top: 58%;
    left: -40px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, #38139D 0%, transparent 65%);
    opacity: 0.09;
}


/* Заголовок секции */
.courses-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.courses-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #1F2022;
}

.courses-header-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #888;
    line-height: 1.6;
}

.courses-hint-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #5F55EC;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(95, 85, 236, 0.3);
    transition: color 0.2s, border-color 0.2s;
}

.courses-hint-link:hover {
    color: #3d35b8;
    border-color: #3d35b8;
}

.courses-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    width: 100%;
}

.course-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-radius: 24px;
    border: 1px solid #EBEBEB;
    overflow: hidden;
    box-shadow: 0px 6px 40px rgba(45, 48, 92, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #fff;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 16px 48px rgba(45, 48, 92, 0.14);
}

/* Хит-карточка */
.course-card--hit {
    border-color: #5F55EC;
    box-shadow: 0px 6px 40px rgba(95, 85, 236, 0.15);
}

/* Картинка курса */
.course-image-wrapper {
    position: relative;
    flex-shrink: 0;
}

.course-image {
    width: 340px;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Бейдж «Хит» */
.course-hit-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #FFB701;
    color: #1F2022;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    padding: 6px 14px;
    border-radius: 1000px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Контейнер с текстом и кнопкой */
.course-content {
    flex: 1;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    font-family: 'Montserrat', sans-serif;
}

/* Верхний контейнер с названием и возрастом */
.course-title-age {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.course-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #1F2022;
}

.course-age {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #fff;
    background: #5F55EC;
    padding: 8px 18px;
    border-radius: 1000px;
    white-space: nowrap;
    flex-shrink: 0;
}

.course-age-2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    color: #1F2022;
    background: #FFB701;
    padding: 8px 18px;
    border-radius: 1000px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Фрейм деталей */
.course-frame {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

/* Второй фрейм с деталями занятий */
.course-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.course-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #1F2022;
}

.course-list {
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 4px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-list li {
    display: list-item;
}

.list-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #1F2022;
}

/* Нижняя строка: цена + кнопка */
.course-footer {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: auto;
}

.course-price {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1;
    color: #5F55EC;
    white-space: nowrap;
}

/* Кнопка */
.course-button {
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    background: #1F2022;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.course-button:hover {
    transform: translateY(-2px);
    background-color: #424446;
}

/* Баннер "не знаете что выбрать" */

/* Результат курса */
.course-result {
    margin-top: 14px;
    padding: 10px 14px;
    border-left: 3px solid #5F55EC;
    background: #eeeeff;
    border-radius: 0 8px 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #3B30D4;
    line-height: 22px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.course-result::before {
    content: '✓';
    font-size: 16px;
    font-weight: 700;
    color: #5F55EC;
    flex-shrink: 0;
}


/* ===== Секция "Как проходят занятия" ===== */

.how-section {
    width: 100%;
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.how-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    gap: 12px;
}

.how-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #1F2022;
}

.how-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: #1F2022;
    opacity: 0.6;
}

.how-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.how-card {
    flex: 1;
    background: #F6F6F7;
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.how-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 48, 92, 0.1);
}

.how-icon {
    width: 56px;
    height: 56px;
    background: #EEEEF8;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.how-card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
}

.how-card-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #1F2022;
    opacity: 0.75;
}

/* ===== Секция отзывов ===== */

.reviews-section {
    width: 100%;
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.reviews-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 64px;
    text-align: center;
    position: relative;
}

.reviews-decor-left {
    position: absolute;
    width: 180px;
    height: 180px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%) rotate(-15deg) scaleX(-1);
    pointer-events: none;
    z-index: 0;
}

.reviews-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.reviews-stat {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1F2022;
    opacity: 0.7;
}

.reviews-stat strong {
    font-weight: 700;
    opacity: 1;
    color: #5F55EC;
}

.reviews-stat-divider {
    color: #1F2022;
    opacity: 0.3;
    font-size: 18px;
}

.reviews-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #1F2022;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px;
    align-items: start;
}

.review-item {
    min-width: 0;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(45, 48, 92, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.review-item:hover {
    box-shadow: 0 16px 56px rgba(45, 48, 92, 0.2);
    transform: translateY(-6px) rotate(0deg) !important;
}

/* Уникальный наклон каждой карточки */
.review-item--1 {
    grid-column: 1;
    grid-row: 1 / 3;
    transform: rotate(-2.5deg);
}
.review-item--2 { grid-column: 2; grid-row: 1; transform: rotate(1.5deg);  }
.review-item--3 { grid-column: 3; grid-row: 1; transform: rotate(-1deg);   }
.review-item--4 { grid-column: 4; grid-row: 1; transform: rotate(2deg);    }

.review-cta-card {
    grid-column: 2 / 4;
    grid-row: 2;
}

/* CTA-карточка в сетке отзывов */
.review-cta-card {
    background: linear-gradient(135deg, #5F55EC, #38139D);
    border-radius: 20px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    transform: rotate(1deg);
    min-height: 200px;
}

.review-cta-card:hover {
    transform: translateY(-6px) rotate(0deg) !important;
}

.review-cta-stats {
    display: flex;
    justify-content: space-around;
    gap: 8px;
}

.review-cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.review-cta-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    line-height: 1;
}

.review-cta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
}

.review-cta-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #fff;
    text-align: center;
}

.review-cta-btn {
    display: block;
    text-decoration: none;
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 12px 16px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
    width: 100%;
    box-sizing: border-box;
}

.review-cta-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.02);
    color: #FFB701;
}

/* Реальный скриншот */
.review-screenshot {
    width: 100%;
    display: block;
    border-radius: 0;
}

/* Заглушка до добавления скриншота */
.review-placeholder {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #EEEEF8;
    border: 2px dashed #C5C2F0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9994e8;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}


/* Заголовок карточки */
.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #1F2022;
}

/* Текст карточки */
.card-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
}

/* ===== Секция преподавателей ===== */

.teachers-section {
    width: 100%;
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.teachers-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #1F2022;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 1;
}

.teachers-grid {
    display: flex;
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

/* Карточка преподавателя */
.teacher-card {
    flex: 1;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 32px rgba(45, 48, 92, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.teacher-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(45, 48, 92, 0.13);
}

/* Фото */
.teacher-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.teacher-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #DDDDF0;
}

/* Информация */
.teacher-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.teacher-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.teacher-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
}

.teacher-exp {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #5F55EC;
    background: #EEEEF8;
    padding: 4px 10px;
    border-radius: 1000px;
    white-space: nowrap;
}

.teacher-courses {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1F2022;
    opacity: 0.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.teacher-bio {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 23px;
    color: #1F2022;
    opacity: 0.75;
    margin-top: 4px;
}

/* Блок «и ещё 20+» */
.teachers-more {
    flex: 0 0 260px;
    background: #1F2022;
    border-radius: 24px;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.teachers-more-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1;
    color: #FFB701;
}

.teachers-more-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 28px;
    color: #fff;
}

.teachers-more-desc {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #fff;
    opacity: 0.6;
}

.teachers-more-criteria {
    list-style: none;
    padding: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 20px;
}

.teachers-more-criteria li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: #fff;
    opacity: 0.75;
    padding-left: 20px;
    position: relative;
}

.teachers-more-criteria li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #FFB701;
    font-weight: 700;
}

.students-section {
    width: 100%;
    background-color: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 80px 0 100px;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
}

.students-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 48px;
    display: flex;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #5F55EC 0%, #3d35b8 100%);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(95, 85, 236, 0.28);
}

.students-decor {
    position: absolute;
    pointer-events: none;
    z-index: 2;
}

.students-decor-left {
    width: 240px;
    height: 240px;
    top: -70px;
    left: calc(50% - 600px - 90px);
    transform: rotate(-20deg) scaleX(-1);
    opacity: 0.9;
}

.students-decor-right {
    width: 260px;
    height: 260px;
    bottom: -10px;
    left: calc(50% + 150px);
    transform: rotate(15deg);
    opacity: 0.9;
}

.frame {
    display: flex;
    flex-direction: column;
    gap: 24px;
    opacity: 1;
}

.frame-left {
    flex: 0 0 360px;
    min-width: 0;
}

.frame-left .title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: #FFFFFF;
}

.frame-left .subtitle {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 18px;
    line-height: 26px;
    color: rgba(255, 255, 255, 0.6);
}

.students-cta-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 13px 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
    white-space: nowrap;
}

.students-cta-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateY(-2px) scale(1.02);
    color: #FFB701;
}

.frame-right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Первый контейнер в правом фрейме */
.container-top {
    display: flex;
    gap: 8px;
    width: 100%;
}

.large-img-wrap {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
    height: 320px;
}

.large-img {
    width: 100%;
    max-width: 100%;
    height: 320px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 1;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5);
    display: block;
}

.project-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(95, 85, 236, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 12px;
    line-height: 1;
    padding: 6px 13px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.container-side {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 0 0 220px;
    min-width: 0;
    height: auto;
    justify-content: center;
}

.small-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 1;
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
}

.student-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.student-chat-name {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.student-chat-name .name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 22px;
    color: #FFFFFF;
}

.student-chat-name .learning {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.60);
}

.student-message {
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px 16px 16px 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.student-message-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.90);
    margin: 0;
}

.student-message .duration {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: rgba(255, 255, 255, 0.45);
    display: block;
}

/* Второй контейнер в правом фрейме (точки) */
.container-bars {
    display: flex;
    gap: 8px;
    width: 100%;
    height: 44px;
    align-items: center;
}

.slider-next-btn {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.slider-next-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateX(2px);
}

.bar {
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.25);
    opacity: 1;
    transition: flex 0.35s ease, width 0.35s ease, background-color 0.35s ease, border-radius 0.35s ease;
}

.bar-active {
    flex: 0 0 28px;
    width: 28px;
    border-radius: 100px;
    background-color: #FFFFFF;
}


/* Стили для плавной анимации */
.frame-left .title,
.frame-left .subtitle,
.large-img,
.small-img,
.student-chat-name .name,
.student-chat-name .learning,
.student-message-text,
.student-message .duration {
    transition: opacity 0.5s ease;
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

.test-section {
    max-width: 1440px;
    margin: 0 auto;
    padding: 100px 120px 40px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    gap: 32px;
  }

  /* Декоративные картинки */
  .test-section__decor-left,
  .test-section__decor-right {
    position: absolute;
    transform: translateY(-50%);
    z-index: 2;
  }

  .test-section__decor-left {
    width: 279px;
    height: 279px;
    top: 60%;
    left: 80px;
    transform: translateY(-50%) rotate(-20deg) scaleX(-1);
  }

  .test-section__decor-right {
    width: 326px;
    height: 326px;
    top: 50%;
    right: 40px;
    transform: translateY(-50%) rotate(10deg) scaleX(-1);
  }

  /* Фрейм */
  .test-section__frame {
    width: 968px;
    height: 471px;
    padding: 36px 64px;
    border-radius: 36px;
    background: #5F55EC;
    position: relative; /* для абсолютного SVG */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 64px;
    overflow: hidden;
  }

  /* SVG фон */
  .test-vector {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 140%;
    z-index: 0; /* под контентом */
    pointer-events: none;
  }

  /* Контейнер для текста и кнопки */
  .test-section__content-wrapper {
    position: relative;
    z-index: 1; /* поверх SVG */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
  }

  .test-section__content {
    width: 840px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .test-section__title {
    font-family: 'Montserrat', sans-serif;
    font-weight:700;
    font-size:48px;
    line-height:1;
    text-align:center;
    color:#FFF;
    margin:0;
  }

  .test-section__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight:600;
    font-size:26px;
    line-height:36px;
    text-align:center;
    color:#FFF;
    margin:0;
  }

  .test-section__button {
    width:242px;
    height:62px;
    padding:18px 32px;
    border:none;
    border-radius:8px;
    background:#1F2022;
    color:#FFF;
    font-family:'Montserrat',sans-serif;
    font-weight:700;
    font-size:20px;
    line-height:26px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .test-section__button:hover {
    transform: scale(1.05);
    background-color: #424446;
}


.faq-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px clamp(16px, 8vw, 120px) 80px;
    background-color: #FFF;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.faq-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    position: relative;
    z-index: 1;
    align-items: center;
}

/* Header секции */
.faq-header {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 32px;
    line-height: 100%;
    text-align: center;
    color: #1F2022;
}

/* Контейнер кнопок */
.faq-buttons {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0px 6px 120px rgba(45, 48, 92, 0.05);
}

.faq-item {
    border-bottom: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

/* Каждая кнопка */
.faq-button {
    width: 100%;
    min-height: 64px;
    /* вместо фиксированной высоты */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    color: #000;
    text-align: left;
    }

.faq-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0px 20px 40px rgba(45, 48, 92, 0.15);
}

/* Иконка плюса */
.faq-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 400;
    background-color: transparent;
}

/* Текст кнопки */
.faq-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #000000;
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    line-height: 26px;
    color: #1F2022;
    padding: 0 20px 0 calc(20px + 52px + 16px);
}

/* Когда открыто — добавляем вертикальные отступы */
.faq-item.active .faq-answer {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ===== Urgency Bar ===== */
/* ===== Hero urgency block ===== */
.hero-urgency {
    background: rgba(95, 85, 236, 0.06);
    border: 1px solid rgba(95, 85, 236, 0.2);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    margin-top: 16px;
}

.hero-urgency-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hero-urgency-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(31, 32, 34, 0.6);
    white-space: nowrap;
}

.hero-urgency-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-countdown-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.hero-countdown-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #5F55EC;
    min-width: 26px;
    text-align: center;
}

.hero-countdown-dim {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(95, 85, 236, 0.55);
}

.hero-countdown-sep {
    font-size: 16px;
    font-weight: 700;
    color: rgba(95, 85, 236, 0.3);
    line-height: 1;
    margin: 0 1px;
}

.hero-urgency-seats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-urgency .seat-dot--accent {
    background: #5F55EC;
}

.hero-urgency .seat-dot--accent-empty {
    background: rgba(95, 85, 236, 0.2);
}

.hero-seats-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(31, 32, 34, 0.6);
}

/* ===== Form urgency block ===== */
.form-urgency {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-urgency-timer {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-urgency-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
}

.form-urgency-countdown {
    display: flex;
    align-items: center;
    gap: 4px;
}

.countdown-unit {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.countdown-val {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    min-width: 26px;
    text-align: center;
}

.countdown-dim {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}

.countdown-sep {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    line-height: 1;
    margin: 0 1px;
}

.form-urgency-seats {
    display: flex;
    align-items: center;
    gap: 10px;
}

.seats-dots {
    display: flex;
    gap: 5px;
    align-items: center;
}

.seat-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    display: inline-block;
    flex-shrink: 0;
}

.seat-dot--taken {
    background: #ffffff;
}

.seats-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

/* ===== Steps Section ===== */
.steps-section {
    width: 100%;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 72px 0 80px;
    position: relative;
    overflow: hidden;
}

.steps-title {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 32px;
    line-height: 1.15;
    color: #1F2022;
    text-align: center;
    margin-bottom: 48px;
    position: relative;
    z-index: 1;
}

.steps-grid {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.step-card {
    flex: 1 1 0;
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(95, 85, 236, 0.07);
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #5F55EC;
    color: #fff;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.step-heading {
    font-family: Montserrat;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.3;
    color: #1F2022;
}

.step-text {
    font-family: Montserrat;
    font-weight: 400;
    font-size: 15px;
    line-height: 22px;
    color: #555;
}

.step-arrow {
    font-size: 28px;
    color: #5F55EC;
    flex-shrink: 0;
    opacity: 0.5;
    align-self: center;
}

.earn-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 120px;
    background-color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.earn-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    gap: 36px;
    border-radius: 36px;
    position: relative;
    z-index: 1;
    border: 1px solid #F6F6F7;
    padding: 48px;
    background-color: #5F55EC;
    box-shadow: 0px 6px 120px rgba(45, 48, 92, 0.05);
}

/* Фрейм с текстами */
.earn-frame {
    width: 590px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.earn-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 38px;
    line-height: 1.15;
    color: #FFFFFF;
}

#dynamic-text {
    display: inline-block;
    transition: opacity 0.3s ease;
}


.earn-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: rgba(246, 246, 247, 0.85);
}

.earn-trust {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
}

.earn-trust li {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: rgba(246, 246, 247, 0.75);
    line-height: 22px;
}

/* ===== Social proof у формы ===== */
.earn-social-proof {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.esp-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.esp-stars {
    color: #FFD234;
    font-size: 16px;
    letter-spacing: 1px;
}

.esp-score,
.esp-count {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
}

.esp-divider {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

.esp-quote {
    margin: 0;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 10px 10px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.esp-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
    margin: 0;
}

.esp-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.esp-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.esp-author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.esp-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.esp-child {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6);
}

.form-footnote {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(246, 246, 247, 0.5);
    text-align: center;
    line-height: 18px;
    margin-top: 4px;
}

.form-quiz-hint {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: rgba(246, 246, 247, 0.4);
    text-align: center;
    margin-top: 8px;
}

.form-quiz-link {
    color: rgba(246, 246, 247, 0.65);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.form-quiz-link:hover {
    color: rgba(246, 246, 247, 0.9);
}

.form-consent {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 400;
    color: rgba(246, 246, 247, 0.35);
    text-align: center;
    margin-top: 10px;
    line-height: 16px;
}

.form-consent-link {
    color: rgba(246, 246, 247, 0.5);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.form-consent-link:hover {
    color: rgba(246, 246, 247, 0.8);
}

.form-messengers {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.form-messengers-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(246, 246, 247, 0.45);
    position: relative;
    width: 100%;
    text-align: center;
}

.form-messengers-label::before,
.form-messengers-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 28%;
    height: 1px;
    background: rgba(246, 246, 247, 0.15);
}

.form-messengers-label::before { left: 0; }
.form-messengers-label::after { right: 0; }

.form-messengers-btns {
    display: flex;
    gap: 10px;
    width: 100%;
}

.form-messenger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.18s, opacity 0.18s;
}

.form-messenger-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.form-messenger-btn--wa {
    background: #25D366;
    color: #fff;
}

.form-messenger-btn--tg {
    background: #2AABEE;
    color: #fff;
}

/* Форма */
.earn-form {
    width: 478px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== Phone picker ===== */
.phone-field-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: visible;
}

.phone-field-wrapper.focused {
    border-color: #5F55EC;
    box-shadow: 0 0 0 3px rgba(95, 85, 236, 0.15);
}

.phone-field-wrapper.dropdown-open {
    border-color: #5F55EC;
}

.phone-country-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 12px 14px 14px;
    background: none;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px 0 0 8px;
    transition: background 0.15s;
    white-space: nowrap;
}

.phone-country-btn:hover {
    background: rgba(95, 85, 236, 0.05);
}

.phone-flag {
    font-size: 20px;
    line-height: 1;
}

.phone-dialing-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #1F2022;
}

.phone-chevron {
    flex-shrink: 0;
    transition: transform 0.2s;
}

.phone-field-wrapper.dropdown-open .phone-chevron {
    transform: rotate(180deg);
}

.phone-divider {
    width: 1px;
    height: 24px;
    background: #ddd;
    flex-shrink: 0;
}

.phone-number-input {
    flex: 1 1 0;
    min-width: 0;
    padding: 14px 14px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    color: #1F2022;
    border-radius: 0 8px 8px 0;
}

.phone-number-input::placeholder {
    color: #aaa;
    font-weight: 400;
}

/* Выпадающий список */
.phone-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 1.5px solid #5F55EC;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    max-height: 260px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d0cef8 transparent;
}

.phone-dropdown.open {
    display: block;
}

.phone-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    transition: background 0.12s;
}

.phone-dropdown-item:first-child {
    border-radius: 8px 8px 0 0;
}

.phone-dropdown-item:last-child {
    border-radius: 0 0 8px 8px;
}

.phone-dropdown-item:hover {
    background: rgba(95, 85, 236, 0.07);
}

.pdi-flag {
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
}

.pdi-name {
    flex: 1 1 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #1F2022;
}

.pdi-code {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #5F55EC;
    flex-shrink: 0;
}


/* Плейсхолдер */
.earn-form input {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--gray);
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.earn-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 40%, transparent);
}

/* Кнопка */
.submit-button {
    width: 100%;
    height: 62px;
    border-radius: 8px;
    background-color: #1F2022;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 32px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.submit-button:hover {
    transform: scale(1.02);
    background-color: #424446;
}

.button-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #FFFFFF;
}

.input-error {
    color: #d9534f;
    /* красный */
    font-size: 14px;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
    display: none;
    }

.contact-preferences {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;

}

.contact-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
}

.contact-option input {
    width: 18px;
    height: 18px;
    border-radius: 18px;
    cursor: pointer;
}

.footer {
    width: 100%;
    padding: 48px 120px;
    background: #1F2022;
    box-sizing: border-box;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 47.6px;
    color: #FFB701;
    }

.footer-frame {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    /* уже есть */
    align-items: flex-start;
    gap: 16px;
}

.footer-left {
    flex: 1 1 220px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    line-height: 20px;
    color: #FFFFFF;
}

.footer-company-details {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    display: block;
}

.footer-phone:hover {
    color: rgba(255, 255, 255, 0.85);
}

.footer-nav {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-left: auto;
    margin-right: 48px;
}

.footer-margin {
    flex: 0 0 243px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 23.8px;
    color: #F6F6F7;
    text-decoration: none;
    transition: all 0.3s ease;
    }

.footer-link:hover {
    color: #FFD700;
    /* меняем цвет, например на золотистый */
    text-decoration: underline;
    /* подчеркивание */
    transform: translateY(-2px);
    }

.footer-icons {
    display: flex;
    gap: 12px;
    /* небольшой gap между иконками */
    flex-shrink: 0;
    /* чтобы не сжимались */
    align-items: center;
}

.footer-icons img {
    width: 36px;
    height: 36px;
    display: block;
    transition: transform 0.3s ease;
}

.footer-icons img:hover {
    transform: scale(1.2) rotate(15deg);
    }


.fade-in {
    opacity: 0;
    transform: translateY(30px);
    /* изначально чуть ниже */
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}


.feedback-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    }

.feedback-container {
    width: 1200px;
    max-width: 1200px;
    height: 350px;
    padding: 48px;
    gap: 36px;
    border-radius: 36px;
    background: linear-gradient(94.42deg, #766CFF 0.33%, #5F55EC 44.11%);
    box-shadow: 0px 6px 200px 0px #4000FF4D;
    display: flex;
    position: relative;
}

.feedback-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 50px;
}

.feedback-container {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    height: 350px;
    padding: 48px;
    border-radius: 36px;
    background: linear-gradient(94.42deg, #766CFF 0.33%, #5F55EC 44.11%);
    box-shadow: 0px 6px 200px 0px #4000FF4D;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    }

/* Фрейм с текстами */
.feedback-frame {
    width: 590px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    z-index: 2;
}

.feedback-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    color: #FFFFFF;
    margin: 0;
}

.feedback-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #F6F6F7;
    margin: 0;
}


.feedback-vector {
    width: 130%;
    height: 130%;
    transform: rotate(-15.31deg) translateX(300px) translateY(100px);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Изначально модалка скрыта */
#success-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    position: fixed;
    /* чтобы перекрывала весь экран */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* поверх всего */
    pointer-events: none;
    }

/* Активная модалка */
#success-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    }


  /* Контейнер */
  .quiz-result__container {
    width: 100%;
    max-width: 960px;
    display: flex;
    gap: 36px;
    border-radius: 36px;
    border: 1px solid #F6F6F7;
    padding: 48px;
    background-color: #5F55EC;
    box-shadow: 0px 6px 120px rgba(45, 48, 92, 0.05);
    z-index: 2;
  }

  /* Фрейм с текстами */
  .quiz-result__frame {
    width: 590px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .quiz-result__title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 100%;
    color: #FFFFFF;
  }

  .quiz-result__subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 36px;
    color: #F6F6F7;
  }

  /* --- Список вознаграждений --- */
  .quiz-result__rewards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .quiz-result__rewards li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(246, 246, 247, 0.9);
  }

  .quiz-result__rewards li strong {
    font-weight: 700;
    color: #FFFFFF;
  }

  .quiz-reward-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    margin-top: 2px;
  }

  .quiz-result__timing {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(246, 246, 247, 0.55);
    margin: 0;
  }

  /* --- Форма --- */
  .quiz-result__form {
    width: 478px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  /* Инпуты */
  .quiz-result__form input {
    padding: 14px 18px;
    border-radius: 8px;
    border: 1.5px solid var(--gray);
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .quiz-result__form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 40%, transparent);
  }

  /* Кнопка */
  .quiz-result__button {
    width: 100%;
    height: 62px;
    border-radius: 8px;
    background-color: #1F2022;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 32px;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }

  .quiz-result__button:hover {
    transform: scale(1.05);
    background-color: #424446;
  }

  .quiz-result__button-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #FFFFFF;
  }

  /* Заголовок */
.quiz-contact-title {
    font-size: 16px;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 2px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
  }

  /* Контейнер чекбоксов */
  .quiz-contact-preferences {
    display: flex;
    flex-direction: row;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
  }

  /* Один вариант */
  .quiz-contact-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: #FFFFFF;
  }

  /* Чекбокс */
  .quiz-contact-option input {
    width: 18px;
    height: 18px;
    border-radius: 18px;
    cursor: pointer;
  }

  .quiz-result__container {
    display: none;
}

.quiz-result__container.active {
    display: flex;
}


/* Окно чата */


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Верхняя панель */


.status::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #4CAF50;
    /* зелёный */
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}


/* Сообщения */


.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.5;
    word-wrap: break-word;
    font-family: 'Montserrat', sans-serif;
        font-weight: 600;
}

.message.bot {
    background: #0078ff;;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    color: #FFF;
}

.message.user {
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    color: #1F2022;
    background: #FFB701;
}

/* Поле ввода */


.new-section {
    width: 100%;          /* растягиваем на весь экран */
    padding: 180px 0 160px;  /* верхний и нижний паддинги */
    background: #F6F6F7;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 36px;
    position: relative;
  }

  /* --- Контейнер (glassmorphism) --- */
  .new-section__container {
    max-width: 760px;
    width: 100%;
    padding: 32px 24px;
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ECECED;
    box-shadow: 0px 6px 120px rgba(45, 48, 92, 0.05);
    backdrop-filter: blur(70px);
    display: flex;
    flex-direction: column;
    gap: 24px;

    margin-top: 40px; }

  /* --- Row 1: прогресс + вопрос --- */
  .new-section__row-1 {
    max-width: 501px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  /* Навигация: кнопка назад + счётчик шагов */
  .quiz-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  .quiz-back-btn {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #5F55EC;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
  }

  .quiz-back-btn.visible {
    opacity: 1;
    pointer-events: auto;
  }

  .quiz-back-btn:hover {
    opacity: 0.7;
  }

  /* Полоска прогресса */
  .quiz-progress-wrapper {
    width: 100%;
    height: 6px;
    background: #ECECED;
    border-radius: 99px;
    overflow: hidden;
  }

  .quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #5F55EC, #8B5CF6);
    border-radius: 99px;
    width: 0%;
    transition: width 0.4s ease;
  }

  /* Переход интро → квиз */
  #quiz-intro {
    transition: opacity 0.25s ease;
  }

  #quiz-intro.fading {
    opacity: 0;
    pointer-events: none;
  }

  #quiz-content {
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  #quiz-content.visible {
    opacity: 1;
  }

  /* Анимация смены вопроса */
  .quiz-fade-out {
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .quiz-fade-in {
    animation: quizFadeIn 0.22s ease forwards;
  }

  @keyframes quizFadeIn {
    from { opacity: 0; transform: translateX(12px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  .new-section__step {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #5F55EC;
  }

  .new-section__question {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
    color: #1F2022;
    margin: 0;
    flex: 1;

    min-height: 112px; /* или 2 строки */
    display: flex;
    align-items: center;
}

  /* --- Row 2: варианты ответов --- */
  .new-section__row-2 {
    max-width: 712px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 280px;
  }

  /* --- Опция ответа --- */
  .new-section__option {
    width: 100%;
    padding: 16px 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: #FFFFFF;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  }

  /* Ховер с изменением цвета фона */
  .new-section__option:hover {
    transform: scale(1.02);
    box-shadow: 0px 6px 20px rgba(0,0,0,0.08);
    background-color: #F4F4FF; }

  /* Кружок */
  .option-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #5F55EC;
    background-color: transparent;
    flex-shrink: 0;
  }

  /* Активная опция */
  .new-section__option.active .option-circle {
    background-color: #5F55EC;
  }

  /* Текст варианта */
  .option-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
  }


  .decor {
    position: absolute;
    z-index: 0; /* под контейнером */
    pointer-events: none; }

  .new-section__option:hover .option-circle {
    background-color: #5F55EC;
}

.decor-1 {
    width: 230px;
    height: 230px;
    top: 60px;
    right: 240px;
    z-index: 1;
    transform: translateY(10%) rotate(16deg) scaleX(1)
  }


  .decor-2 {
    width: 200px;
    height: 200px;
    bottom: 80px;
    left: 150px;
    transform: rotate(-13deg) scaleX(1)
  }


  .decor-3 {
    width: 230px;
    height: 230px;
    top: 30px;
    left: 320px;
    transform: translateY(2%) rotate(-17deg) scaleX(1)
  }


  .decor-4 {
    width: 400px;
    height: 400px;
    bottom: -80px;
    right: 80px;
    z-index: 1;
    transform:  rotate(21deg) scaleX(1)
  }


  .new-section {
    min-height: 100vh;
}

.new-section__container,
.quiz-result__container {
    min-height: 350px;
}


/* --- Экраны до 475px --- */
@media (max-width: 575px) {


    /* ===== Хедер ===== */
    .header-outer {
        width: 100%;
        height: 56px;
        padding-left: 16px;
        padding-right: 16px;
        border-bottom-width: 1px;
    }

    .header-inner {
        width: 100%;
        height: 56px;
        display: flex;
        justify-content: space-between;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-logo {
        width: auto;
        height: auto;
        flex-shrink: 0;
    }

    .logo-image {
        height: 40px;
        width: auto;
        display: block;
    }

    .header-nav {
        display: none;
    }

    .header-cta-btn {
        font-size: 12px;
        padding: 0 12px;
        height: 32px;
    }

    /* ===== Main Section ===== */
    .main-section {
        min-height: auto;
        height: auto;
        padding: 76px 0 0;
        overflow: hidden;
    }
    .section-container {
        flex-direction: column;
        gap: 24px;
    }


    .image-block {
        overflow: hidden;
    }
    /* ===== FAQ ===== */
    .faq-section {
        padding: 80px 16px 60px;
    }

    .faq-button {
        padding: 16px;
        gap: 12px;
    }

    .faq-icon {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .faq-answer {
        padding-left: calc(16px + 40px + 12px);
        padding-right: 16px;
    }

    .section-container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        height: auto;
    }

    .text-block {
        width: 100%;
        text-align: left;
        padding: 20px 20px;
    }

    .section-title,
    .section-title span {
        font-size: 22px;
        line-height: 30px;
    }

    .image-block {
        display: none;
    }

    .hero-br {
        display: none;
    }

    .vector-2 {
        position: absolute;
        top: 113px;
        left: -228px;
        width: 190%;
        height: auto;
        transform: rotate(-8deg);
        z-index: 0;
    }

    /* ===== HERO: доп. элементы (mobile) ===== */
    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 14px;
    }

    .hero-subtitle {
        margin-top: 16px;
        font-size: 15px;
        line-height: 22px;
    }

    .hero-features {
        margin-top: 20px;
        gap: 10px;
    }

    .hero-features li {
        font-size: 14px;
        line-height: 20px;
        gap: 10px;
    }

    .hero-feature-icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .hero-cta-row {
        margin-top: 24px;
        width: 100%;
    }

    .hero-cta-btn {
        width: 100%;
        padding: 16px 20px;
        font-size: 16px;
        line-height: 22px;
    }

    .hero-cta-note {
        font-size: 12px;
    }

    /* ===== Skills Section ===== */
    .skills-section {
        padding: 52px 0 60px;
    }

    .skills-title {
        font-size: 22px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .skill-card--accent {
        padding: 24px 20px;
    }

    .skill-title--light {
        font-size: 16px;
    }

    .skill-accent-left {
        flex-wrap: wrap;
    }

    /* ===== Courses Section ===== */
    .courses-header h2 {
        font-size: 28px;
        line-height: 32px;
    }

    .courses-container {
        gap: 16px;
        padding: 0 12px;
    }

    .course-card {
        flex-direction: column;
        gap: 12px;
    }

    .course-image {
        max-width: 280px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .course-content {
        padding: 16px;
        gap: 16px;
        width: 100%;
    }

    .course-title {
        font-size: 18px;
        line-height: 24px;
    }

    .course-age,
    .course-age-2 {
        font-size: 16px;
        padding: 6px 12px;
    }

        .course-title-age .course-age,
        .course-title-age .course-age-2 {
            display: none;
        }

        /* Делаем картинку контейнером для метки */
        .course-image-wrapper {
            position: relative;
            max-width: 280px;
            /* или размер под мобильный */
            margin: 0 auto;
        }

        /* Отображаем метку поверх картинки */
        .course-image-wrapper .course-age-21,
        .course-image-wrapper .course-age-22 {
            display: block;
            visibility: visible;
            position: absolute;
            top: 8px;
            right: -20px;
            padding: 6px 12px;
            font-size: 14px;
        }

    .course-label {
        font-size: 16px;
        line-height: 22px;
    }

    .list-main {
        font-size: 14px;
        line-height: 20px;
    }

    .course-button {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
    }






        .card-title {
            font-weight: 600;
            font-size: 18px;
        }

        /* Текст карточки */
        .card-text {
            font-weight: 400;
            font-size: 16px;
        }

.students-section {
    padding: 0;
    border-top: none;
}

.students-inner {
    flex-direction: column;
    gap: 24px;
    border-radius: 0;
    box-shadow: none;
    padding: 48px 20px 60px;
}

.frame-left {
    flex: none;
    width: 100%;
}

.frame-left .title {
    font-size: 26px;
    line-height: 32px;
}

.frame-left .subtitle {
    font-size: 16px;
    line-height: 22px;
}

.frame-right {
    width: 100%;
    gap: 12px;
}

.container-top {
    flex-direction: column;
    gap: 12px;
}

.large-img-wrap {
    width: 100%;
    flex: none;
    height: auto;
}

.large-img {
    width: 100%;
    flex: none;
    height: 200px;
}

.container-side {
    flex: none;
    flex-direction: row;
    width: 100%;
    height: auto;
    align-items: flex-start;
    gap: 12px;
}

.student-chat-header {
    flex-direction: column;
    align-items: center;
    flex: 0 0 64px;
    gap: 6px;
}

.student-chat-name {
    align-items: center;
    text-align: center;
}

.student-chat-name .name {
    font-size: 11px;
}

.student-chat-name .learning {
    display: none;
}

.student-message {
    flex: 1;
    min-width: 0;
}

.small-img {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    transform: none;
}

.container-text {
    padding: 10px 12px;
}

.container-bars {
    width: 100%;
}

.test-section {
    padding: 60px 20px 30px;
    flex-direction: column;
    gap: 24px;
  }

  /* Фрейм уменьшаем */
  .test-section__frame {
    width: 100%;
    max-width: 360px;
    height: auto;
    padding: 24px;
    gap: 32px;
  }

  /* SVG растягиваем меньше, чтобы не давила на текст */
  .test-vector {
    height: 150%;
  }

  /* Контент */
  .test-section__content {
    width: 100%;
    gap: 16px;
  }

  .test-section__title {
    font-size: 20px;
    line-height: 1.2;
  }

  .test-section__subtitle {
    font-size: 14px;
    line-height: 24px;
  }

  /* Кнопка */
  .test-section__button {
    width: 100%;
    max-width: 200px;
    height: 50px;
    font-size: 14px;
    line-height: 22px;
    padding: 12px 20px;
  }

  /* Декоративные картинки */
  .test-section__decor-left {
    width: 140px;
    height: 140px;
    top: 95%;    /* опускаем вниз */
    left: 10px; /* сдвигаем влево */
    transform: translateY(-50%) rotate(-20deg) scaleX(-1);
  }

  .test-section__decor-right {
    width: 150px;
    height: 150px;
    top: 10%;      /* поднимаем вверх */
    right: 20px; /* сдвигаем вправо */
    transform: translateY(-50%) rotate(10deg) scaleX(-1);
  }

  .new-section {
    padding: 80px 16px 100px;
    gap: 24px;
    overflow-x: clip;
  }

  /* Контейнер */
  .new-section__container {
    width: 100%;
    padding: 20px 16px;
    border-radius: 20px;
    gap: 16px;
    margin-top: 20px;
  }

  /* Row 1 — вертикально */
  .new-section__row-1 {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .new-section__step {
    font-size: 16px;
    line-height: 22px;
  }

  .new-section__question {
    font-size: 18px;
    line-height: 24px;
  }

  /* Результат квиза (мобильная адаптация) */
  .quiz-result__container {
    width: 100%;
    min-height: auto;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .quiz-result__frame {
    width: 100%;
    gap: 10px;
  }

  .quiz-result__title {
    font-size: 24px;
    line-height: 1.2;
  }

  .quiz-result__subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .quiz-result__form {
    width: 100%;
    gap: 10px;
  }

  .quiz-result__form input {
    width: 100%;
    font-size: 16px;
    padding: 10px 12px;
  }

  .quiz-contact-title {
    font-size: 14px;
    margin-top: 6px;
  }

  .quiz-contact-preferences {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .quiz-contact-option {
    font-size: 13px;
    gap: 6px;
  }

  .quiz-contact-option input {
    width: 16px;
    height: 16px;
  }

  .quiz-result__button {
    height: 50px;
    padding: 12px 16px;
  }

  .quiz-result__button-text {
    font-size: 16px;
    line-height: 22px;
  }

  /* Варианты */
  .new-section__row-2 {
    min-height: 340px;
  }

  .new-section__option {
    padding: 12px 10px;
    border-radius: 6px;
  }

  .option-circle {
    width: 16px;
    height: 16px;
  }

  .option-text {
    font-size: 16px;
    line-height: 22px;
  }

  /* Убираем scale (на мобиле ломает UX) */
  .new-section__option:hover {
    transform: none;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.06);
  }

  /* =====================
     🎨 ДЕКОР (внутри секции, без отрицательных отступов)
     ===================== */
  .decor {
    opacity: 0.82;
    width: auto;
    height: auto;
    max-width: min(88px, 22vw);
    max-height: min(88px, 22vw);
    object-fit: contain;
  }

  .decor-1 {
    width: min(88px, 22vw);
    height: auto;
    top: 52px;
    right: 8px;
    left: auto;
    bottom: auto;
    transform: rotate(14deg);
    z-index: 1;
  }

  .decor-2 {
    display: none;
  }

  .decor-3 {
    display: block;
    width: min(72px, 19vw);
    height: auto;
    top: 48px;
    left: 8px;
    right: auto;
    bottom: auto;
    transform: rotate(-14deg);
    z-index: 0;
  }

  .decor-4 {
    display: none;
  }


        .faq-header {
            font-weight: 400;
            font-size: 24px;
        }

                .faq-text {
                    font-weight: 400;
                    font-size: 16px;
                }

                                .faq-answer {
                                    font-weight: 400;
                                    font-size: 14px;
                                }

                 .earn-section {
                     padding: 0px 0px;
                 }

                 .earn-container {
                     flex-direction: column;
                     gap: 24px;
                     padding: 24px;
                    border-radius: 0px;
                 }

                 .earn-frame {
                     width: 100%;
                     gap: 12px;
                 }

                 .earn-title {
                     font-size: 24px;
                     text-align: left;
                 }

                 .earn-subtitle {
                     font-size: 18px;
                     text-align: left;
                 }

                 .earn-form {
                     width: 100%;
                     gap: 12px;
                 }

                 .earn-form input {
                     font-size: 16px;
                     padding: 10px 12px;
                 }

                 .submit-button {
                     height: 50px;
                     font-size: 16px;
                     padding: 12px 16px;
                 }

                 .button-text {
                     font-size: 16px;
                 }

        .footer {
            padding: 20px 16px;
            }

        .footer-container {
            gap: 16px;
        }

        .footer-logo {
            font-size: 22px;
            line-height: 30px;
            text-align: left;
            }

        .footer-frame {
            flex-direction: column;
            /* блоки идут друг под другом */
            align-items: left;
            /* центрируем содержимое */
            gap: 20px;
        }

        .footer-left,
        .footer-nav,
        .footer-margin {
            flex: 1 1 auto;
            text-align: left;
            margin-left: 0;
            margin-right: 0;
            width: 100%;
            }

        .footer-company {
            font-size: 14px;
            line-height: 20px;
        }

        .footer-link {
            font-size: 13px;
            line-height: 20px;
        }

        .footer-icons {
            justify-content: left;
            /* иконки по центру */
            gap: 16px;
        }

        .footer-icons img {
            width: 28px;
            height: 28px;
        }

                .feedback-container {
                    padding: 24px;
                    height: auto;
                }

                .feedback-frame {
                    width: 100%;
                    gap: 12px;
                }

                .feedback-title {
                    font-size: 28px;
                    line-height: 1.1;
                }

                .feedback-subtitle {
                    font-size: 16px;
                    line-height: 22px;
                }

                .feedback-vector {
                    width: 200%;
                    height: auto;
                    transform: rotate(-15.31deg) translateX(50px) translateY(30px);
                    top: 0;
                    left: -40px;
                }

    /* ===== Скрываем SVG-векторы на мобиле ===== */
    .section-curves {
        display: none;
    }

    /* ===== Как проходят занятия ===== */
    .how-section {
        padding: 60px 0 56px;
    }

    .how-header {
        margin-bottom: 36px;
        padding: 0 20px;
    }

    .how-title {
        font-size: 26px;
    }
        .skills-decor-right {
            display: none;
        }

    .how-subtitle {
        font-size: 15px;
    }

    .how-grid {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .how-card {
        padding: 24px 20px;
        gap: 12px;
    }

    .how-card-title {
        font-size: 17px;
    }

    .how-card-text {
        font-size: 14px;
    }

    /* ===== Отзывы ===== */
    .reviews-section {
        padding: 60px 0 56px;
    }

    .reviews-decor-left {
        display: none;
    }

    .reviews-header {
        margin-bottom: 36px;
        padding: 0 16px;
    }

    .reviews-title {
        font-size: 26px;
    }

    .reviews-grid {
        display: flex;
        flex-direction: row;
        gap: 16px;
        padding: 0 16px 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .review-item,
    .review-cta-card {
        transform: none !important;
        grid-column: unset !important;
        grid-row: unset !important;
        flex: 0 0 78vw;
        max-width: 320px;
        scroll-snap-align: start;
    }

    .review-item--1 {
        display: none;
    }

    .review-cta-card {
        flex: 0 0 78vw;
        max-width: 320px;
    }

    /* ===== Преподаватели ===== */
    .teachers-section {
        padding: 60px 0 56px;
    }

    .teachers-title {
        font-size: 26px;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .teachers-grid {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .teacher-card {
        flex: none;
        width: 100%;
    }

    .teacher-info {
        padding: 20px;
    }

    /* ===== Шаги ===== */
    .steps-section {
        padding: 56px 0 60px;
    }

    .steps-title {
        font-size: 24px;
        margin-bottom: 32px;
        padding: 0 16px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 12px;
        padding: 0 16px;
    }

    .step-card {
        padding: 24px 20px;
        gap: 12px;
    }

    .step-arrow {
        display: none;
    }

    /* ===== Баннер выбора курса ===== */
    /* ===== Urgency bar ===== */
    .urgency-bar {
        margin-left: 0;
        margin-right: 0;
        padding: 12px 16px;
    }

    /* ===== Форма: earn-trust и social proof ===== */
    .earn-trust li {
        font-size: 14px;
    }

    .earn-social-proof {
        padding-top: 16px;
        gap: 12px;
    }

    .esp-text {
        font-size: 12px;
        line-height: 18px;
    }

    .esp-quote {
        padding: 12px 14px;
    }

    /* ===== Телефонный виджет ===== */
    .phone-country-btn {
        padding: 12px 10px;
    }

    .phone-flag {
        font-size: 18px;
    }

    .phone-dialing-code {
        font-size: 14px;
    }

    .phone-number-input {
        font-size: 14px;
    }

    /* ===== Чекбоксы мессенджеров ===== */
    .contact-preferences {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* ===== Иконки мессенджеров и CTA в хедере — скрываем, они в бургере ===== */
    .header-actions {
        display: none;
    }

    /* ===== Показываем мобильные элементы хедера ===== */
    .mobile-header-cta {
        display: flex;
        align-items: center;
    }

    .mobile-menu-btn {
        display: flex;
    }
}


/* ===== Tablet / Small Laptop (769px – 1199px) ===== */
@media (min-width: 769px) and (max-width: 1199px) {

    /* ===== Main Section ===== */
    .main-section {
        padding: 60px 0 0;
    }

    .section-container {
        gap: 24px;
    }

    .section-title,
    .section-title span {
        font-size: 36px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 17px;
        line-height: 25px;
        max-width: 100%;
    }

    .hero-features li {
        font-size: 15px;
    }

    .hero-cta-btn {
        font-size: 18px;
        padding: 16px 28px;
    }

    .hero-br {
        display: none;
    }

    /* ===== Skills Section ===== */
    .skills-title {
        font-size: 28px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skill-card--accent {
        grid-column: 1 / -1;
    }

    /* ===== Courses Section ===== */
    .courses-header h2 {
        font-size: 36px;
    }

    .course-card {
        flex-direction: column;
        gap: 16px;
    }

    .course-image {
        max-width: 420px;
        margin: 0 auto;
    }

    .course-content {
        width: 100%;
        padding: 20px;
    }

    .course-button {
        width: 100%;
    }

    .course-title-age .course-age,
    .course-title-age .course-age-2 {
        display: none;
    }

    .course-image-wrapper {
        position: relative;
        max-width: 420px;
        margin: 0 auto;
    }

    .course-image-wrapper .course-age-21,
    .course-image-wrapper .course-age-22 {
        display: block;
        position: absolute;
        top: 10px;
        right: -20px;
    }

    /* ===== Как проходят занятия ===== */
    .how-title {
        font-size: 32px;
    }

    .how-grid {
        flex-wrap: wrap;
    }

    .how-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 280px;
    }

    /* ===== Отзывы ===== */
    .reviews-title {
        font-size: 32px;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: unset;
    }

    .review-item--1 {
        display: block;
        grid-column: 1;
        grid-row: unset;
    }

    .review-cta-card {
        grid-column: 1 / 3;
        grid-row: unset;
        transform: none !important;
    }

    .review-item {
        transform: none !important;
    }

    /* ===== Преподаватели ===== */
    .teachers-title {
        font-size: 32px;
    }

    .teachers-grid {
        flex-wrap: wrap;
    }

    .teacher-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 260px;
    }

    /* ===== Шаги ===== */
    .steps-title {
        font-size: 28px;
    }

    .steps-grid {
        flex-wrap: wrap;
        gap: 12px;
    }

    .step-card {
        flex: 1 1 calc(33% - 12px);
        min-width: 200px;
    }

    /* ===== Urgency bar ===== */
    .urgency-bar {
        margin-left: 0;
        margin-right: 0;
    }

    /* ===== FAQ ===== */
    .faq-header {
        font-size: 32px;
    }

    /* ===== Earn Section ===== */
    .earn-title {
        font-size: 32px;
    }

    .earn-subtitle {
        font-size: 22px;
    }

    /* ===== Feedback ===== */
    .feedback-title {
        font-size: 36px;
    }

    }

@media (min-width: 576px) and (max-width: 768px) {

    /* ===== Хедер ===== */
    .header-outer {
        width: 100%;
        height: 60px;
        padding-left: 20px;
        padding-right: 20px;
        border-bottom-width: 1px;
    }

    .header-inner {
        width: 100%;
        height: 60px;
        display: flex;
        justify-content: space-between;
        padding-top: 0;
        padding-bottom: 0;
    }

    .header-logo {
        width: 160px;
        height: 44px;
        flex-shrink: 0;
    }

    .logo-image {
        height: 40px;
        width: auto;
        object-fit: contain;
        display: block;
    }

    .header-nav {
        gap: 16px;
        padding-right: 0;
    }

    .nav-text,


    /* ===== Main Section ===== */
   .main-section {
       padding: 72px 0 0;
       height: auto;
   }

    /* ===== FAQ ===== */
    .faq-section {
        padding: 90px 24px 70px;
    }

   .section-container {
       flex-direction: column;
       justify-content: center;
       align-items: center;
       gap: 24px;
   }

   .section-image {
       transform: rotate(-6deg);
       max-width: 90%;
   }

   .hero-br {
       display: none;
   }

   .vector-2 {
       width: 180%;
       left: -40%;
   }


    .text-block {
        width: 100%;
        text-align: left;
        padding: 24px 28px;
    }

    .section-title,
    .section-title span {
        font-size: 36px;
        line-height: 46px;
    }

    .image-block {
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 1;
    }


    .vector-2 {
        position: absolute;
        top: 140px;
        left: -180px;
        width: 170%;
        transform: rotate(-6deg);
        z-index: 0;
    }

    /* ===== HERO: доп. элементы (tablet) ===== */
    .hero-badge {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        margin-top: 18px;
        font-size: 18px;
        line-height: 26px;
    }

    .hero-features {
        margin-top: 22px;
    }

    .hero-features li {
        font-size: 15px;
        line-height: 22px;
    }

    .hero-cta-row {
        margin-top: 28px;
    }

    .hero-cta-btn {
        padding: 16px 28px;
        font-size: 18px;
    }

    /* ===== Skills Section ===== */
    .skills-section {
        padding: 60px 0 72px;
    }

    .skills-decor-right {
        display: none;
    }

    .skills-title {
        font-size: 26px;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .skill-card--accent {
        grid-column: 1 / -1;
        padding: 28px 28px;
    }

    /* ===== Courses Section ===== */
    .courses-header h2 {
        font-size: 34px;
        line-height: 40px;
    }

    .courses-container {
        gap: 20px;
        padding: 0 24px;
    }

    .course-card {
        flex-direction: column;
        gap: 16px;
    }

    .course-image {
        max-width: 360px;
        margin: 0 auto;
        border-radius: 28px;
    }

    .course-content {
        padding: 20px;
        gap: 20px;
        width: 100%;
    }

    .course-title {
        font-size: 22px;
        line-height: 28px;
    }

    .course-age,
    .course-age-2 {
        font-size: 18px;
        padding: 8px 16px;
    }

    .course-title-age .course-age,
    .course-title-age .course-age-2 {
        display: none;
    }

    .course-image-wrapper {
        position: relative;
        max-width: 360px;
        margin: 0 auto;
    }

    .course-image-wrapper .course-age-21,
    .course-image-wrapper .course-age-22 {
        display: block;
        position: absolute;
        top: 10px;
        right: -24px;
        padding: 8px 14px;
        font-size: 16px;
    }

    .course-label {
        font-size: 18px;
        line-height: 24px;
    }

    .list-main {
        font-size: 16px;
        line-height: 22px;
    }

    .course-button {
        font-size: 18px;
        padding: 14px 24px;
        width: 100%;
    }







    .card-title {
        font-weight: 600;
        font-size: 20px;
    }

    .card-text {
        font-weight: 400;
        font-size: 18px;
    }

    /* ===== Students Section ===== */
    .students-section {
        padding: 0;
    }

    .students-decor-left,
    .students-decor-right {
        display: none;
    }

    .students-inner {
        flex-direction: column;
        gap: 28px;
        border-radius: 0;
        box-shadow: none;
        padding: 60px 24px 80px;
    }

    .frame-left {
        flex: none;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .frame-left .title {
        font-size: 32px;
        line-height: 38px;
    }

    .frame-left .subtitle {
        font-size: 17px;
        line-height: 24px;
    }

    .frame-right {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
        gap: 12px;
    }

    .container-top {
        flex-direction: column;
        gap: 12px;
    }

    .large-img-wrap {
        height: auto;
    }

    .large-img {
        flex: none;
        width: 100%;
        height: 260px;
    }

    .container-side {
        flex: none;
        flex-direction: row;
        width: 100%;
        height: auto;
        gap: 16px;
        align-items: flex-start;
    }

    .student-chat-header {
        flex-direction: column;
        align-items: center;
        flex: 0 0 72px;
        gap: 6px;
    }

    .student-chat-name {
        align-items: center;
        text-align: center;
    }

    .student-message {
        flex: 1;
        min-width: 0;
    }

    .small-img {
        flex: 0 0 56px;
        width: 56px;
        height: 56px;
        transform: none;
    }

    .container-bars {
        width: 100%;
    }

    /* ===== Steps Section ===== */
    .steps-section {
        padding: 56px 0 64px;
    }

    .steps-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .steps-grid {
        gap: 10px;
    }

    .step-card {
        padding: 24px 20px;
    }

    .step-heading {
        font-size: 16px;
    }

    .step-text {
        font-size: 14px;
    }

    /* ===== FAQ ===== */
    .faq-header {
        font-size: 28px;
        font-weight: 400;
    }

    .faq-text {
        font-size: 18px;
        font-weight: 400;
    }

    .faq-answer {
        font-size: 16px;
        font-weight: 400;
    }

    /* ===== Steps Section ===== */
    .steps-section {
        padding: 48px 0 56px;
    }

    .steps-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 8px;
    }

    .step-card {
        width: 100%;
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 20px;
        gap: 16px;
    }

    .step-arrow {
        transform: rotate(90deg);
        font-size: 22px;
        align-self: center;
    }

    /* ===== Earn Section ===== */
    .earn-section {
        padding: 20px 0;
    }

    .earn-container {
        flex-direction: column;
        gap: 28px;
        padding: 32px;
        border-radius: 0;
    }

    .earn-frame {
        width: 100%;
        gap: 16px;
    }

    .earn-title {
        font-size: 30px;
        text-align: left;
    }

    .earn-subtitle {
        font-size: 22px;
        text-align: left;
    }

    .earn-form {
        width: 100%;
        gap: 16px;
    }

    .earn-form input {
        font-size: 18px;
        padding: 12px 16px;
    }

    .submit-button {
        height: 56px;
        font-size: 18px;
        padding: 14px 20px;
    }

    .button-text {
        font-size: 18px;
    }

    /* ===== Footer ===== */
    .footer {
        padding: 28px 24px;
    }

    .footer-container {
        gap: 20px;
    }

    .footer-logo {
        font-size: 26px;
        line-height: 34px;
        text-align: left;
    }

    .footer-frame {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-left,
    .footer-nav,
    .footer-margin {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        flex: none;
    }

    .footer-company {
        font-size: 16px;
        line-height: 22px;
    }

    .footer-link {
        font-size: 14px;
        line-height: 20px;
    }

    .footer-icons {
        justify-content: left;
        gap: 20px;
    }

    .footer-icons img {
        width: 32px;
        height: 32px;
    }

    /* ===== Feedback ===== */
    .feedback-container {
        padding: 32px;
        height: auto;
    }

    .feedback-frame {
        width: 100%;
        gap: 16px;
    }

    .feedback-title {
        font-size: 34px;
        line-height: 1.1;
    }

    .feedback-subtitle {
        font-size: 18px;
        line-height: 24px;
    }

    .feedback-vector {
        width: 180%;
        transform: rotate(-14deg) translateX(60px) translateY(40px);
        top: 0;
        left: -30px;
    }

    /* ===== SVG-векторы: скрываем на малом планшете ===== */
    .section-curves {
        display: none;
    }

    /* ===== Как проходят занятия ===== */
    .how-section {
        padding: 60px 0 56px;
    }

    .how-header {
        margin-bottom: 36px;
        padding: 0 24px;
    }

    .how-title {
        font-size: 28px;
    }

    .how-subtitle {
        font-size: 16px;
    }

    .how-grid {
        flex-direction: column;
        gap: 14px;
        padding: 0 24px;
    }

    .how-card {
        padding: 28px 24px;
        gap: 14px;
    }

    .how-card-title {
        font-size: 18px;
    }

    .how-card-text {
        font-size: 15px;
    }

    /* ===== Отзывы ===== */
    .reviews-section {
        padding: 60px 0 56px;
    }

    .reviews-header {
        margin-bottom: 36px;
        padding: 0 24px;
    }

    .reviews-title {
        font-size: 28px;
    }

        .reviews-grid {
        flex-wrap: wrap;
    }

    .review-item {
        flex: 1 1 calc(50% - 12px);
        min-width: 260px;
        transform: none !important;
    }

} /* конец @media (min-width: 576px) and (max-width: 768px) */

/* ===== Плавающая кнопка (только мобиль) ===== */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 998;
        padding: 16px 24px;
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        background: linear-gradient(90deg, #5F55EC, #38139D);
        color: #ffffff;
        font-family: 'Montserrat', sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 -4px 24px rgba(45, 48, 92, 0.18);
        transform: translateY(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

    .mobile-sticky-cta.hidden {
        transform: translateY(110%);
        opacity: 0;
        pointer-events: none;
    }
}

/* ===== Оверлей "поверните телефон" ===== */
.rotate-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #1a1a2e;
    align-items: center;
    justify-content: center;
}

.rotate-overlay__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 32px;
    text-align: center;
}

.rotate-overlay__icon {
    width: 64px;
    height: 64px;
    color: #5F55EC;
    animation: rotate-hint 2s ease-in-out infinite;
}

@keyframes rotate-hint {
    0%, 100% { transform: rotate(0deg); }
    40%       { transform: rotate(-90deg); }
    60%       { transform: rotate(-90deg); }
}

.rotate-overlay__text {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    max-width: 260px;
    line-height: 1.5;
}

@media (max-width: 768px) and (orientation: landscape) {
    .rotate-overlay {
        display: flex;
    }
}
