/* Мобильная композиция (≤760px). Подключается с media="(max-width:760px)", десктоп её не применяет.
   Сцена высотой svh (видимая область при развёрнутых панелях): ничего не прячется под тулбаром Safari; кадр креатива один 9:16, его размер считает скрипт. */
:root { --hdr:calc(58px + env(safe-area-inset-top)); --dh:min(47svh,98vw); --h1fs:clamp(30px,9.2vw,44px);
  /* зона телефона на первом экране: между заголовком (4 строки) и подписью с кнопками; телефон не заходит под текст */
  --ztop:calc(var(--hdr) + 36px + var(--h1fs) * 4.12); --zbot:calc(100svh - 134px - env(safe-area-inset-bottom));
  --hb:max(110px, min(50svh, calc(var(--zbot) - var(--ztop) - 6px))); --cy:calc((var(--ztop) + var(--zbot)) / 2); --pdh:calc(var(--hb) / .74); --tb:0px; --dock:calc(70px + env(safe-area-inset-bottom)); --pad:20px; }
html { -webkit-tap-highlight-color:transparent; -webkit-text-size-adjust:100%; }
h2 { font-size:clamp(26px,7.4vw,34px); } h2.big { font-size:clamp(32px,9.6vw,44px); }
.sec { padding:clamp(64px,16vw,88px) 0; }
.btn { transition:background .2s, box-shadow .2s, transform .15s; }
.btn:active { transform:scale(.97); box-shadow:0 0 34px rgba(197,245,61,.55); }
.btn.ghost:active { box-shadow:none; background:rgba(255,255,255,.14); }
.card:active, .ticks li:active, .board li:active { border-color:rgba(197,245,61,.45); }
summary:active { background:rgba(255,255,255,.04); }

