/* Шрифты zamok24.kz: Sofia Sans Extra Condensed и Sofia Sans, SIL Open Font License 1.1.
   Файлы лицензий: /assets/fonts/OFL-sofia-sans-extra-condensed.txt, /assets/fonts/OFL-sofia-sans.txt.
   Сгенерировано src/fonts.py — руками не править. */
@font-face{font-family:"Sofia Sans Extra Condensed";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/sofia-sans-extra-condensed-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Sofia Sans Extra Condensed";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/sofia-sans-extra-condensed-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/sofia-sans-cyrillic.woff2") format("woff2");unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:"Sofia Sans";font-style:normal;font-weight:100 900;font-display:swap;src:url("/assets/fonts/sofia-sans-latin.woff2") format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

/* zamok24.kz — «Ночь, дверь, свет». Глубокая ночная синева, ледяной циан в интерфейсе,
   тёплый свет только в картинках и свечении. Заголовки — Sofia Sans Extra Condensed, текст — Sofia Sans.
   Собирается вместе с fonts.css в один файл /assets/css/site.css. */

:root {
  --bg0: #030712;
  --bg1: #061030;
  --bg2: #0a1a4a;
  --panel: #0a1636;
  --panel-2: #0d1d45;
  --ink: #eaf3ff;
  --text: #d3def5;
  --muted: #a3b4d6;
  --dim: #7d90b8;
  --cyan: #78f1ff;
  --cyan-2: #2bd2ff;
  --on-cyan: #031027;
  --warm: #ffd08c;
  --warm-2: #ffb45e;
  --line: rgba(150, 200, 255, .14);
  --line-2: rgba(150, 200, 255, .26);
  --disp: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4.4vw, 56px);
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, .84, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); background: var(--bg0); }
body {
  margin: 0;
  background: var(--bg0);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  overflow-x: hidden;
  overflow-x: clip;             /* clip не делает body контейнером прокрутки: position: sticky работает */
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b9f8ff; }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
b, strong { color: var(--ink); font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(120, 241, 255, .3); color: #fff; }

/* клавиатурный фокус виден всегда */
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn:focus-visible { outline-offset: 4px; }
.card:focus-visible, .city-cell:focus-visible, .links a:focus-visible { outline-offset: 2px; box-shadow: 0 0 0 6px rgba(120, 241, 255, .18); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.table-wrap:focus-visible { outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 12px 18px; background: var(--cyan); color: var(--on-cyan); font-weight: 700; border-radius: 10px; }
.skip:focus { left: 8px; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- кнопки */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  font: 800 19px/1 var(--disp); letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
  color: var(--on-cyan);
  /* верхний слой — полоса блика: по наведению пробегает слева направо */
  background-image: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .85) 50%, transparent 62%),
    linear-gradient(180deg, #b6f8ff, var(--cyan) 45%, #35d7ff);
  background-size: 280% 100%, 100% 100%; background-position: 100% 0, 0 0; background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5) inset, 0 12px 34px -10px rgba(60, 220, 255, .75), 0 0 64px -14px rgba(120, 240, 255, .9);
  transition: transform .2s, box-shadow .2s, background-position .85s var(--ease);
}
.btn:hover { background-position: 0 0, 0 0; }
.btn:hover { color: var(--on-cyan); transform: translateY(-2px); box-shadow: 0 0 0 1px #fff inset, 0 16px 44px -10px rgba(60, 220, 255, .95), 0 0 84px -10px rgba(120, 240, 255, 1); }
.btn svg { width: 20px; height: 20px; }
.btn-line { color: var(--cyan); background-color: rgba(120, 241, 255, .05); box-shadow: 0 0 0 1.5px rgba(120, 241, 255, .55) inset;
  background-image: linear-gradient(110deg, transparent 38%, rgba(120, 241, 255, .3) 50%, transparent 62%); }
.btn-line:hover { color: #fff; box-shadow: 0 0 0 1.5px var(--cyan) inset, 0 0 36px -10px var(--cyan); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-lg { min-height: 62px; padding: 0 36px; font-size: 20px; }

/* ---------------------------------------------------------------- шапка */
/* линия под шапкой — тенью, а не рамкой: у рамки под прозрачным цветом виден край градиента фона */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: linear-gradient(180deg, rgba(3, 7, 18, .92), rgba(3, 7, 18, .72));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line); transition: background .3s, box-shadow .3s;
}
.hdr.at-top { background: linear-gradient(180deg, rgba(3, 7, 18, .7), rgba(3, 7, 18, 0)); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--hdr); }
/* тонкий луч под шапкой: сколько страницы уже пройдено */
.hdr-line { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, rgba(255, 208, 140, 0), var(--warm) 25%, #fff3dc 62%, var(--cyan)); box-shadow: 0 0 12px rgba(255, 200, 120, .75); }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; flex: none; }
.logo:hover { color: #fff; }
.logo img { display: block; width: 174px; height: auto; flex: none; }
.hdr-nav { display: flex; gap: 6px; margin-left: auto; }
.hdr-nav a {
  padding: 10px 12px; border-radius: 10px; color: #c4d2ee; text-decoration: none;
  font: 800 18px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase;
}
.hdr-nav a:hover, .hdr-nav a[aria-current="page"] { color: var(--cyan); }
.hdr-live { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 800 15px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.hdr-live b { color: var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(120, 241, 255, .16), 0 0 12px var(--cyan); flex: none; }
.burger { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(10, 22, 54, .6); cursor: pointer; place-items: center; color: var(--ink); }
.hdr-mob { display: none; padding: 8px 0 22px; }
.hdr-mob.open { display: grid; gap: 4px; }
.hdr-mob a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font: 800 24px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; }
.hdr-mob .btn { margin-top: 14px; }

/* ---------------------------------------------------------------- ночное небо: общий фон первых экранов */
.night { position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, var(--bg0) 0%, #050c26 30%, #0a1a4a 70%, #07112e 88%, var(--bg0) 100%); }
.night::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: url("/assets/img/bokeh.svg") center bottom / cover no-repeat,
    radial-gradient(70% 34% at 50% 82%, rgba(46, 110, 255, .3), transparent 70%); opacity: .95; }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(3, 7, 18, .78) 0%, rgba(3, 7, 18, .36) 38%, transparent 62%); }

