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

.container {
    width: 100%;
    max-width: 1200px;
    /* или сколько тебе нужно */
    margin: 0 auto;
    /* выравнивание по центру */
    padding: 0 16px;
    /* чтобы на маленьких экранах не липло к краям */
}

/* Внешний контейнер хедера */
.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: 2;
}

/* Внутренний контейнер */
.header-inner {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: clamp(8px, 2%, 16px);
    padding-bottom: clamp(8px, 2%, 16px);
    opacity: 1;
}

/* Контейнер логотипа */
.header-logo {
    width: clamp(150px, 20%, 248px);
    height: auto;
    display: flex;
    align-items: center;
}


.logo-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    /* уберёт лишние отступы у img */
}

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


/* Навигация */
.header-nav {
    display: flex;
    gap: clamp(16px, 3%, 36.2px);
    height: auto;
    align-items: left;
    padding-left: clamp(8px, 2%, 32px);
}

/* …остальной код остаётся без изменений… */

/* Ссылки */
.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;
    /* базовый цвет */
}

.nav-text-2{
    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: #5F55EC;
    /* базовый цвет */
}

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

.nav-link:hover .nav-text-2 {
    color: #FFB701;
    /* цвет при наведении */
    transform: scale(1.05);
    /* лёгкое увеличение */
}

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

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

.text-block {
    flex: 1;
    z-index: 2;
}


.section-title {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #5F55EC;
    font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-style: normal;
    /* основной цвет */
}

.section-title span {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.3;
    color: #000;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-style: normal;
    /* основной цвет */
}

.section-title strong {
    color: #000;
    /* часть текста чёрная, как в макете */
}

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

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

.vector-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 1448px;
    height: 728px;
    transform: rotate(-8.31deg);
    z-index: 0;
}


.ideas-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 52px;
    margin-bottom: 80px;
}

/* Заголовки */
.ideas-heading {
    text-align: center;
}

.heading-main {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: clamp(32px, 3vw, 48px);
    line-height: 100%;
    margin-bottom: 8px;
    margin-top: 98px;
    color: #1F2022;
}

.heading-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 2.5vw, 32px);
    line-height: 100%;
    color: #1F2022;
}

/* Контент: фон + картинка */
.ideas-content {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    justify-content: center;
}

/* Фоновый блок */
.ideas-background {
    width: clamp(320px, 65%, 760px);
    padding: 48px 36px 36px 36px;
    border-radius: 36px;
    background: #5F55EC;
    display: flex;
    flex-direction: column;
    gap: 24px;
    color: #fff;
    z-index: 1;
}

/* Фрейм с heading и списком */
.ideas-frame {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.frame-heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 36px;
}

.frame-list {
    list-style: disc;
    padding: 28px;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 20px;
    line-height: 28px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Кнопка */
.ideas-button {
    width: clamp(200px, 80%, 473px);
    padding: 18px 32px;
    border-radius: 8px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 26px;
    text-align: center;
    cursor: pointer;
    background: #FFFFFF;;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ideas-button:hover {
    transform: scale(1.05);
    background-color: #EFEEFF;
}

/* Картинка */
.ideas-image {
    width: clamp(340px, 33%, 580px);
    height: auto;
    border-radius: 36px;
    box-shadow: 0px 6px 120px 0px rgba(45, 48, 92, 0.05);
    margin-left: -40px;
}

.image-wrapper {
    position: relative;
    /* чтобы code-stream был внутри картинки */
}

.code-stream {
    position: absolute;
    top: 400px;
    /* от верхнего края картинки */
    left: 650px;
    /* от левого края картинки */
    width: 30%;
    /* можно подстраивать */
    pointer-events: none;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #5F55EC;
}

.code-stream span {
    display: block;
    opacity: 0;
    transform: translateY(0);
    animation: flyUp 3s forwards;
    animation-delay: var(--delay);
    white-space: nowrap;
}

@keyframes flyUp {
    0% {
        opacity: 0;
        transform: translateY(0) translateX(0) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateY(-40px) translateX(10px) scale(1.05);
    }

    100% {
        opacity: 0;
        transform: translateY(-80px) translateX(20px) scale(1);
    }
}

.courses-section {
    width: 100%;
    padding: 90px 0 80px 0;
    background: #F6F6F7;
    display: flex;
    justify-content: center;
    align-items: center;
    
}


/* Заголовок секции */
.courses-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    color: #1F2022;
    text-align: center;
}

