/* ──────────────────────────────────────────────────────────────
   SpaceX VPN — landing styles  (v5 — premium/космос)
   Монохромная база + тонкий космический акцент. Без внешних шрифтов
   (system stack + font-feature-settings для premium-вида).
   ────────────────────────────────────────────────────────────── */

:root {
    --bg:        #000000;
    --bg-1:      #0a0e1a;        /* глубокий космический синий */
    --bg-2:      #11131c;
    --bg-3:      #1a1d2a;
    --line:      #262a38;
    --fg:        #ffffff;
    --fg-dim:    #c4c8d4;
    --fg-mute:   #7a8090;
    --accent:    #ffffff;
    --accent-glow: rgba(120, 140, 255, .08);
    --radius:    18px;
    --radius-sm: 10px;
    --maxw:      1180px;
    --pad:       clamp(16px, 4vw, 40px);
    --fs-hero:   clamp(3rem, 10vw, 6.5rem);
    --fs-h2:     clamp(1.9rem, 4.2vw, 3rem);
    --fs-body:   clamp(1rem, 1.1vw, 1.075rem);
    --fs-sm:     0.875rem;
    --ease:      cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    letter-spacing: -.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ── читаемость белого текста на фоне ярких колец ЧД ──────── */
/* Тонкая тёмная обводка + мягкая тень — как у hero h1, но аккуратнее.
   Применяется ко всем текстовым элементам; более специфичные правила
   (например .hero h1) переопределяют это для своих случаев. */
h1, h2, h3, h4, h5, h6,
p, li, summary, span, strong, em, code, small,
.nav-links a, .nav-cta, .brand,
.hero .sub, .hero-meta, .hero-badge,
.section-head p, .section-head h2,
.card h3, .card p, .card .ico,
.tariff .name, .tariff .price, .tariff .per, .tariff li,
.faq-item summary, .faq-item .ans,
.foot-brand p, .foot-col a, .foot-col h4,
.loc, .chip, .badge, .eyebrow,
.demo-cell p, .demo-cell h4,
.mtp-compare .cell,
.dl-checklist li, .download-card p, .download-card h3, .download-card .meta,
.btn-big, .btn-block, .hero-cta,
.steps li strong, .steps li span {
    text-shadow:
      0 1px 2px rgba(0, 0, 0, .85),
      0 0 12px rgba(0, 0, 0, .55);
}

/* Кнопки на белом фоне с чёрным текстом — тень не нужна (читаемо и так) */
.btn-big, .btn-block.solid, .hero-cta, .nav-cta, .btn-block.accent {
    text-shadow: none;
}

/* ── 3D background canvas ── */
#bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    display: block;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
      radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 60%),
      radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.38) 55%, rgba(0,0,0,.85) 100%);
}

/* ── layout primitives ── */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--pad);
    padding-right: var(--pad);
}

section { padding: clamp(60px, 9vw, 120px) 0; position: relative; }

/* ── top nav ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    background: rgba(0, 0, 0, .55);
    border-bottom: 1px solid var(--line);
}
.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    font-size: 1.05rem;
}
.brand .logo {
    width: 26px; height: 26px;
    flex: none;
}
.nav-links {
    display: none;
    gap: 28px;
    list-style: none;
}
.nav-links a {
    color: var(--fg-dim);
    font-size: var(--fs-sm);
    transition: color .2s var(--ease);
}
.nav-links a:hover { color: var(--fg); }
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 600;
    font-size: var(--fs-sm);
    transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.nav-cta:hover {
    transform: translateY(-1px);
    opacity: .95;
    box-shadow: 0 6px 24px rgba(255, 255, 255, .14);
}
.burger {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
}
.burger span {
    width: 22px; height: 2px;
    background: var(--fg);
    transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 60px 0 auto 0;
    background: rgba(0, 0, 0, .96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 20px var(--pad);
    z-index: 49;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    color: var(--fg-dim);
    font-size: 1.05rem;
}
.mobile-menu a:last-child { border: 0; }

/* ── hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px var(--pad) 60px;
}
.hero-inner { max-width: 880px; }
/* Fade-in при загрузке — гарантирует видимость hero даже без scroll-события.
   app.js scroll-обработчик дальше управляет opacity при скролле. */