/* ---------------------------------------------------------------- главная: первый экран */
.hero-pin { position: relative; }
.hero { min-height: clamp(700px, 100vh, 900px); display: flex; }
/* блок сцены = полная композиция рендера (2400×1414); кадры «гиперлапса» — вырез x 25–90 % */
.hero-scene { position: absolute; z-index: 0; right: -1.5%; bottom: 0; height: 94%; aspect-ratio: 2400 / 1414; pointer-events: none; }
.hero-static, .seq { position: absolute; inset: 0; }
.hero-static img, .seq img, .seq canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seq { left: 25%; width: 65%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%); mask-image: linear-gradient(90deg, transparent, #000 18%); }
.seq canvas { opacity: 0; }
.seq.on canvas { opacity: 1; }
.seq.on .seq-f0 { opacity: 0; }
/* свечение щели и тёплый свет, заливающий экран, растут вместе с углом двери (opacity ведёт JS) */
.hero-glow { position: absolute; left: 64%; top: 5%; width: 10%; height: 76%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 214, 150, .5), rgba(255, 180, 95, .16) 55%, transparent); filter: blur(18px); }
.hero-flood { position: absolute; left: 10%; right: -12%; top: -8%; bottom: -12%; pointer-events: none; opacity: .6;
  background: radial-gradient(42% 40% at 60% 88%, rgba(255, 196, 120, .34), rgba(255, 170, 90, .1) 55%, transparent 76%),
    radial-gradient(28% 52% at 63% 44%, rgba(255, 220, 170, .2), transparent 70%); }
