/* ============================================================
   Xavfsiz Edu — публичный лендинг (v2, после дизайн-конференции)
   Тёмная тема, индиго/фиолет, Inter variable, vanilla CSS.
   Перф-бюджет: только transform/opacity в движении,
   blur-блобы только на десктопе, backdrop-filter только на .nav.
   ============================================================ */

:root {
    --bg0: #08070f;
    --bg1: #0d0c1a;
    --surface: rgba(255, 255, 255, .035);
    --surface2: rgba(255, 255, 255, .065);
    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --text: #f4f4fb;
    --text-soft: rgba(226, 230, 255, .66);
    --text-dim: rgba(230, 233, 248, .56);
    --ind: #6366f1;
    --ind-soft: #a5b4fc;
    --vio: #8b5cf6;
    --cyan: #22d3ee;
    --green: #34d399;
    --live: #f43f5e;
    --grad-btn: linear-gradient(120deg, #6366f1, #8b5cf6);
    --marker: linear-gradient(120deg, #818cf8, #67e8f9);
    /* «сигнальная диагональ» — фирменный мотив разметки 45° */
    --hazard: repeating-linear-gradient(45deg, rgba(103, 232, 249, .65) 0 5px, transparent 5px 11px);
    --shadow-card: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px -8px rgba(8, 6, 26, .5), 0 32px 80px -24px rgba(8, 6, 26, .7);
    --radius: 16px;
    --nav-h: 72px;
    --ease-out: cubic-bezier(.22, 1, .36, 1);       /* E1 — тексты */
    --ease-soft: cubic-bezier(.16, 1, .3, 1);        /* E2 — крупные объекты */
    --ease-pop: cubic-bezier(.34, 1.56, .64, 1);     /* E3 — мелочь с overshoot */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
/* Lenis: пока он ведёт скролл, нативная плавность должна быть выключена */
html.lenis, html.lenis body { height: auto; }
html.lenis, .lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

::selection { background: rgba(139, 92, 246, .4); }

:focus-visible { outline: 2px solid #818cf8; outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-feature-settings: 'cv11' 1, 'ss03' 1; }

/* ---------- Хедер ---------- */

.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    height: var(--nav-h);
    display: flex; align-items: center;
    transition: background .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.nav.scrolled {
    background: rgba(9, 8, 18, .74);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--border);
}
.nav-inner {
    width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 650; letter-spacing: -.02em; }
.logo b { color: var(--ind-soft); font-weight: 800; }
.logo-mark {
    width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
    background: var(--grad-btn);
    display: flex; align-items: center; justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 18px rgba(99, 102, 241, .4);
}
.logo-mark svg { width: 22px; height: 22px; stroke: #fff; }

.nav-links { display: flex; gap: 26px; margin-left: 10px; }
.nav-links a { position: relative; font-size: 14.5px; color: var(--text-soft); font-weight: 480; transition: color .2s; padding: 6px 0; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
    background: var(--ind-soft); border-radius: 1px;
    transform: scaleX(0); transform-origin: right;
    transition: transform .22s cubic-bezier(.65, 0, .35, 1);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang-switch {
    font-size: 13px; font-weight: 600; color: var(--text-soft);
    padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px;
    transition: color .2s, border-color .2s; line-height: 1;
}
.lang-switch:hover { color: var(--text); border-color: var(--border-strong); }
.lang-switch .lang-full { display: inline; }
.lang-switch .lang-short { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 620; border-radius: 12px; transition: transform .18s cubic-bezier(.2, 0, .2, 1), border-color .2s, background .2s; cursor: pointer; position: relative; }
.btn:active { transform: scale(.97); transition-duration: .08s; }

.btn-login {
    padding: 12px 20px; font-size: 14px; line-height: 1;
    background: var(--grad-btn); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 4px 20px rgba(99, 102, 241, .35);
}
.btn-login:hover { transform: translateY(-1px); }

/* бургер: только якоря, ≤1020 */
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; align-items: center; justify-content: center; }
.burger svg { width: 20px; height: 20px; stroke: var(--text-soft); }
.mobile-menu {
    display: none;
    position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
    background: rgba(10, 9, 20, .97);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 16px;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 13px 4px; font-size: 15.5px; color: var(--text-soft); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.mobile-menu a:last-child { border-bottom: 0; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 0 84px;
    /* один ключевой источник света — прямо в фоне, без blur-элементов */
    background:
        radial-gradient(900px 600px at 18% -10%, rgba(99, 102, 241, .2), transparent 65%),
        radial-gradient(700px 500px at 88% 20%, rgba(139, 92, 246, .1), transparent 60%),
        var(--bg0);
    contain: paint;
}

/* приглушённые блобы — только десктоп */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; animation: fadeIn 1.2s linear forwards; }
.aurora i {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: .3;
    will-change: transform;
    animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { width: 520px; height: 520px; left: -140px; top: -110px; background: radial-gradient(circle, rgba(99, 102, 241, .4), transparent 65%); }
.aurora i:nth-child(2) { width: 560px; height: 560px; right: -200px; top: 16%; background: radial-gradient(circle, rgba(139, 92, 246, .3), transparent 65%); animation-delay: -11s; animation-duration: 31s; }
@keyframes drift {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(50px, 34px) scale(1.1); }
    100% { transform: translate(-34px, -26px) scale(.95); }
}
@keyframes fadeIn { to { opacity: 1; } }

.grid-overlay {
    position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .026) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .026) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
}

/* зерно-плёнка: только hero, тайл 128px */
.grain {
    position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.hero-inner {
    position: relative;
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px;
    align-items: center;
    width: 100%; max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
}

/* входная хореография hero: чистый CSS, работает и без JS */
@keyframes riseIn { from { opacity: 0; transform: translateY(var(--rise, 16px)); } to { opacity: 1; transform: none; } }
.hero-copy > * { opacity: 0; animation: riseIn .6s var(--ease-out) forwards; }
.hero-copy .badge     { --rise: 12px; animation-delay: .08s; animation-duration: .5s; }
.hero-copy h1         { --rise: 18px; animation-delay: .16s; animation-duration: .65s; }
.hero-copy .lead      { --rise: 16px; animation-delay: .24s; }
.hero-copy .cta-row   { --rise: 14px; animation-delay: .32s; animation-duration: .55s; }
.hero-copy .cta-note  { --rise: 10px; animation-delay: .38s; animation-duration: .5s; }
.hero-copy .trust-row { --rise: 10px; animation-delay: .42s; animation-duration: .5s; }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; font-weight: 560; color: var(--text-soft);
    background: var(--surface); border: 1px solid var(--border);
    padding: 7px 16px; border-radius: 100px; margin-bottom: 24px;
}
/* broadcast-кольца — единственное место: за live-точкой бейджа */
.badge .dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
.badge .dot::before, .badge .dot::after {
    content: ''; position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(52, 211, 153, .5);
    animation: ring 2.8s var(--ease-soft) infinite;
}
.badge .dot::after { animation-delay: 1.4s; }
@keyframes ring { from { transform: scale(1); opacity: .6; } to { transform: scale(3); opacity: 0; } }

.hero h1 {
    font-size: clamp(35px, 5.6vw, 72px);
    line-height: 1.04; letter-spacing: -.04em; font-weight: 780;
    margin-bottom: 22px;
}
/* маркер-подчёркивание вместо градиент-текста */
.marker {
    background: var(--marker) left 88% / 100% 6px no-repeat;
    border-radius: 3px;
    padding-bottom: 4px;
}

.lead { font-size: 17px; line-height: 1.7; color: var(--text-soft); max-width: 50ch; margin-bottom: 30px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }
.btn-primary {
    padding: 16px 30px; font-size: 15.5px;
    background: var(--grad-btn); color: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .25), 0 8px 28px -6px rgba(99, 102, 241, .5);
    overflow: hidden;
}
.btn-primary:hover { transform: translateY(-2px); }
/* sheen-полоса при наведении */
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .18) 50%, transparent 60%);
    transform: translateX(-150%);
}
.btn-primary:hover::before { animation: sheen .6s ease forwards; }
@keyframes sheen { to { transform: translateX(150%); } }