.hero-inner {
    animation: heroFadeIn .8s var(--ease) .15s both;
}
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero h1 {
    font-size: var(--fs-hero);
    line-height: 1.0;
    letter-spacing: -.03em;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow:
      0 0 24px rgba(0, 0, 0, .75),
      0 0 60px rgba(0, 0, 0, .45),
      0 0 90px rgba(120, 140, 255, .12),
      0 2px 0 rgba(0, 0, 0, .6);
}
.hero .sub {
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    color: var(--fg-dim);
    margin-bottom: 38px;
    font-weight: 400;
    letter-spacing: .01em;
    text-shadow: 0 0 24px rgba(0, 0, 0, .75);
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--fg);
    color: var(--bg);
    border-radius: 999px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    animation: ctaPulse 3s var(--ease) infinite;
}
.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, .22);
}
.hero-cta .arrow { transition: transform .2s var(--ease); }
.hero-cta:hover .arrow { transform: translateX(4px); }
.hero-meta {
    margin-top: 26px;
    color: var(--fg-mute);
    font-size: var(--fs-sm);
    text-shadow: 0 0 18px rgba(0, 0, 0, .8);
}
.hero-meta span { color: var(--fg-dim); }

.hero-badge {
    display: inline-block;
    padding: 5px 14px;
    background: rgba(120, 140, 255, .12);
    border: 1px solid rgba(120, 140, 255, .35);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: #c8d0ff;
    letter-spacing: .04em;
    margin-bottom: 22px;
    text-shadow: none;
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); }
}

/* scroll cue — premium-вариант */
.scroll-cue {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--fg-mute);
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .7;
    animation: cueBob 2.4s var(--ease) infinite;
    pointer-events: none;
}
.scroll-cue .mouse {
    width: 22px; height: 36px;
    border: 1.5px solid var(--fg-mute);
    border-radius: 12px;
    position: relative;
}
.scroll-cue .mouse::after {
    content: "";
    position: absolute;
    top: 7px; left: 50%;
    width: 3px; height: 7px;
    background: var(--fg-dim);
    border-radius: 2px;
    transform: translateX(-50%);
}
@keyframes cueBob {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: .7; }
    50% { transform: translateX(-50%) translateY(6px); opacity: .4; }
}

/* ── section heading ── */
.section-head {
    text-align: center;
    margin-bottom: clamp(36px, 6vw, 64px);
}
.section-head h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -.015em;
    margin-bottom: 12px;
    text-shadow: 0 0 30px rgba(120, 140, 255, .12);
}
.section-head p { color: var(--fg-dim); max-width: 640px; margin: 0 auto; }

/* ── feature grid ── */
.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}
@media (min-width: 560px)  { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px)  { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 880px)  { .grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 880px)  { .grid.cols-6 { grid-template-columns: repeat(3, 1fr); } }

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 29, 42, .65), rgba(10, 14, 26, .65));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.card:hover {
    transform: translateY(-3px);
    border-color: rgba(120, 140, 255, .35);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .08),
      0 12px 40px var(--accent-glow);
}
.card .ico {
    width: 40px; height: 40px;
    margin-bottom: 16px;
    color: var(--fg);
    opacity: .92;
}
.card h3 {
    font-size: 1.12rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: -.005em;
}
.card p { color: var(--fg-dim); font-size: .95rem; }