/* Шапка: логотип и кнопка меню; языки и вход уходят в лист */
.top { padding-top:env(safe-area-inset-top); }
.top .links { display:none; }
.bar { gap:10px; min-height:58px; }
html.js .top.has-menu .langs, html.js .top.has-menu .right > .btn { display:none; }
html.js .menu-btn { display:inline-flex; }
.menu-btn, .menu-close { width:48px; height:48px; border-radius:50%; border:1px solid rgba(255,255,255,.16); background:rgba(255,255,255,.06); position:relative; padding:0; cursor:pointer; color:#fff; transition:background .2s, transform .15s, border-color .2s; }
.menu-btn:active, .menu-close:active { transform:scale(.94); background:rgba(197,245,61,.18); border-color:rgba(197,245,61,.5); }
.menu-btn i, .menu-close i { position:absolute; left:15px; right:15px; height:2px; border-radius:2px; background:currentColor; }
.menu-btn i:first-child { top:19px; } .menu-btn i:last-child { top:27px; right:21px; }
.menu-close i { top:23px; } .menu-close i:first-child { transform:rotate(45deg); } .menu-close i:last-child { transform:rotate(-45deg); }

/* Меню-лист на весь экран */
.menu { display:block; position:fixed; inset:0; z-index:90; overflow:auto; overscroll-behavior:contain; background:radial-gradient(110% 55% at 100% 0%,rgba(197,245,61,.17),transparent 62%),radial-gradient(90% 50% at 0% 100%,rgba(70,60,200,.28),transparent 70%),#07090D; opacity:0; transform:translateY(-14px); transition:opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
.menu.show { opacity:1; transform:none; }
.menu-fx { position:absolute; inset:0; pointer-events:none; background-image:radial-gradient(rgba(255,255,255,.12) 1px,transparent 1.2px); background-size:30px 30px; mask-image:radial-gradient(ellipse at 50% 40%,#000,transparent 75%); -webkit-mask-image:radial-gradient(ellipse at 50% 40%,#000,transparent 75%); opacity:.5; }
.menu-in { position:relative; min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; padding:calc(env(safe-area-inset-top) + 5px) 20px calc(env(safe-area-inset-bottom) + 20px); }
.menu-top { display:flex; justify-content:space-between; align-items:center; min-height:58px; }
.menu-links { margin:auto 0; display:grid; }
.menu-links a { display:flex; align-items:baseline; gap:14px; min-height:56px; padding:9px 0; border-bottom:1px solid rgba(255,255,255,.09); color:#fff; text-decoration:none; font:800 clamp(28px,8.6vw,38px)/1.1 var(--head); letter-spacing:-.04em; opacity:0; transform:translateY(16px); transition:opacity .4s ease, transform .5s cubic-bezier(.2,.7,.2,1), color .2s; }
.menu-links a span { font:700 12px var(--head); color:var(--accent); letter-spacing:0; min-width:22px; }
.menu-links a:active { color:var(--accent); }
.menu.show .menu-links a { opacity:1; transform:none; }
.menu.show .menu-links a:nth-child(1) { transition-delay:.05s; } .menu.show .menu-links a:nth-child(2) { transition-delay:.09s; } .menu.show .menu-links a:nth-child(3) { transition-delay:.13s; }
.menu.show .menu-links a:nth-child(4) { transition-delay:.17s; } .menu.show .menu-links a:nth-child(5) { transition-delay:.21s; } .menu.show .menu-links a:nth-child(6) { transition-delay:.25s; }
.menu-foot { display:grid; gap:16px; padding-top:22px; }
.menu-langs { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.menu-langs a { display:flex; align-items:center; justify-content:center; min-height:48px; border-radius:14px; border:1px solid rgba(255,255,255,.14); background:rgba(255,255,255,.04); color:var(--text); text-decoration:none; font:700 14px var(--font); letter-spacing:.06em; }
.menu-langs a[aria-current] { background:var(--accent); color:var(--on); border-color:var(--accent); }
.menu-cta { display:grid; gap:10px; }
.menu-cta .btn { width:100%; }

/* Нижняя панель действий: после героя, скрыта у формы */
.dock { display:flex; gap:10px; position:fixed; left:0; right:0; bottom:0; z-index:55; padding:12px 14px calc(10px + env(safe-area-inset-bottom)); background:linear-gradient(rgba(7,9,13,0),rgba(7,9,13,.9) 38%); transform:translateY(115%); visibility:hidden; pointer-events:none; transition:transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s linear .45s; }
.dock.on { transform:none; visibility:visible; pointer-events:auto; transition:transform .45s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.dock .btn { min-height:52px; padding:0 14px; font-size:14.5px; flex:1 1 0; box-shadow:0 8px 30px rgba(0,0,0,.45); }
.dock .btn:first-child { flex:1.7 1 0; box-shadow:0 0 36px rgba(197,245,61,.35), 0 8px 24px rgba(0,0,0,.5); }
.dock .btn.ghost { background:rgba(13,17,23,.86); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }

/* Сцена: высота svh, закрепление через sticky (html.native) или pin */
.stage { height:100svh; min-height:0; }
.fx .g1 { transform:translate3d(0,calc(var(--pp,0) * -90px),0); }
.fx .g2 { transform:translate3d(calc(var(--pp,0) * 40px),calc(var(--pp,0) * -60px),0); }
.fx .grid { background-size:28px 28px; transform:translate3d(0,calc(var(--pp,0) * -60px),0); }

/* 2.5D без WebGL: пыль на CSS, постер «дышит» */
html.nogl .dust { display:block; position:absolute; inset:0; }
.dust u { position:absolute; bottom:-6px; width:3px; height:3px; border-radius:50%; background:var(--accent); box-shadow:0 0 9px 1px rgba(197,245,61,.8); opacity:0; animation:dust 10s linear infinite; }
.dust u:nth-child(3n) { background:#fff; box-shadow:0 0 8px rgba(255,255,255,.7); width:2px; height:2px; }
.dust u:nth-child(1) { left:6%; animation-delay:-1s; } .dust u:nth-child(2) { left:15%; animation-delay:-6s; animation-duration:13s; } .dust u:nth-child(3) { left:24%; animation-delay:-3s; }
.dust u:nth-child(4) { left:33%; animation-delay:-8s; animation-duration:12s; } .dust u:nth-child(5) { left:42%; animation-delay:-2s; } .dust u:nth-child(6) { left:51%; animation-delay:-5s; animation-duration:15s; }
.dust u:nth-child(7) { left:60%; animation-delay:-9s; } .dust u:nth-child(8) { left:68%; animation-delay:-4s; animation-duration:11s; } .dust u:nth-child(9) { left:76%; animation-delay:-7s; }
.dust u:nth-child(10) { left:84%; animation-delay:-0.5s; animation-duration:14s; } .dust u:nth-child(11) { left:91%; animation-delay:-5.5s; } .dust u:nth-child(12) { left:11%; animation-delay:-10s; animation-duration:16s; }
.dust u:nth-child(13) { left:47%; animation-delay:-12s; animation-duration:17s; } .dust u:nth-child(14) { left:73%; animation-delay:-11s; animation-duration:12s; }
@keyframes dust { 0% { transform:translate3d(0,0,0); opacity:0; } 10% { opacity:.9; } 90% { opacity:.6; } 100% { transform:translate3d(18px,-100svh,0); opacity:0; } }
html.nogl .hero-poster img { animation:bob 7s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform:translate3d(0,0,0); } 50% { transform:translate3d(0,-7px,0); } }
.vp-h { top:var(--cy); height:var(--hb); } /* замер зоны телефона для скрипта */
.hero-poster { left:calc(50% + -0.1693 * var(--pdh)); top:calc(var(--cy) + -0.3757 * var(--pdh)); width:calc(0.3534 * var(--pdh)); height:calc(0.7504 * var(--pdh)); }

/* Hero: огромный заголовок, телефон-звезда, действия у большого пальца */
.hero-copy { padding-top:0; }
.hero-copy .eyebrow { top:calc(var(--hdr) + 1px); font-size:10.5px; letter-spacing:.13em; max-width:calc(100% - 2 * var(--pad)); }
.hero-copy h1 { font-size:var(--h1fs); line-height:1.02; letter-spacing:-.052em; position:absolute; left:var(--pad); right:var(--pad); top:calc(var(--hdr) + 26px); }
.h1a, .h1b { position:static; display:inline; width:auto; text-align:left; }
.hero-sub { left:var(--pad); right:var(--pad); width:auto; bottom:calc(var(--tb) + 18px + env(safe-area-inset-bottom)); }
.lead { font-size:14px; line-height:1.5; margin-bottom:14px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.hero-sub .cta-row { flex-wrap:nowrap; gap:10px; }
.hero-sub .btn.big { min-height:52px; padding:0 14px; font-size:14.5px; flex:1 1 0; }
.hero-sub .btn.big:first-child { flex:1.15 1 0; box-shadow:0 0 40px rgba(197,245,61,.3); }
.note, .scroll-hint { display:none; }

/* Телефон-экран: размеры задаёт скрипт; внутри окно размером с вьюпорт, оно и становится кадром */
.device { margin:0; left:0; top:0; width:0; height:0; will-change:auto; }
.bezel { border-radius:calc(var(--hb,300px) * .078); }
.screen { right:auto; bottom:auto; border-radius:calc(var(--hb,300px) * .058); container-type:normal; }
.screen::before { display:none; }
.dev-tag { display:none; }
.dev-tag-m { display:block; position:absolute; left:0; right:0; bottom:calc(10px + env(safe-area-inset-bottom)); margin:0; text-align:center; z-index:4; opacity:0; pointer-events:none; font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:#B7C0CC; text-shadow:0 1px 8px #000; }
.dev-tag-m::before { content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent); margin-right:8px; vertical-align:1px; }
/* Кадр 9:16: размер ему задаёт скрипт (вписан в видимую область), все слои внутри в % кадра (cqw/cqh) */
.s-view { inset:auto; left:50%; top:50%; width:56vw; height:100vw; container-type:size; transform:translate(-50%,-50%) scale(.5); transform-origin:50% 50%; }
.s-back { display:block; position:absolute; inset:0; z-index:1; opacity:0; pointer-events:none; background:radial-gradient(90% 45% at 15% 100%,rgba(197,245,61,.16),transparent 70%),radial-gradient(90% 45% at 90% 0%,rgba(90,70,230,.2),transparent 70%),#05070A; }
.s-live { top:7.3cqh; left:4.5cqw; font-size:3cqw; padding:1.6cqw 3.4cqw; }
.s-comp { top:7.3cqh; font-size:3.2cqw; padding:2.4cqw 3cqw; }
.s-slot.a, .s-game { top:14cqh; left:5cqw; right:5cqw; height:27cqh; }
.s-slot.b, .s-leo { height:56cqh; } .s-leo { transform-origin:50% 55%; }
.s-slot.b { left:0; right:0; bottom:0; border-radius:6cqw 6cqw 0 0; }
.s-cap { top:auto; bottom:17cqh; font-size:8.4cqw; }
.s-promo { bottom:4.5cqh; left:8cqw; right:8cqw; }
.s-promo small { font-size:3cqw; } .s-promo span { font-size:3.4cqw; }
.s-ai { font-size:3cqw; padding:1.8cqw 3cqw; }

/* Подпись слоя: компактная капсула под шапкой */
.build-copy { z-index:3; left:var(--pad); right:var(--pad); width:auto; top:calc(var(--hdr) + 4px); transform:none; }
.build-copy .kicker { margin-bottom:6px; }
.build-copy h2 { font-size:clamp(22px,6.3vw,28px); margin-bottom:0; } .build-copy .sub { display:none; }
.steps { left:var(--pad); right:var(--pad); width:auto; }
.steps.bsteps { top:calc(var(--hdr) + 2px); bottom:auto; transform:none; z-index:5; background:rgba(7,9,13,.74); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); border:1px solid rgba(197,245,61,.38); border-radius:999px; padding:10px 18px; box-shadow:0 0 34px rgba(197,245,61,.14); }
.steps.bsteps li { display:none; opacity:1; } .steps.bsteps li.on { display:flex; align-items:center; gap:12px; }
.steps.bsteps h3 { font-size:14.5px; margin:0; } .steps.bsteps p { display:none; }
.steps.bsteps b { padding:0; min-width:0; white-space:nowrap; } .steps b small { display:inline; opacity:.5; font-weight:500; }

/* Трекер в портрете: текст сверху, поток по вертикали, карточка шага над панелью действий */
.trk-copy { left:var(--pad); right:var(--pad); width:auto; top:calc(var(--hdr) + 4px); }
.trk-copy h2 { font-size:clamp(22px,6.4vw,30px); margin-bottom:6px; }
.trk-copy .sub { font-size:13.5px; margin:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.trk-steps { display:block; left:var(--pad); right:var(--pad); bottom:calc(var(--tb) + var(--dock) + 4px); top:auto; width:auto; transform:none; background:rgba(7,9,13,.82); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border:1px solid var(--border); border-radius:18px; padding:13px 16px; min-height:118px; }
.trk-steps li { display:none; border:0; padding:0; opacity:1; } .trk-steps li.on { display:flex; }
.trk-steps p { display:block; }
.trk-note { display:none; }

/* Секции */
.grid3 { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:84%; overflow-x:auto; scroll-snap-type:x mandatory; margin:28px calc(var(--pad) * -1) 0; padding:4px var(--pad) 16px; gap:14px; scrollbar-width:none; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
.grid3::-webkit-scrollbar { display:none; }
.grid3 > li { scroll-snap-align:center; }
.step { font-size:56px; margin-bottom:12px; }
.term-body { font-size:12px; padding:16px; }
.paper { padding:24px 22px 22px; } .digits i { height:36px; }
.widget { padding:20px 16px; }
.foot { padding-bottom:calc(40px + env(safe-area-inset-bottom)); }

/* Форма: 16px (iOS не зумит), цели ≥44px, крупные чипы и согласия */
input:not([type=checkbox]), select { font-size:16px; min-height:52px; }
.field label, .field legend { font-size:14px; }
.chips { gap:10px; }
.chip span { min-height:44px; padding:0 16px; font-size:15px; }
.chip input:active + span { transform:scale(.96); }
.check { font-size:14.5px; gap:12px; min-height:44px; align-items:flex-start; }
input[type=checkbox] { width:24px; height:24px; margin:0; }
.form .btn.big, #reg-submit { width:100%; min-height:56px; }
.form .cta-row { display:block; }
select { -webkit-appearance:none; appearance:none; padding-right:42px; background-repeat:no-repeat; background-position:right 16px center; background-size:12px 8px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C5F53D' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.field { scroll-margin-top:calc(var(--hdr) + 16px); }
.reg-grid { gap:20px; }
.alert { scroll-margin-top:calc(var(--hdr) + 16px); }
@media (prefers-reduced-motion:reduce) { .menu, .menu-links a, .dock { transition:none; } }
