/* ==========================================================================
   Лендинг 3.0 — главная страница.
   Подключается только на главной (Index.cshtml, @section Styles). Все правила
   внутри .sa-home: класс ставит _Layout, когда страница выставила
   ViewData["IsHome"]. Вход, регистрация, блог и документы этих стилей не видят.
   ========================================================================== */

.sa-home {
    --h-bg: #070707;
    --h-card: #101011;
    --h-line: rgba(255,255,255,.08);
    --h-text: #f5f3f4;
    --h-muted: #9c979b;
    --h-pink: var(--sa-pink, #ff2d7e);
    /* Фон кнопок и плашек с белым текстом — WCAG AA (5,3:1), см. site-v3.css. */
    --h-pink-btn: var(--v3-pink-btn, #d1135f);
    --h-pink-btn-hover: var(--v3-pink-btn-hover, #b80f52);
    --h-glow: rgba(255,45,126,.4);
    --h-gold: #f2c75c;
    --h-gold-soft: #ffe7a0;
    --h-gold-deep: #a9791f;
    --h-gold-glow: rgba(242,199,92,.28);
    --f-display: 'Unbounded', 'Manrope', sans-serif;
    background: var(--h-bg);
}

/* ---------- Общие элементы ---------- */

.sa-home .h-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

.sa-home .h-display {
    font-family: 'Unbounded', 'Manrope', sans-serif;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.04;
    text-transform: uppercase;
}

.sa-home .h-pink { color: var(--h-pink); }
.sa-home .h-muted { color: var(--h-muted); }
.sa-home .h-center { margin-top: 32px; text-align: center; }

.sa-home .h-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--h-muted);
}

    .sa-home .h-kicker::before {
        content: "";
        width: 36px;
        height: 1px;
        background: var(--h-pink);
    }

.sa-home .h-lead {
    font-size: 18px;
    line-height: 1.6;
    color: #cfcace;
    max-width: 480px;
}

.sa-home .h-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 999px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: box-shadow .2s ease, border-color .2s ease, color .2s ease, background-color .2s ease;
}

    .sa-home .h-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.sa-home .h-btn--main {
    background: var(--h-pink-btn);
    color: #fff;
}

    .sa-home .h-btn--main:hover { background: var(--h-pink-btn-hover); box-shadow: 0 0 0 8px rgba(255,45,126,.15); }

.sa-home .h-btn--line {
    border: 1px solid rgba(255,255,255,.22);
    color: var(--h-text);
}

    .sa-home .h-btn--line:hover { border-color: var(--h-pink); color: var(--h-pink); }

.sa-home .h-btn--gold {
    color: #171006;
    background: linear-gradient(110deg, var(--h-gold-deep) 0%, var(--h-gold) 30%, var(--h-gold-soft) 48%, var(--h-gold) 66%, var(--h-gold-deep) 100%);
    background-size: 240% 100%;
    box-shadow: 0 0 22px var(--h-gold-glow);
    animation: h-gold-shine 4.2s ease-in-out infinite;
}

    .sa-home .h-btn--gold:hover { box-shadow: 0 0 34px rgba(242,199,92,.45); }

@keyframes h-gold-shine {
    0%, 18%, 100% { background-position: 100% 0; }
    50%, 68% { background-position: 0 0; }
}

.sa-home .h-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.sa-home .h-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--h-text);
    border-bottom: 1px solid var(--h-pink);
    font-weight: 600;
}

/* ---------- 1. Первый экран ---------- */

.sa-home .h-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: flex-end;
    padding: 140px 0 48px;
    overflow: hidden;
    isolation: isolate;
}

/* Видео по кругу на весь экран, тонированное в фирменный розовый. */
.sa-home .h-hero__video {
    position: absolute;
    inset: 0;
    z-index: -3;
    overflow: hidden;
}

    .sa-home .h-hero__video video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1) brightness(1.35) contrast(1.1);
    }

    .sa-home .h-hero__video::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,45,126,.55), rgba(150,40,255,.35));
        mix-blend-mode: color;
    }

.sa-home .h-hero__glow {
    position: absolute;
    z-index: -4;
    right: 8%;
    top: 10%;
    width: 52vw;
    height: 52vw;
    max-width: 760px;
    max-height: 760px;
    background: radial-gradient(closest-side, rgba(255,45,126,.28), transparent 70%);
    pointer-events: none;
}

.sa-home .h-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7,7,7,.85) 0%, rgba(7,7,7,.6) 38%, rgba(7,7,7,.1) 70%, rgba(7,7,7,.3) 100%),
        linear-gradient(0deg, var(--h-bg) 0%, transparent 34%),
        linear-gradient(180deg, rgba(7,7,7,.85) 0%, transparent 22%);
}