/* ── locations ── */
.locations {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .95rem;
    color: var(--fg-dim);
    transition: color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.loc:hover {
    color: var(--fg);
    border-color: rgba(120, 140, 255, .35);
    transform: translateY(-1px);
}
.loc .flag { font-size: 1.3rem; line-height: 1; }

/* ── tariffs ── */
.tariffs {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    max-width: 920px;
    margin: 0 auto;
}
@media (min-width: 760px) { .tariffs { grid-template-columns: repeat(3, 1fr); } }

.tariff {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 29, 42, .75), rgba(10, 14, 26, .75));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px 26px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.tariff.featured { border-color: rgba(120, 140, 255, .5); }
.tariff.featured::before {
    content: "Хит";
    position: absolute;
    top: 18px; right: 18px;
    background: var(--fg);
    color: var(--bg);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.tariff.free::before {
    content: "Бесплатно";
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(120, 200, 140, .15);
    color: #7fe0a0;
    border: 1px solid rgba(120, 200, 140, .4);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
}
.tariff .name {
    font-size: 1rem;
    color: var(--fg-dim);
    margin-bottom: 8px;
}
.tariff .price {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 4px;
}
.tariff .price .cur { font-size: 1.2rem; font-weight: 600; opacity: .7; margin-left: 2px; }
.tariff .price.free-label { color: #7fe0a0; }
.tariff .per { color: var(--fg-mute); font-size: var(--fs-sm); margin-bottom: 22px; }
.tariff ul {
    list-style: none;
    margin-bottom: 26px;
}
.tariff li {
    padding: 8px 0;
    color: var(--fg-dim);
    border-top: 1px solid var(--line);
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.tariff li:first-child { border-top: 0; }
.tariff li .check {
    color: var(--fg);
    flex: none;
}
.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-block.solid {
    background: var(--fg);
    color: var(--bg);
}
.btn-block.solid:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, .18);
}
.btn-block.ghost {
    border: 1px solid var(--line);
    color: var(--fg);
}
.btn-block.ghost:hover { border-color: rgba(120, 140, 255, .4); }
.btn-block.accent {
    background: rgba(120, 140, 255, .15);
    color: #c8d0ff;
    border: 1px solid rgba(120, 140, 255, .35);
}
.btn-block.accent:hover {
    background: rgba(120, 140, 255, .22);
    transform: translateY(-1px);
}

/* period chips */
.periods {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 36px;
}
.chip {
    padding: 10px 18px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .85rem;
    color: var(--fg-dim);
}
.chip strong { color: var(--fg); font-weight: 700; margin-left: 6px; }
.chip .disc {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(120, 140, 255, .15);
    border-radius: 999px;
    font-size: .72rem;
    color: #c8d0ff;
}

/* ── steps / how-to ── */
.tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px;
    max-width: 460px;
    margin: 0 auto 36px;
}
.tab {
    flex: 1;
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--fg-dim);
    font-size: .9rem;
    text-align: center;
    transition: background .2s var(--ease), color .2s var(--ease);
}
.tab.active { background: var(--fg); color: var(--bg); font-weight: 600; }
.tab-panels { max-width: 720px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.steps { list-style: none; counter-reset: step; }
.steps li {
    position: relative;
    padding: 18px 0 18px 56px;
    border-bottom: 1px solid var(--line);
    counter-increment: step;
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 16px;
    width: 36px; height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--fg);
    font-size: .9rem;
}
.steps li strong { display: block; margin-bottom: 4px; }
.steps li span { color: var(--fg-dim); font-size: .92rem; }

/* ── desktop page / download ── */
.download-card {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(26, 29, 42, .8), rgba(10, 14, 26, .8));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 44px 32px;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.download-card .os-badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .8rem;
    color: var(--fg-dim);
    margin-bottom: 18px;
}
.download-card h3 { font-size: 1.7rem; margin-bottom: 10px; letter-spacing: -.01em; }
.download-card p { color: var(--fg-dim); margin-bottom: 26px; }
.btn-big {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: var(--fg);
    color: var(--bg);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.08rem;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease);
    box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.btn-big:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px rgba(255, 255, 255, .22);
}
.btn-big .dl-arrow { animation: dlBob 1.8s var(--ease) infinite; }
@keyframes dlBob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(2px); }
}
.download-card .meta {
    margin-top: 18px;
    color: var(--fg-mute);
    font-size: var(--fs-sm);
}
.dl-safe {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 5px 12px;
    background: rgba(120, 200, 140, .1);
    border: 1px solid rgba(120, 200, 140, .3);
    border-radius: 999px;
    font-size: .76rem;
    color: #9fe6b8;
}

.dl-progress {
    margin-top: 18px;
    height: 6px;
    width: 100%;
    max-width: 360px;
    margin-left: auto; margin-right: auto;
    background: var(--bg-2);
    border-radius: 999px;
    overflow: hidden;
    display: none;
}
.dl-progress.active { display: block; }
.dl-progress .bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #c8d0ff, #ffffff);
    border-radius: 999px;
    transition: width .2s var(--ease);
}

.dl-checklist {
    list-style: none;
    text-align: left;
    max-width: 380px;
    margin: 22px auto 0;
}
.dl-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: var(--fg-dim);
    font-size: .92rem;
}
.dl-checklist .check { color: #7fe0a0; flex: none; }

/* ── MTProto comparison ── */
.mtp-compare {
    max-width: 920px;
    margin: 0 auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(26, 29, 42, .6), rgba(10, 14, 26, .6));
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.mtp-compare .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
}
.mtp-compare .row:last-child { border-bottom: 0; }
.mtp-compare .row.head {
    background: var(--bg-2);
    font-weight: 700;
    font-size: 1rem;
    color: var(--fg);
}
.mtp-compare .cell {
    padding: 18px 22px;
    border-right: 1px solid var(--line);
    font-size: .94rem;
    color: var(--fg-dim);
}
.mtp-compare .cell:last-child { border-right: 0; }
.mtp-compare .row.head .cell { color: var(--fg); font-size: 1rem; }
.mtp-compare .cell.bad { color: var(--fg-mute); }
.mtp-compare .cell.good {
    color: var(--fg);
    background: rgba(120, 200, 140, .04);
}
.mtp-compare .cell .tag {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    margin-right: 8px;
    vertical-align: middle;
}
.mtp-compare .cell.bad .tag { background: rgba(255, 100, 120, .15); color: #ff8a99; }
.mtp-compare .cell.good .tag { background: rgba(120, 200, 140, .18); color: #7fe0a0; }

@media (max-width: 640px) {
    .mtp-compare .row { grid-template-columns: 1fr; }
    .mtp-compare .cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 18px; }
    .mtp-compare .cell:last-child { border-bottom: 0; }
    .mtp-compare .row.head { display: none; }
    .mtp-compare .cell::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--fg-mute);
        margin-bottom: 4px;
        font-weight: 600;
    }
}