.btn-ghost {
    padding: 16px 26px; font-size: 15.5px;
    border: 1px solid var(--border-strong); color: var(--text);
    background: var(--surface);
}
.btn-ghost:hover { background: var(--surface2); border-color: rgba(255, 255, 255, .28); }
.btn-ghost .arr { transition: transform .2s var(--ease-out); }
.btn-ghost:hover .arr { transform: translateX(3px); }

.trust-row { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-dim); }
.trust-row svg { width: 16px; height: 16px; stroke: var(--green); flex-shrink: 0; }

/* ---------- Мокап: окно браузера ---------- */

.hero-visual {
    position: relative; perspective: 1400px;
    opacity: 0; animation: visualIn .9s var(--ease-soft) .2s forwards;
}
@keyframes visualIn { from { opacity: 0; transform: translateY(28px) scale(.96); } to { opacity: 1; transform: none; } }

.window {
    background: linear-gradient(var(--bg1), var(--bg1)) padding-box,
                linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)) border-box;
    border: 1px solid transparent;
    border-radius: 18px;
    /* трёхслойная тень + смещённый «второй лист» */
    box-shadow:
        0 1px 2px rgba(0, 0, 0, .4),
        0 12px 32px -8px rgba(8, 6, 26, .55),
        0 44px 100px -24px rgba(8, 6, 26, .75),
        -24px 26px 0 -12px rgba(255, 255, 255, .03);
    overflow: hidden;
}
@media (min-width: 1200px) {
    .hero-visual { width: 112%; }
    .window { transform: rotateY(-4deg) rotateX(2deg); }
}