.sa-home .h-hero__grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .09;
    mix-blend-mode: overlay;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


.sa-home .h-hero__content { position: relative; width: 100%; }

.sa-home .h-hero__title {
    font-size: clamp(36px, 4.4vw, 64px);
    max-width: 900px;
    margin: 18px 0 22px;
}

    .sa-home .h-hero__title span { display: block; color: var(--h-pink); }

/* 901–1280 px: карточки справа (.h-stacks, right: 7%, ~230 px шириной) стоят на уровне
   заголовка. Заголовок переносится раньше, чем дойдёт до них: 93vw − карточка − отступы.
   Ниже 901 px карточки скрыты, выше 1280 px места хватает и так. */
@media (min-width: 901px) and (max-width: 1280px) {
    .sa-home .h-hero__title { max-width: min(900px, calc(93vw - 310px)); }
}

.sa-home .h-hero .h-actions { margin: 28px 0 40px; }

.sa-home .h-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--h-line);
}

    .sa-home .h-stats div {
        padding: 22px 24px 0 0;
        margin-right: 24px;
        border-right: 1px solid var(--h-line);
    }

        .sa-home .h-stats div:last-child { border: 0; }

    .sa-home .h-stats b {
        display: block;
        font-family: 'Unbounded', sans-serif;
        font-weight: 700;
        font-size: 34px;
        line-height: 1.1;
    }

    .sa-home .h-stats span { font-size: 13px; color: var(--h-muted); }

/* Работы учеников поверх видео — ведут к блоку работ. */
.sa-home .h-stacks {
    position: absolute;
    right: 7%;
    bottom: 200px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sa-home .h-stack {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px 10px 10px;
    border-radius: 18px;
    background: rgba(16,16,17,.72);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 20px 50px rgba(0,0,0,.45);
    transition: border-color .2s ease;
}

    .sa-home .h-stack:hover { border-color: var(--h-pink); }
    /* Три фото занимают столько же места, сколько значки YouTube и Telegram. */
    .sa-home .h-stack__imgs { position: relative; flex: none; display: block; width: 54px; height: 54px; }

        .sa-home .h-stack__imgs img {
            position: absolute;
            top: 5px;
            left: 0;
            width: 34px;
            height: 44px;
            object-fit: cover;
            border-radius: 8px;
            border: 2px solid #101011;
            transform: rotate(-7deg);
        }

            .sa-home .h-stack__imgs picture:nth-child(2) img { z-index: 1; left: 10px; transform: none; }
            .sa-home .h-stack__imgs picture:nth-child(3) img { left: 20px; transform: rotate(7deg); }

    .sa-home .h-stack b { display: block; font-size: 14px; }
    .sa-home .h-stack span span { font-size: 12px; color: var(--h-muted); }

/* ---------- Секции ---------- */

.sa-home .h-sec {
    position: relative;
    padding: 120px 0;
    border-top: 1px solid var(--h-line);
}

.sa-home .h-sec--tight { padding: 48px 0; }

/* Метеоры: блик пробегает по тонкой линии, отделяющей главные этапы
   страницы (обучение, работы, тарифы, финал). Задержки у блоков разные,
   чтобы метеоры не летели одновременно. */
.sa-home .h-meteor { overflow-x: clip; }

    .sa-home .h-meteor::after {
        content: "";
        position: absolute;
        top: -1px;
        left: 0;
        z-index: 2;
        width: 240px;
        height: 1px;
        pointer-events: none;
        background: linear-gradient(90deg, transparent, rgba(255,45,126,.85) 70%, #fff);
        box-shadow: 0 0 8px rgba(255,45,126,.8);
        transform: translateX(-260px);
        animation: h-meteor 11s linear var(--meteor-delay, 0s) infinite;
    }

@keyframes h-meteor {
    0% { transform: translateX(-260px); }
    28%, 100% { transform: translateX(calc(100vw + 20px)); }
}

/* Заголовок блока: метка → заголовок → описание сразу под ним, слева. */
.sa-home .h-head {
    max-width: 760px;
    margin-bottom: 56px;
}

    .sa-home .h-head p { max-width: 560px; margin-top: 16px; font-size: 16px; line-height: 1.65; }

.sa-home .h-head--sub { margin: 80px 0 40px; }

.sa-home .h-title {
    font-size: clamp(30px, 3.8vw, 54px);
    margin-top: 16px;
}

.sa-home .h-title--sm { font-size: clamp(24px, 2.8vw, 38px); }

.sa-home .h-note {
    color: var(--h-muted);
    font-size: 15px;
    line-height: 1.7;
}

    .sa-home .h-note b { color: var(--h-text); }
    .sa-home .h-note a { color: var(--h-text); border-bottom: 1px solid var(--h-pink); }

.sa-home .h-note--center { max-width: 640px; margin: 36px auto 0; text-align: center; }

/* Видео о программе (если задан Landing:ProgramVideoUrl). */
.sa-home .h-yt {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 28px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--h-line);
    border-radius: 24px;
    background: var(--h-card);
}

    .sa-home .h-yt img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
    .sa-home .h-yt b { display: block; font-size: 24px; margin: 10px 0; }

/* ---------- 2. Как устроено обучение ---------- */

.sa-home .h-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--h-line);
}

    .sa-home .h-steps li {
        padding: 32px 28px 8px 0;
        margin-right: 28px;
        border-right: 1px solid var(--h-line);
    }

        .sa-home .h-steps li:last-child { border: 0; margin: 0; }

    .sa-home .h-steps h3 { font-size: 20px; margin: 18px 0 14px; }
    .sa-home .h-steps p { color: var(--h-muted); font-size: 15px; line-height: 1.7; }

