/* ===========================================================
   DeFi Security Guide — Lead Magnet Landing
   Консистентен с основным лендингом /new-landing/index.html
   - Шрифты Inter, PT Mono (self-hosted, переиспользуются из ../landing/fonts)
   - Цветовая палитра — те же токены (--ink, --lime, --ink-3)
   - Шапка с логотипом «DeFi-БАЗА», sticky-поведение
   - Дизайн собран под viewport 1400px (контейнер 1240px) — по спецификации
   =========================================================== */

/* -----------------------------------------------------------
   Self-hosted fonts — переиспользуем файлы из ../landing/fonts
   (никаких внешних CDN, тот же набор, что и на основном лендинге)
----------------------------------------------------------- */

/* Inter 400 / 500 / 600 / 700 — cyrillic + latin */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/inter-400-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/inter-400-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../../fonts/inter-500-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../../fonts/inter-500-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../../fonts/inter-600-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../../fonts/inter-600-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../../fonts/inter-700-cyrillic.de93fdc85e3d.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../../fonts/inter-700-latin.260c81a4759b.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* PT Mono 400 — единственный доступный вес в проекте.
   font-weight: 700 на этом шрифте синтезируется браузером (тот же приём,
   что и в основном лендинге — поведение остаётся консистентным). */
@font-face {
    font-family: 'PT Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/pt-mono-400-cyrillic.6669881bc10b.woff2") format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'PT Mono';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../../fonts/pt-mono-400-latin.b1a08a87c076.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* -----------------------------------------------------------
   Reset & base
----------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* -----------------------------------------------------------
   Design tokens — единая палитра с основным лендингом
----------------------------------------------------------- */
:root {
    /* Базовые цвета — те же, что в основном лендинге */
    --bg:           #E9E9E7;            /* фон страницы (совпадает с --color-bg главного лендинга) */
    --ink:          rgb(0, 0, 0);
    --ink-2:        rgb(9, 9, 11);
    --ink-3:        rgb(47, 47, 49);
    --ink-4:        rgb(95, 95, 99);
    --white:        rgb(255, 255, 255);
    --card:         rgb(255, 255, 255);
    --soft:         rgb(245, 245, 245);
    --line:         rgba(47, 47, 49, 0.1);
    --lime:         rgb(190, 235, 113);
    --lime-2:       rgb(195, 253, 114);
    --tg:           rgb(34, 158, 217);

    /* Радиусы — те же градации */
    --radius-pill:    100px;
    --radius-card-lg: 32px;     /* hero, final CTA */
    --radius-card-md: 20px;     /* author panel, benefit cards */
    --radius-card-sm: 14px;     /* eyebrow, nameplate */

    /* Контейнер — 1240px согласно спецификации прототипа */
    --container-max: 1240px;
    --container-pad:    0;
    --container-pad-md: 32px;
    --container-pad-sm: 20px;

    --transition: 180ms ease;
}

/* -----------------------------------------------------------
   Container (та же сигнатура, что в основном лендинге,
   но с увеличенной max-width под прототип)
----------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--container-pad);
    padding-right: var(--container-pad);
}

/* -----------------------------------------------------------
   Header — повторяет паттерн основного лендинга
   (sticky, белый фон, лого PT Mono 24px, компактный режим при скролле)
----------------------------------------------------------- */
.header {
    height: 80px;
    background: #FFFFFF;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: height var(--transition), box-shadow var(--transition);
}
.header.is-scrolled {
    height: 56px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}
.header.is-scrolled .logo { font-size: 20px; }
.header.is-scrolled .header__nav-link { font-size: 14px; }
.header.is-scrolled .btn--outline {
    padding: 7px 14px;
    font-size: 13px;
}

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

.logo {
    font-family: 'PT Mono', 'Menlo', 'Courier New', monospace;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 0;
    color: var(--ink);
    white-space: nowrap;
    transition: font-size var(--transition);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header__nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    padding: 8px 2px;
    transition: color var(--transition);
    white-space: nowrap;
}
.header__nav-link:hover { color: #3A3A3A; }

/* Outline-кнопка в шапке — паттерн основного лендинга */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 17px;
    line-height: 1;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color var(--transition),
                color var(--transition),
                transform var(--transition),
                box-shadow var(--transition),
                border-color var(--transition),
                padding var(--transition),
                font-size var(--transition);
    user-select: none;
}
.btn--outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid #B8B8B6;
    padding: 10px 18px;
    font-size: 14px;
}
.btn--outline:hover {
    border-color: var(--ink);
    color: var(--ink);
    transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(0); }