/* браузерный chrome: продукт работает в браузере — показываем браузер */
.win-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, .02);
}
.win-tab {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11.5px; color: var(--text-soft);
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 12px;
    white-space: nowrap; overflow: hidden; max-width: 44%;
}
.win-tab .tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex-shrink: 0; }
.win-url {
    flex: 1; display: inline-flex; align-items: center; gap: 7px;
    font-size: 11.5px; color: var(--text-dim);
    background: rgba(0, 0, 0, .28);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 12px;
    font-variant-numeric: tabular-nums;
    min-width: 0;
}
.win-url svg { width: 11px; height: 11px; stroke: var(--green); flex-shrink: 0; }
.win-url span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-badge {
    display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .08em;
    color: #fff; background: var(--live);
    padding: 5px 10px; border-radius: 6px;
}
.live-badge i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.win-body { display: grid; grid-template-columns: 1fr 150px; }

.player { padding: 14px; min-width: 0; }
.slide-stage { position: relative; aspect-ratio: 16 / 9.6; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: linear-gradient(150deg, #171a2e, #10121f 70%); }
.slide {
    position: absolute; inset: 0; padding: 18px;
    opacity: 1; transform: none;
    transition: opacity .45s ease, transform .45s ease;
}
.slide.out { opacity: 0; transform: translateX(-10px); }
.slide.in-next { opacity: 0; transform: translateX(10px); }
.slide-glow { position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(139, 92, 246, .2), transparent 55%); pointer-events: none; }
.slide-tag { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--cyan); border: 1px solid rgba(34, 211, 238, .35); border-radius: 5px; padding: 3px 8px; margin-bottom: 12px; }
.slide-title { height: 13px; border-radius: 6px; background: rgba(255, 255, 255, .28); margin-bottom: 14px; }
.slide-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); margin-bottom: 9px; }
.slide .slide-title { width: 72%; }
.slide .l1 { width: 88%; } .slide .l2 { width: 64%; } .slide .l3 { width: 76%; }
.slide.alt .slide-title { width: 58%; }
.slide.alt .l1 { width: 70%; } .slide.alt .l2 { width: 84%; } .slide.alt .l3 { width: 52%; }
.slide-chart { position: absolute; right: 18px; bottom: 16px; display: flex; align-items: flex-end; gap: 6px; height: 52px; }
.slide-chart i { width: 12px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #818cf8, rgba(129, 140, 248, .25)); transform-origin: bottom; animation: equalize 2.6s ease-in-out infinite; }
.slide-chart i:nth-child(1) { height: 40%; animation-duration: 2.2s; }
.slide-chart i:nth-child(2) { height: 75%; animation-delay: .3s; animation-duration: 2.7s; }
.slide-chart i:nth-child(3) { height: 55%; animation-delay: .6s; animation-duration: 3.1s; }
.slide-chart i:nth-child(4) { height: 90%; animation-delay: .9s; animation-duration: 2.4s; }
@keyframes equalize { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.72); } }

