/* =========================
   BASE
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #0b0b0f;
    background: #ffffff;
    overflow-x: hidden;
}

/* контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   HEADER
========================= */
.header {
    padding: 28px 0;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header__logoImg {
    width: 150px;
    display: block;
}

/* =========================
   BUTTON SYSTEM
========================= */
.btn {
    appearance: none;
    border: none;
    cursor: pointer;

    padding: 14px 22px;
    border-radius: 999px;

    font-weight: 700;
    font-size: 16px;
    line-height: 1;

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

    transition:
        background-color .15s ease,
        box-shadow .15s ease,
        transform .12s ease;
}

/* primary */
.btn--primary {
    background-color: #7a3cff;
    /* дефолт */
    color: #ffffff;

    box-shadow: 0 12px 28px rgba(122, 60, 255, 0.22);
}

/* hover — как на макете */
.btn--primary:hover {
    background-color: #6a2df0;
    box-shadow: 0 16px 36px rgba(122, 60, 255, 0.32);
}

.btn--primary:active {
    transform: translateY(1px);
    box-shadow: 0 10px 22px rgba(122, 60, 255, 0.22);
}

/* focus (доступность) */
.btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(122, 60, 255, 0.25),
        0 16px 36px rgba(122, 60, 255, 0.32);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 520px) {
    .header {
        padding: 20px 0;
    }

    .header__logoImg {
        height: 38px;
    }

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


/* =========================
   HERO (Section)
========================= */
.hero {
    /* локальные настройки секции */
    --container: 1200px;
    --pad-x: 20px;

    --purple: #7a3cff;
    --text: #0b0b0f;
    --muted: #2b2b34;

    /* пятно (можешь менять для каждой секции отдельно) */
    --spot-size: 520px;
    --spot-x: 60%;
    --spot-y: 35%;
    --spot-a: 0.45;
    --spot-b: 0.22;
    --spot-c: 0.08;

    position: relative;
    overflow: hidden;
    padding: 40px 0;

}

/* Пятно только в HERO */
.hero::before {
    content: "";
    position: absolute;
    inset: -200px;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(var(--spot-size) var(--spot-size) at var(--spot-x) var(--spot-y),
            rgba(122, 60, 255, var(--spot-a)) 0%,
            rgba(122, 60, 255, var(--spot-b)) 35%,
            rgba(122, 60, 255, var(--spot-c)) 55%,
            rgba(122, 60, 255, 0) 72%);
}

/* Контент поверх */
.hero>* {
    position: relative;
    z-index: 1;
}

/* =========================
   Layout
========================= */
.hero__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--pad-x);
}

.hero__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.hero__left {
    flex: 1 1 55%;
}

.hero__right {
    flex: 1 1 45%;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    min-height: 520px;
}

/* =========================
   Typography
========================= */
.hero__title {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-weight: 800;
    font-size: clamp(34px, 4.2vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0 0 18px;
}

.hero__subtitle {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: var(--muted);
    max-width: 560px;
    margin: 0 0 24px;
}

/* =========================
   Actions / Buttons
========================= */
.hero__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
}

.btn {
    border: none;
    cursor: pointer;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1;
    user-select: none;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    color: #fff;
    box-shadow: 0 12px 28px rgba(122, 60, 255, 0.22);
}

.btn--primary:hover {
    box-shadow: 0 16px 34px rgba(122, 60, 255, 0.28);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.92);
    color: #111;
    border: 2px solid #111;
}

.btn__icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--purple);
    color: #fff;

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

    box-shadow: 0 10px 22px rgba(122, 60, 255, 0.22);
}

/* =========================
   Bonus row
========================= */
.hero__bonus {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 560px;
}

.hero__gift {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--purple);

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

    background: rgba(122, 60, 255, 0.08);
}

.hero__bonusText {
    margin: 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--muted);
}