.js .hero-flood { opacity: 0; }
.hero-in { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--hdr) + 28px); padding-bottom: 56px; }
.kicker { display: flex; align-items: center; gap: 14px; color: var(--cyan); font: 800 18px/1.2 var(--disp); letter-spacing: .2em; text-transform: uppercase; }
.kicker::before { content: ""; width: 42px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); flex: none; }
.shout { margin: 18px 0 0 -3px; font: 900 clamp(60px, 9.4vw, 134px)/.84 var(--disp); text-transform: uppercase; color: #fff; max-width: 740px; }
.shout .ln, .shout .ln > span { display: block; }
.w, .w > span { display: inline-block; }
.w { vertical-align: top; }
.shout .a { color: var(--cyan); text-shadow: 0 0 34px rgba(120, 241, 255, .55), 0 0 90px rgba(43, 210, 255, .35); }
.hero h1 { margin-top: 24px; max-width: 560px; font: 800 clamp(24px, 2.3vw, 32px)/1.12 var(--sans); color: #fff; }
.hero-sub { margin-top: 10px; max-width: 520px; color: var(--muted); font-size: 18px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.eta { position: absolute; z-index: 3; right: max(var(--gut), calc(50% - 620px)); bottom: 44px; display: flex; align-items: center; gap: 16px;
  padding: 14px 20px 14px 18px; border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(140deg, rgba(120, 180, 255, .14), rgba(20, 40, 90, .38)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.eta b { font: 900 52px/.8 var(--disp); color: var(--cyan); text-shadow: 0 0 24px rgba(120, 241, 255, .55); white-space: nowrap; }
.eta b span { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.eta b small { font-size: 24px; margin-left: 4px; }
.eta > span { max-width: 150px; color: #cfe0ff; font: 600 15px/1.25 var(--sans); }

/* ---------------------------------------------------------------- внутренние страницы: первый экран */
.phero { padding: calc(var(--hdr) + 36px) 0 70px; min-height: 560px; }
.phero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; align-items: center; }
.phero-in.solo { grid-template-columns: minmax(0, 1fr); }
.phero-in.solo > div { max-width: 1000px; }
.phero .crumbs { position: relative; z-index: 2; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 26px; padding: 0; list-style: none; font: 700 15px/1.3 var(--sans); }
.crumbs li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.crumbs li + li::before { content: ""; width: 6px; height: 6px; border-top: 2px solid var(--dim); border-right: 2px solid var(--dim); transform: rotate(45deg); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }
.crumbs [aria-current] { color: var(--ink); }
.tag { display: inline-flex; align-items: center; gap: 12px; color: var(--cyan); font: 800 17px/1.2 var(--disp); letter-spacing: .2em; text-transform: uppercase; }
.tag::before { content: ""; width: 30px; height: 2px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); flex: none; }
.phero-in > div:first-child { container-type: inline-size; }
.phero h1 { margin-top: 14px; font: 900 clamp(46px, 7.2vw, 104px)/.88 var(--disp); text-transform: uppercase; overflow-wrap: break-word; }
.phero h1 .fit { display: block; white-space: nowrap; font-size: min(1em, calc(100cqw / (var(--n) * .47))); }
.phero h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 30px rgba(120, 241, 255, .45); }
.phero-sub { margin-top: 18px; max-width: 560px; color: #c7d5f0; font-size: 20px; line-height: 1.5; }
.phero .chips { margin-top: 24px; }
.phero .hero-cta { margin-top: 28px; }
.h1-city > span { display: block; font-size: clamp(36px, 4.6vw, 64px); line-height: .95; color: #fff; }
.phero .h1-city em { position: relative; display: block; margin-top: .04em; white-space: nowrap; line-height: .86;
  font-size: min(230px, calc(100cqw / (var(--n) * .5))); }

/* сцена с предметом в тёплом луче */
.stage { position: relative; aspect-ratio: 1 / 1; width: min(100%, 560px); margin-inline: auto; }
.stage::before { content: ""; position: absolute; left: 50%; top: -12%; width: 74%; height: 104%; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 221, 170, .34), rgba(255, 200, 130, .1) 55%, transparent 90%);
  clip-path: polygon(41% 0, 59% 0, 100% 100%, 0 100%); filter: blur(10px); }
.stage::after { content: ""; position: absolute; left: 50%; bottom: 4%; width: 78%; height: 16%; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 140, .5), rgba(255, 180, 100, .14) 60%, transparent); }
.stage { container-type: inline-size; }
.stage img { position: relative; z-index: 1; width: 100%; height: 100%; }
.stage-word { position: absolute; z-index: 0; left: 50%; top: 40%; margin: 0; transform: translate(-50%, -50%); white-space: nowrap; pointer-events: none;
  font: 900 90px/1 var(--disp); font-size: calc(96cqw / (var(--n) * .5)); text-transform: uppercase; color: transparent;
  -webkit-text-stroke: 2px rgba(120, 241, 255, .5); text-shadow: 0 0 40px rgba(43, 210, 255, .25); }
.stage-lamp { position: absolute; z-index: 2; left: 50%; top: -12%; width: 64px; height: 12px; transform: translateX(-50%); border-radius: 0 0 12px 12px;
  background: #1b2a52; box-shadow: 0 8px 22px 4px rgba(255, 214, 160, .55); }

/* ---------------------------------------------------------------- ответ-первый абзац */
.ans { position: relative; padding: 70px 0 10px; background: var(--bg0); }
.ans p { position: relative; max-width: 60ch; padding-left: 28px; font: 500 clamp(20px, 1.75vw, 24px)/1.55 var(--sans); color: var(--ink); }
.ans p::before { content: ""; position: absolute; left: 0; top: .3em; bottom: .3em; width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, #fff2d8, var(--warm) 40%, var(--warm-2)); box-shadow: 0 0 14px 2px rgba(255, 190, 110, .55); }
.ans .chips { margin-top: 26px; }

/* ---------------------------------------------------------------- секции */
.sec { position: relative; padding: 90px 0; background: var(--bg0); }
.sec-alt { background: linear-gradient(180deg, var(--bg0), var(--bg1) 30%, var(--bg1) 70%, var(--bg0)); }
.sec-tight { padding: 30px 0 60px; }
.sec-head { margin-bottom: 40px; }
.sec-head h2, .h2 { margin-top: 12px; font: 900 clamp(40px, 5.6vw, 80px)/.9 var(--disp); text-transform: uppercase; }
.sec-head h2 em { font-style: normal; color: var(--cyan); }
.sec-head p { margin-top: 16px; max-width: 62ch; color: var(--muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 64px; align-items: start; }
.grid-side { position: sticky; top: calc(var(--hdr) + 24px); }
.grid-2.grid-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.grid-even .sec-head h2 { font-size: clamp(34px, 3.4vw, 50px); }
.grid-even .links { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.side-card { padding: 28px 26px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), #081230); border: 1px solid var(--line); }
.side-title { font: 900 26px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; color: #fff; }
.side-title + * { margin-top: 18px; }
.side-card .side-title:not(:first-child) { margin-top: 36px; }
.side-text { color: var(--text); font-size: 17px; }
.side-text + .side-text { margin-top: 12px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }

/* длинный текст: 65–75 знаков в строке, контраст выше AA */
.prose { max-width: 60ch; font-size: 19px; line-height: 1.7; color: var(--text); }
.prose h2 { margin: 1.7em 0 .55em; font: 900 clamp(30px, 3.2vw, 42px)/.98 var(--disp); text-transform: uppercase; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.05em; }
.prose p:last-child { margin-bottom: 0; }

/* чипы-обещания */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; border-radius: 999px; border: 1px solid rgba(120, 241, 255, .26);
  background: rgba(120, 241, 255, .05); color: #dff6ff; font: 600 15px/1.25 var(--sans); }
.chip svg { width: 18px; height: 18px; color: var(--cyan); flex: none; }

/* списки с галочками */
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 17px; line-height: 1.45; }
.facts li svg { width: 20px; height: 20px; margin-top: 1px; flex: none; padding: 3px; border-radius: 6px; color: var(--cyan);
  box-shadow: 0 0 0 1.5px rgba(120, 241, 255, .7) inset, 0 0 12px rgba(120, 241, 255, .35); }

/* таблица фактов */
.table-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel), #081230); }
.facts-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 17px; }
.facts-table caption { padding: 24px 26px 8px; text-align: left; font: 900 clamp(26px, 2.6vw, 34px)/1 var(--disp); text-transform: uppercase; color: #fff; }
.facts-table th, .facts-table td { padding: 16px 26px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); line-height: 1.45; }
.facts-table thead th { color: var(--cyan); font: 800 16px/1.2 var(--disp); letter-spacing: .14em; text-transform: uppercase; border-top: 0; }
.facts-table tbody th { color: #fff; font-weight: 700; width: 24%; }
.facts-table td { color: var(--text); }
.facts-table tbody tr:hover { background: rgba(120, 241, 255, .04); }

/* ---------------------------------------------------------------- услуги: предметы в конусах света */
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; min-height: 100%; padding: 0 22px 24px; border-radius: 22px; text-decoration: none;
  transform: translateY(var(--ty, 0px));
  background: linear-gradient(180deg, #0a1636 0%, #08112b 60%, #070f25 100%); border: 1px solid rgba(140, 190, 255, .13); transition: transform .25s, border-color .25s; }
.card:hover { --ty: -4px; border-color: rgba(120, 241, 255, .5); }
.card-stage { position: relative; display: block; height: 214px; margin: 0 -22px; overflow: hidden; border-radius: 21px 21px 0 0; }
.card-stage::before { content: ""; position: absolute; left: 50%; top: -10px; width: 78%; height: 226px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 221, 170, .34), rgba(255, 200, 130, .09) 55%, transparent 88%);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%); filter: blur(6px); }
.card-stage::after { content: ""; position: absolute; left: 50%; top: 0; width: 34px; height: 8px; transform: translateX(-50%); border-radius: 0 0 8px 8px;
  background: #1b2a52; box-shadow: 0 6px 16px 2px rgba(255, 214, 160, .55); }
.card-img { position: absolute; left: 0; right: 0; margin-inline: auto; top: 14px; width: 200px; height: 200px; transition: scale .4s var(--ease); }
.card:hover .card-img { scale: 1.06; }
.card-t { margin-top: 16px; color: #fff; font: 900 29px/.95 var(--disp); text-transform: uppercase; }
.card-p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.45; }
.card-go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font: 800 15px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.card-go svg { width: 16px; height: 16px; transition: transform .2s; }
.card:hover .card-go svg { transform: translateX(4px); }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.cards-sm .card-stage { height: 170px; }
.cards-sm .card-img { width: 160px; height: 160px; }
.cards-sm .card-t { font-size: 25px; }

/* ссылки-плашки */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 18px; border-radius: 14px; text-decoration: none;
  color: #e3edff; background: rgba(10, 22, 54, .72); border: 1px solid var(--line); font: 600 16px/1.3 var(--sans); transition: border-color .2s, color .2s; }
.links a:hover { color: #fff; border-color: rgba(120, 241, 255, .55); }
.links a svg { width: 18px; height: 18px; flex: none; color: var(--cyan); transition: transform .2s; }
.links a:hover svg { transform: translateX(3px); }

/* ---------------------------------------------------------------- города: табло с поиском */
.city-sec { overflow: hidden; isolation: isolate; }
.city-sec .night-bg { position: absolute; inset: 0; z-index: 0; opacity: .7;
  background: url("/assets/img/bokeh.svg") center bottom / cover no-repeat, linear-gradient(180deg, var(--bg0), #0a1a4a 80%, var(--bg0)); }
.city-sec .wrap { position: relative; z-index: 1; }
.city-big { font: 900 clamp(110px, 16vw, 220px)/.8 var(--disp); color: var(--cyan); text-shadow: 0 0 50px rgba(120, 241, 255, .45); }
.city-tools { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.city-search { position: relative; flex: 1; max-width: 420px; }
.city-search svg { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--cyan); }
.city-search input { width: 100%; height: 54px; padding: 0 18px 0 48px; border-radius: 14px; border: 1px solid var(--line-2); background: rgba(3, 8, 22, .7); color: #fff; font-size: 18px; }
.city-search input::placeholder { color: var(--dim); }
.city-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(120, 241, 255, .18); }
.city-count { color: var(--muted); font: 800 18px/1 var(--disp); letter-spacing: .12em; }
.city-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.city-cell { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 16px; text-decoration: none; background: rgba(10, 22, 54, .78);
  border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.city-cell b { color: #fff; font: 900 26px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.city-cell span { color: var(--muted); font-size: 14.5px; line-height: 1.35; }
.city-cell:hover { transform: translateY(-2px); border-color: rgba(120, 241, 255, .6); }
.city-cell[hidden] { display: none; }
.city-empty { margin-top: 16px; color: var(--muted); }

/* ---------------------------------------------------------------- порядок вызова */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { position: relative; padding: 26px 24px 28px; border-radius: 22px; background: linear-gradient(180deg, var(--panel), #081230); border: 1px solid var(--line); }
.steps li::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--warm), rgba(255, 180, 94, 0)); box-shadow: 0 0 16px rgba(255, 190, 110, .6); }
.steps .num { display: block; color: var(--cyan); font: 900 64px/.8 var(--disp); text-shadow: 0 0 26px rgba(120, 241, 255, .45); }
.steps h3 { margin-top: 18px; font: 900 30px/.95 var(--disp); text-transform: uppercase; }
.steps p { margin-top: 12px; color: var(--muted); font-size: 16.5px; line-height: 1.5; }

/* ---------------------------------------------------------------- вопросы */
.faq { display: grid; gap: 10px; max-width: 980px; }
.faq details { border-radius: 18px; background: rgba(10, 22, 54, .72); border: 1px solid var(--line); }
.faq details[open] { border-color: rgba(120, 241, 255, .38); }
.faq summary { position: relative; display: block; padding: 20px 64px 20px 24px; cursor: pointer; list-style: none; color: #fff; font: 700 19px/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 26px; top: 50%; width: 16px; height: 2px; background: var(--cyan); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq .answer { padding: 0 24px 22px; background: none; }
.faq .answer p { max-width: 64ch; font: 400 18px/1.65 var(--sans); color: var(--text); }
.faq .answer p::first-letter { color: inherit; }

/* ---------------------------------------------------------------- заявка */
.cta-sec { padding: 100px 0 110px; background: linear-gradient(180deg, var(--bg0), #081642 60%, var(--bg0)); overflow: hidden; isolation: isolate; }
.cta-sec::before { content: ""; position: absolute; inset: 30% 0 0; opacity: .5; pointer-events: none;
  background: url("/assets/img/bokeh.svg") center bottom / cover no-repeat; }
.cta-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; }
.cta-note { margin-top: 18px; max-width: 58ch; color: var(--muted); }
.cta-grid .facts { margin-top: 28px; }
.board { margin-top: 32px; padding: 22px 24px; border-radius: 20px; border: 1px solid var(--line); background: rgba(10, 22, 54, .72); }
.board-head { display: flex; align-items: center; gap: 10px; color: #fff; font: 800 17px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.board-head .tag-on { margin-left: auto; color: var(--cyan); }
.board-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.board-cell .lbl { display: block; color: var(--muted); font: 800 14px/1.2 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.board-val { margin-top: 8px; color: #fff; font: 900 34px/1 var(--disp); font-variant-numeric: tabular-nums; }
.board-val.hot { color: var(--cyan); text-shadow: 0 0 18px rgba(120, 241, 255, .45); }
.board-val.sm { font: 700 16px/1.3 var(--sans); }
.board-zone { margin-top: 4px; color: var(--dim); font-size: 13px; }
.board-note { margin-top: 16px; color: var(--muted); font-size: 15.5px; line-height: 1.45; }

.form-card { position: relative; padding: 36px 34px 32px 42px; border-radius: 26px; border: 1px solid var(--line-2);
  background: linear-gradient(160deg, rgba(28, 52, 110, .62), rgba(8, 18, 48, .86)); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .9); scroll-margin-top: calc(var(--hdr) + 16px); }
/* полоска тёплого света по краю — как щель приоткрытой двери */
.form-card::before { content: ""; position: absolute; left: -2px; top: 26px; bottom: 26px; width: 5px; border-radius: 3px;
  background: linear-gradient(180deg, #fff2d8, var(--warm) 40%, var(--warm-2)); box-shadow: 0 0 18px 4px rgba(255, 190, 110, .75), 0 0 80px 18px rgba(255, 170, 80, .3); }
.form-head h2 { font: 900 44px/.92 var(--disp); text-transform: uppercase; }
.form-head p { margin-top: 12px; color: var(--muted); font-size: 16.5px; }
.lead { margin-top: 8px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-top: 16px; }
.field label { display: block; margin-bottom: 8px; color: #b9cbeb; font: 800 15px/1.2 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
.field label span { color: var(--dim); font: 600 13px/1 var(--sans); letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(150, 200, 255, .24);
  background: rgba(3, 8, 22, .66); color: #fff; font: 500 17px/1.3 var(--sans); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--cyan) 50%), linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 17px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: #0a1636; color: #fff; }
.field textarea { min-height: 96px; padding: 14px 16px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a8db4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(120, 241, 255, .18); }
.field.bad input, .field.bad select { border-color: #ff9a9a; box-shadow: 0 0 0 4px rgba(255, 140, 140, .18); }
.lead .btn { width: 100%; margin-top: 24px; }
.lead .btn:disabled { opacity: .6; cursor: progress; }
.form-status { min-height: 1.4em; margin-top: 14px; color: #ffc9c9; font-weight: 600; }
.form-status.ok { color: var(--cyan); }
.form-consent { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.phone-note, .ftr-note { display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(120, 241, 255, .05);
  border: 1px solid rgba(120, 241, 255, .2); color: #cfe6ff; font-size: 15px; line-height: 1.45; }
.phone-note svg, .ftr-note svg { width: 20px; height: 20px; flex: none; color: var(--cyan); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- 404 */
.nf-door { position: relative; width: min(100%, 440px); margin-inline: auto; aspect-ratio: 1000 / 1250; }
.nf-door img { width: 100%; height: 100%; }
.nf-door::after { content: ""; position: absolute; left: 14%; right: 18%; bottom: 4.5%; height: 9%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 206, 140, .55), rgba(255, 180, 100, .16) 60%, transparent); filter: blur(6px); }
.info-door { position: relative; width: min(100%, 480px); margin-inline: auto; aspect-ratio: 1080 / 1200; }
.info-door img { width: 100%; height: 100%; }
.phero-city .city-door { width: min(100%, 480px); }
.nf-code { font: 900 clamp(90px, 14vw, 180px)/.8 var(--disp); color: transparent; -webkit-text-stroke: 2px var(--cyan); text-shadow: 0 0 40px rgba(120, 241, 255, .35); }

/* ---------------------------------------------------------------- подвал */
.ftr { padding: 70px 0 34px; background: #02050e; border-top: 1px solid var(--line); color: var(--muted); font-size: 16px; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr .9fr; gap: 40px; }
.ftr-about p { margin-top: 18px; max-width: 42ch; line-height: 1.55; }
.ftr-col h2 { color: #fff; font: 900 22px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; }
.ftr-col ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.ftr-cities { grid-template-columns: 1fr 1fr; column-gap: 18px; }
.ftr-col a { color: var(--muted); text-decoration: none; font-size: 15.5px; }
.ftr-col a:hover { color: var(--cyan); }
.ftr-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line);
  font: 800 16px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; }

/* ---------------------------------------------------------------- адаптив */
@media (max-width: 1180px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-live { display: none; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hdr-nav, .hdr-cta { display: none; }
  .burger { display: grid; }
  .phero-in { grid-template-columns: minmax(0, 1fr); }
  .phero .stage { width: min(78vw, 440px); }
  .grid-2, .cta-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .grid-side { position: static; }
  .eta { display: none; }
  .hero-scene { right: -22%; }
}
@media (max-width: 700px) {
  :root { --hdr: 64px; }
  body { font-size: 17px; }
  .logo img { width: 154px; }
  .hero { display: block; min-height: 0; }
  .hero-scene { position: relative; right: auto; bottom: auto; height: auto; width: 100%; aspect-ratio: 1080 / 1200; margin-top: calc(var(--hdr) - 4px); }
  .hero-scene { -webkit-mask-image: linear-gradient(180deg, #000 76%, transparent); mask-image: linear-gradient(180deg, #000 76%, transparent); }
  .seq { left: 0; width: 100%; -webkit-mask-image: none; mask-image: none; }
  .hero-glow { left: 50%; top: 2%; width: 16%; height: 62%; }
  .hero-flood { left: -20%; right: -20%; top: 0; bottom: -10%;
    background: radial-gradient(55% 34% at 55% 78%, rgba(255, 196, 120, .36), rgba(255, 170, 90, .1) 55%, transparent 76%),
      radial-gradient(30% 40% at 57% 36%, rgba(255, 220, 170, .2), transparent 70%); }
  .night::after { background: linear-gradient(180deg, transparent 40%, rgba(3, 7, 18, .5) 62%, rgba(3, 7, 18, .9)); }
  .hero-in { margin-top: -44px; padding-top: 0; padding-bottom: 40px; }
  .kicker { font-size: 15px; letter-spacing: .16em; }
  .kicker::before { width: 26px; }
  .shout { font-size: 15.4vw; margin-top: 12px; }
  .hero h1 { font-size: 21px; margin-top: 16px; }
  .hero-sub { font-size: 16px; }
  .hero-cta { margin-top: 20px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .phero { padding: calc(var(--hdr) + 18px) 0 44px; min-height: 0; }
  .phero .crumbs ol { margin-bottom: 14px; font-size: 14px; }
  .has-stage .phero-in { gap: 8px; }
  .has-stage .stage, .has-stage .nf-door, .has-stage .info-door { order: -1; width: min(62vw, 300px); }
  .has-stage .stage { margin-top: 40px; }
  .has-stage .info-door { width: min(78vw, 340px); }
  .has-stage .chips { display: none; }
  .tag { letter-spacing: .14em; font-size: 15px; }
  .phero h1 { font-size: 13.4vw; }
  .phero-sub { font-size: 17.5px; }
  .phero .hero-cta .btn-line { display: none; }
  .h1-city > span { font-size: 9.6vw; }
  .phero-city .city-door { width: min(78vw, 340px); }
  .ans { padding: 44px 0 6px; }
  .ans p { padding-left: 20px; font-size: 19px; }
  .sec { padding: 64px 0; }
  .sec-tight { padding: 20px 0 44px; }
  .sec-head { margin-bottom: 28px; }
  .sec-head h2, .h2 { font-size: 12.4vw; }
  .prose { font-size: 18px; line-height: 1.66; }
  .side-card { padding: 22px 18px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { padding: 0 14px 18px; border-radius: 18px; }
  .card-stage { height: 150px; margin: 0 -14px; border-radius: 17px 17px 0 0; }
  .card-stage::before { height: 160px; }
  .card-img { width: 146px; height: 146px; top: 8px; }
  .card-t { margin-top: 10px; font-size: 22px; }
  .card-p { font-size: 14px; }
  .card-go { font-size: 13px; }
  .cards-sm .card-stage { height: 150px; }
  .cards-sm .card-img { width: 140px; height: 140px; }
  .cards-sm .card-t { font-size: 22px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .steps .num { font-size: 52px; }
  .city-tools { flex-wrap: wrap; }
  .city-search { max-width: none; flex-basis: 100%; }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .city-cell { padding: 13px 14px; }
  .city-cell b { font-size: 22px; }
  .city-cell span { font-size: 13px; }
  .links { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .links a { padding: 13px 14px; font-size: 15px; }
  .grid-2.grid-even { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { overflow: visible; }
  .facts-table { min-width: 0; font-size: 16px; }
  .facts-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .facts-table, .facts-table tbody, .facts-table tr, .facts-table th, .facts-table td { display: block; }
  .facts-table caption { display: block; padding: 20px 18px 10px; }
  .facts-table tbody tr { padding: 14px 18px 16px; border-top: 1px solid var(--line); }
  .facts-table tbody th { width: auto; padding: 0 0 8px; border: 0; color: #fff; font-size: 18px; }
  .facts-table td { padding: 6px 0 0; border: 0; }
  .facts-table td::before { content: attr(data-label); display: block; color: var(--cyan); font: 800 13px/1.3 var(--disp); letter-spacing: .14em; text-transform: uppercase; }
  .faq summary { padding: 17px 54px 17px 18px; font-size: 17.5px; }
  .faq summary::before, .faq summary::after { right: 20px; }
  .faq .answer { padding: 0 18px 18px; }
  .faq .answer p { font-size: 17px; }
  .cta-sec { padding: 70px 0 80px; }
  .form-card { padding: 26px 18px 24px 24px; border-radius: 22px; }
  .form-head h2 { font-size: 36px; }
  .form-row { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .board-grid { grid-template-columns: 1fr 1fr; }
  .board-grid .board-cell:last-child { grid-column: 1 / -1; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 360px) {
  .shout { font-size: 15vw; }
  .cards, .city-grid { grid-template-columns: minmax(0, 1fr); }
  .card-stage { height: 190px; }
  .card-img { width: 180px; height: 180px; }
}

/* ================================================================ слой движения
   Всё, что прячет содержимое, — либо CSS-анимация с fill-mode (она всегда доигрывает до видимого
   состояния), либо класс .rv, который ставит только JS. Прибытие через View Transitions (.vt)
   гасит анимации загрузки: страницу уже переносит сам переход. */

/* закрепление первого экрана главной на лишнюю высоту экрана, пока открывается дверь */
@media (min-width: 701px) and (min-height: 660px) and (prefers-reduced-motion: no-preference) {
  .js .hero-pin { height: 200vh; height: 200svh; }
  .js .hero-pin > .hero { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 0; }
}
@media (max-width: 700px) and (min-height: 600px) and (prefers-reduced-motion: no-preference) {
  .js .hero-pin { height: 200vh; height: 200svh; }
  .js .hero-pin > .hero { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; }
  .js .hero-pin .hero-scene { position: absolute; top: calc(var(--hdr) - 6px); right: 0; margin: 0;
    width: auto; height: min(calc(100svh - 392px), 111vw); }
  .js .hero-pin .hero-in { margin-top: 0; padding-bottom: 22px; }
  .js .hero-pin .hero-cta .btn-line { display: none; }
}
@media (max-width: 700px) and (min-height: 600px) and (max-height: 760px) and (prefers-reduced-motion: no-preference) {
  .js .hero-pin .hero-sub { display: none; }
  .js .hero-pin .hero-scene { height: min(calc(100svh - 330px), 111vw); }
}

/* кнопка заявки дышит мягким светом */
.btn-lg:not(.btn-line)::after { content: ""; position: absolute; inset: -3px; z-index: -1; border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 38px 8px rgba(120, 241, 255, .5); opacity: .3; }

/* огни ночного города на canvas: с JS статичный SVG убирается, canvas проявляется */
.bokeh-cv { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; }
.bokeh-on > .bokeh-cv { opacity: 1; }
.city-sec > .bokeh-cv { z-index: 0; }
.cur-glow { position: fixed; left: -300px; top: -300px; width: 600px; height: 600px; border-radius: 50%; z-index: 45; pointer-events: none;
  opacity: 0; transition: opacity .5s; background: radial-gradient(closest-side, rgba(150, 232, 255, .075), rgba(120, 241, 255, .028) 55%, transparent); }
.cur-glow.on { opacity: 1; }

/* появление блоков при прокрутке (класс ставит JS только тем, кто ниже экрана) */
.rv { opacity: 0; translate: 0 32px; }
.rv.in { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease), translate .8s var(--ease); }

/* карточки: 3D-наклон за мышью, луч тянется к курсору, предмет парит над карточкой */
.card.tilt { transform: perspective(900px) translateY(var(--ty, 0px)) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .22s ease-out, border-color .25s; }
.card.tilt:hover { --ty: -6px; }
.card.tilt .card-img { transform: translateZ(42px); }
.card-stage::before { transform-origin: 50% 0; transform: translateX(-50%) skewX(var(--sk, 0deg)); transition: transform .3s ease-out; }

@media (prefers-reduced-motion: no-preference) {
  .btn-lg:not(.btn-line)::after { animation: breath 3.4s ease-in-out infinite; }

  /* первый экран главной: строки выезжают из-под маски, остальное проявляется следом */
  html:not(.vt) .shout .ln { animation: mask calc(1.25s + var(--i, 0) * 80ms) linear both; }
  html:not(.vt) .shout .ln > span { animation: up 1.05s var(--ease-out) both; animation-delay: calc(.12s + var(--i, 0) * 80ms); }
  html:not(.vt) .hero .kicker { animation: fadeUp .8s var(--ease) .04s both; }
  html:not(.vt) .hero h1 { animation: fadeUp .8s var(--ease) .44s both; }
  html:not(.vt) .hero-sub { animation: fadeUp .8s var(--ease) .52s both; }
  html:not(.vt) .hero-in > .hero-cta { animation: fadeUp .8s var(--ease) .6s both; }
  html:not(.vt) .eta { animation: fadeUp .9s var(--ease) .95s both; }

  /* первые экраны внутренних страниц: слова заголовка, предмет поднимается в луч лампы */
  html:not(.vt) .phero .w { animation: mask calc(1.15s + var(--i, 0) * 55ms) linear both; }
  html:not(.vt) .phero .w > span { animation: up .95s var(--ease-out) both; animation-delay: calc(.1s + var(--i, 0) * 55ms); }
  html:not(.vt) .phero .crumbs, html:not(.vt) .phero .tag { animation: fadeUp .7s var(--ease) both; }
  html:not(.vt) .phero-sub { animation: fadeUp .8s var(--ease) .35s both; }
  html:not(.vt) .phero .chips { animation: fadeUp .8s var(--ease) .45s both; }
  html:not(.vt) .phero .hero-cta { animation: fadeUp .8s var(--ease) .55s both; }
  html:not(.vt) .phero .mt-32 { animation: fadeUp .8s var(--ease) .5s both; }
  html:not(.vt) .stage img { animation: rise 1.4s var(--ease-out) .3s both; }
  html:not(.vt) .stage::before, html:not(.vt) .stage-lamp { animation: flick 1.5s linear .05s both; }
  html:not(.vt) .stage::after { animation: fadeIn 1.1s ease-out .95s both; }
  html:not(.vt) .stage-word { animation: fadeIn 1.6s ease-out .5s both; }
  html:not(.vt) .nf-door img, html:not(.vt) .info-door img { animation: fadeIn 1.4s ease-out .2s both; }
  html:not(.vt) .h1-city em::after { animation: sweep 2.4s var(--ease) 1.35s both; }

  /* карточки: лампа вспыхивает при появлении, предмет плавно парит, пока карточка видна */
  .card.lit .card-stage::before, .card.lit .card-stage::after { animation: flick 1.3s linear both; animation-delay: var(--dl, 0s); }
  .card.vis .card-img { animation: bob 5.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -.8s); }

  /* 404: свет под дверью дышит */
  .nf-door::after { animation: breathe 4.6s ease-in-out infinite; }
}
/* блик по названию города: дубликат текста, видна только бегущая полоса */
.h1-city em::after { content: attr(data-text); position: absolute; inset: 0; color: transparent; text-shadow: none; pointer-events: none;
  background: linear-gradient(100deg, transparent 42%, rgba(255, 255, 255, .95) 50%, transparent 58%) 100% 0 / 320% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; }

@keyframes up { from { transform: translate3d(0, 135%, 0); } to { transform: none; } }
@keyframes mask { 0%, 99.9% { clip-path: inset(-.5em -.4em -.22em -.4em); } 100% { clip-path: none; } }
@keyframes fadeUp { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 70px; scale: .94; } 55% { opacity: 1; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes flick { 0%, 12% { opacity: 0; } 15% { opacity: .85; } 19% { opacity: .12; } 26% { opacity: 1; } 30% { opacity: .3; } 40%, 100% { opacity: 1; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes breath { 0%, 100% { opacity: .22; } 50% { opacity: .75; } }
@keyframes breathe { 0%, 100% { opacity: .5; scale: .92 1; } 50% { opacity: 1; scale: 1.06 1; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }

@media (prefers-reduced-motion: no-preference) {
  .js .night::before { background: radial-gradient(70% 34% at 50% 82%, rgba(46, 110, 255, .3), transparent 70%); }
  .js .city-sec .night-bg { background: linear-gradient(180deg, var(--bg0), #0a1a4a 80%, var(--bg0)); }
  .js .cta-sec::before { display: none; }
}

/* плавные переходы между страницами (где браузер умеет): шапка стоит, заголовок перетекает */
@view-transition { navigation: auto; }
.hdr { view-transition-name: hdr; }
.vt-title { view-transition-name: title; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; }
::view-transition-group(title) { animation-duration: .55s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