.sa-home .h-steps__num {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 14px;
    color: var(--h-pink);
}

.sa-home .h-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

    .sa-home .h-tags span {
        padding: 6px 12px;
        border: 1px solid var(--h-line);
        border-radius: 999px;
        font-size: 12px;
        color: var(--h-muted);
    }

/* ---------- 3. Как выглядит обучение внутри ---------- */

.sa-home .h-inside {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 56px;
    align-items: start;
}

.sa-home .h-inside__media {
    border-radius: 24px;
    border-color: rgba(255,45,126,.35);
}

.sa-home .h-point {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 22px 0;
    border-bottom: 1px solid var(--h-line);
}

    .sa-home .h-point:first-child { padding-top: 0; }
    .sa-home .h-point > span { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--h-pink); }
    .sa-home .h-point h3 { font-size: 17px; margin-bottom: 6px; }
    .sa-home .h-point p { color: var(--h-muted); font-size: 15px; line-height: 1.65; }

.sa-home .h-inside__left .h-note { margin-top: 22px; }

/* ---------- 4. Работы ---------- */

.sa-home .h-works__lane { margin: 0; padding: 0 28px; }

    .sa-home .h-works__lane .sa-works__card {
        width: 240px;
        border: 0;
        border-radius: 18px;
    }

.sa-home .h-works__lane--mine .sa-works__card { width: 200px; }

/* ---------- 5. Отзывы ---------- */

/* Запас сверху и снизу: карточка при наведении приподнимается и не должна
   уходить под край ленты. */
.sa-home .sa-reviews__marquee { margin: 0; padding: 16px 28px; }

.sa-home .h-review {
    width: 340px;
    min-height: 280px;
    border-radius: 22px;
    background: var(--h-card);
    border-color: var(--h-line);
}

    .sa-home .h-review:hover { border-color: rgba(255,45,126,.5); }

/* ---------- 6. Тарифы ---------- */

.sa-home .h-plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--h-line);
    border-radius: 28px;
    overflow: hidden;
}

.sa-home .h-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 36px 32px;
    background: var(--h-card);
    border-right: 1px solid var(--h-line);
}

    .sa-home .h-plan:last-child { border-right: 0; }
    /* Скругление у каждой карточки своё: золотая рамка MENTOR PRO+ идёт по
       скруглённому краю, а не обрезается углом общей рамки. */
    .sa-home .h-plan:first-child { border-radius: 28px 0 0 28px; }
    .sa-home .h-plan:last-child { border-radius: 0 28px 28px 0; }
    .sa-home .h-plan h3 { font-size: 24px; }

    .sa-home .h-plan ul {
        list-style: none;
        margin: 0 0 32px;
        padding: 0;
        display: grid;
        gap: 12px;
        flex: 1;
        align-content: start;
    }

    .sa-home .h-plan li {
        position: relative;
        padding-left: 22px;
        font-size: 15px;
        line-height: 1.5;
    }

        .sa-home .h-plan li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 11px;
            width: 10px;
            height: 1px;
            background: var(--h-pink);
        }

        .sa-home .h-plan li.is-off { color: #5f5b5e; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.18); }
            .sa-home .h-plan li.is-off::before { background: #3a3739; }

    .sa-home .h-plan .h-btn { width: 100%; }

.sa-home .h-plan__tag {
    align-self: flex-start;
    margin-bottom: 26px;
    padding: 6px 12px;
    border: 1px solid var(--h-line);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--h-muted);
}

.sa-home .h-plan__price {
    margin: 22px 0 6px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 64px;
    line-height: 1;
}

    .sa-home .h-plan__price sup {
        margin-right: 4px;
        font-size: 22px;
        vertical-align: top;
        color: var(--h-muted);
    }

    /* Рубли под долларами — внутри блока цены, чтобы не добавлять строку в сетку карточек. */
    .sa-home .h-plan__rub {
        display: block;
        margin-top: 10px;
        font-family: 'Manrope', sans-serif;
        font-weight: 700;
        font-size: 17px;
        line-height: 1.3;
        color: var(--h-text);
        /* Рубли — вторичная цена: чуть тусклее долларов. */
        opacity: .62;
        text-shadow: none;
    }

.sa-home .h-plan__note {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--h-line);
    font-size: 13px;
    color: var(--h-muted);
}