/* ── tech badges strip ── */
.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 30px;
}
.badge {
    padding: 8px 16px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: .82rem;
    color: var(--fg-dim);
    font-family: ui-monospace, "SF Mono", Consolas, monospace;
    transition: border-color .2s var(--ease), color .2s var(--ease);
}
.badge:hover { color: var(--fg); border-color: rgba(120, 140, 255, .35); }

/* ── demo block (до/после) ── */
.demo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 760px;
    margin: 0 auto;
}
@media (max-width: 640px) { .demo-row { grid-template-columns: 1fr; } }
.demo-cell {
    background: linear-gradient(180deg, rgba(26, 29, 42, .65), rgba(10, 14, 26, .65));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.demo-cell .demo-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.demo-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    border: 1px solid var(--line);
}
.demo-cell.before .demo-icon { background: rgba(255, 100, 120, .08); border-color: rgba(255,100,120,.25); filter: grayscale(.6); opacity: .55; }
.demo-cell.after .demo-icon { background: rgba(120, 200, 140, .1); border-color: rgba(120,200,140,.3); }
.demo-cell h4 { font-size: 1rem; margin-bottom: 6px; }
.demo-cell p { font-size: .85rem; color: var(--fg-mute); }
.demo-cell.before h4 { color: #ff8a99; }
.demo-cell.after h4 { color: #7fe0a0; }

/* ── FAQ accordion ── */
.faq {
    max-width: 760px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--line);
}
.faq-item summary {
    cursor: pointer;
    padding: 22px 0;
    font-size: 1.05rem;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
    flex: none;
    width: 24px; height: 24px;
    position: relative;
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
    content: "";
    position: absolute;
    background: var(--fg);
    top: 50%; left: 0;
    transform: translateY(-50%);
    transition: transform .2s var(--ease);
}
.faq-item summary .plus::before { width: 100%; height: 2px; }
.faq-item summary .plus::after  { width: 2px; height: 100%; left: 50%; transform: translate(-50%, -50%); }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-item .ans {
    padding: 0 0 22px 0;
    color: var(--fg-dim);
    font-size: .98rem;
    max-width: 640px;
}

/* ── footer ── */
footer {
    border-top: 1px solid var(--line);
    padding: 50px 0 36px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(14px);
}
footer .container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
}
@media (min-width: 720px) {
    footer .container { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}
.foot-brand { max-width: 320px; }
.foot-brand .brand { margin-bottom: 10px; }
.foot-brand p { color: var(--fg-mute); font-size: var(--fs-sm); }
.foot-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}
@media (min-width: 560px) { .foot-cols { grid-template-columns: repeat(3, 1fr); } }
.foot-col h4 {
    font-size: .8rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--fg-mute);
    margin-bottom: 14px;
}
.foot-col a {
    display: block;
    padding: 6px 0;
    color: var(--fg-dim);
    font-size: .92rem;
    transition: color .2s var(--ease);
}
.foot-col a:hover { color: var(--fg); }
.foot-bottom {
    border-top: 1px solid var(--line);
    margin-top: 40px;
    padding-top: 22px;
    color: var(--fg-mute);
    font-size: var(--fs-sm);
    text-align: center;
}

/* ── utilities ── */
.center { text-align: center; }
.mt-40 { margin-top: 40px; }
.mt-30 { margin-top: 30px; }
.muted { color: var(--fg-mute); }
.dim   { color: var(--fg-dim); }
.eyebrow {
    display: inline-block;
    font-size: .74rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #9aa0c0;
    margin-bottom: 12px;
    font-weight: 600;
}

/* ── reveal on scroll ── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.in {
    opacity: 1;
    transform: none;
}

/* ── noscript fallback ── */
.noscript-bg {
    background: radial-gradient(ellipse at 50% 40%, #1c1f2a 0%, #050510 70%, #000 100%);
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-cue { display: none; }
    .hero-cta { animation: none; }
}