.player-controls { display: flex; align-items: center; gap: 12px; padding: 12px 4px 2px; }
.pc-play { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-btn); display: flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.pc-play svg { width: 12px; height: 12px; fill: #fff; margin-left: 1px; }
.pc-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pc-fill {
    height: 100%; width: 100%; border-radius: 3px;
    background: linear-gradient(90deg, var(--ind), var(--cyan));
    transform: scaleX(.35); transform-origin: left;
    transition: transform 5.8s linear;
}
.pc-time { font-size: 10.5px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

.chat { border-left: 1px solid var(--border); display: flex; flex-direction: column; background: rgba(0, 0, 0, .16); min-width: 0; }
.chat-head { font-size: 11px; font-weight: 650; color: var(--text-soft); padding: 11px 12px 8px; border-bottom: 1px solid var(--border); }
.chat-msgs { flex: 1; padding: 10px 10px 4px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.cmsg {
    font-size: 10px; line-height: 1.45; color: var(--text-soft);
    background: var(--surface2); border-radius: 9px; padding: 6px 9px;
    opacity: 0; transform: translateY(8px);
    transition: opacity .4s ease, transform .4s ease;
}
.cmsg b { display: block; font-size: 9px; color: var(--cyan); font-weight: 650; margin-bottom: 1px; }
.cmsg.teacher b { color: #a78bfa; }
.typing {
    display: inline-flex; gap: 3px; align-items: center;
    background: var(--surface2); border-radius: 9px; padding: 8px 10px;
    opacity: 0; transform: translateY(8px);
    transition: opacity .3s ease, transform .3s ease;
    align-self: flex-start;
}
.typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); animation: typing 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }

/* фазы чата: классы вешает JS-машина состояний */
.chat.phase-1 .cmsg:nth-of-type(1),
.chat.phase-2 .cmsg:nth-of-type(1), .chat.phase-3 .cmsg:nth-of-type(1),
.chat.phase-3 .cmsg:nth-of-type(2),
.chat.phase-4 .cmsg:nth-of-type(1), .chat.phase-4 .cmsg:nth-of-type(2), .chat.phase-4 .cmsg:nth-of-type(3) { opacity: 1; transform: none; }
.chat.phase-2 .typing { opacity: 1; transform: none; }
/* без JS чат просто показан целиком */
html:not(.js) .cmsg { opacity: 1; transform: none; }
html:not(.js) .typing { display: none; }

.chat-input { margin: 8px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .07); border: 1px solid var(--border); flex-shrink: 0; }

/* float-карточки прибиты к кромкам окна */
.float-card {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 10px;
    background: rgba(16, 15, 30, .92);
    border: 1px solid var(--border-strong);
    border-radius: 14px; padding: 11px 15px;
    font-size: 13px; font-weight: 600; line-height: 1.3;
    box-shadow: var(--shadow-card);
    opacity: 0;
}
.float-card small { display: block; font-size: 11px; font-weight: 480; color: var(--text-dim); }
.float-card .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-online { left: -26px; top: 64px; animation: popIn .5s var(--ease-pop) .7s forwards; }
.fc-online .ic { background: rgba(99, 102, 241, .18); }
.fc-online .ic svg { width: 18px; height: 18px; stroke: var(--ind-soft); }
.fc-exam { right: -16px; bottom: -20px; animation: popIn .5s var(--ease-pop) .85s forwards; }
.fc-exam .ic { background: rgba(52, 211, 153, .16); }
.fc-exam .ic svg { width: 18px; height: 18px; stroke: var(--green); }
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.9); } to { opacity: 1; transform: none; } }

/* линия горизонта на выходе из hero */
.horizon { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(139, 92, 246, .5) 35%, rgba(34, 211, 238, .5) 65%, transparent); }
.horizon::after { content: ''; position: absolute; inset: -1px 15%; box-shadow: 0 0 26px 2px rgba(139, 92, 246, .3); }

/* ---------- Направления: чипы ---------- */

.dirs { padding: 44px 0 8px; }
.dirs-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dir-chip {
    font-size: 13.5px; font-weight: 520; color: var(--text-soft);
    border: 1px solid var(--border); border-radius: 100px;
    padding: 9px 18px; background: var(--surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.dirs-cta { text-align: center; margin-top: 22px; }
.dirs-cta a { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 620; color: var(--ind-soft); }
.dirs-cta a:hover { color: #c7d2fe; }
.dirs-cta .arr { transition: transform .2s var(--ease-out); }
.dirs-cta a:hover .arr { transform: translateX(3px); }

/* ---------- Общие секции ---------- */

section.block { padding: 92px 0; position: relative; }

/* разделитель секций */
.hairline { height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .1), transparent); }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-eyebrow {
    display: inline-block; position: relative;
    font-size: 11px; font-weight: 650; letter-spacing: .18em; text-transform: uppercase;
    color: rgba(165, 180, 252, .85); margin-bottom: 16px; padding-bottom: 8px;
}
/* сигнальная диагональ №1 — под eyebrow */
.sec-eyebrow::after { content: ''; position: absolute; left: 1px; bottom: 0; width: 34px; height: 3px; border-radius: 2px; background: var(--hazard); }
.sec-head h2 { font-size: clamp(27px, 3.6vw, 42px); letter-spacing: -.03em; line-height: 1.14; font-weight: 760; margin-bottom: 14px; }
.sec-head p { font-size: 16.5px; color: var(--text-soft); }

/* появление при скролле — скрытие только при работающем JS */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease-out), transform .65s var(--ease-out); }
.js .reveal.rv-card { transform: translateY(18px) scale(.96); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Статистика: цифры без карточек ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 10px 28px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 8%; bottom: 8%; width: 1px; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12), transparent); }
.stat b { display: flex; align-items: baseline; gap: 2px; font-size: 46px; font-weight: 680; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; margin-bottom: 6px; line-height: 1.1; }
.stat b em { font-style: normal; font-weight: 400; font-size: 30px; color: var(--cyan); }
.stat span { font-size: 14px; color: var(--text-soft); display: block; max-width: 24ch; }