.sa-home .h-plan--hit {
    background: linear-gradient(180deg, rgba(255,45,126,.16), rgba(255,45,126,.03) 60%), var(--h-card);
    box-shadow: inset 0 0 0 1px var(--h-pink);
}

    .sa-home .h-plan--hit .h-plan__tag { background: var(--h-pink-btn); border-color: var(--h-pink-btn); color: #fff; }

/* MENTOR PRO+ — золото как на текущем сайте. */
.sa-home .h-plan--vip {
    isolation: isolate;
    background:
        radial-gradient(circle at 82% 8%, rgba(242,199,92,.13), transparent 38%),
        linear-gradient(180deg, rgba(242,199,92,.06), var(--h-card) 46%),
        var(--h-card);
    box-shadow: inset 0 0 0 1px rgba(242,199,92,.4);
}

    .sa-home .h-plan--vip::before {
        content: "";
        position: absolute;
        inset: 0;
        padding: 1.5px;
        border-radius: inherit;
        pointer-events: none;
        background: conic-gradient(from var(--h-vip-angle), transparent 0 34%, var(--h-gold-soft) 43%, var(--h-gold) 49%, transparent 57% 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        animation: h-vip-border 4.6s linear infinite;
    }

    .sa-home .h-plan--vip .h-plan__tag {
        background: linear-gradient(110deg, var(--h-gold-deep), var(--h-gold-soft), var(--h-gold));
        border-color: transparent;
        color: #171006;
        box-shadow: 0 0 22px var(--h-gold-glow);
    }

    .sa-home .h-plan--vip h3 { color: var(--h-gold-soft); }
    .sa-home .h-plan--vip .h-plan__price { color: var(--h-gold); text-shadow: 0 0 22px var(--h-gold-glow); }
    .sa-home .h-plan--vip .h-plan__price sup { color: var(--h-gold-soft); }
    /* В VIP рубли того же золота, что и доллары, но так же приглушены. */
    .sa-home .h-plan--vip .h-plan__rub { color: var(--h-gold); opacity: .8; }
    .sa-home .h-plan--vip .h-plan__note { border-bottom-color: rgba(242,199,92,.35); }
    .sa-home .h-plan.h-plan--vip li::before { background: var(--h-gold); }

@property --h-vip-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes h-vip-border {
    to { --h-vip-angle: 360deg; }
}

.sa-home .h-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 22px;
    padding: 22px 28px;
    border: 1px dashed rgba(255,255,255,.14);
    border-radius: 20px;
    color: var(--h-muted);
}

/* ---------- 7. Даниил ---------- */

/* Фото слева на всю высоту блока, справа растворяется в темноту и не
   доходит до текста. */
.sa-home .h-about { padding-top: 0; overflow: hidden; }

.sa-home .h-about__intro {
    position: relative;
    isolation: isolate;
    padding: 120px 0;
}

.sa-home .h-about__photo {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    width: 62%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 22%;
    opacity: .9;
    /* Мягкий край со всех сторон, кроме левой: фото чуть заходит под текст. */
    -webkit-mask-image:
        linear-gradient(90deg, #000 30%, transparent 92%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(90deg, #000 30%, transparent 92%),
        linear-gradient(180deg, transparent 0%, #000 16%, #000 80%, transparent 100%);
    mask-composite: intersect;
}

.sa-home .h-about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}

.sa-home .h-about__text p { color: #cfcace; font-size: 16px; line-height: 1.75; margin-top: 16px; }
    .sa-home .h-about__text p b { color: var(--h-text); }

.sa-home .h-why {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--h-line);
}

    .sa-home .h-why > div {
        padding: 28px 28px 0 0;
        margin-right: 28px;
        border-right: 1px solid var(--h-line);
    }

        .sa-home .h-why > div:last-child { border: 0; margin: 0; }

    .sa-home .h-why h3 { font-size: 17px; margin-bottom: 10px; }
    .sa-home .h-why p { color: var(--h-muted); font-size: 15px; line-height: 1.65; }

/* «Честный разговор»: чат в стиле Telegram. */
.sa-home .h-honest {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
    margin-top: 72px;
}

    .sa-home .h-honest__head p { margin-top: 16px; }

.sa-home .h-chat {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    border: 1px solid var(--h-line);
    border-radius: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 0%, rgba(255,45,126,.08), transparent 45%),
        #0d0d0e;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.sa-home .h-chat__bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--h-line);
    background: rgba(255,255,255,.02);
}

    .sa-home .h-chat__bar img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
    .sa-home .h-chat__bar b { display: block; font-size: 15px; }
    .sa-home .h-chat__bar span { font-size: 12px; color: var(--h-muted); }

/* Без JavaScript вопросы и ответы видны списком. */
.sa-home .h-chat__static { list-style: none; margin: 0; padding: 18px; display: grid; gap: 18px; }
    .sa-home .h-chat__static p { margin-top: 6px; color: var(--h-muted); font-size: 15px; line-height: 1.6; }
.sa-home .h-chat.is-live .h-chat__static { display: none; }

.sa-home .h-chat__log {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px;
    overflow-y: auto;
    max-height: 420px;
    scroll-behavior: smooth;
}

.sa-home .h-chat__msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    animation: h-chat-in .25s ease;
}