.courses-container {
    display: flex;
    flex-direction: column;
    gap: 36px;
    /* можно оставить, но эффект лучше заметен с margin */
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.course-card {
    display: flex;
    flex-direction: row;
    gap: 24px;
    border-radius: 36px;
    border: 1px solid #F6F6F7;
    overflow: visible;
    box-shadow: 0px 6px 120px rgba(45, 48, 92, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    background: #fff;
}

.course-card:hover {
    transform: scale(1.1) translateY(-10px);
    box-shadow: 0px 20px 40px rgba(45, 48, 92, 0.15);
}

/* Картинка курса */
.course-image {
    width: 416px;
    height: auto;
    object-fit: contain;
}

/* Контейнер с текстом и кнопкой */
.course-content {
    width: 760px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

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

.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: 20px;
    line-height: 26px;
    color: #fff;
    background: #5F55EC;
    padding: 12px 24px;
    border-radius: 1000px;
}

.course-age-21 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #fff;
    background: #5F55EC;
    padding: 12px 24px;
    border-radius: 1000px;
    visibility: hidden;
}



.course-age-2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #1F2022;
    background: #FFB701;
    padding: 12px 24px;
    border-radius: 1000px;
}

.course-age-22 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #1F2022;
    background: #FFB701;
    padding: 12px 24px;
    border-radius: 1000px;
    visibility: hidden;
}

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

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

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

.course-list li {
    flex-direction: column;
    gap: 2px;
}


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

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

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



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

.benefits-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

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

.bfspan {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    text-align: center;
    color: #5F55EC;
}

/* Контейнер карточек */
.cards-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Каждая карточка */
.benefit-card {
    width: calc((100% - 64px) / 3);
    height: 300px;
    padding: 36px;
    border-radius: 16px;
    border: 1px solid #F6F6F7;
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #F6F6F7;
    text-align: center;
    box-shadow: 0px 6px 24px rgba(45, 48, 92, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0px 20px 40px rgba(45, 48, 92, 0.15);
}

/* Заголовок карточки */
.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;
}


.students-section {
    max-width: 1440px;
    width: 100%;
    height: 544px;
    background-color: #F5F5F6;
    padding: 80px 120px 100px 120px;
    display: flex;
    gap: 32px;
    opacity: 1;
    transform: rotate(0deg);
    box-sizing: border-box;
    margin: 0 auto;
}

.frame {
    display: flex;
    flex-direction: column;
    gap: 32px;
    opacity: 1;
    transform: rotate(0deg);
}

.frame-left {
    width: 460px;
    height: 318px;
}

.frame-left .title {
    width: 460px;
    height: 118px;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 48px;
    line-height: 100%;
    color: #1F2022;
    opacity: 1;
}

.frame-left .subtitle {
    width: 460px;
    height: 168px;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
    opacity: 1;
}

.frame-right {
    width: 708px;
    height: 364px;
    gap: 36px;
}

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

.large-img {
    width: 480px;
    height: 320px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 1;
}

.container-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
    height: 320px;
    opacity: 1;
}

.small-img {
    width: 220px;
    height: 250px;
    border-radius: 16px;
    object-fit: cover;
    opacity: 1;
}

.container-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 164px;
    height: 58px;
    opacity: 1;
}

.container-text span {
    display: block;
}

.container-text .name {
    width: 190px;
    height: 26px;
    font-family: Montserrat;
    font-weight: 700;
    font-size: 20px;
    line-height: 26px;
    color: #1F2022;
    opacity: 1;
}

.container-text .learning {
    width: 190px;
    height: 28px;
    font-family: Montserrat;
    font-weight: 400;
    font-size: 20px;
    line-height: 28px;
    color: #1F2022;
    opacity: 1;
}

/* Второй контейнер в правом фрейме (полоски) */
.container-bars {
    display: flex;
    gap: 8px;
    width: 708px;
    height: 8px;
    opacity: 1;
}

.bar {
    width: 230.67px;
    height: 8px;
    border-radius: 1000px;
    background-color: #DADAF6;
    opacity: 1;
}

.bar-active {
    background-color: #5F55EC;
}


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

.fade-out {
    opacity: 0;
}


.faq-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 100px;
    padding-bottom: 80px;
    background-color: #FFF;
}

.faq-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 36px;
    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;
    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;
    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;
}

.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;
    /* боковые паддинги оставляем */
}

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

.earn-section {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 100px 120px;
    background-color: #FFFFFF;
}

.earn-container {
    width: 100%;
    max-width: 1200px;
    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);
}

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

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

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

.hidden-text {
    opacity: 0;
    visibility: hidden;
    /* чтобы не мигал курсор, но высота сохранялась */
}

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

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


/* Плейсхолдер */
.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: color(1.05);
    background-color: #424446;
    
}

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

.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 640px;
    /* занимает место слева */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-company {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    color: #FFFFFF;
}