/* -----------------------------------------------------------
   Stage — внешний контейнер с верхним и нижним отступом
----------------------------------------------------------- */
.stage {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 0 100px;
    position: relative;
}

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.hero {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-card-lg);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 48px;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}
.hero__col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* Аватарка автора — кружок над eyebrow.
   По умолчанию (десктоп) скрыта; включается на ≤1024px. */
.hero__avatar {
    display: none;
}

/* Eyebrow — pill-таблетка над h1 */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ink);
    color: var(--white);
    padding: 9px 14px;
    border-radius: 14px;
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.02em;
    margin-bottom: 24px;
    align-self: flex-start;
}
.eyebrow__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lime);
    display: inline-block;
    flex: none;
}

/* H1 */
.hero__title {
    margin: 0 0 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 46px;
    line-height: 1.04;
    letter-spacing: -1.2px;
    color: var(--ink);
    text-wrap: pretty;
}
.hero__title .hl {
    position: relative;
    display: inline-block;
    isolation: isolate;
    padding: 0 8px;
}
.hero__title .hl::before {
    content: "";
    position: absolute;
    inset: 6px -4px 4px -4px;
    background: var(--lime);
    border-radius: 10px;
    z-index: -1;
}

/* Subtitle */
.hero__sub {
    margin: 0 0 28px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.5;
    color: var(--ink-3);
    max-width: 560px;
    text-wrap: pretty;
}

/* CTA */
.cta-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    background: var(--lime);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-pill);
    padding: 18px 28px;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 12px 28px rgba(190, 235, 113, 0.42);
}
.cta:hover {
    transform: translateY(-2px);
    background: var(--lime-2);
    box-shadow: 0 18px 36px rgba(190, 235, 113, 0.55);
}
.cta:active { transform: translateY(0); }

/* Лаймовая кнопка в hero — компактная, по контенту */
.hero__cta {
    align-self: flex-start;
    margin-top: 28px;
    white-space: nowrap;
    padding: 18px 56px;
}

/* Полноширинная чёрная кнопка после grid-карточек */
.download-row {
    width: 1240px;
    max-width: 100%;
    margin: 28px auto 0;
}
.cta--full {
    width: 100%;
    justify-content: center;
    padding: 24px 0;
    font-size: 20px;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}
.cta--full:hover {
    background: #000;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
}

/* Пояснение под кнопкой */
.cta-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-3);
    max-width: 500px;
}
.tg-mark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--tg);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;             /* !!! критично — иначе flex сжимает в овал */
}
.tg-mark svg { width: 10px; height: 10px; display: block; }

/* -----------------------------------------------------------
   HERO — author panel (правая колонка)
----------------------------------------------------------- */
.author {
    position: relative;
    border-radius: var(--radius-card-md);
    background: var(--lime);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    align-self: start;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

@supports not (aspect-ratio: 1 / 1) {
    .author {
        height: 0;
        padding-bottom: 100%;
    }
}
/* Halftone backdrop (CSS-only dot pattern с маской градиента) */
.author::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.10) 1px, transparent 1.5px);
    background-size: 9px 9px;
    background-position: 0 0;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.9) 70%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 30%, rgba(0, 0, 0, 0.9) 70%, transparent 100%);
    z-index: 0;
    pointer-events: none;
}

.author__portrait {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.author__portrait img {
    width: 108%;
    margin-left: -2%;
    margin-bottom: 0;
    height: auto;
    display: block;
    filter: contrast(1.05);
}

.author__nameplate {
    position: absolute;
    left: 14px; right: 14px; bottom: 14px;
    z-index: 3;
    background: var(--white);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}
.author__role {
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.author__name {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--ink);
}
.author__bio {
    margin-top: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ink-3);
}