.sa-home .h-chat__msg--in { align-self: flex-start; background: #1f1f22; border-bottom-left-radius: 6px; }
.sa-home .h-chat__msg--out { align-self: flex-end; background: var(--h-pink-btn); color: #fff; border-bottom-right-radius: 6px; }

.sa-home .h-chat__typing { display: inline-flex; gap: 4px; padding: 14px; }

    .sa-home .h-chat__typing i {
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: var(--h-muted);
        animation: h-chat-dot 1s infinite ease-in-out;
    }

        .sa-home .h-chat__typing i:nth-child(2) { animation-delay: .15s; }
        .sa-home .h-chat__typing i:nth-child(3) { animation-delay: .3s; }

.sa-home .h-chat__choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px 18px;
    border-top: 1px solid var(--h-line);
}

    .sa-home .h-chat__choices[hidden] { display: none; }

.sa-home .h-chat__hint {
    width: 100%;
    margin-bottom: 2px;
    font-size: 12px;
    color: var(--h-muted);
    text-align: right;
}

.sa-home .h-chat__choice {
    padding: 10px 16px;
    min-height: 44px;
    border: 1px solid rgba(255,45,126,.55);
    border-radius: 999px;
    background: rgba(255,45,126,.08);
    color: var(--h-text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

    .sa-home .h-chat__choice:hover { background: rgba(255,45,126,.22); }
    .sa-home .h-chat__choice--pulse { animation: h-chat-pulse 1.8s ease-in-out infinite; }

.sa-home .h-chat__actions { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; }
    .sa-home .h-chat__actions .h-btn { min-height: 44px; padding: 0 20px; font-size: 14px; }

@keyframes h-chat-in { from { opacity: 0; transform: translateY(6px); } }
@keyframes h-chat-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes h-chat-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,45,126,.45); } 50% { box-shadow: 0 0 0 10px rgba(255,45,126,0); } }

/* Бесконечные анимации вне экрана стоят на паузе: класс v3-offscreen
   ставит site-v3.js, на экране анимация идёт как обычно. */
.sa-home .h-meteor.v3-offscreen::after,
.sa-home .h-plan--vip.v3-offscreen::before,
.sa-home .h-btn--gold.v3-offscreen,
.sa-home .v3-offscreen .h-chat__choice--pulse { animation-play-state: paused; }

/* ---------- 8. FAQ ---------- */

.sa-home .h-faq {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}

.sa-home .h-faq__head { position: sticky; top: 110px; }
    .sa-home .h-faq__head p { margin: 16px 0 28px; }

.sa-home .h-actions--stack { flex-direction: column; align-items: stretch; max-width: 340px; }

.sa-home .h-faq__list { border-top: 1px solid var(--h-line); }
    .sa-home .h-faq__list .sa-faq__item { border-bottom-color: var(--h-line); }

/* ---------- 9. Сертификат ---------- */

.sa-home .h-cert__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 64px;
    align-items: start;
}

    .sa-home .h-cert__grid .h-muted { margin-top: 18px; max-width: 520px; line-height: 1.7; }

.sa-home .h-cert__steps { display: grid; gap: 14px; margin-top: 32px; }

    .sa-home .h-cert__steps div {
        display: grid;
        grid-template-columns: 48px 1fr;
        gap: 12px;
        padding: 18px 0;
        border-top: 1px solid var(--h-line);
    }

    .sa-home .h-cert__steps span { font-family: 'Unbounded', sans-serif; font-weight: 700; color: var(--h-pink); }

/* Веер из трёх копий примера; подпись по центру под ним. */
.sa-home .h-cert__visual { margin: 0; display: flex; flex-direction: column; align-items: center; }

.sa-home .h-cert__fan {
    position: relative;
    width: min(100%, 460px);
    aspect-ratio: 1.15 / 1;
}