/* ---------- Шаги + «линия эфира» ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; position: relative; }
/* линия эфира: пунктирный трек с бегущей точкой */
.steps::before {
    content: ''; position: absolute; left: 3%; right: 3%; top: 49px; height: 1px; z-index: 0;
    background: linear-gradient(90deg, rgba(129, 140, 248, .4) 50%, transparent 50%) 0 0 / 12px 1px repeat-x;
}
.steps::after {
    content: ''; position: absolute; top: 46px; left: 0; width: 7px; height: 7px; border-radius: 50%; z-index: 0;
    background: radial-gradient(circle, #67e8f9, rgba(103, 232, 249, 0) 70%);
    animation: signal 9s linear infinite;
}
@keyframes signal { from { transform: translateX(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { transform: translateX(min(88vw, 1080px)); opacity: 0; } }
.step {
    position: relative; z-index: 1;
    background: linear-gradient(var(--bg1), var(--bg1)) padding-box,
                linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03)) border-box;
    border: 1px solid transparent;
    border-radius: var(--radius); padding: 28px 24px 26px;
    overflow: hidden; transition: transform .25s var(--ease-out);
}
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    position: absolute; right: 14px; top: 4px;
    font-size: 64px; font-weight: 800; letter-spacing: -.04em;
    color: rgba(139, 92, 246, .13);
    transition: color .3s;
}
.step:hover { transform: translateY(-4px); }
.step:hover::before { color: rgba(139, 92, 246, .22); }
.step h3 { font-size: 17px; font-weight: 680; margin: 14px 0 8px; letter-spacing: -.015em; }
.step p { font-size: 13.5px; color: var(--text-soft); }
.step .ic { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, rgba(99, 102, 241, .22), rgba(139, 92, 246, .18)); border: 1px solid rgba(139, 92, 246, .3); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease-out); }
.step .ic svg { width: 20px; height: 20px; stroke: var(--ind-soft); }
.step:hover .ic { transform: scale(1.06) rotate(-3deg); }
.steps-cta { margin-top: 34px; }

/* ---------- Возможности (5 карточек) ---------- */

.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.feature {
    grid-column: span 2;
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
    border-radius: var(--radius); padding: 28px 26px;
    overflow: hidden; transition: transform .25s var(--ease-out), border-color .3s;
}
.feature:nth-child(4) { grid-column: 2 / span 2; }
.feature::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(120% 70% at 50% 0%, rgba(139, 92, 246, .07), transparent 55%);
    opacity: 1; transition: opacity .35s; pointer-events: none;
}
.feature::after {
    content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
    background: radial-gradient(120% 80% at 50% 0%, rgba(139, 92, 246, .14), transparent 60%);
}
.feature:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, .45); }
.feature:hover::after { opacity: 1; }
.feature .ic {
    width: 46px; height: 46px; border-radius: 13px;
    background: var(--grad-btn);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 22px rgba(99, 102, 241, .32);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    transition: transform .25s var(--ease-out);
}
.feature:hover .ic { transform: scale(1.06) rotate(-3deg); }
.feature .ic svg { width: 22px; height: 22px; stroke: #fff; }
.feature h3 { font-size: 17.5px; font-weight: 680; letter-spacing: -.015em; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--text-soft); }

/* ---------- Мобильная секция ---------- */

.mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.mob-points { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.mob-point { display: flex; gap: 15px; align-items: flex-start; }
.mob-point .ic { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.mob-point .ic svg { width: 18px; height: 18px; stroke: var(--ind-soft); }
.mob-point b { display: block; font-size: 15.5px; font-weight: 640; margin-bottom: 2px; }
.mob-point span { font-size: 13.5px; color: var(--text-soft); }
.mob-cta { margin-top: 30px; }

.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
    content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(99, 102, 241, .22), transparent 65%);
    z-index: 0;
}
/* Корпус: титановая кромка → чёрная рамка → стекло. Пропорции iPhone 15 Pro
   (корпус ~2.08:1, экран 19.5:9), кнопки по бокам, Dynamic Island, блик стекла. */
.phone {
    position: relative; z-index: 1;
    width: 292px; aspect-ratio: 292 / 606;
    border-radius: 56px;
    padding: 10px;
    /* титан: три тона через переменные (расцветки — .phone.ti-*) */
    --ti-hi: #b9babf; --ti-mid: #7f8087; --ti-lo: #4c4d54;
    background: linear-gradient(160deg, var(--ti-hi) 0%, var(--ti-mid) 22%, var(--ti-lo) 60%, var(--ti-mid) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28), inset 0 0 0 2px rgba(0, 0, 0, .18);
    transform: perspective(1600px) rotateY(var(--ry, -7deg)) rotateX(var(--rx, 1.5deg));
    transform-style: preserve-3d;
    will-change: transform;
}
/* Толщина корпуса: слои-экструзия за лицевой панелью (создаёт landing.js),
   боковые грани темнее к тыльной стороне; тень несёт задняя грань */