/* -----------------------------------------------------------
   BENEFITS (компактный вторичный блок)
----------------------------------------------------------- */
.section-head {
    width: 1240px;
    max-width: 100%;
    margin: 28px auto 18px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-head h2 {
    margin: 0;
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.section-head::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(47, 47, 49, 0.18);
}

.grid-benefits {
    width: 1240px;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bcard {
    background: var(--card);
    border-radius: var(--radius-card-md);
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}
.bcard__num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    flex: none;
}
.bcard__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.bcard__tag {
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
}
.bcard__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.32;
    letter-spacing: -0.2px;
    color: var(--ink);
    text-wrap: pretty;
}

/* -----------------------------------------------------------
   FINAL CTA — повтор конверта на чёрном фоне
----------------------------------------------------------- */
.final-cta {
    width: 1240px;
    max-width: 100%;
    margin: 48px auto 0;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-card-lg);
    padding: 56px 64px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
/* Лаймовое свечение в правом верхнем углу */
.final-cta::before {
    content: "";
    position: absolute;
    width: 720px;
    height: 720px;
    right: -260px;
    top: -360px;
    background: radial-gradient(closest-side, rgba(190, 235, 113, 0.22), transparent 70%);
    z-index: -1;
    pointer-events: none;
}
/* Сетка из тонких линий */
.final-cta::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 80%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 80%);
    z-index: -1;
    pointer-events: none;
}

.final-cta__title {
    margin: 0 0 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 44px;
    line-height: 1.06;
    letter-spacing: -1.2px;
    color: var(--white);
    text-wrap: pretty;
}
.final-cta__title .hl {
    position: relative;
    display: inline-block;
    isolation: isolate;
    padding: 0 8px;
    color: var(--ink);
}
.final-cta__title .hl::before {
    content: "";
    position: absolute;
    inset: 6px -4px 4px -4px;
    background: var(--lime);
    border-radius: 10px;
    z-index: -1;
}
.final-cta__body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
    max-width: 560px;
}

.final-cta__action {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: flex-end;
}
.final-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--lime);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-pill);
    padding: 24px 62px 24px 64px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 18px 40px rgba(190, 235, 113, 0.22);
}
.final-cta__btn:hover {
    transform: translateY(-2px);
    background: var(--lime-2);
    box-shadow: 0 22px 50px rgba(190, 235, 113, 0.36);
}
.final-cta__arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--lime);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.final-cta__arrow svg { width: 16px; height: 16px; display: block; }

.final-cta__btn-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* ===========================================================
   RESPONSIVE
   - desktop: ≥ 1280px → как задумано
   - 1024–1279: ужать колонку фото до 340px, тайтл 40–42px
   - 768–1023:  одна колонка, карточки в 2 колонки
   - < 768:     всё в один столбец
   =========================================================== */

/* Зеркалим брейкпоинты основного лендинга */
@media (max-width: 1279px) {
    .hero,
    .section-head,
    .grid-benefits,
    .final-cta {
        width: auto;
    }
    .stage {
        padding-left: 24px;
        padding-right: 24px;
    }
    .hero {
        grid-template-columns: 1fr 340px;
        gap: 36px;
        padding: 36px 40px;
    }
    .hero__title { font-size: 40px; letter-spacing: -1px; }
    /* .author сохраняет aspect-ratio: 1/1 — высота=ширина колонки */
    .final-cta {
        padding: 48px 48px;
    }
    .final-cta__title { font-size: 38px; }
}