.sa-home .h-cert__card {
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 58%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 30px 70px rgba(0,0,0,.6);
    transform-origin: 50% 100%;
    transition: transform .4s ease;
}

.sa-home .h-cert__card--left { transform: translateX(-50%) rotate(-14deg) translateX(-18%); filter: brightness(.6); }
.sa-home .h-cert__card--right { transform: translateX(-50%) rotate(14deg) translateX(18%); filter: brightness(.6); }
.sa-home .h-cert__card--main { transform: translateX(-50%) rotate(-2deg); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,45,126,.15); }

.sa-home .h-cert__fan:hover .h-cert__card--left { transform: translateX(-50%) rotate(-18deg) translateX(-24%); }
.sa-home .h-cert__fan:hover .h-cert__card--right { transform: translateX(-50%) rotate(18deg) translateX(24%); }

.sa-home .h-cert__visual figcaption { margin-top: 56px; font-size: 13px; color: var(--h-muted); text-align: center; }

/* ---------- 10. Финал ---------- */

.sa-home .h-final {
    position: relative;
    overflow: hidden;
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 120px 0;
    border-top: 1px solid var(--h-line);
    isolation: isolate;
}

    .sa-home .h-final video {
        position: absolute;
        inset: 0;
        z-index: -2;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 30%;
        opacity: .9;
        filter: brightness(1.6) contrast(1.05);
    }

    .sa-home .h-final::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        background:
            linear-gradient(90deg, rgba(7,7,7,.9) 0%, rgba(7,7,7,.55) 45%, rgba(7,7,7,0) 80%),
            linear-gradient(0deg, var(--h-bg), transparent 25%),
            linear-gradient(180deg, var(--h-bg), transparent 25%);
    }

.sa-home .h-final__content { width: 100%; }

    .sa-home .h-final__content h2 {
        max-width: 760px;
        margin: 18px 0 20px;
        font-size: clamp(32px, 4.4vw, 64px);
    }

    .sa-home .h-final__content .h-actions { margin-top: 30px; }

/* ---------- Блог ---------- */

.sa-home .h-blog__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sa-home .h-blog__card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    border: 1px solid var(--h-line);
    border-radius: 22px;
    background: var(--h-card);
    transition: border-color .2s ease;
}

    .sa-home .h-blog__card:hover { border-color: rgba(255,45,126,.5); }
    .sa-home .h-blog__card time { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--h-muted); }
    .sa-home .h-blog__card h3 { font-size: 19px; line-height: 1.35; }
    .sa-home .h-blog__card p { flex: 1; color: var(--h-muted); font-size: 15px; line-height: 1.6; }

.sa-home .h-blog__more { color: var(--h-pink); font-weight: 700; font-size: 14px; }

.sa-home .h-sticky { display: none; }

/* ---------- Адаптивность ---------- */

@media (max-width: 1100px) {
    .sa-home .h-steps,
    .sa-home .h-why { grid-template-columns: repeat(2, 1fr); }

        .sa-home .h-steps li:nth-child(2n),
        .sa-home .h-why > div:nth-child(2n) { border-right: 0; margin-right: 0; }

    .sa-home .h-inside,
    .sa-home .h-faq,
    .sa-home .h-honest { grid-template-columns: 1fr; gap: 40px; }

    .sa-home .h-faq__head { position: static; }
}