/* =========================
   Right image / Badge
========================= */
.hero__man {
    width: min(430px, 100%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
}

.hero__badge {
    position: absolute;
    right: 0;
    bottom: 8px;

    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hero__badgeTop {
    background: var(--purple);
    color: #fff;
    font-weight: 800;
    padding: 12px 18px;
    border-radius: 999px;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 16px 34px rgba(122, 60, 255, 0.25);
}

.hero__badgeBottom {
    background: #ffffff;
    color: #12121a;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 999px;
    min-width: 260px;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.hero__badgeBottom span {
    font-weight: 900;
    color: var(--purple);
}

/* =========================
   Responsive
========================= */
@media (max-width: 960px) {
    .hero__content {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__right {
        justify-content: center;
        min-height: 420px;
    }

    .hero__badge {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 520px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .hero__badgeTop,
    .hero__badgeBottom {
        min-width: auto;
        width: 100%;
    }

    .hero__right {
        min-height: 360px;
    }
}

/* ==============end-Hero=============== */

/* =========================
   SECTION 2 — HOW IT WORKS
========================= */

.how {
    position: relative;
    padding: 80px 0;
    background: #ffffff;
    overflow: hidden;
}

/* фиолетовое пятно слева */
.how::before {
    content: "";
    position: absolute;
    inset: -240px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(520px 520px at 18% 45%,
            rgba(122, 60, 255, 0.35) 0%,
            rgba(122, 60, 255, 0.18) 35%,
            rgba(122, 60, 255, 0.06) 55%,
            rgba(122, 60, 255, 0) 72%);
}

/* мягкий фиолетовый туман справа */
.how::after {
    content: "";
    position: absolute;
    inset: -240px;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(700px 700px at 92% 30%,
            rgba(185, 140, 255, 0.35) 0%,
            rgba(185, 140, 255, 0.14) 35%,
            rgba(185, 140, 255, 0) 70%);
}

/* =========================
   LAYOUT
========================= */

.how__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.how__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* LEFT */
.how__left {
    padding-top: 20px;
}

.how__title {
    margin: 0 0 16px;
    font-size: clamp(40px, 4.2vw, 60px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: #0b0b0f;
}

.how__text {
    max-width: 520px;
    font-size: 22px;
    line-height: 1.35;
    color: #1a1a22;
}

.how__text u {
    text-decoration-thickness: 3px;
    text-underline-offset: 6px;
}

/* =========================
   RIGHT BLOCK
========================= */

.how__right {
    position: relative;
    min-height: 520px;
    overflow: visible;
    /* важно, чтобы шаги с отрицательными % не обрезались */
}

/* круг со стрелками */
.how__cycle {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: min(520px, 92%);
    height: auto;
    opacity: 0.85;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.12));
}

/* =========================
   STEP CARD
========================= */

.step {
    position: absolute;
    width: 280px;
    padding: 16px;
    border: 3px solid #7a3cff;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.step__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.step__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #7a3cff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__icon img {
    width: 40px;
    height: 40px;
    display: block;
}

.step__pill {
    min-width: 120px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid #111;
    background: #fff;
    font-weight: 900;
    text-align: center;
}

.step__label {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: #0b0b0f;
}

/* номер шага */
.step__num {
    position: absolute;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #7a3cff;
    color: #fff;
    font-weight: 900;
    font-size: 14px;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 22px rgba(122, 60, 255, 0.25);
}

/* прибыль */
.step--profit .step__pill {
    background: #a6ffb3;
}

/* =========================
   STEP POSITIONS — DESKTOP (твои)
========================= */

.step--1 {
    top: -10%;
    left: 0%;
}

.step--1 .step__num {
    right: -13px;
    bottom: -13px;
}

.step--2 {
    top: 30%;
    left: 84%;
}

.step--2 .step__num {
    left: -13px;
    bottom: -13px;
}

.step--3 {
    top: 85%;
    left: 30%;
}

.step--3 .step__num {
    left: 50%;
    transform: translateX(-50%);
    top: -13px;
}

.step--4 {
    top: 48%;
    left: -30%;
}

.step--4 .step__num {
    right: -13px;
    top: 50%;
    transform: translateY(-50%);
}


/* =========================================================
   ADAPTIVE
   Идея:
   - 1200-1024: чуть поджимаем правую часть
   - 1024-768: перестраиваем шаги, чтобы не вылезали
   - <=768: одна колонка (лево сверху, справа ниже)
   - <=560: карточки в один столбик, круг как фон
========================================================= */

/* --- Large laptop / small desktop --- */
@media (max-width: 1200px) {
    .how__container {
        padding: 0 24px;
    }

    .step {
        width: 270px;
    }

    .how__right {
        min-height: 520px;
    }

    .step--2 {
        left: 78%;
    }

    .step--4 {
        left: -22%;
    }
}

/* --- Laptop --- */
@media (max-width: 1100px) {
    .step {
        width: 260px;
    }

    .step--2 {
        left: 74%;
    }

    .step--3 {
        left: 26%;
        top: 82%;
    }

    .step--4 {
        left: -18%;
    }
}

/* --- Tablet landscape (важно: чтобы не вылазили за края) --- */
@media (max-width: 980px) {
    .how__content {
        grid-template-columns: 1fr;
    }

    .how__right {
        min-height: 620px;
    }

    /* круг оставляем по центру */
    .how__cycle {
        width: min(520px, 90%);
        opacity: 0.75;
    }

    /* перетасуем шаги ближе к центру */
    .step {
        width: min(520px, 92%);
        left: 50%;
        transform: translateX(-50%);
    }

    .step--1 {
        top: 0;
    }

    .step--2 {
        top: 170px;
    }

    .step--4 {
        top: 340px;
    }

    .step--3 {
        top: 520px;
        left: 50%;
    }

    /* номера для вертикального стека */
    .step--1 .step__num {
        right: 16px;
        bottom: -13px;
    }

    .step--2 .step__num {
        left: 16px;
        bottom: -13px;
    }

    .step--4 .step__num {
        right: 16px;
        top: -13px;
        transform: none;
    }

    .step--3 .step__num {
        left: 50%;
        transform: translateX(-50%);
        top: -13px;
    }
}

/* --- Mobile --- */
@media (max-width: 560px) {
    .how {
        padding: 60px 0;
    }

    .how__text {
        font-size: 18px;
    }

    .how__right {
        min-height: 720px;
    }

    .how__cycle {
        width: 92%;
        opacity: 0.45;
        top: 55%;
    }

    .step {
        width: 92%;
        padding: 14px;
    }

    .step__label {
        font-size: 18px;
    }

    .step__pill {
        min-width: 110px;
        padding: 9px 14px;
    }
}

/* --- Small mobile --- */
@media (max-width: 400px) {
    .how__right {
        min-height: 760px;
    }

    .step__top {
        gap: 8px;
    }

    .step__icon {
        width: 42px;
        height: 42px;
    }

    .step__icon img {
        width: 22px;
        height: 22px;
    }

    .step__pill {
        min-width: 96px;
    }
}

/* =========================
   SECTION 3 — BENEFITS
========================= */

.benefits {
    position: relative;
    padding: 70px 0 90px;
    background: #fff;
}

.benefits__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.benefits__title {
    margin: 0 0 34px;
    font-size: clamp(44px, 5vw, 72px);
    line-height: 0.95;
    letter-spacing: -0.02em;
    font-weight: 900;
    color: #0b0b0f;
}

/* Grid */
.benefits__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 34px 54px;
}

/* Card */
.benefit {
    background: #7a3cff;
    border-radius: 16px;
    padding: 28px 28px;
    min-height: 210px;

    display: grid;
    grid-template-columns: 1fr 170px;
    align-items: center;
    gap: 20px;

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

/* Text */
.benefit__heading {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.05;
    font-weight: 900;
    color: #0b0b0f;
}

.benefit__desc {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.88);
    max-width: 320px;
}

/* Media */
.benefit__media {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.benefit__img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.18));
}

/* =========================
   Responsive
========================= */

@media (max-width: 980px) {
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .benefit {
        grid-template-columns: 1fr 160px;
    }

    .benefit__desc {
        max-width: none;
    }
}

@media (max-width: 520px) {
    .benefits {
        padding: 55px 0 70px;
    }

    .benefits__title {
        margin-bottom: 24px;
    }

    .benefit {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 16px;
    }

    .benefit__media {
        justify-content: flex-start;
    }

    .benefit__img {
        width: 120px;
        height: 120px;
    }

    .benefit__heading {
        font-size: 22px;
    }

    .benefit__desc {
        font-size: 16px;
    }
}

/* =========================
   SECTION 4 — AUDIENCE
========================= */

.audience {
    position: relative;
    padding: 90px 0;
    background: #fff;
    overflow: hidden;
}

/* мягкое пятно справа под человеком */
.audience::after {
    content: "";
    position: absolute;
    inset: -260px;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(620px 620px at 78% 50%,
            rgba(122, 60, 255, 0.35) 0%,
            rgba(122, 60, 255, 0.18) 35%,
            rgba(122, 60, 255, 0.06) 55%,
            rgba(122, 60, 255, 0) 72%);
}

.audience__container {
    position: relative;
    z-index: 1;
}

/* Title */
.audience__title {
    margin: 0 0 40px;
    font-size: clamp(42px, 4.5vw, 68px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0b0b0f;
}

/* Layout */
.audience__content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

/* LEFT GRID */
.audience__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 28px;
}

.audience__item {
    background: #ffffff;
    border: 3px solid #7a3cff;
    border-radius: 14px;
    padding: 22px 20px;

    display: flex;
    align-items: center;
    text-align: center;
    flex-direction: column;
    gap: 14px;

    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.audience__item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.audience__item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 500;
    color: #0b0b0f;
}

/* RIGHT VISUAL */
.audience__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.audience__visual img {
    width: 100%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.18));
}