@media (max-width: 1023px) {
    .stage {
        padding-left: var(--container-pad-md);
        padding-right: var(--container-pad-md);
        padding-top: 24px;
    }
    .hero {
        grid-template-columns: 1fr;     /* без правой колонки */
        gap: 28px;
        padding: 32px 28px;
        border-radius: 24px;
    }
    .hero__title { font-size: 36px; line-height: 1.06; }
    .hero__sub  { font-size: 16px; }
    /* На табле и мобилке фото первого экрана полностью убирается */
    .author { display: none; }
    /* Аватарка автора — небольшой кружок над eyebrow */
    .hero__avatar {
        display: block;
        width: 64px;
        height: 64px;
        border-radius: 50%;
        object-fit: cover;
        object-position: center top;
        background: var(--lime);            /* лаймовая подложка под прозрачный PNG, в духе бренда */
        margin: 0 0 16px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }
    .grid-benefits {
        grid-template-columns: repeat(2, 1fr);
    }
    .final-cta {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 40px 32px;
        border-radius: 24px;
    }
    .final-cta__title { font-size: 34px; letter-spacing: -0.6px; }
    .final-cta__action { align-items: flex-start; }
    .final-cta__btn {
        padding: 20px 36px;
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .header { height: 64px; }
    .header__nav-link { display: none; }   /* остаётся только CTA */
    .stage {
        padding-left: var(--container-pad-sm);
        padding-right: var(--container-pad-sm);
        padding-top: 20px;
        padding-bottom: 60px;
    }
    .hero {
        padding: 24px 20px;
        gap: 24px;
        border-radius: 20px;
    }
    .hero__title { font-size: 28px; letter-spacing: -0.5px; }
    .hero__sub { font-size: 15px; max-width: none; }
    .cta {
        width: 100%;
        justify-content: space-between;
        padding: 16px 20px;
        font-size: 16px;
    }
    .cta-row { width: 100%; }
    .grid-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bcard { min-height: 0; padding: 20px; }
    .final-cta {
        padding: 32px 24px;
        gap: 24px;
    }
    .final-cta__title { font-size: 28px; }
    .final-cta__body { font-size: 15px; }
    .final-cta__btn {
        width: 100%;
        justify-content: space-between;
        padding: 18px 24px;
        font-size: 17px;
    }
    .final-cta__action { width: 100%; align-items: stretch; }
    /* тоньше halftone-маска или совсем убрать */
    .author::before {
        -webkit-mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
                mask-image: linear-gradient(180deg, transparent 10%, rgba(0,0,0,0.6) 50%, transparent 100%);
    }
}

/* ===========================================================
   GUIDE MODAL — 3-step lead form
   =========================================================== */
.gmodal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 80px 20px 40px;
    overflow-y: auto;
}
.gmodal.is-open { display: flex; }

.gmodal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.50);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 0;
}

.gmodal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 24px;
    padding: 36px 36px 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 22px;
    /* плавное появление */
    animation: gmodal-in 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes gmodal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* Close button — серый крестик в правом верхнем углу */
.gmodal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0;
    color: rgba(0, 0, 0, 0.45);
    cursor: pointer;
    border-radius: 50%;
    transition: color var(--transition), background-color var(--transition);
}
.gmodal__close:hover {
    color: var(--ink);
    background: rgba(0, 0, 0, 0.06);
}
.gmodal__close:active { background: rgba(0, 0, 0, 0.10); }

/* Шаги модалки */
.gmodal__step {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.gmodal__step[hidden] { display: none; }

.gmodal__title {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -0.5px;
    color: var(--ink);
    text-wrap: pretty;
    padding-right: 32px;     /* чтобы заголовок не подползал под крестик */
}

.gmodal__lead {
    margin: -6px 0 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-3);
}
.gmodal__lead b { font-weight: 600; color: var(--ink); }

/* Форма */
.gmodal__form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
}

/* Поле ввода */
.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.field__label {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    color: var(--ink-3);
}
.field__input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1.5px solid #E4E4E4;
    border-radius: 14px;
    background: var(--white);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: var(--ink);
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
            appearance: none;
}
.field__input::placeholder { color: #B0B0B5; font-weight: 500; }
.field__input:hover  { border-color: #C8C8C8; }
.field__input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}
.field__input.is-invalid {
    border-color: #E5484D;
    box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12);
}
.field__input--code {
    text-align: center;
    letter-spacing: 0.5em;
    font-family: 'PT Mono', monospace;
    font-weight: 700;
    font-size: 22px;
    height: 60px;
    padding-left: 0.5em;     /* компенсирует letter-spacing для центровки */
}
.field__error {
    min-height: 16px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
    color: #E5484D;
}