@media (max-width: 900px) {
    .sa-home .h-wrap { padding: 0 18px; }

    /* Первый экран: видео сверху, текст ниже на тёмном фоне. */
    .sa-home .h-hero {
        min-height: auto;
        flex-direction: column;
        align-items: stretch;
        padding: 0 0 32px;
    }

    .sa-home .h-hero__video {
        position: relative;
        inset: auto;
        width: 100%;
        height: 58vh;
        margin-bottom: -110px;
        -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
        mask-image: linear-gradient(0deg, transparent 0%, #000 45%);
    }

    .sa-home .h-hero__shade { background: linear-gradient(180deg, rgba(7,7,7,.8) 0%, transparent 14%); }

    .sa-home .h-stacks { display: none; }

    .sa-home .h-hero__glow { right: -20%; top: 0; width: 120vw; height: 120vw; }

    .sa-home .h-hero__title { font-size: 34px; margin: 14px 0 16px; }
    .sa-home .h-lead { font-size: 16px; }
    .sa-home .h-hero .h-actions { margin: 24px 0 32px; }
    .sa-home .h-actions .h-btn { flex: 1 1 100%; }

    .sa-home .h-stats { grid-template-columns: repeat(2, 1fr); }

        .sa-home .h-stats div { padding: 16px 0; margin: 0; border-right: 0; }
        .sa-home .h-stats b { font-size: 26px; }

    .sa-home .h-sec { padding: 72px 0; }

    .sa-home .h-head { margin-bottom: 32px; }

    .sa-home .h-head--sub { margin: 56px 0 28px; }

    .sa-home .h-steps,
    .sa-home .h-why { grid-template-columns: 1fr; }

        .sa-home .h-steps li,
        .sa-home .h-why > div { padding: 24px 0; margin: 0; border-right: 0; border-bottom: 1px solid var(--h-line); }

    .sa-home .h-works__lane,
    .sa-home .sa-reviews__marquee { padding: 0 18px; }

        .sa-home .h-works__lane .sa-works__card { width: 180px; border-radius: 14px; }
        .sa-home .h-works__lane--mine .sa-works__card { width: 160px; }

    .sa-home .h-review { width: 290px; }

    .sa-home .h-plans { grid-template-columns: 1fr; gap: 16px; border: 0; overflow: visible; }

    .sa-home .h-plan,
    .sa-home .h-plan:first-child,
    .sa-home .h-plan:last-child { border: 1px solid var(--h-line); border-radius: 22px; padding: 30px 24px; }
        .sa-home .h-plan:last-child { border-right: 1px solid var(--h-line); }

    .sa-home .h-plan--hit { order: -1; }
    .sa-home .h-plan__price { font-size: 52px; }

    .sa-home .h-help { flex-direction: column; align-items: stretch; text-align: center; padding: 22px 18px; }

    .sa-home .h-about__grid,
    .sa-home .h-cert__grid { grid-template-columns: 1fr; gap: 32px; }

    /* «Обо мне»: фото сверху во всю ширину, растворяется вниз в текст. */
    .sa-home .h-about__intro { padding: 0 0 56px; }
    .sa-home .h-about__photo { position: relative; width: 100%; height: 70vh; max-height: 560px; margin-bottom: -140px; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 45%); mask-image: linear-gradient(0deg, transparent 0%, #000 45%); }
    .sa-home .h-about__spacer { display: none; }
    .sa-home .h-chat { min-height: 420px; }
    .sa-home .h-chat__msg { max-width: 90%; }
    .sa-home .h-blog__list { grid-template-columns: 1fr; }

    .sa-home .h-actions--stack { max-width: none; }

    .sa-home .h-yt { grid-template-columns: 1fr; }

    .sa-home .h-final { min-height: auto; padding: 88px 0; }

        .sa-home .h-final::before { background: linear-gradient(0deg, rgba(7,7,7,.95) 10%, rgba(7,7,7,.55) 100%); }
        .sa-home .h-final__content h2 { font-size: 30px; }

    /* Закреплённая полоса: «Выбрать тариф» + Telegram. */
    .sa-home .h-sticky {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 450;
        display: flex;
        gap: 10px;
        padding: 8px;
        border-radius: 999px;
        background: rgba(16,16,17,.92);
        backdrop-filter: blur(12px);
        border: 1px solid var(--h-line);
        transform: translateY(140%);
        transition: transform .35s ease;
    }

        .sa-home .h-sticky.is-visible { transform: none; }
        .sa-home .h-sticky .h-btn--main { flex: 1; min-height: 48px; }
        .sa-home .h-sticky__tg { width: 48px; min-height: 48px; padding: 0; }

    .sa-home .sa-to-top { right: 16px; bottom: 16px; }
    .sa-home.has-sticky .sa-to-top { bottom: 86px; }
}

@media (prefers-reduced-motion: reduce) {
    .sa-home .h-btn--gold,
    .sa-home .h-plan--vip::before,
    .sa-home .h-chat__choice--pulse,
    .sa-home .h-chat__typing i,
    .sa-home .h-chat__msg { animation: none; }

    .sa-home .h-sticky,
    .sa-home .h-cert__card { transition: none; }

    .sa-home .h-meteor::after { display: none; }
}


/* ---------- Landing 3.1 ---------- */

.sa-home .h-stack__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; color: #fff; }
    .sa-home .h-stack__icon svg { width: 28px; height: 28px; }
.sa-home .h-stack__icon--yt { background: #f00; }
.sa-home .h-stack__icon--tg { background: #229ed9; }

.sa-home .h-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sa-home .h-link-card { display: flex; gap: 20px; padding: 24px; border: 1px solid var(--h-line); border-radius: 22px; background: var(--h-card); transition: border-color .2s ease; }
    .sa-home .h-link-card:hover { border-color: var(--h-pink); }
    .sa-home .h-link-card > img { width: 132px; height: 100%; min-height: 165px; object-fit: cover; object-position: top; border-radius: 14px; }
    .sa-home .h-link-card > span { display: flex; flex-direction: column; gap: 10px; }
    .sa-home .h-link-card b { font-size: 20px; }
    .sa-home .h-link-card .h-muted { font-size: 14px; line-height: 1.6; }
.sa-home .h-link-card__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #ff4d4d; }
    .sa-home .h-link-card__brand svg { width: 22px; height: 22px; }
.sa-home .h-link-card__brand--tg { color: #4cb8ea; }
.sa-home .h-link-card__brand--pink { color: var(--h-pink); }
.sa-home .h-link-card__go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--h-text); }

.sa-home .h-steps--path { grid-template-columns: repeat(3, 1fr); row-gap: 8px; }
    .sa-home .h-steps--path li:nth-child(3n) { border-right: 0; margin-right: 0; }

.sa-home .h-plan__more { margin-bottom: 20px; }
    .sa-home .h-plan__more summary { cursor: pointer; padding: 12px 0; font-weight: 700; color: var(--h-pink); }
    .sa-home .h-plan--vip .h-plan__more summary { color: var(--h-gold-soft); }
    .sa-home .h-plan__more p { margin: 8px 0 14px; color: #cfcace; font-size: 14px; line-height: 1.65; }
.sa-home .h-plan__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .sa-home .h-plan__facts span { padding: 6px 12px; border: 1px solid var(--h-line); border-radius: 999px; font-size: 12px; }
.sa-home .h-plan .h-plan__plus { font-weight: 700; color: var(--h-text); }
.sa-home .h-plan .h-modules { display: block; margin: 0; padding: 0 0 0 22px; list-style: decimal; border: 0; }
    .sa-home .h-plan .h-modules li { display: list-item; margin: 0 0 12px; padding: 0; font-size: 13px; line-height: 1.55; color: var(--h-muted); }
        .sa-home .h-plan .h-modules li::before { content: none; }
    .sa-home .h-plan .h-modules b { display: block; color: var(--h-text); }
.sa-home .h-plan .h-btn { margin-top: auto; }

/* Строки карточек общие: «Что я получу» и раскрытый текст начинаются на одной высоте. */
@media (min-width: 901px) {
    .sa-home .h-plan { display: grid; grid-row: span 7; grid-template-rows: subgrid; grid-template-columns: minmax(0, 1fr); }
    .sa-home .h-plan__tag { justify-self: start; }
    .sa-home .h-cert__visual { margin-top: -3px; }
}

/* Длинные ответы не обрезаются лимитом высоты из landing.css. */
.sa-home .h-faq__list .sa-faq__item.is-open .sa-faq__a { max-height: 600px; }

@media (max-width: 1100px) {
    .sa-home .h-links { grid-template-columns: 1fr 1fr; }
    .sa-home .h-link-card--yt { grid-column: 1 / -1; }
    .sa-home .h-steps--path { grid-template-columns: repeat(2, 1fr); }
        .sa-home .h-steps--path li:nth-child(3n) { border-right: 1px solid var(--h-line); margin-right: 28px; }
        .sa-home .h-steps--path li:nth-child(2n) { border-right: 0; margin-right: 0; }
}

@media (max-width: 900px) {
    .sa-home .h-links { grid-template-columns: 1fr; }
    .sa-home .h-steps--path { grid-template-columns: 1fr; }
        .sa-home .h-steps--path li,
        .sa-home .h-steps--path li:nth-child(3n) { border-right: 0; margin-right: 0; }
    .sa-home .h-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Путь ученика: при прокрутке линия рисуется от карточки к карточке, и они появляются. */
.sa-home .h-path { position: relative; }
.sa-home .h-steps.h-steps--path { gap: 28px; border-top: 0; }
    .sa-home .h-steps.h-steps--path li:nth-child(n) { margin: 0; padding: 22px 24px; border: 1px solid var(--h-line); border-radius: 18px; background: var(--h-card); transition: border-color .35s ease, box-shadow .35s ease; }
    .sa-home .h-steps--path h3 { margin: 12px 0 10px; }
    .sa-home .h-steps--path p { margin: 0; }

.sa-home .h-path-links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
    .sa-home .h-path-links path { fill: none; stroke-width: 2; stroke-linejoin: round; }
.sa-home .h-path-links__draw { stroke: var(--h-pink); stroke-dasharray: 1 1; stroke-dashoffset: 1; }

.sa-home .h-steps.h-steps--path li:nth-child(n) { transition: opacity .5s ease, transform .5s ease, border-color .4s ease, box-shadow .4s ease; }
.sa-home .h-path.is-path li { opacity: 0; transform: translateY(12px); }
.sa-home .h-path.is-path li.is-reached { opacity: 1; transform: none; }
.sa-home .h-steps.h-steps--path li.is-reached:nth-child(n) { border-color: rgba(255,45,126,.35); }
.sa-home .h-steps.h-steps--path li.is-current:nth-child(n) { border-color: var(--h-pink); box-shadow: 0 0 22px rgba(255,45,126,.18); }