/* =========================
   RESPONSIVE
========================= */

/* Laptop */
@media (max-width: 1100px) {
    .audience__content {
        grid-template-columns: 1fr 1fr;
    }

    .audience__visual img {
        max-width: 380px;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .audience__content {
        grid-template-columns: 1fr;
    }

    .audience__visual {
        margin-top: 40px;
    }

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

/* Mobile */
@media (max-width: 520px) {
    .audience {
        padding: 70px 0;
    }

    .audience__title {
        margin-bottom: 28px;
    }

    .audience__item {
        padding: 18px;
    }

    .audience__item p {
        font-size: 15px;
    }

    .audience__visual img {
        max-width: 300px;
    }
}

/* =========================
   SECTION 5 — CTA / STATEMENT
========================= */

.cta {
    position: relative;
    padding: 70px 0;
    /* ↓ меньше высота */
    background-image: url("../images/IMG_6178.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* контейнер уже */
.cta__container {
    position: relative;
    z-index: 1;

    max-width: 900px;
    /* ← БЛОК УЖЕ */
    margin: 0 auto;
    padding: 0 20px;

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

/* ТЕКСТ — меньше и аккуратнее */
.cta__title {
    margin: 0;
    text-align: center;

    font-size: clamp(26px, 3vw, 40px);
    /* ↓ меньше */
    line-height: 1.15;
    letter-spacing: -0.015em;
    font-weight: 900;
    color: #0b0b0f;
}

/* =========================
   RESPONSIVE
========================= */

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

    .cta__container {
        max-width: 720px;
    }

    .cta__title {
        font-size: clamp(24px, 4vw, 34px);
    }
}

@media (max-width: 520px) {
    .cta {
        padding: 50px 0;
    }

    .cta__container {
        max-width: 100%;
    }

    .cta__title {
        font-size: 22px;
        line-height: 1.25;
    }
}

/* =========================
   SECTION 7 — LEARN
========================= */

.learn {
    padding: 90px 0;
    background: #fff;
}

.learn__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Title */
.learn__title {
    margin: 0 0 40px;
    font-size: clamp(42px, 4.5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #0b0b0f;
}

/* Layout */
.learn__content {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: stretch;
}

/* LIST */
.learn__list {
    border: 3px solid #7a3cff;
    border-radius: 16px;
    padding: 22px 28px;
}

.learn__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    padding: 18px 0;
}

.learn__item:not(:last-child) {
    border-bottom: 3px solid #7a3cff;
}

.learn__item p {
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 500;
    color: #0b0b0f;
    max-width: 620px;
}

.learn__item span {
    font-size: 18px;
    font-weight: 700;
    color: #0b0b0f;
    opacity: 0.85;
}

/* RESULT CARD */
.learn__result {
    background: #7a3cff;
    border-radius: 16px;
    padding: 26px 24px;

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

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.learn__result p {
    margin: 0;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 500;
    color: #0b0b0f;
    text-align: center;
}

/* CTA */
.learn__cta {
    margin-top: 46px;
    display: flex;
    justify-content: center;
}

/* =========================
   RESPONSIVE
========================= */

/* Laptop */
@media (max-width: 1100px) {
    .learn__content {
        grid-template-columns: 1fr 0.8fr;
    }
}

/* Tablet */
@media (max-width: 900px) {
    .learn__content {
        grid-template-columns: 1fr;
    }

    .learn__result {
        margin-top: 20px;
    }

    .learn__item p {
        font-size: 18px;
    }
}

/* Mobile */
@media (max-width: 520px) {
    .learn {
        padding: 70px 0;
    }

    .learn__title {
        margin-bottom: 30px;
    }

    .learn__list {
        padding: 18px;
    }

    .learn__item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .learn__item span {
        align-self: flex-end;
    }

    .learn__item p {
        font-size: 16px;
    }

    .learn__result p {
        font-size: 16px;
    }

    .learn__cta {
        margin-top: 34px;
    }
}

/* =========================
   INTERACTIVITY PACK
========================= */

/* Sticky header эффект */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    transition: box-shadow .2s ease, background .2s ease;
}

.header.is-scrolled {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Reveal анимация */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease, transform .55s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Ripple на кнопках */
.btn {
    position: relative;
    overflow: hidden;
}

.btn .ripple {
    position: absolute;
    border-radius: 999px;
    transform: scale(0);
    animation: ripple .55s ease-out;
    background: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* Learn hover/active */
.learn__item {
    cursor: pointer;
    transition: transform .12s ease, background-color .12s ease;
}

.learn__item:hover {
    transform: translateY(-1px);
}

.learn__item.is-active {
    background: rgba(122, 60, 255, 0.08);
}

/* =========================
   MODAL (FIXED + VISIBLE)
========================= */

.modal {
    position: fixed;
    inset: 0;
    z-index: 9999;

    /* по умолчанию скрыта */
    display: none;
    opacity: 0;
    pointer-events: none;

    transition: opacity .18s ease;
}

/* когда открыта */
.modal.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* overlay */
.modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .60);
}

/* контент */
.modal__content {
    position: relative;
    z-index: 2;

    max-width: 460px;
    width: calc(100% - 32px);

    margin: 8vh auto 0;
    background: #fff;

    border-radius: 18px;
    padding: 28px;

    box-shadow: 0 30px 80px rgba(0, 0, 0, .25);

    transform: translateY(10px);
    transition: transform .18s ease;
}

.modal.active .modal__content {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 12px;
    right: 14px;

    width: 40px;
    height: 40px;
    border-radius: 12px;

    border: none;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.06);
    font-size: 28px;
    line-height: 1;
}

.modal__title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.modal__subtitle {
    margin: 0 0 18px;
    color: #555;
    line-height: 1.4;
}

/* =========================
   MODAL FORM (PREMIUM)
========================= */

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    color: #6b6b78;
}

.form-group input {
    height: 52px;
    padding: 0 16px;
    border-radius: 12px;
    border: 2px solid #e4e4ee;
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #7a3cff;
    box-shadow: 0 0 0 3px rgba(122, 60, 255, .15);
}

.input-error {
    border-color: #ff4d4f !important;
}

.field-error {
    font-size: 12px;
    color: #ff4d4f;
    display: none;
}

.field-error.show {
    display: block;
}

/* Alert */
.form-alert {
    background: rgba(255, 77, 79, 0.10);
    border-radius: 12px;
    padding: 14px;
    font-size: 14px;
    color: #b00020;
}

.form-alert-title {
    font-weight: 700;
    margin-bottom: 6px;
}

/* Loader */
.btn-spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    animation: spin .7s linear infinite;
    display: none;
}

.btn.loading .btn-label {
    display: none;
}

.btn.loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* =========================
   FORM INTERACTIVITY
========================= */

.lead-form {
    --ok: #22c55e;
    --err: #ff4d4f;
    --ring: rgba(122, 60, 255, .18);
    --ring-ok: rgba(34, 197, 94, .18);
}

/* Progress */
.form-progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(122, 60, 255, .10);
    overflow: hidden;
    margin-bottom: 6px;
}