/* Кастомный чекбокс */
.check {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 12px;
    align-items: start;
    cursor: pointer;
    padding: 2px 0;
}
.check__input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    pointer-events: none;
}
.check__box {
    width: 20px;
    height: 20px;
    border: 1.5px solid #C8C8C8;
    border-radius: 6px;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    flex: none;
    margin-top: 1px;        /* выравнивает по линии текста */
}
.check__input:checked + .check__box {
    background: var(--lime);
    border-color: var(--ink);
    color: var(--ink);
}
.check__input:focus-visible + .check__box {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}
.check__text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.45;
    color: var(--ink-3);
}
.check__text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.check__text a:hover { color: #3A3A3A; }
.check.is-invalid .check__box {
    border-color: #E5484D;
    box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

/* Основная сабмит-кнопка шага */
.gmodal__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 54px;
    margin-top: 6px;
    background: var(--lime);
    color: var(--ink);
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 28px rgba(190, 235, 113, 0.42);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.gmodal__submit:hover {
    transform: translateY(-1px);
    background: var(--lime-2);
    box-shadow: 0 18px 36px rgba(190, 235, 113, 0.55);
}
.gmodal__submit:active { transform: translateY(0); }

/* Тёмный вариант сабмита — для шага 2 */
.gmodal__submit--dark {
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}
.gmodal__submit--dark:hover {
    background: #1A1A1A;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

/* Ряд маленьких ссылок под кнопкой шага 2 */
.gmodal__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}
.gmodal__link {
    background: none;
    border: 0;
    padding: 2px 0;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
    color: var(--ink-3);
    cursor: pointer;
    text-align: left;
    transition: color var(--transition);
}
.gmodal__link:hover:not([disabled]) {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}
.gmodal__link[disabled] {
    color: #B0B0B5;
    cursor: not-allowed;
}
.gmodal__link--right { text-align: right; }

/* ===== Step 3 — success ===== */
.gmodal__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}
.gmodal__success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.gmodal__success-icon svg { width: 28px; height: 28px; }
.gmodal__success .gmodal__title {
    padding-right: 0;
    text-align: center;
}

.gmodal__tg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 60px;
    padding: 16px 28px;
    background: var(--ink);
    color: var(--white);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.20);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.gmodal__tg-btn:hover {
    transform: translateY(-2px);
    background: #1A1A1A;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}
.gmodal__tg-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--tg);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.gmodal__tg-icon svg { width: 14px; height: 14px; }

.gmodal__hint {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink-3);
    text-align: center;
}

/* ===== Mobile breakpoint ===== */
@media (max-width: 520px) {
    /* Прижимаем диалог к верхнему краю (без stretch),
       по горизонтали центрируем — наследуется justify-content: center.
       Высота диалога — по контенту, никакого белого хвоста снизу. */
    .gmodal {
        padding: 16px 12px 24px;
        align-items: flex-start;
    }
    .gmodal__dialog {
        align-self: center;        /* по горизонтали — по центру */
        height: auto;              /* высота — строго по контенту */
        max-height: none;
        padding: 28px 22px 24px;
        border-radius: 20px;
        gap: 18px;
    }
    .gmodal__title { font-size: 22px; }
    .gmodal__close { top: 12px; right: 12px; }
    .field__input { height: 48px; font-size: 16px; }
    .field__input--code { font-size: 20px; height: 56px; }
    .gmodal__submit { height: 52px; font-size: 16px; }
    .gmodal__tg-btn { font-size: 16px; min-height: 56px; }
}

/* -----------------------------------------------------------
   Футер
----------------------------------------------------------- */
.footer {
    background: #000000;
    color: #FFFFFF;
    margin-top: 80px;
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    column-gap: 32px;
    row-gap: 16px;
    padding-top: 18px;
    padding-bottom: 24px;
    min-height: 90px;
}

.footer__col--brand {
    font-family: 'PT Mono', 'Menlo', 'Courier New', monospace;
    font-size: 35.75px;
    line-height: 39.33px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    align-self: center;
}

.footer__col--links {
    font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 26px;
    font-weight: 500;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    color: #FFFFFF;
    text-decoration: none;
}

.footer__social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__social-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

@media (max-width: 960px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
        row-gap: 16px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .footer__col--brand {
        grid-column: 1 / -1;
        font-size: 28px;
        line-height: 1.1;
    }
}

@media (max-width: 640px) {
    .footer__inner {
        grid-template-columns: 1fr;
        row-gap: 14px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .footer__col--brand {
        grid-column: auto;
        font-size: 26px;
    }
    .footer__inner > div:empty {
        display: none;
    }
}