.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;
    /* главное: чтобы SVG не вылезал за контейнер */
}

/* Фрейм с текстами */
.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;
    /* клики разрешены */
}

.chat-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    font-size: 28px;
    transition: transform 0.2s ease;
    z-index: 1000;
}

.chat-button:hover {
    transform: scale(1.05);
}

/* Окно чата */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: fadeIn 0.2s ease;
}

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

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

/* Верхняя панель */
.chat-header {
    background-color: #0078ff;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

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

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-header img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
}

.chat-header-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.chat-header-info .name {
    font-size: 18px;
    font-family: 'Montserrat', sans-serif;
        font-weight: 600;
}

.chat-header-info .status {
    font-size: 14px;
    color: #d6e8ff;
    font-family: 'Montserrat', sans-serif;
        font-weight: 600;
}

.chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    font-weight: 700;
}

/* Сообщения */
.chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    background: #f5f7fa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.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;
}

/* Поле ввода */
.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chat-input input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.chat-input button {
    background-color: #0078ff;
    border: none;
    color: white;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.chat-input button:hover {
    background-color: #0062cc;
}

.chat-hint {
    position: fixed;
    bottom: 90px;
    /* чуть выше кнопки */
    right: 30px;
    background-color: #ffffff;
    color: #333;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 9998;
}

.chat-hint.show {
    opacity: 1;
    transform: translateY(0);
}
/* ===== МЕДИАЗАПРОСЫ ДЛЯ МОБИЛЬНЫХ И ПЛАНШЕТОВ ===== */

/* ===== СУММАРНЫЙ МЕДИАЗАПРОС ===== */

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

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

    .header-inner {
        width: 310px;
        height: 44px;
        justify-content: space-between;
    }

    .header-logo {
        width: 150px;
        height: 80px;
    }

    .logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .header-nav {
        width: 146px;
        height: 19px;
        gap: 16px;
        padding-right: 60px;
    }

    .nav-text,
    .nav-text-2 {
        width: 52px;
        height: 19px;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0;
        vertical-align: middle;
        white-space: nowrap;
    }

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

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

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

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

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

    .section-image {
        max-width: 90%;
        border-radius: 16px;
        transform: scale(0.9) rotate(-8deg);
    }

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

    /* ===== Ideas Section ===== */
    .ideas-container {
        gap: 24px;
        margin-bottom: 40px;
    }

    .ideas-heading {
        text-align: center;
    }

    .heading-main {
        font-size: 24px;
        line-height: 28px;
        margin-top: 28px;
        margin-bottom: 4px;
    }

    .heading-sub {
        font-size: 18px;
        line-height: 22px;
    }

    .ideas-content {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .ideas-background {
        width: 100%;
        padding: 24px 16px;
        border-radius: 0px;
    }

    .frame-heading {
        font-size: 20px;
        line-height: 28px;
        left: 10px;
    }

    .frame-list {
        font-size: 16px;
        line-height: 22px;
        padding: 16px;
        gap: 16px;
    }

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

    /* Скрываем картинку и летающий код */
    .ideas-image,
    .code-stream {
        display: none;
    }

    /* ===== 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%;
    }

         .cards-container {
             flex-direction: column;
             gap: 16px;
         }

                 .benefits-header {
                     font-weight: 700;
                     font-size: 24px;
                 }
        
                 .bfspan {
                     font-weight: 700;
                     font-size: 24px;
                 }
    
         .benefit-card {
             width: 100%;
             height: auto;
             padding: 16px;
         }

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

.students-section {
    flex-direction: column;
    /* элементы сверху вниз */
    align-items: center;
    /* центрирование по горизонтали */
    padding: 40px 20px 60px 20px;
    /* уменьшаем отступы для маленьких экранов */
    height: auto;
    /* чтобы секция подстраивалась по контенту */
    gap: 24px;
}

.frame-left,
.frame-right {
    width: 100%;
    max-width: 380px;
    /* ограничиваем ширину для телефонов */
    height: auto;
    /* подстраиваем высоту под контент */
    align-items: center;
    /* центрируем контент внутри */
    text-align: center;
    gap: 16px;
}

.frame-left,
.frame-right,
.container-top,
.container-side {
    height: auto !important;
}

.large-img {
    height: auto;
    max-height: 300px;
    /* можно ограничить, если фото слишком растягивается */
    object-fit: cover;
}

.frame-left .title {
    font-size: 28px;
    line-height: 34px;
    width: 100%;
    height: auto;
    text-align: left;
}

.frame-left .subtitle {
    font-size: 16px;
    line-height: 22px;
    width: 100%;
    height: auto;
    text-align: left;
}

.frame-right {
    gap: 6px;
}

.container-top {
    flex-direction: column;
    /* большая картинка сверху, мелкие снизу */
    width: 100%;
    height: auto;
    gap: 12px;
}

.large-img {
    width: 100%;
    height: 300px;
    border-radius: 12px;
}

 /* Горизонтальное расположение картинки и текста ученика */
 .container-side {
     flex-direction: row;
     /* картинка слева, текст справа */
     width: 100%;
     gap: 12px;
     align-items: center;
     /* вертикальное выравнивание по центру */
 }

 .small-img {
     width: 80px;
     /* примерная ширина картинки */
    max-height: 50px;
        /* можно ограничить, если фото слишком растягивается */
        object-fit: cover;
     border-radius: 12px;
     flex-shrink: 0;
     /* чтобы картинка не сжималась */
 }

 .container-text {
     width: calc(100% - 92px);
     /* оставшееся место для текста */
     gap: 4px;
     text-align: left;
     display: flex;
     flex-direction: column;
     justify-content: center;
     /* вертикально центрируем текст */
 }

 .container-text .name,
 .container-text .learning {
     font-size: 16px;
     line-height: 20px;
     height: auto;
     width: 100%;
 }

.container-bars {
    width: 100%;
    justify-content: center;
    gap: 6px;
}

.bar {
    width: 30%;
}


        .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-margin {
            flex: 1 1 auto;
            text-align: left;
            /* выравнивание по центру */
        }
    
        .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;
                }
}


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

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

    .header-inner {
        width: 520px;
        height: 64px;
        justify-content: space-between;
    }

    .header-logo {
        width: 200px;
        height: 100px;
    }

    .logo-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .header-nav {
        width: 200px;
        height: 24px;
        gap: 24px;
        padding-right: 80px;
    }

    .nav-text,
    .nav-text-2 {
        width: 72px;
        height: 24px;
        font-family: 'Inter', sans-serif;
        font-weight: 600;
        font-size: 20px;
        line-height: 100%;
    }

    /* ===== Main Section ===== */
   .main-section {
       padding: 60px 24px;
       /* меньше боковые отступы */
       height: auto;
       /* чтобы не обрезало контент */
   }

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

   .section-image {
       transform: scale(1) rotate(-6deg);
       /* чуть меньше наклон, но без уменьшения размера */
       max-width: 90%;
   }

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


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

    .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;
    }

    /* ===== Ideas Section ===== */
    .ideas-container {
        gap: 32px;
        margin-bottom: 60px;
    }

    .ideas-heading {
        text-align: center;
    }

    .heading-main {
        font-size: 32px;
        line-height: 38px;
        margin-top: 36px;
        margin-bottom: 8px;
    }

    .heading-sub {
        font-size: 22px;
        line-height: 28px;
    }

    .ideas-content {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .ideas-background {
        width: 100%;
        padding: 32px 24px;
        border-radius: 0;
    }

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

    .frame-list {
        font-size: 18px;
        line-height: 26px;
        padding: 20px;
        gap: 20px;
    }

    .ideas-button {
        width: 100%;
        font-size: 20px;
        padding: 18px 28px;
    }

    .ideas-image,
    .code-stream {
        display: none;
    }

    /* ===== 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%;
    }

    .cards-container {
        flex-direction: column;
        gap: 20px;
    }

    .benefits-header,
    .bfspan {
        font-weight: 700;
        font-size: 28px;
    }

    .benefit-card {
        width: 100%;
        padding: 20px;
    }

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

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

    /* ===== Students Section ===== */
    .students-section {
        flex-direction: column;
        align-items: center;
        padding: 60px 28px 80px;
        gap: 28px;
    }

    .frame-left,
    .frame-right {
        width: 100%;
        max-width: 520px;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .large-img {
        width: 100%;
        height: 360px;
        border-radius: 16px;
        object-fit: cover;
    }

    .frame-left .title {
        font-size: 34px;
        line-height: 40px;
        text-align: left;
    }

    .frame-left .subtitle {
        font-size: 18px;
        line-height: 24px;
        text-align: left;
    }

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

    .container-side {
        flex-direction: row;
        width: 100%;
        gap: 16px;
        align-items: center;
    }

    .small-img {
        width: 100px;
        max-height: 64px;
        border-radius: 14px;
        flex-shrink: 0;
    }

    .container-text {
        width: calc(100% - 116px);
        gap: 6px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .container-text .name,
    .container-text .learning {
        font-size: 18px;
        line-height: 22px;
    }

    .container-bars {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }

    .bar {
        width: 30%;
    }

    /* ===== 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;
    }

    /* ===== 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: left;
        gap: 24px;
    }

    .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;
    }
}