.form-progress__bar {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #7a3cff;
    transition: width .22s ease;
}

/* field states */
.form-group {
    position: relative;
}

.form-group.is-valid input {
    border-color: var(--ok);
    box-shadow: 0 0 0 3px var(--ring-ok);
}

.form-group.is-invalid input {
    border-color: var(--err) !important;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, .14);
}

/* little “check” badge */
.form-group .field-badge {
    position: absolute;
    right: 12px;
    top: 34px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 14px;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .15s ease, transform .15s ease;
}

.form-group.is-valid .field-badge {
    opacity: 1;
    transform: scale(1);
    background: rgba(34, 197, 94, .15);
    color: var(--ok);
}

.form-group.is-invalid .field-badge {
    opacity: 1;
    transform: scale(1);
    background: rgba(255, 77, 79, .12);
    color: var(--err);
}

/* shake on error */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }

    100% {
        transform: translateX(0);
    }
}

.lead-form.is-shaking {
    animation: shake .28s ease;
}

/* fancy focus glow */
.form-group input:focus {
    box-shadow: 0 0 0 4px var(--ring);
}

/* submit hover glow */
.btn-submit {
    position: relative;
}


.btn-submit:hover {
    box-shadow: 0 18px 42px rgba(122, 60, 255, .32);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
}

/* tiny helper text animation */
.field-error.show {
    animation: fadeUp .18s ease;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

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