.phone-depth {
    position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 1px, transparent 1px 3px),
        linear-gradient(160deg, var(--ti-hi) 0%, var(--ti-mid) 28%, var(--ti-lo) 62%, var(--ti-mid) 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.phone-depth.back {
    background: linear-gradient(160deg, var(--ti-mid), var(--ti-lo));
    box-shadow: 0 50px 90px -30px rgba(0, 0, 0, .9), 0 30px 60px -24px rgba(99, 102, 241, .35);
}
.phone-screen { transform: translateZ(1px); }
/* покачивание в покое — на обёртке, чтобы не спорить с наклоном */
.phone-wrap.in, html:not(.js) .phone-wrap { animation: phone-float 6s ease-in-out .7s infinite; }
.phone-wrap:has(.phone.tracking) { animation-play-state: paused; }
@keyframes phone-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.phone.ti-natural { --ti-hi: #cfccc4; --ti-mid: #9a978f; --ti-lo: #6b6862; }
.phone.ti-black   { --ti-hi: #6f7078; --ti-mid: #3c3d44; --ti-lo: #1c1d22; }
.phone.ti-blue    { --ti-hi: #9aa6bd; --ti-mid: #5d6a85; --ti-lo: #333c50; }
.phone-btn {
    position: absolute; width: 3px; border-radius: 2px;
    background: linear-gradient(90deg, var(--ti-hi), var(--ti-lo));
}
.phone-btn.mute   { left: -3px; top: 104px; height: 22px; }
.phone-btn.vol-up { left: -3px; top: 146px; height: 46px; }
.phone-btn.vol-dn { left: -3px; top: 204px; height: 46px; }
.phone-btn.power  { right: -3px; top: 168px; height: 74px; background: linear-gradient(270deg, var(--ti-hi), var(--ti-lo)); }
.phone-screen {
    position: relative; height: 100%;
    border-radius: 46px; overflow: hidden;
    background: linear-gradient(170deg, #12142a, #0b0c17);
    box-shadow: 0 0 0 7px #05050a, inset 0 0 0 1px rgba(255, 255, 255, .06);
    display: flex; flex-direction: column;
}
.phone-island {
    position: absolute; left: 50%; top: 11px; transform: translateX(-50%);
    width: 90px; height: 26px; border-radius: 14px; background: #000; z-index: 6;
}
.phone-island::after { content: ''; position: absolute; right: 9px; top: 8px; width: 10px; height: 10px; border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #2b3a6b, #05060c 70%); }
.phone-glare {
    position: absolute; inset: -12%; z-index: 5; pointer-events: none; border-radius: inherit;
    background: linear-gradient(112deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .03) 28%, transparent 46%);
}
.ps-status {
    height: 48px; display: flex; align-items: flex-end; justify-content: space-between;
    padding: 0 26px 6px; font-size: 12px; font-weight: 650; color: #fff; letter-spacing: .01em;
}
.ps-status .ps-ico { display: flex; align-items: center; gap: 5px; }
.ps-status .sig { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.ps-status .sig i { width: 3px; background: #fff; border-radius: 1px; }
.ps-status .sig i:nth-child(1) { height: 4px; } .ps-status .sig i:nth-child(2) { height: 6px; }
.ps-status .sig i:nth-child(3) { height: 8px; } .ps-status .sig i:nth-child(4) { height: 10px; }
.ps-status .bat { width: 24px; height: 11px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 3.5px; position: relative; padding: 1.5px; }
.ps-status .bat::before { content: ''; display: block; width: 70%; height: 100%; background: #fff; border-radius: 1.5px; }
.ps-status .bat::after { content: ''; position: absolute; right: -4px; top: 3px; width: 1.5px; height: 4px; background: rgba(255, 255, 255, .5); border-radius: 1px; }
.ps-player { aspect-ratio: 16/9; background: linear-gradient(150deg, #1b1e38, #12142a); position: relative; }
.ps-player .live-badge { position: absolute; left: 10px; top: 10px; font-size: 9px; padding: 3px 8px; }
.ps-player .pc-play { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; }
.ps-title { padding: 12px 14px 4px; }
.ps-title i { display: block; height: 10px; width: 78%; border-radius: 5px; background: rgba(255, 255, 255, .22); margin-bottom: 8px; }
.ps-title em { display: block; height: 7px; width: 46%; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ps-chat { padding: 12px 12px 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; flex: 1; min-height: 0; }
.ps-input { margin: 0 12px 14px; height: 34px; border-radius: 17px; border: 1px solid var(--border); background: rgba(255, 255, 255, .04); display: flex; align-items: center; padding: 0 6px 0 12px; gap: 8px; }
.ps-input i { flex: 1; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.ps-input em { width: 24px; height: 24px; border-radius: 50%; background: var(--grad-btn); flex-shrink: 0; }
.ps-chat .cmsg { opacity: 1; transform: none; }

/* ---------- Удостоверение ---------- */

.cert-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }

.cert-visual { position: relative; display: flex; justify-content: center; }
.cert-visual::before {
    content: ''; position: absolute; inset: 12% 4%; border-radius: 30px;
    background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, .18), transparent 68%);
}
.cert-doc {
    position: relative; width: min(360px, 90%);
    background: linear-gradient(165deg, #fdfdf8, #f1f0e6);
    color: #232323;
    border-radius: 10px; padding: 26px 28px 22px;
    box-shadow: 0 30px 70px rgba(4, 3, 14, .6);
    transform: rotate(-2.5deg);
}
.cert-doc::before { content: ''; position: absolute; inset: 9px; border: 1.5px solid rgba(120, 110, 60, .5); border-radius: 7px; pointer-events: none; }
/* сигнальная диагональ №2 — кромка документа */
.cert-doc::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 13px; height: 3px; border-radius: 2px; background: repeating-linear-gradient(45deg, rgba(168, 148, 64, .5) 0 5px, transparent 5px 11px); }
.cert-crest { width: 40px; height: 40px; margin: 0 auto 10px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d4c47a, #a89440); display: flex; align-items: center; justify-content: center; }
.cert-crest svg { width: 22px; height: 22px; stroke: #fffbe8; }
.cert-title { text-align: center; font-size: 15px; letter-spacing: .18em; font-weight: 760; color: #40391c; margin-bottom: 2px; }
.cert-sub { text-align: center; font-size: 9.5px; letter-spacing: .1em; color: #8b8154; margin-bottom: 16px; }
.cert-line { height: 7px; border-radius: 4px; background: rgba(35, 33, 20, .14); margin-bottom: 9px; }
.cert-line.c1 { width: 82%; } .cert-line.c2 { width: 64%; } .cert-line.c3 { width: 74%; margin-bottom: 20px; }
.cert-bottom { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.cert-qr { width: 54px; height: 54px; border-radius: 6px; background:
    conic-gradient(#2a2a2a 25%, transparent 0 50%, #2a2a2a 0 75%, transparent 0) 0 0 / 18px 18px,
    #e8e6da; border: 4px solid #e8e6da; outline: 1px solid rgba(35, 33, 20, .3); }
.cert-stamp {
    width: 62px; height: 62px; border-radius: 50%;
    border: 2px solid rgba(48, 84, 150, .55); color: rgba(48, 84, 150, .65);
    display: flex; align-items: center; justify-content: center;
    font-size: 7px; font-weight: 700; text-align: center; letter-spacing: .06em;
    transform: rotate(9deg);
}

.cert-copy .checklist { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 30px; }
.cert-copy .checklist li { display: flex; gap: 12px; align-items: flex-start; list-style: none; font-size: 15px; color: var(--text-soft); }
.cert-copy .checklist svg { width: 20px; height: 20px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.cert-copy .checklist b { color: var(--text); font-weight: 620; }
.cert-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }

/* ---------- Организациям ---------- */

.orgs-card {
    position: relative; overflow: hidden;
    border-radius: 24px;
    background:
        radial-gradient(700px circle at 12% -20%, rgba(99, 102, 241, .24), transparent 55%),
        radial-gradient(600px circle at 95% 120%, rgba(34, 211, 238, .1), transparent 55%),
        linear-gradient(var(--bg1), var(--bg1)) padding-box;
    border: 1px solid transparent;
    background-clip: padding-box, padding-box, padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--shadow-card);
    padding: 56px;
    display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center;
}
.orgs-card h2 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; font-weight: 760; margin-bottom: 14px; }
.orgs-card > div > p { font-size: 16px; color: var(--text-soft); max-width: 480px; }
.orgs-points { display: flex; flex-direction: column; gap: 13px; }
.orgs-points span { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--text-soft); }
.orgs-points svg { width: 18px; height: 18px; stroke: var(--cyan); flex-shrink: 0; margin-top: 2px; }
.orgs-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.orgs-note { font-size: 12.5px; color: var(--text-dim); margin-top: 12px; }

/* ---------- FAQ ---------- */

.faq-list { max-width: 760px; }
.faq-item {
    border: 1px solid var(--border); border-radius: 14px;
    background: var(--surface); margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    transition: border-color .3s;
}
.faq-item.open { border-color: rgba(139, 92, 246, .45); }
.faq-q {
    width: 100%; text-align: left;
    display: flex; align-items: center; justify-content: space-between; gap: 18px;
    font-size: 16px; font-weight: 620; padding: 20px 24px;
    border-radius: 14px;
}
.faq-q:hover { background: rgba(255, 255, 255, .03); }
.faq-q svg { width: 18px; height: 18px; stroke: var(--text-dim); flex-shrink: 0; transition: transform .3s var(--ease-out); }
.faq-item.open .faq-q svg { transform: rotate(45deg); stroke: #a78bfa; }
/* раскрытие через grid-rows — плавно в обе стороны; без JS всё открыто */
.faq-a-wrap { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .32s var(--ease-out); }
.js .faq-a-wrap { grid-template-rows: 0fr; }
.js .faq-item.open .faq-a-wrap { grid-template-rows: 1fr; }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 24px 20px; color: var(--text-soft); font-size: 14.5px; }

/* ---------- Финальный CTA ---------- */

.final { text-align: center; padding: 28px 0 108px; }
.final-panel {
    position: relative; overflow: hidden;
    border-radius: 28px;
    background:
        radial-gradient(560px circle at 50% -40%, rgba(139, 92, 246, .35), transparent 65%),
        radial-gradient(800px circle at 50% 130%, rgba(99, 102, 241, .18), transparent 60%),
        var(--bg1);
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), var(--shadow-card);
    padding: 72px 32px;
}
.final-panel h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.03em; font-weight: 780; margin-bottom: 14px; }
.final-panel > p { color: var(--text-soft); font-size: 17px; max-width: 560px; margin: 0 auto 32px; }
.final-panel .cta-row { justify-content: center; }
.final-tel { margin-top: 22px; font-size: 13.5px; color: var(--text-dim); }
.final-tel a { color: var(--text-soft); font-weight: 620; }
.final-tel a:hover { color: var(--text); }

/* ---------- Футер ---------- */

footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: rgba(0, 0, 0, .25); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.foot-brand p { font-size: 13.5px; color: var(--text-dim); max-width: 300px; margin-top: 14px; }
.foot-brand .foot-line { margin-top: 10px; color: var(--text-soft); font-size: 13.5px; }
.foot-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.foot-col a, .foot-col span { display: block; font-size: 14.5px; color: var(--text-soft); margin-bottom: 11px; transition: color .2s; }
.foot-col a { position: relative; width: fit-content; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }

/* ---------- Sticky-CTA (мобайл) ---------- */

.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: none;
    gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(9, 8, 18, .92);
    border-top: 1px solid var(--border);
    transform: translateY(110%);
    transition: transform .3s var(--ease-out);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn-primary { flex: 1; padding: 14px 18px; font-size: 15px; }
.sticky-cta .btn-ghost { padding: 14px 18px; font-size: 15px; }

/* content-visibility на якорных секциях НЕ используем: сбивает позиции
   якорной навигации (#features/#faq из меню). Оставляем только футеру. */
footer { content-visibility: auto; contain-intrinsic-size: auto 500px; }

/* ---------- Адаптив ---------- */

@media (max-width: 1020px) {
    .hero-inner { grid-template-columns: 1fr; gap: 60px; }
    .hero { min-height: auto; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .stat:nth-child(3)::before { display: none; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .steps::before, .steps::after { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature, .feature:nth-child(4) { grid-column: span 1; }
    .feature:nth-child(5) { grid-column: span 2; }
    .mobile-grid, .cert-grid { grid-template-columns: 1fr; gap: 48px; }
    .orgs-card { grid-template-columns: 1fr; padding: 40px 32px; }
    .nav-links { display: none; }
    .burger { display: inline-flex; }
    .lang-switch, .btn-login { padding-top: 12px; padding-bottom: 12px; }
}

@media (max-width: 640px) {
    section.block { padding: 64px 0; }
    .hero { padding-top: calc(var(--nav-h) + 24px); padding-bottom: 64px; }
    .aurora { display: none; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    /* вертикальная «линия эфира» между шагами */
    .steps { grid-template-columns: 1fr; padding-left: 18px; }
    .steps::before { display: block; left: 0; right: auto; top: 4%; bottom: 4%; width: 1px; height: auto; background: linear-gradient(180deg, rgba(129, 140, 248, .4) 50%, transparent 50%) 0 0 / 1px 12px repeat-y; }
    .steps::after { display: block; top: 0; left: -3px; animation: signalV 9s linear infinite; }
    .features-grid { grid-template-columns: 1fr; }
    .feature:nth-child(5) { grid-column: span 1; }
    .win-body { grid-template-columns: 1fr; }
    .chat { display: none; }
    .float-card { display: none; }
    .foot-grid { grid-template-columns: 1fr; gap: 32px; }
    .cta-row .btn { width: 100%; }
    .orgs-card { padding: 32px 20px; }
    .final-panel { padding: 48px 20px; }
    .sticky-cta { display: flex; }
    .win-tab { max-width: 56%; }
    .win-url span { display: none; }
    .win-url { flex: 0 0 auto; }
}
@keyframes signalV { from { transform: translateY(0); opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } to { transform: translateY(70vh); opacity: 0; } }

@media (max-width: 480px) {
    .logo span.logo-text { display: none; }
    .lang-switch .lang-full { display: none; }
    .lang-switch .lang-short { display: inline; }
    .nav-inner { gap: 12px; }
    .hero h1 { letter-spacing: -.03em; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .hero-copy > *, .hero-visual, .float-card { opacity: 1; animation: none; transform: none; }
    .js .reveal { opacity: 1; transform: none; }
}
