/* Route announcer */
	.astro-route-announcer {
		position: absolute;
		left: 0;
		top: 0;
		clip: rect(0 0 0 0);
		clip-path: inset(50%);
		overflow: hidden;
		white-space: nowrap;
		width: 1px;
		height: 1px;
	}@keyframes astroFadeInOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@keyframes astroFadeIn {
	from {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroFadeOut {
	from {
		opacity: 1;
		mix-blend-mode: plus-lighter;
	}
	to {
		opacity: 0;
		mix-blend-mode: plus-lighter;
	}
}

@keyframes astroSlideFromRight {
	from {
		transform: translateX(100%);
	}
}

@keyframes astroSlideFromLeft {
	from {
		transform: translateX(-100%);
	}
}

@keyframes astroSlideToRight {
	to {
		transform: translateX(100%);
	}
}

@keyframes astroSlideToLeft {
	to {
		transform: translateX(-100%);
	}
}

@media (prefers-reduced-motion) {
	::view-transition-group(*),
	::view-transition-old(*),
	::view-transition-new(*) {
		animation: none !important;
	}

	[data-astro-transition-scope] {
		animation: none !important;
	}
}
/* Тема «Атом Крафт»: стили эскиза docs/art/site-styleframe/index.html (перенос tools/port-sketch.mjs). */
@font-face { font-family: 'Tektur'; src: url(/fonts/Tektur-Black.ttf) format('truetype'); font-weight: 900; font-stretch: 100%; font-display: swap; }
@font-face { font-family: 'Tektur'; src: url(/fonts/Tektur-Condensed-Black.ttf) format('truetype'); font-weight: 900; font-stretch: 75%; font-display: swap; }
@font-face { font-family: 'Tektur'; src: url(/fonts/Tektur-Condensed-Bold.ttf) format('truetype'); font-weight: 700; font-stretch: 75%; font-display: swap; }

/* ------------------------------------------------------------ токены оболочки и миров */
@property --accent { syntax: '<color>'; inherits: true; initial-value: #ffd21f; }
@property --accent-ink { syntax: '<color>'; inherits: true; initial-value: #17130a; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #ff7a2a; }

:root {
  --ink-0: #0b0d10;          /* графит с холодным отливом */
  --ink-1: #111419;
  --ink-2: #181c22;
  --ink-3: #20252d;
  --line: rgba(236, 232, 224, 0.12);
  --line-2: rgba(236, 232, 224, 0.22);
  --text: #f4efe6;           /* тёплый белый */
  --text-2: #b9b3aa;
  --text-3: #858079;
  --alarm: #ff3b2f;          /* только тревоги и пуски */

  --font-display: 'Tektur', 'Arial Narrow', sans-serif;
  --font-ui: 'JetBrains Mono', ui-monospace, monospace;
  --font-text: 'Onest', system-ui, sans-serif;

  --pad: clamp(16px, 4vw, 56px);
  --ease-out: cubic-bezier(.215, .61, .355, 1);     /* power3.out */
  --ease-expo: cubic-bezier(.19, 1, .22, 1);        /* expo.out */
  --ease-inout: cubic-bezier(.77, 0, .18, 1);       /* power4.inOut */

  transition: --accent .45s var(--ease-out), --accent-ink .45s var(--ease-out), --glow .45s var(--ease-out);
}
html[data-world="atom"] { --accent: #ffd21f; --accent-ink: #17130a; --glow: #ff7a2a; }
html[data-world="soon"] { --accent: #8fe3ff; --accent-ink: #061218; --glow: #4fb6ff; }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--ink-0);
  color: var(--text);
  font: 400 16px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.display { font-family: var(--font-display); font-weight: 900; font-stretch: 75%; text-transform: uppercase; }

/* ------------------------------------------------------------ шапка оболочки «Рубеж» */
.shell {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 72px; padding: 0 var(--pad);
  background: linear-gradient(to bottom, rgba(8, 9, 12, .78), rgba(8, 9, 12, 0));
  transition: background-color .3s var(--ease-out);
}
.shell.solid { background-color: rgba(8, 9, 12, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.mark {
  justify-self: start; display: inline-flex; align-items: center; gap: 11px;
  text-decoration: none; color: var(--text); padding: 8px 0;
  font: 900 24px/1 var(--font-display); font-stretch: 100%; letter-spacing: .06em; text-transform: uppercase;
}
.mark svg { width: 26px; height: 26px; flex: none; }
.mark .bar { fill: var(--accent); }

.worlds {
  display: flex; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 11, 14, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.world-tab {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.world-tab:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.world-tab[aria-current="true"] { color: var(--accent-ink); background: var(--accent); }
.world-tab svg { width: 16px; height: 16px; flex: none; }
.world-tab .sq { width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 1px; flex: none; }

.shell-right { justify-self: end; display: flex; align-items: center; gap: 14px; }
.shell-right .status { margin-right: 8px; }
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.6s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: .25; box-shadow: none; } }
.btn-login {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border: 1px solid var(--line-2); border-radius: 2px; text-decoration: none;
  font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.btn-login:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-login svg { display: none; width: 18px; height: 18px; }
/* звук сайта: тумблер пульта, по умолчанию выключен */
.btn-sound {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line-2); border-radius: 2px; background: transparent; cursor: pointer; color: var(--text-2);
  font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), color .2s var(--ease-out);
}
.btn-sound:hover { border-color: var(--text); color: var(--text); background: rgba(255, 255, 255, .06); }
.btn-sound svg { width: 18px; height: 18px; flex: none; }
.btn-sound .wave { display: none; }
.btn-sound[aria-pressed="true"] { color: var(--text); }
.btn-sound[aria-pressed="true"] .wave { display: inline; }
.btn-sound[aria-pressed="true"] .mute { display: none; }
.btn-sound .sw { position: relative; width: 26px; height: 14px; border-radius: 7px; flex: none; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s var(--ease-out); }
.btn-sound .sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--text-2); transition: transform .22s var(--ease-out), background-color .2s var(--ease-out), box-shadow .2s var(--ease-out); }
.btn-sound[aria-pressed="true"] .sw { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.btn-sound[aria-pressed="true"] .sw::after { transform: translateX(12px); background: var(--accent); box-shadow: 0 0 8px var(--accent); }
/* звук выбран, но браузер ещё не пустил: тумблер честно «выкл», лампа дежурного режима мигает трижды */
.btn-sound[data-wait] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line-2)); }
.btn-sound[data-wait] .sw::after { animation: standby 1.1s ease-in-out 3; }
@keyframes standby { 50% { background: var(--accent); box-shadow: 0 0 8px var(--accent); } }
.sound-wrap { position: relative; display: inline-flex; }
.sound-hint {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 2; white-space: nowrap; pointer-events: none;
  padding: 8px 12px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 2px;
  background: rgba(10, 9, 12, .86); color: var(--text); font: 500 13px/1.2 var(--font-ui);
  animation: hint-in .3s var(--ease-out);
}
.sound-hint[hidden] { display: none; }
@keyframes hint-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .btn-sound[data-wait] .sw::after, .sound-hint { animation: none; } }

/* ------------------------------------------------------------ сцена мира */
.stage { position: relative; height: 100svh; min-height: 680px; overflow: hidden; background: #07060a; }
.scene { position: absolute; inset: 0; overflow: hidden; }
.scene[hidden] { display: block; visibility: hidden; }
.layer { position: absolute; inset: 0; will-change: transform; }
.layer picture { display: contents; }
.layer img, .layer video { width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, 50% 50%); display: block; }
.layer .clip { position: absolute; inset: 0; opacity: 0; }
.layer .clip.on { opacity: 1; }
.layer .clip.fade { transition: opacity 1.4s cubic-bezier(.455,.03,.515,.955); }
/* вспышка удара: белое с тёплым краем поверх всего, кроме шапки */
.whiteout { position: absolute; inset: 0; z-index: 7; pointer-events: none; opacity: 0;
  background: radial-gradient(ellipse 80% 70% at var(--wx, 50%) var(--wy, 50%), #fff 0%, #fff6e6 35%, #ffd9a8 70%, #ffb070 100%); }
.scene-atom .embers { opacity: 0; transition: opacity 1.2s ease-out; }
.scene-atom[data-phase="after"] .embers { opacity: 1; }
.console .track[data-phase] { display: none; }
.scene[data-phase="calm"] .track[data-phase="calm"], .scene[data-phase="alarm"] .track[data-phase="alarm"], .scene[data-phase="after"] .track[data-phase="after"] { display: flex; }
.scene-soon .console .track { display: flex; }
.console .alarm-led { background: var(--alarm); box-shadow: 0 0 10px var(--alarm); animation-duration: .7s; }
.console .alarm-txt { color: var(--alarm); }
.scene[data-phase="alarm"] .console { border-top-color: rgba(255, 59, 47, .45); }
.layer-bg { transform: scale(1.04); }
.embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 4% 92%, rgba(7, 6, 10, .82) 0%, rgba(7, 6, 10, .55) 48%, rgba(7, 6, 10, 0) 80%),
    linear-gradient(90deg, rgba(7, 6, 10, .6) 0%, rgba(7, 6, 10, .25) 32%, rgba(7, 6, 10, 0) 52%),
    linear-gradient(to top, rgba(7, 6, 10, .92) 0%, rgba(7, 6, 10, .35) 20%, rgba(7, 6, 10, 0) 42%);
}
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 85% 80% at 52% 42%, transparent 55%, rgba(4, 3, 7, .55) 100%); }
.grain {
  position: absolute; inset: -50%; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}
.flash { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; opacity: 0; }
.flash::before {
  content: ''; position: absolute; left: -45vmax; top: -45vmax; width: 90vmax; height: 90vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 150, .9) 0%, rgba(255, 140, 60, .35) 18%, rgba(255, 90, 40, 0) 52%);
  mix-blend-mode: screen;
}

/* ------------------------------------------------------------ текст первого экрана */
.copy {
  position: absolute; left: var(--pad); bottom: calc(44px + clamp(28px, 5vh, 56px)); z-index: 5;
  max-width: min(720px, 92vw);
}
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 14px;
  font: 500 12px/1.3 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: #ddd6cb;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .8);
}
.kicker::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); flex: none; }
/* знак мира — «Маркировка»: трафарет пусковой, тёплый белый и сигнальный жёлтый, шов поперёк букв, полоса опасности */
.logo { display: inline-block; margin: 0 0 0 -.3%; font: 900 clamp(64px, 8vw, 128px)/.8 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em;
  filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .55)); }
.logo .l1, .logo .l2 { display: block; -webkit-mask: linear-gradient(#000 0 47%, transparent 47% 52.5%, #000 52.5%); mask: linear-gradient(#000 0 47%, transparent 47% 52.5%, #000 52.5%); }
.logo .l1 { display: flex; align-items: flex-start; gap: .13em; color: var(--text); }
.logo .l1 i { margin-top: .1em; padding: .42em .55em; font: 700 max(10px, .105em)/1 var(--font-ui); font-style: normal; letter-spacing: .14em; color: var(--accent-ink); background: var(--accent); }
.logo .l2 { color: var(--accent); }
.logo .bar { display: block; height: .066em; margin-top: .12em; background: repeating-linear-gradient(-45deg, var(--accent) 0 .075em, #121316 .075em .15em); }
.slogan {
  margin: 20px 0 0; font: 700 clamp(24px, 2.25vw, 34px)/1.1 var(--font-display); font-stretch: 75%;
  color: var(--text); text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.slogan b { font-weight: 700; color: var(--accent); }
.tagline { margin: 12px 0 0; max-width: 50ch; font: 400 clamp(16px, 1.2vw, 18px)/1.5 var(--font-text); color: #d0c9bf; text-shadow: 0 1px 14px rgba(0, 0, 0, .75); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.micro { margin: 12px 0 0; font: 400 13px/1.4 var(--font-text); color: var(--text-3); text-shadow: 0 1px 10px rgba(0, 0, 0, .8); }
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 2px; text-decoration: none; overflow: hidden; cursor: pointer;
  font: 700 13px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase;
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease-out), background-color .25s var(--ease-out), border-color .25s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 0 transparent; }
.btn-primary::after { /* сигнальная разметка проезжает при наведении */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(-45deg, rgba(0, 0, 0, .14) 0 8px, transparent 8px 16px);
  transform: translateX(-101%); transition: transform .5s var(--ease-out);
}
.btn-primary:hover { box-shadow: 0 0 34px -4px color-mix(in srgb, var(--accent) 70%, transparent); transform: translateY(-1px); }
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:active { transform: translateY(0) scale(.99); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(10, 10, 14, .35); }
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, .06); }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn-ghost:hover .arrow { transform: translateY(3px); }

/* ------------------------------------------------------------ полоса пульта */
.console {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; height: 44px;
  display: flex; align-items: center; overflow: hidden;
  border-top: 1px solid var(--line); background: rgba(8, 9, 12, .8);
  font: 500 11.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2);
}
.console .track { display: flex; align-items: center; padding: 0 var(--pad); white-space: nowrap; }
.console .cell { display: inline-flex; align-items: center; gap: 10px; padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line); }
.console .cell:last-child { border-right: 0; }
.console .dup { display: none; }
.console .val { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.console .hot { color: var(--accent); }
.console .led { width: 6px; height: 6px; }
.console .led.slow { animation-duration: 2.8s; }
.console .replay {
  position: absolute; right: 0; top: 0; bottom: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 0 var(--pad) 0 34px; border: 0; cursor: pointer; color: var(--text);
  background: linear-gradient(90deg, rgba(8, 9, 12, 0), rgba(8, 9, 12, .96) 28px);
  font: inherit; letter-spacing: inherit; text-transform: inherit; transition: color .2s var(--ease-out);
}
.console .replay:hover { color: var(--accent); }
.console .replay[hidden] { display: none; }
.console .replay svg { width: 15px; height: 15px; flex: none; }

/* ------------------------------------------------------------ мир «скоро»: сигнал из-за рубежа */
/* свой кадр мира (не «Атом»); поверх — тонкая развёртка и рамка наведения на стройку */
.scene-soon .scan { position: absolute; inset: 0; pointer-events: none; opacity: .22; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); }
.scene-soon .tear { position: absolute; left: 0; right: 0; height: 16vh; top: 30%; background: linear-gradient(to bottom, transparent, rgba(143, 227, 255, .08), transparent); animation: tear 5.5s var(--ease-inout) infinite; }
@keyframes tear { 0% { transform: translateY(-40vh); } 100% { transform: translateY(80vh); } }
.scene-soon .frame-sq {
  position: absolute; left: 70.5%; top: 41%; width: clamp(140px, 19vw, 300px); aspect-ratio: 1; translate: -50% -50%;
  border: 1.5px solid rgba(143, 227, 255, .55); box-shadow: 0 0 60px -10px rgba(79, 182, 255, .6), inset 0 0 60px -20px rgba(79, 182, 255, .5);
}
.scene-soon .frame-sq::before, .scene-soon .frame-sq::after { content: ''; position: absolute; inset: 14%; border: 1px dashed rgba(143, 227, 255, .25); }
.scene-soon .frame-sq::after { inset: auto -40% 50% -40%; height: 0; border: 0; border-top: 1px solid rgba(143, 227, 255, .35); }
.soon-title { margin: 0; font: 900 calc(clamp(64px, 8vw, 140px)) / .86 var(--font-display); font-stretch: 75%; text-transform: uppercase; color: #e8f6fb; }

/* ------------------------------------------------------------ пересечение рубежа */
.rubezh {
  position: fixed; top: 0; bottom: 0; left: 0; width: 2px; z-index: 40; pointer-events: none; opacity: 0;
  background: var(--accent); box-shadow: 0 0 18px 2px var(--accent), 0 0 80px 20px color-mix(in srgb, var(--accent) 35%, transparent);
}
.shock {
  position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; z-index: 4; pointer-events: none; opacity: 0;
  border: 2px solid rgba(255, 226, 170, .9); box-shadow: 0 0 30px 6px rgba(255, 150, 60, .55), inset 0 0 30px 6px rgba(255, 150, 60, .35);
}

/* ============================================================ разделы страницы */
.sec { position: relative; padding: clamp(84px, 12vh, 150px) var(--pad); border-top: 1px solid var(--line); background: var(--ink-0); }
.sec-in { max-width: 1240px; margin: 0 auto; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.eyebrow .n { color: var(--accent); }
.eyebrow::after { content: ''; flex: 0 0 40px; height: 1px; background: var(--line-2); }
.h2 { margin: 0; font: 900 clamp(42px, 5.2vw, 88px)/.92 var(--font-display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .005em; text-wrap: balance; }
.h2 em { font-style: normal; color: var(--accent); }
.lead { margin: 24px 0 0; max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--text-2); }
.lead b, .body b { color: var(--text); font-weight: 500; }
.body { margin: 16px 0 0; max-width: 52ch; color: var(--text-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.split.rev { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 44px; }
.cta-row .note { font-size: 14px; color: var(--text-3); }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-expo); }
.reveal.in { opacity: 1; transform: none; }

/* иллюстрации разделов: тонкая рамка, проявление из приближения, медленный дрейф при прокрутке */
.art { position: relative; margin: 0; overflow: hidden; border-radius: 4px; background: var(--ink-2); isolation: isolate; }
.art > img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; scale: 1.08; transition: scale 1.8s var(--ease-expo); }
.reveal.in .art > img, .art.reveal.in > img, .scrub.in .art > img { scale: 1; }
.art::after { content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .1); }
@keyframes drift { from { translate: 0 -4.5%; } to { translate: 0 4.5%; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .art > img.px { animation: drift linear both; animation-timeline: view(); }
  }
}
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 2px;
  background: rgba(8, 9, 12, .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text);
}


/* 2 · город: сетка чанков */
.chunks { position: relative; padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: 4px; background:
  radial-gradient(ellipse 70% 60% at 50% 45%, rgba(255, 210, 31, .07), transparent 70%), var(--ink-1); }
.chunk-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; aspect-ratio: 1; max-width: 460px; margin: 0 auto; }
.chunk-grid i {
  position: relative; border-radius: 2px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .06);
  transition: background-color .5s var(--ease-out), border-color .5s var(--ease-out), transform .5s var(--ease-expo);
}
.chunk-grid i.on { background: color-mix(in srgb, var(--accent) 22%, #1a1810); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.chunk-grid i.new { transform: scale(.82); }
.chunk-grid i.core::after { content: ''; position: absolute; inset: 32%; border-radius: 1px; background: var(--accent); box-shadow: 0 0 18px var(--accent); }
.chunk-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 20px auto 0; max-width: 460px; font: 500 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.chunk-meta .val { color: var(--text); font-weight: 700; font-size: 13px; }
.levels { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; max-width: 460px; margin: 16px auto 0; }
.levels button {
  min-height: 44px; border: 1px solid var(--line); border-radius: 2px; background: transparent; cursor: pointer;
  font: 700 12px/1 var(--font-ui); color: var(--text-3); transition: color .2s, border-color .2s, background-color .2s;
}
.levels button:hover { color: var(--text); border-color: var(--line-2); }
.levels button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }



/* 5 · война: панорама осады во всю ширину и сравнение */
#war { background: radial-gradient(ellipse 90% 34% at 50% 44%, rgba(122, 58, 170, .13), transparent 72%), var(--ink-0); }
.band { margin: clamp(48px, 7vh, 84px) calc(-1 * var(--pad)) 0; aspect-ratio: 21 / 9; max-height: 80vh; border-radius: 0; background: #140e1a; }
.band::after { box-shadow: none; }
.band::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, var(--ink-0) 0%, rgba(11, 13, 16, 0) 16%, rgba(11, 13, 16, 0) 72%, var(--ink-0) 100%); }
.war-top { align-items: end; }
.war-top .lead { margin: 0; }
.war-table { width: 100%; margin-top: clamp(40px, 6vh, 64px); border-collapse: collapse; }
.war-table th, .war-table td { padding: 18px 20px 18px 0; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.war-table thead th { padding-top: 0; border-top: 0; }
.war-table thead th:not(:first-child) { font: 900 clamp(30px, 3vw, 48px)/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.war-table thead th small { display: block; margin-top: 8px; font: 500 12px/1.3 var(--font-ui); letter-spacing: .12em; color: var(--text-3); text-transform: uppercase; }
.war-table tbody th { width: 18%; font: 700 12px/1.5 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); font-weight: 700; }
.war-table td { width: 41%; color: var(--text-2); }
.war-table td b { color: var(--text); font-weight: 500; }
.war-more { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 44px); margin-top: clamp(40px, 6vh, 64px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.war-more h3 { margin: 0; font: 900 26px/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.war-more p { margin: 10px 0 0; color: var(--text-2); }

/* 6 · удар: шаги */
.strike { background: radial-gradient(ellipse 60% 50% at 85% 10%, rgba(255, 90, 40, .08), transparent 70%), var(--ink-0); }
.strike-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 110px); align-items: start; }
.launch { position: relative; margin-top: 36px; aspect-ratio: 4 / 5; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.launch > img { object-position: 50% 30%; }
.count { position: absolute; z-index: 2; left: 14px; top: 14px; margin: 0; border-color: rgba(255, 59, 47, .35); color: var(--text-2); }
.count b { font-size: 13px; letter-spacing: .08em; color: var(--text); font-variant-numeric: tabular-nums; }
.count i { width: 7px; height: 7px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 10px var(--alarm); animation: blink 1.2s steps(1) infinite; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; }
.steps::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(to bottom, var(--line-2), var(--accent) 55%, var(--alarm) 72%, var(--line-2)); }
.steps li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 22px; padding: 0 0 38px; }
.steps li:last-child { padding-bottom: 0; }
.steps .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ink-1); font: 700 12px/1 var(--font-ui); color: var(--text-2); }
.steps .t { font: 700 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.steps h3 { margin: 8px 0 0; font: 900 clamp(26px, 2.4vw, 36px)/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.steps p { margin: 10px 0 0; max-width: 46ch; color: var(--text-2); }
.steps .alarm .dot { border-color: var(--alarm); color: var(--alarm); box-shadow: 0 0 22px -4px rgba(255, 59, 47, .7); }
.steps .alarm .t { color: var(--alarm); }
.deter { margin: 28px 0 0; font: 700 clamp(22px, 1.8vw, 28px)/1.15 var(--font-display); font-stretch: 75%; color: var(--text); }
.steps + .deter { margin-top: 36px; }
.brand-note { margin-top: 40px; padding: 18px 20px; border-left: 2px solid var(--accent); background: rgba(255, 255, 255, .03); color: var(--text-2); }
.brand-note b { color: var(--text); font-weight: 600; }

/* 7 · свои моды */
.mods-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vh, 64px); }
.industry { position: relative; padding: clamp(28px, 3.6vw, 52px); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: 4px; overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 48px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 48px), linear-gradient(160deg, #1b1a14, var(--ink-1)); }
.mods-grid { align-items: center; }
.industry-art { --ip: clamp(28px, 3.6vw, 52px); margin: calc(-1 * var(--ip)) calc(-1 * var(--ip)) 30px; aspect-ratio: 16 / 9; border-radius: 0; }
.industry-art::after { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent) 25%, transparent); }
.industry-art::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(to bottom, rgba(27, 26, 20, 0) 62%, rgba(27, 26, 20, .85) 100%); }
.industry .tag { display: inline-block; padding: 7px 10px; border-radius: 2px; background: var(--accent); color: var(--accent-ink); font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.industry h3 { margin: 20px 0 0; font: 900 clamp(38px, 4.2vw, 68px)/.92 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.industry p + p { margin-top: 12px; }
.industry p { margin: 18px 0 0; max-width: 42ch; color: var(--text-2); font-size: 17px; }
.mod-list { list-style: none; margin: 0; padding: 0; }
.mod-list li { padding: 24px 0; border-top: 1px solid var(--line); }
.mod-list li:last-child { border-bottom: 1px solid var(--line); }
.mod-list h3 { margin: 0; font: 900 26px/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.mod-list p { margin: 8px 0 0; color: var(--text-2); }
.made { margin-top: 28px; font: 500 13px/1.5 var(--font-ui); letter-spacing: .06em; color: var(--text-3); }

/* 8 · своя броня: витрина под брезентом, досье с закрытыми строками */
.armor { background: radial-gradient(ellipse 42% 60% at 27% 40%, rgba(150, 180, 225, .08), transparent 70%), linear-gradient(to bottom, #090a0d, #0b0c0f); }
.armor-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.armor-art { aspect-ratio: 3 / 4; box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .04); }
.armor-art > img { object-position: 50% 40%; }
.armor-art .beam { position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(ellipse 30% 46% at 50% 26%, rgba(205, 222, 255, .16), transparent 70%); animation: hum 5.5s ease-in-out infinite; }
@keyframes hum { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
.armor-flag { position: absolute; z-index: 2; left: 14px; bottom: 14px; }
.armor-flag i { width: 22px; height: 12px; border-radius: 1px; background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #15130c 4px 8px); }
.armor .lead { max-width: 44ch; }
.dossier { margin: 34px 0 0; border-top: 1px solid var(--line); }
.dossier > div { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.dossier dt { font: 700 11px/1.7 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.dossier dd { margin: 0; font-weight: 500; color: var(--text); }
.redact { position: relative; display: inline-block; min-width: 15ch; padding: 6px 10px; overflow: hidden; border-radius: 1px; vertical-align: middle;
  background: repeating-linear-gradient(-45deg, #1d2027 0 6px, #16181d 6px 12px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05);
  font: 700 11px/1.2 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.redact::after { content: ''; position: absolute; inset: 0; translate: -100% 0; animation: sweep 4.2s var(--ease-inout) infinite;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .09) 50%, transparent 70%); }
.shut + .shut .redact::after { animation-delay: .35s; }
@keyframes sweep { 55%, 100% { translate: 100% 0; } }
.armor .tg { margin-top: 30px; }

/* 8 · честно */
.honest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 6vh, 64px); }
.buy { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 4px; background: var(--ink-1); }
.buy h3 { margin: 0 0 18px; font: 700 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.buy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.buy li { display: flex; gap: 14px; align-items: baseline; font-size: 18px; font-weight: 500; }
.buy li::before { flex: none; width: 14px; text-align: center; font: 700 14px/1 var(--font-ui); }
.buy.no li { color: var(--text); }
.buy.no li::before { content: '×'; color: var(--alarm); }
.buy.yes li::before { content: '+'; color: var(--accent); }
.buy .foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--text-2); }
.state-row { display: grid; grid-template-columns: auto 1fr 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; margin-top: clamp(40px, 6vh, 64px); padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.state-row .lbl { display: inline-flex; align-items: center; gap: 10px; font: 700 12px/1.6 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.state-row h4 { margin: 0 0 6px; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.state-row p { margin: 0; color: var(--text-2); }
.faq { margin-top: clamp(40px, 6vh, 64px); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; cursor: pointer; list-style: none; font: 900 clamp(22px, 2vw, 28px)/1.1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; font: 500 22px/1 var(--font-ui); color: var(--accent); transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 60ch; color: var(--text-2); }

/* 9 · действие */
.apply { overflow: hidden; background: radial-gradient(ellipse 70% 80% at 80% 100%, rgba(255, 122, 42, .14), transparent 65%), linear-gradient(to bottom, var(--ink-0), #120d0b); }
.apply-art { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background: linear-gradient(90deg, var(--ink-0) 18%, rgba(11, 13, 16, .72) 52%, rgba(11, 13, 16, .25) 100%),
    linear-gradient(to bottom, var(--ink-0) 0%, rgba(11, 13, 16, 0) 38%, rgba(11, 13, 16, 0) 70%, #120d0b 100%),
    url(/media/atom-k2-1280.webp) 72% 58% / cover no-repeat; }
.apply > .sec-in { position: relative; z-index: 1; }
.apply .h2 { font-size: clamp(46px, 6.4vw, 112px); max-width: 14ch; }
.form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; max-width: 900px; }
.field { flex: 1 1 220px; display: grid; gap: 8px; }
.field label { font: 700 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.field input { min-height: 54px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(0, 0, 0, .35); font-size: 17px; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.form .btn { align-self: end; }
.consent { margin: 14px 0 0; max-width: 640px; font-size: 13px; color: var(--text-3); }
.tg { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 20px; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.tg:hover { color: var(--text); border-color: var(--text); }

.foot-site { padding: 36px var(--pad) 48px; border-top: 1px solid var(--line); background: #08090b; font-size: 13px; color: var(--text-3); }
.foot-site .row { max-width: 1240px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }

/* ============================================================ акты: экран за экраном
   Прилипающий акт (.pinned): .act-pin стоит на месте, пока прокручивается .act-run; --p идёт от 0 до 1.
   Акт без места на экране (телефон, низкое окно) идёт потоком: .scrub проявляется при появлении. */
.sec.act { padding: 0; }
.act-pin { position: relative; padding: clamp(84px, 12vh, 150px) var(--pad); }
.act-run { display: none; }
.act-flow { position: relative; padding: 0 var(--pad) clamp(84px, 12vh, 150px); }
.act.pinned .act-pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 88px var(--pad) 36px; overflow: hidden; }
.act.pinned .act-run { display: block; height: calc(var(--len) * 100vh); height: calc(var(--len) * 100svh); }
.act.pinned .act-pin > .sec-in { width: 100%; }
.act.pinned .act-pin .reveal { opacity: 1; transform: none; transition: none; }
.act.pinned .art > img { scale: 1; }
.scrub { --t: clamp(0, (var(--p, 1) - var(--a, 0)) / (var(--b, 1) - var(--a, 0)), 1); }
.act.pinned .scrub { opacity: var(--t); translate: 0 calc((1 - var(--t)) * 26px); }
.act:not(.pinned) .scrub { opacity: 0; translate: 0 26px; transition: opacity .9s var(--ease-out), translate .9s var(--ease-expo); }
.act:not(.pinned) .scrub.in { opacity: 1; translate: none; }
.scrub.in .art > img { scale: 1; }
/* уход акта: следующий наезжает, этот гаснет и чуть отступает */
.act.pinned .act-pin > .sec-in { opacity: calc(1 - var(--x, 0) * .55); scale: calc(1 - var(--x, 0) * .03); }




/* кино пуска: на весь экран, поверх шапки */
.cine { position: fixed; inset: 0; z-index: 90; background: #030405; color: var(--text); }
.cine[hidden] { display: none; }
.cine-v, .cine-radar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s var(--ease-out); }
.cine-v.on, .cine-radar.on { opacity: 1; }
.cine-radar { display: grid; place-items: center; background: radial-gradient(ellipse 70% 70% at 50% 50%, #0d1a16, #050807 80%); }
.cine-radar .r-grid { stroke: rgba(120, 220, 170, .12); stroke-width: .5; fill: none; }
.cine-radar .r-arc { fill: none; stroke: var(--alarm); stroke-width: 1; stroke-dasharray: 2 3; }
.cine-radar .r-dot { fill: #fff; filter: drop-shadow(0 0 4px var(--alarm)); }
.cine-radar .r-city { fill: none; stroke: rgba(255, 255, 255, .35); stroke-width: .8; }
.cine-radar .r-silo { fill: var(--accent); }
.cine-radar .r-target { stroke: var(--alarm); stroke-width: 1; }
.cine-radar text { font: 700 5.5px var(--font-ui); letter-spacing: .1em; fill: rgba(255, 255, 255, .6); text-transform: uppercase; }
.cine::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 22%, transparent 70%, rgba(0, 0, 0, .7)); transition: background .6s; }
.cine.ended::after { background: linear-gradient(to right, rgba(0, 0, 0, .74), rgba(0, 0, 0, .3) 50%, transparent 72%), linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent 22%, transparent 58%, rgba(0, 0, 0, .8)); }
/* радар: развёртка вокруг шахты, кольца дальности, строки экрана */
.cine-radar::before { content: ''; position: absolute; left: 50%; top: 50%; width: 130vmax; height: 130vmax; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 0deg, rgba(120, 220, 170, .2), rgba(120, 220, 170, 0) 46deg, transparent); animation: radar-sweep 2.6s linear infinite; }
.cine-radar::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .025) 0 1px, transparent 1px 3px); }
@keyframes radar-sweep { to { rotate: 360deg; } }
.cine-radar .r-ring { fill: none; stroke: rgba(120, 220, 170, .16); stroke-width: .6; }
.cine-radar .r-silo-t { fill: var(--accent); }
.cine-hud { position: absolute; z-index: 2; left: var(--pad); right: calc(var(--pad) + 150px); top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font: 700 12px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; }
.cine-hud [data-cine-target] { color: var(--text-2); }
.cine-hud [data-cine-clock] { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cine-led { width: 9px; height: 9px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 12px var(--alarm); animation: blink .8s steps(1) infinite; }
.cine-note { position: absolute; z-index: 2; left: var(--pad); bottom: 18px; margin: 0; max-width: 60ch; font-size: 13px; color: var(--text-3); }
.cine-skip { position: absolute; z-index: 3; right: var(--pad); top: 14px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(8, 9, 12, .5); cursor: pointer; font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.cine-skip:hover { border-color: var(--text); }
.cine-end { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: clamp(56px, 12vh, 120px); max-width: 680px; animation: cine-in .8s var(--ease-expo) both; }
.cine-end[hidden] { display: none; }
@keyframes cine-in { from { opacity: 0; translate: 0 24px; } }
.cine-k { margin: 0 0 12px; font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--alarm); }
.cine-end h3 { margin: 0; font: 900 clamp(40px, 5.4vw, 88px)/.92 var(--font-display); font-stretch: 75%; text-transform: uppercase; text-shadow: 0 2px 30px rgba(0, 0, 0, .6); }
.cine-end p { margin: 16px 0 0; max-width: 52ch; font-size: 17px; color: var(--text); text-shadow: 0 1px 12px rgba(0, 0, 0, .8); }
.cine-end p .warn { display: block; margin-top: 8px; color: #ff9a8f; }
.cine-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
html.cine-lock { overflow: hidden; }
/* замер: влезает ли акт в экран — гибкие части берутся по минимуму */
.act.pinned.measure .act-pin { position: relative; height: auto; }
.act.pinned.measure .steps-window { flex: none; height: 300px; }
.act.pinned.measure .launch { flex: none; height: 220px; }
.act.pinned.measure .armor-art { height: 380px; }
.h2[tabindex="-1"]:focus { outline: none; }
.cine-radar .r-river { fill: none; stroke: rgba(120, 170, 220, .22); stroke-width: 1.4; }
.cine-radar .r-base { fill: none; stroke: rgba(255, 59, 47, .3); stroke-width: .8; stroke-dasharray: 2 3; }
.cine-radar .r-arc { stroke-dasharray: none; stroke-width: 1.3; }
.cine-radar .r-target circle, .cine-radar .r-target path { fill: none; stroke: var(--alarm); stroke-width: 1; }
.cine-radar .r-target circle { animation: blink .8s steps(1) infinite; }
.rail .n { display: none; }
.rail:hover .l, .rail:focus-within .l { opacity: 1; translate: 0 0; }
.rail.away { opacity: 0; pointer-events: none; }


/* 5 · война на экране: панорама на весь экран, камера едет от батареи к городу */
.war .act-pin { display: flex; flex-direction: column; }
.war .band { order: 2; }
.act.pinned.war .act-pin { justify-content: flex-start; padding-top: 104px; }
.act.pinned .band { position: absolute; inset: 0; z-index: 0; margin: 0; aspect-ratio: auto; max-height: none; }
.act.pinned .band > img { top: 0; height: 100%; animation: none; object-position: calc(max(var(--p), 0) * 100%) 50%; scale: calc(1.12 - max(var(--p), 0) * .1); }
.act.pinned .band::before { background: linear-gradient(to bottom, rgba(11, 13, 16, .92) 0%, rgba(11, 13, 16, .6) 24%, rgba(11, 13, 16, 0) 46%, rgba(11, 13, 16, 0) 78%, var(--ink-0) 100%); }
.act.pinned .war-top { position: relative; z-index: 2; margin: 0; }
.act.pinned .war-top .h2 { text-shadow: 0 2px 24px rgba(0, 0, 0, .5); }
.act.pinned .war-top .lead { color: var(--text); text-shadow: 0 1px 14px rgba(0, 0, 0, .7); }
.war .act-flow { padding-top: clamp(40px, 6vh, 72px); }
.act.pinned .act-flow { z-index: 3; padding-top: 150px; background: linear-gradient(to bottom, rgba(11, 13, 16, 0), var(--ink-0) 130px); }
.war .act-flow .war-table { margin-top: 0; }

/* 6 · удар на экране: шаги едут в окне, текущий горит, пусковая отвечает тревогой */
.alarm-wash { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 80% 60% at 50% 25%, rgba(255, 59, 47, .42), rgba(255, 59, 47, .1) 60%, transparent 80%); }
.strike.alarmed .alarm-wash { animation: wash 1.1s steps(1) infinite; }
@keyframes wash { 50% { opacity: 1; } }
.act.pinned .strike-grid { height: 100%; align-items: stretch; }
.act.pinned .strike-side { display: flex; flex-direction: column; min-height: 0; }
.act.pinned .launch { flex: 1; min-height: 200px; aspect-ratio: auto; max-height: none; margin-top: 26px; }
.act.pinned .steps-col { display: flex; flex-direction: column; min-height: 0; }
.act.pinned .steps-window { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent 0, #000 10%, #000 82%, transparent 100%); mask-image: linear-gradient(transparent 0, #000 10%, #000 82%, transparent 100%); }
.act.pinned .steps { padding: 24px 0 40vh; translate: 0 var(--steps-y, 0px); transition: translate .7s var(--ease-expo); }
.act.pinned .steps li { opacity: .26; transition: opacity .45s var(--ease-out); }
.act.pinned .steps li.done { opacity: .5; }
.act.pinned .steps li.on { opacity: 1; }
.act.pinned .steps li.on .dot { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--accent) 80%, transparent); }
.act.pinned .steps li.alarm.on .dot { border-color: var(--alarm); color: var(--alarm); box-shadow: 0 0 26px -2px rgba(255, 59, 47, .8); }
.act.pinned .strike-end { padding-top: 18px; }
.act.pinned .strike-end .deter { margin-top: 0; }
.act.pinned .strike-end .cta-row { margin-top: 18px; }

/* 8 · броня на экране: наезд на брезент, свет прожектора разгорается */
.act.pinned .armor-art { height: calc(100svh - 160px); max-height: 820px; aspect-ratio: auto; max-width: 100%; }
.act.pinned .armor-art > img { scale: calc(1.02 + max(var(--p), 0) * .1); }
.act.pinned .armor-art .beam { animation: none; opacity: calc(.25 + max(var(--p), 0) * .75); }

/* 9 · магазин: витрина из четырёх полок */
.shop-head { align-items: end; }
.shop-head .lead { margin: 0; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(40px, 6vh, 64px); }
.ware { position: relative; display: flex; flex-direction: column; padding: 0 0 26px; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-1); transition: border-color .3s var(--ease-out), translate .4s var(--ease-expo); }
.ware:hover { border-color: var(--line-2); translate: 0 -4px; }
.ware > :not(.ware-vis) { margin-left: clamp(18px, 2vw, 26px); margin-right: clamp(18px, 2vw, 26px); }
.ware-vis { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 22px; overflow: hidden; border-bottom: 1px solid var(--line); }
.ware h3 { margin: 0; font: 900 clamp(28px, 2.4vw, 38px)/1 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.ware p { margin: 10px 0 0; color: var(--text); font-weight: 500; }
.ware .why { margin-top: auto; padding-top: 16px; font: 500 13px/1.45 var(--font-text); color: var(--text-3); }
.ware-look .ware-vis { background: radial-gradient(circle at 50% 60%, rgba(176, 120, 255, .22), transparent 62%), #12101a; }
.ware-look svg { width: 58%; }
.ware-look .hero rect { fill: #e8e2d6; }
.ware-look .cape { fill: #8b5cf6; opacity: .85; }
.ware-look .trail rect { fill: #c9a8ff; animation: spark 2.4s ease-in-out infinite; }
.ware-look .trail rect:nth-child(2) { animation-delay: .3s; } .ware-look .trail rect:nth-child(3) { animation-delay: .6s; } .ware-look .trail rect:nth-child(4) { animation-delay: .9s; }
@keyframes spark { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }
.ware-city .ware-vis { background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%), #15140f; }
.ware-city svg { width: 52%; }
.ware-city .pole { fill: #6b6458; }
.ware-city .flag { fill: var(--accent); transform-origin: 30px 40px; animation: wave 3.2s ease-in-out infinite; }
.ware-city .arms { fill: #17130a; transform-origin: 30px 40px; animation: wave 3.2s ease-in-out infinite; }
.ware-city .arms-in { fill: var(--accent); transform-origin: 30px 40px; animation: wave 3.2s ease-in-out infinite; }
@keyframes wave { 50% { transform: skewY(-3deg) scaleX(.97); } }
.ware-easy .ware-vis { background: radial-gradient(circle at 50% 50%, rgba(116, 230, 255, .14), transparent 62%), #0e1418; }
.queue { display: grid; gap: 10px; width: 72%; }
.q-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 2px; font: 700 11px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.q-row b { font-size: 14px; color: var(--text-2); }
.q-old { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .35); }
.q-new { border-color: rgba(116, 230, 255, .5); color: var(--text); background: rgba(116, 230, 255, .08); }
.q-new b { color: #9eeeff; }
.ware-boost .ware-vis { background: radial-gradient(circle at 50% 50%, rgba(255, 138, 61, .16), transparent 62%), #17110d; }
.meter { position: relative; width: 72%; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.meter .fill { position: absolute; inset: 0 auto 0 0; width: 70%; border-radius: 2px; background: linear-gradient(90deg, #ff8a3d, var(--accent)); animation: boost 3.6s var(--ease-inout) infinite; }
@keyframes boost { 0% { width: 18%; } 60%, 100% { width: 70%; } }
.meter .cap { position: absolute; left: 70%; top: -14px; bottom: -14px; width: 0; border-left: 1.5px dashed var(--text-2); }
.meter .cap i { position: absolute; left: 8px; bottom: -4px; font: 700 10px/1 var(--font-ui); font-style: normal; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); white-space: nowrap; }

/* 10 · заявка: вопросы после формы */
.apply .state-row, .apply .faq { position: relative; }

/* ============================================================ итерация 8 */
/* 1 · что это: мир сверху во весь экран, камера летит к шахте от прокрутки; текст слева на тени */
.about { background: #07090b; }
.about-vis { position: relative; aspect-ratio: 16 / 9; margin: calc(-1 * clamp(84px, 12vh, 150px)) calc(-1 * var(--pad)) 36px; overflow: hidden; background: #101511; }
.about-vis > img, .about-vis canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-vis canvas { opacity: 0; transition: opacity .5s var(--ease-out); }
.about-vis.ready canvas { opacity: 1; }
.about-vis::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to bottom, rgba(7, 9, 11, .5), transparent 24%, transparent 70%, #07090b); }
.about-tag { position: absolute; z-index: 2; left: var(--tx, -999px); top: var(--ty, 0); display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px 8px 10px; border-left: 1.5px solid var(--accent); background: rgba(8, 9, 12, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.about-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: blink 1.2s steps(1) infinite; }
.about-in { position: relative; z-index: 2; }
.about .h2 { font-size: clamp(40px, min(5.6vw, 8.6vh), 96px); max-width: 11ch; }
.about .lead { max-width: 40ch; color: var(--text); }
.about .lead b { font-weight: 600; }
.about .body { max-width: 46ch; }
.nums { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); gap: clamp(20px, 3.4vw, 56px); margin: clamp(24px, 4vh, 40px) 0 0; padding: 22px 0 0; border-top: 1px solid var(--line-2); max-width: 720px; }
.nums li { display: grid; align-content: start; gap: 8px; }
.nums b { font: 900 clamp(44px, 4.6vw, 76px)/.86 var(--font-display); font-stretch: 75%; color: var(--accent); }
.nums span { max-width: 17ch; font: 500 12.5px/1.45 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.act.pinned.about .act-pin { justify-content: flex-end; padding-bottom: clamp(28px, 6vh, 96px); }
.act.pinned .about-vis { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.act.pinned .about-vis::after { background:
  linear-gradient(90deg, rgba(7, 9, 11, .94) 0%, rgba(7, 9, 11, .8) 26%, rgba(7, 9, 11, .2) 52%, rgba(7, 9, 11, 0) 64%),
  linear-gradient(to top, rgba(7, 9, 11, .7), transparent 34%),
  linear-gradient(to bottom, rgba(7, 9, 11, .55), transparent 18%); }

/* 2 · город: тот же берег растёт от дома до столицы; чанки — стеклянная панель поверх картины */
.city { background: #0a0d0c; }
.city-vis { position: relative; margin: 0 0 36px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: #16231b; }
.city-vis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.035; transition: opacity 1.1s var(--ease-out), scale 2.6s var(--ease-expo); }
.city-vis img.on { opacity: 1; scale: 1; }
.chunks-h { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 16px; font: 700 11px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.chunks-h b { color: var(--accent); }
.act.pinned .city-vis { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.act.pinned .city-vis::after { content: ''; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(8, 11, 10, .93) 0%, rgba(8, 11, 10, .76) 27%, rgba(8, 11, 10, .12) 50%, rgba(8, 11, 10, 0) 62%),
  linear-gradient(to bottom, rgba(8, 11, 10, .55), transparent 20%, transparent 78%, rgba(8, 11, 10, .55)); }
.act.pinned.city .sec-in { position: relative; z-index: 1; height: 100%; }
.act.pinned.city .split { align-items: center; }
.act.pinned.city .city-text .lead { color: var(--text); }
.act.pinned.city .chunks { align-self: end; justify-self: end; width: min(100%, 340px); padding: 20px; background: rgba(9, 12, 14, .6); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .85); }
.act.pinned.city .chunk-grid { max-width: 220px; gap: 4px; }
.act.pinned.city .chunk-meta { margin-top: 14px; font-size: 11px; }
.act.pinned.city .levels { gap: 3px; margin-top: 12px; }
.act.pinned.city .levels button { min-height: 32px; font-size: 11px; }

/* 3 · пуск: пункт управления — фон зала, пульт как железо: ключи, радар, камера цели, крышка над кнопкой */
.power { background: #050607; }
.power-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.power-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; filter: brightness(.78) saturate(.95); }
.power-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 90% 80% at 50% 45%, rgba(5, 6, 7, 0), rgba(5, 6, 7, .7) 100%), linear-gradient(to bottom, rgba(5, 6, 7, .6), rgba(5, 6, 7, .05) 26%, rgba(5, 6, 7, .2) 70%, #050607); }
.power-in { position: relative; z-index: 1; }
.power-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 72px); align-items: end; }
.power .h2 { font-size: clamp(36px, 4.2vw, 70px); }
.power-head .lead { margin: 0; color: var(--text); }
.desk { position: relative; margin-top: clamp(18px, 3.4vh, 34px); padding: 12px; border-radius: 6px;
  background: linear-gradient(180deg, #262a30, #17191d 30%, #111316);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 0 0 1px rgba(255, 255, 255, .04), 0 0 0 1px #000, 0 50px 110px -30px rgba(0, 0, 0, .95); }
.desk::before { content: ''; position: absolute; inset: 5px; pointer-events: none; border-radius: 4px;
  background: radial-gradient(circle at 0 0, #4a5058 1.5px, transparent 2.5px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at 100% 0, #4a5058 1.5px, transparent 2.5px), radial-gradient(circle at 0 100%, #4a5058 1.5px, transparent 2.5px), radial-gradient(circle at 100% 100%, #4a5058 1.5px, transparent 2.5px); }
.desk-bar { display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap; padding: 9px 14px; border-radius: 3px; background: #0a0b0d; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05); font: 700 11px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.desk-id { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.desk-id .sq { width: 18px; height: 10px; border-radius: 1px; background: repeating-linear-gradient(-45deg, var(--accent) 0 3px, #15130c 3px 6px); }
.leds { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.leds li { display: inline-flex; align-items: center; gap: 7px; color: var(--text-3); transition: color .3s; }
.leds i { width: 8px; height: 8px; border-radius: 50%; background: #1b231e; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background-color .3s, box-shadow .3s; }
.leds li.on { color: var(--text-2); }
.leds li.on i { background: #5dff9a; box-shadow: 0 0 9px #5dff9a; }
.leds li.half i { background: var(--accent); box-shadow: 0 0 9px var(--accent); }
.leds li.alarm { color: #ff8a7f; }
.leds li.alarm i { background: var(--alarm); box-shadow: 0 0 12px var(--alarm); animation: blink .8s steps(1) infinite; }
.leds b { color: var(--text); }
.desk-clock { font-variant-numeric: tabular-nums; color: #5dff9a; text-shadow: 0 0 8px rgba(93, 255, 154, .45); }
.desk-main { display: grid; grid-template-columns: 148px minmax(0, 1fr) minmax(250px, 300px); gap: 12px; margin-top: 12px; }
/* ключи пуска: три рубильника столбиком, у каждого — подпись и лампа */
.desk-keys { display: grid; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; }
.key { position: relative; display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 44px; padding: 14px 8px 12px; border: 0; border-radius: 4px; cursor: pointer; text-align: center;
  background: linear-gradient(180deg, #2c3138, #1a1d22); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(0, 0, 0, .55), 0 2px 0 #060708; transition: filter .2s; }
.key:hover { filter: brightness(1.14); }
/* рубильник: красная поворотная рукоять на жёлтой плите с винтами, поворот из «0» в «I» — как у ключа;
   тень рукояти лежит на обёртке .sw и при повороте не крутится (свет сверху слева) */
.lock { position: relative; width: 60px; height: 60px; border-radius: 5px;
  --screw: #2b2307 0 1.4px, #8f7414 1.9px, rgba(60, 40, 0, .3) 2.6px, transparent 3.1px;
  background: radial-gradient(circle at 7px 7px, var(--screw)), radial-gradient(circle at calc(100% - 7px) 7px, var(--screw)),
    radial-gradient(circle at 7px calc(100% - 7px), var(--screw)), radial-gradient(circle at calc(100% - 7px) calc(100% - 7px), var(--screw)),
    linear-gradient(150deg, #ffe877, #ffd21f 42%, #e9b400 78%, #c99500);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 0, .45), inset 0 0 0 1px rgba(60, 40, 0, .5), 0 3px 0 #08090b, 0 7px 14px rgba(0, 0, 0, .6); }
.lock::before { content: ''; position: absolute; inset: 27%; border-radius: 50%; background: radial-gradient(circle at 40% 32%, #5b6068, #23262b 58%, #0d0e10);
  box-shadow: 0 0 0 2px rgba(60, 40, 0, .35), 0 1px 0 2px rgba(255, 245, 200, .5), inset 0 -2px 3px rgba(0, 0, 0, .7); }
.lock .sw { position: absolute; inset: 0; filter: drop-shadow(1.5px 3px 2px rgba(40, 20, 0, .55)) drop-shadow(0 0 1px rgba(0, 0, 0, .45)); }
.lock i { position: absolute; left: 50%; top: 50%; width: 26%; height: 80%; translate: -50% -50%; border-radius: 8px;
  background: linear-gradient(90deg, #5e0906, #b81d14 22%, #ef3b2b 44%, #ff7b62 50%, #e5352a 57%, #a8180f 80%, #5a0805);
  box-shadow: inset 0 1px 0 rgba(255, 190, 170, .5), inset 0 -2px 2px rgba(60, 0, 0, .5); rotate: -45deg; transition: rotate .55s var(--ease-expo); }
.lock i::before { content: ''; position: absolute; left: 50%; top: 50%; width: 15px; height: 15px; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #ff9c86, #d32a1e 45%, #7e0d08 85%); box-shadow: 0 1px 2px rgba(60, 0, 0, .6), inset 0 0 0 1px rgba(80, 0, 0, .4); }
.lock i::after { content: ''; position: absolute; left: 50%; top: 5px; width: 3px; height: 9px; translate: -50% 0; border-radius: 2px; background: #fff3e6; box-shadow: 0 0 2px rgba(255, 255, 255, .6); }
.lock b { position: absolute; top: -4px; font: 700 10px/1 var(--font-ui); color: var(--text-3); opacity: .7; transition: color .3s, opacity .3s; }
.lock .m0 { left: -12px; } .lock .m1 { right: -10px; }
.key[aria-pressed="true"] .lock i { rotate: 45deg; }
.key[aria-pressed="false"] .m0 { color: var(--text); opacity: 1; }
.key[aria-pressed="true"] .m1 { color: #5dff9a; opacity: 1; text-shadow: 0 0 6px rgba(93, 255, 154, .5); }
.key-lab { display: grid; gap: 5px; }
.key .who { font: 700 11px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--text); }
.key .state { font: 500 10px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.key[aria-pressed="true"] .state { color: #5dff9a; }
.key-lamp { position: absolute; right: 9px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: #3a1512; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background-color .3s, box-shadow .3s; }
.key[aria-pressed="true"] .key-lamp { background: #5dff9a; box-shadow: 0 0 10px #5dff9a; }
/* радар: карта местности под зелёным стеклом, развёртка от шахты */
.scope { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.scope-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 5px; overflow: hidden; cursor: crosshair; touch-action: manipulation; background: #031008;
  box-shadow: 0 0 0 5px #0a0b0d, 0 0 0 6px rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(93, 255, 154, .2); }
.scope-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.66) contrast(1.22); }
.scope-screen::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgb(120, 255, 175); mix-blend-mode: multiply; opacity: .78; }
.scope-screen::after { content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse 75% 75% at 50% 50%, transparent 55%, rgba(0, 0, 0, .6) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, .07), transparent 30%); }
.scope-sweep { position: absolute; z-index: 1; left: 49%; top: 53%; width: 230%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: conic-gradient(from 0deg, rgba(93, 255, 154, .22), rgba(93, 255, 154, 0) 38deg, transparent); animation: radar-sweep 4.2s linear infinite; }
.scope-svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.scope-svg .g { fill: none; stroke: rgba(93, 255, 154, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.scope-svg .arc { fill: none; stroke: var(--alarm); stroke-width: 1.6; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 3px var(--alarm)); }
.scope-screen .pin, .scope-screen .silo, .scope-screen .cross { position: absolute; z-index: 3; left: calc(var(--x) * 100%); top: calc(var(--y) * 100%); }
.scope-screen .pin { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 4px; translate: -12px -50%; border: 0; background: none; cursor: pointer; white-space: nowrap;
  font: 700 10.5px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: #c6ffdf; text-shadow: 0 0 6px #000, 0 1px 2px #000; }
.scope-screen .pin i { width: 13px; height: 13px; flex: none; border: 1.5px solid currentColor; rotate: 45deg; background: rgba(3, 16, 8, .75); box-shadow: 0 0 8px rgba(93, 255, 154, .45); transition: background-color .2s, border-color .2s; }
.scope-screen .pin small { font-size: 9px; color: rgba(198, 255, 223, .66); }
.scope-screen .pin.l { flex-direction: row-reverse; translate: calc(-100% + 12px) -50%; }
.scope-screen .pin:hover { color: #fff; }
.scope-screen .pin:hover i { background: rgba(93, 255, 154, .25); }
.scope-screen .pin[aria-pressed="true"] { color: #fff; }
.scope-screen .pin[aria-pressed="true"] i { border-color: var(--alarm); background: rgba(255, 59, 47, .4); box-shadow: 0 0 14px var(--alarm); }
.scope-screen .pin.hit i { border-color: #ff8a3d; background: repeating-linear-gradient(45deg, rgba(255, 138, 61, .5) 0 2px, transparent 2px 4px); }
.scope-screen .silo { display: inline-flex; align-items: center; gap: 7px; translate: -6px -50%; pointer-events: none; font: 700 10px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); white-space: nowrap; text-shadow: 0 0 6px #000; }
.scope-screen .silo i { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(255, 210, 31, .25), 0 0 14px var(--accent); }
.scope-screen .cross { --x: .5; --y: .5; width: 46px; height: 46px; translate: -50% -50%; pointer-events: none; opacity: 0; border: 1.5px solid var(--alarm); border-radius: 50%; box-shadow: 0 0 10px rgba(255, 59, 47, .6), inset 0 0 10px rgba(255, 59, 47, .4); transition: opacity .2s, left .45s var(--ease-expo), top .45s var(--ease-expo); }
.scope-screen .cross::before, .scope-screen .cross::after { content: ''; position: absolute; background: var(--alarm); }
.scope-screen .cross::before { left: 50%; top: -10px; bottom: -10px; width: 1.5px; translate: -50% 0; -webkit-mask: linear-gradient(#000 0 14px, transparent 14px calc(100% - 14px), #000 0); mask: linear-gradient(#000 0 14px, transparent 14px calc(100% - 14px), #000 0); }
.scope-screen .cross::after { top: 50%; left: -10px; right: -10px; height: 1.5px; translate: 0 -50%; -webkit-mask: linear-gradient(90deg, #000 0 14px, transparent 14px calc(100% - 14px), #000 0); mask: linear-gradient(90deg, #000 0 14px, transparent 14px calc(100% - 14px), #000 0); }
.scope-screen.aimed .cross { opacity: 1; }
.scope-cap { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 0 2px; font: 700 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(93, 255, 154, .6); font-variant-numeric: tabular-nums; }
/* камера цели: живая картинка местности, рамки и шум без сигнала */
.desk-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cam { position: relative; aspect-ratio: 16 / 9; flex: none; border-radius: 4px; overflow: hidden; background: #060708; box-shadow: 0 0 0 5px #0a0b0d, 0 0 0 6px rgba(255, 255, 255, .07); }
.cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; filter: saturate(.9) contrast(1.06); transition: opacity .5s var(--ease-out); }
.cam.on img { opacity: 1; }
.cam::before { content: ''; position: absolute; inset: -40%; z-index: 1; pointer-events: none; opacity: .5; transition: opacity .4s;
  background: repeating-radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .09) 0 1px, transparent 1px 3px), repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 2px); animation: static .35s steps(4) infinite; }
.cam.on::before { opacity: 0; }
.cam.glitch::before { opacity: .9; }
@keyframes static { 25% { translate: 6% -4%; } 50% { translate: -5% 3%; } 75% { translate: 3% 6%; } }
.cam::after { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px),
    linear-gradient(var(--text), var(--text)) 10px 10px / 14px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) 10px 10px / 1.5px 14px no-repeat,
    linear-gradient(var(--text), var(--text)) calc(100% - 10px) calc(100% - 10px) / 14px 1.5px no-repeat, linear-gradient(var(--text), var(--text)) calc(100% - 10px) calc(100% - 10px) / 1.5px 14px no-repeat,
    radial-gradient(circle at 50% 50%, transparent 15px, rgba(255, 59, 47, .9) 15px 16.5px, transparent 17px),
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 60%, rgba(0, 0, 0, .55) 100%); }
.cam-none { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; font: 700 11px/1 var(--font-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); animation: blink 1.6s steps(1) infinite; }
.cam.on .cam-none { display: none; }
.cam-hud { position: absolute; z-index: 3; left: 30px; right: 30px; top: 10px; display: flex; justify-content: space-between; gap: 10px; font: 700 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--text); text-shadow: 0 1px 3px #000; }
.cam-hud b { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.cam-hud i { width: 6px; height: 6px; border-radius: 50%; background: var(--alarm); animation: blink 1s steps(1) infinite; }
.aim-xyz { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aim-xyz label { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; font: 700 11px/1 var(--font-ui); letter-spacing: .14em; color: var(--text-3); }
.aim-xyz input { width: 100%; min-width: 0; min-height: 40px; padding: 0 10px; border: 0; border-radius: 3px; background: #050607; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .05); color: #5dff9a; font: 700 15px/1 var(--font-ui); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.aim-xyz input::placeholder { color: #2c4a36; }
.aim-xyz input:focus { outline: none; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 0 0 2px rgba(93, 255, 154, .5); }
.aim-info { margin: 0; min-height: 3.1em; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.aim-info b { color: var(--text); font-weight: 600; }
.aim-info .warn { display: block; margin-top: 4px; color: #ff8a7f; }
.fire-row { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 10px; border-radius: 4px; background: linear-gradient(180deg, #1c1f24, #141619); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), inset 0 0 0 1px rgba(0, 0, 0, .5); }
.guard { position: relative; flex: none; display: grid; place-items: center; width: 98px; height: 98px; border-radius: 6px; perspective: 380px;
  background: repeating-linear-gradient(-45deg, #e6c01d 0 7px, #17150d 7px 14px); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), 0 2px 0 #060708; }
.guard::before { content: ''; position: absolute; inset: 9px; border-radius: 4px; background: radial-gradient(circle, #24272c, #0c0d0f 76%); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .9); }
.fire {
  position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; border: 0; border-radius: 50%; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 36%, #ff6a5c, #c4170d 60%, #6d0904); box-shadow: 0 4px 0 #4a0603, 0 8px 18px -4px rgba(255, 59, 47, .6), inset 0 2px 0 rgba(255, 255, 255, .25);
  font: 700 11px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: filter .2s, box-shadow .2s, translate .12s var(--ease-out);
}
.fire:disabled { cursor: not-allowed; filter: grayscale(.85) brightness(.45); }
.fire:not(:disabled) { animation: arm-glow 1.2s ease-in-out infinite; }
@keyframes arm-glow { 50% { box-shadow: 0 4px 0 #4a0603, 0 0 28px 2px rgba(255, 59, 47, .85), inset 0 2px 0 rgba(255, 255, 255, .25); } }
.fire.holding { translate: 0 3px; box-shadow: 0 1px 0 #4a0603, 0 4px 12px -4px rgba(255, 59, 47, .7); }
.fire .ring { position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); rotate: -90deg; pointer-events: none; }
.fire .ring circle { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 182.2; stroke-dashoffset: 182.2; }
.fire.holding .ring circle { stroke-dashoffset: 0; transition: stroke-dashoffset var(--hold, 900ms) linear; }
.cover { position: absolute; z-index: 2; inset: 6px; padding: 0; border: 0; border-radius: 5px; cursor: pointer; transform-origin: 50% 0; transition: transform .7s var(--ease-expo), filter .2s;
  background: linear-gradient(165deg, rgba(255, 120, 100, .5), rgba(150, 18, 8, .62) 60%, rgba(110, 10, 4, .7));
  box-shadow: inset 0 0 0 2px rgba(255, 150, 130, .55), inset 0 10px 16px rgba(255, 255, 255, .2), 0 8px 16px rgba(0, 0, 0, .55); }
.cover::before { content: ''; position: absolute; left: 14%; right: 14%; top: -4px; height: 7px; border-radius: 3px; background: linear-gradient(90deg, #6f767f, #d7dbe0 46%, #7a8189); }
.cover span { position: absolute; left: 50%; bottom: 8px; width: 22px; height: 4px; margin-left: -11px; border-radius: 2px; background: rgba(255, 255, 255, .55); }
.cover:disabled { cursor: not-allowed; filter: brightness(.7); }
.cover:not(:disabled):hover { filter: brightness(1.15); }
.cover[aria-pressed="true"] { transform: rotateX(112deg); }
.fire-row .keys-foot { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--text-3); }
.keys-foot.ready { color: var(--text); }
.keys-foot.ready b { color: var(--alarm); }
.act.pinned .power .desk, .act.pinned.power .desk { margin-top: clamp(16px, 2.6vh, 30px); }
/* кино: карта радара — та же, что на пульте */
.cine-radar .r-box { position: absolute; z-index: 1; left: 50%; top: 50%; width: min(96vw, 165vh); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
.cine-radar .r-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.8) brightness(.55) contrast(1.25); }
.cine-radar .r-box::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgb(120, 255, 175); mix-blend-mode: multiply; opacity: .78; }
.cine-radar .r-box svg { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }
.cine-radar text { font-size: 4.6px; fill: rgba(220, 255, 235, .8); }
/* полёт на радаре: пунктир — расчёт, след гаснет к шахте, знак шахты лежит поверх линии, голова — метка с импульсом */
.cine-radar { isolation: isolate; }
.cine-radar .r-plan { fill: none; stroke: rgba(230, 255, 240, .5); stroke-width: .75; stroke-linecap: round; stroke-dasharray: .01 2.4; }
.cine-radar .r-trail { fill: none; stroke-width: 1.05; stroke-linecap: round; }
.cine-radar .r-trail-glow { fill: none; stroke-width: 3.4; stroke-linecap: round; opacity: .3; filter: blur(1.4px); }
.cine-radar .r-silo .halo { fill: #07110c; }
.cine-radar .r-silo .ring { fill: none; stroke: var(--accent); stroke-width: .75; }
.cine-radar .r-silo .core { fill: var(--accent); }
.cine-radar .r-head .core { fill: #fff; filter: drop-shadow(0 0 1.2px var(--alarm)) drop-shadow(0 0 3px var(--alarm)); }
.cine-radar .r-head .ping { fill: none; stroke: #ff8a80; stroke-width: .45; transform-box: fill-box; transform-origin: center; animation: r-ping 1s var(--ease-out) infinite; }
@keyframes r-ping { from { scale: 1; opacity: .9; } to { scale: 4.2; opacity: 0; } }
.cine-radar .r-target .lockring { fill: none; stroke: #ffb0a8; stroke-width: .5; opacity: 0; transform-box: fill-box; transform-origin: center; }
.cine-radar .r-target.lock circle { animation: none; }
.cine-radar .r-target.lock .lockring { animation: r-lock .45s var(--ease-out) both; }
@keyframes r-lock { from { scale: 2.4; opacity: 0; } to { scale: 1; opacity: 1; } }
/* вспышка удара: белое на весь экран, под ним — склейка подлёта и взрыва */
.cine-flash { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), #fff 0 22%, #fffaf0 46%, #ffe9c2 78%, #ffd59a); }
.cine-v.cut { transition: none; }
.cine-v.fast { transition-duration: .2s; }

/* 4 · роли: три карточки на ленте; на экране лента едет от прокрутки с остановками */
.roles { background: radial-gradient(ellipse 60% 45% at 50% 100%, rgba(255, 210, 31, .05), transparent 70%), var(--ink-0); }
.roles-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; flex-wrap: wrap; }
.roles-head .h2 { max-width: 17ch; }
.roles-side { display: flex; align-items: center; gap: 28px; }
.roles-nav { display: flex; align-items: center; gap: 12px; margin: 0; font: 700 12px/1 var(--font-ui); letter-spacing: .16em; color: var(--text-3); font-variant-numeric: tabular-nums; }
.roles-nav [data-role-n] { color: var(--text); }
.roles-nav .dots { display: inline-flex; gap: 6px; margin-left: 8px; }
.roles-nav .dots i { width: 18px; height: 2px; background: var(--line-2); transition: background-color .3s, width .45s var(--ease-expo); }
.roles-nav .dots i.on { width: 40px; background: var(--accent); }
.act:not(.pinned) .roles-nav { display: none; }
.roles-track { display: grid; gap: 20px; margin-top: clamp(32px, 5vh, 56px); }
.role-card { --rc: var(--accent); position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink-1); }
.rc-pres { --rc: #ff8a3d; }
.rc-solo { --rc: #9fb4c8; }
.role-card::after { content: attr(data-n); position: absolute; right: clamp(16px, 2vw, 32px); top: clamp(-30px, -1vw, -10px); z-index: 0; pointer-events: none;
  font: 900 clamp(160px, 17vw, 300px)/1 var(--font-display); font-stretch: 75%; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .08); translate: calc(var(--par, 0) * -90px) 0; }
.rc-art { min-height: 360px; border-radius: 0; }
.rc-art::after { box-shadow: inset -1px 0 0 var(--line); }
.rc-art::before { content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, transparent 70%, rgba(17, 20, 25, .55)); }
.rc-res .rc-art > img { object-position: 50% 20%; }
.rc-pres .rc-art > img { object-position: 50% 30%; }
.rc-solo .rc-art > img { object-position: 50% 55%; }
.rc-body { position: relative; z-index: 1; display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 56px); }
.role-card .role { font: 700 12px/1 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--rc); }
.role-card h3 { margin: 14px 0 0; font: 900 clamp(52px, 6vw, 104px)/.86 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.role-card p { margin: 20px 0 0; max-width: 40ch; color: var(--text-2); font-size: 17px; }
.role-card ul { list-style: none; margin: auto 0 0; padding: 28px 0 0; display: grid; gap: 12px; }
.role-card li { display: flex; gap: 12px; align-items: baseline; font: 500 13px/1.4 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.role-card li::before { content: ''; flex: none; width: 8px; height: 8px; translate: 0 -1px; background: var(--rc); box-shadow: 0 0 10px color-mix(in srgb, var(--rc) 60%, transparent); }
.act.pinned .roles-in { display: flex; flex-direction: column; height: 100%; }
.act.pinned.roles .h2 { font-size: clamp(34px, 3.8vw, 64px); }
.act.pinned .roles-track { flex: 1; min-height: 0; display: flex; gap: 32px; margin: clamp(20px, 3.4vh, 40px) calc(-1 * var(--pad)) 0; padding: 0; overflow: visible; translate: var(--tx, 0px) 0; }
.act.pinned .role-card { flex: 0 0 min(1080px, 76vw); opacity: calc(1 - var(--d, 0) * .7); scale: calc(1 - var(--d, 0) * .06); }
.act.pinned .rc-art { min-height: 0; }
.act.pinned .rc-art > img { top: 0; height: 100%; animation: none; scale: 1.12; translate: calc(var(--par, 0) * -7%) 0; }
.act.pinned .rc-body > *, .act.pinned .role-card li { opacity: 0; translate: 0 18px; transition: opacity .5s var(--ease-out), translate .8s var(--ease-expo); }
.act.pinned .role-card li { translate: -12px 0; }
.act.pinned .role-card.is-on .rc-body > *, .act.pinned .role-card.is-on li { opacity: 1; translate: none; }
.act.pinned .role-card.is-on .rc-body > :nth-child(2) { transition-delay: .07s; }
.act.pinned .role-card.is-on .rc-body > :nth-child(3) { transition-delay: .14s; }
.act.pinned .role-card.is-on li:nth-child(1) { transition-delay: .24s; }
.act.pinned .role-card.is-on li:nth-child(2) { transition-delay: .31s; }
.act.pinned .role-card.is-on li:nth-child(3) { transition-delay: .38s; }
.act.pinned.measure .roles-track { flex: none; height: 400px; }
.act.pinned .role-card h3 { font-size: clamp(44px, min(6vw, 9vh), 104px); }
@media (max-height: 800px) {
  .act.pinned.about .lead { margin-top: 16px; }
  .act.pinned .nums { margin-top: 18px; padding-top: 16px; }
  .act.pinned .nums b { font-size: 44px; }
  .act.pinned .rc-body { padding: 26px 32px; }
  .act.pinned .role-card p { margin-top: 14px; font-size: 16px; }
  .act.pinned .role-card ul { padding-top: 16px; gap: 8px; }
}

/* 5 · война: подписи стоят на предметах картины и едут вместе с камерой */
.callouts { list-style: none; margin: 0; padding: 0; }
.act.pinned .band > img { transition: none; }
.act.pinned .callouts { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.act.pinned .co { position: absolute; left: 0; top: 0; translate: var(--cx, -999px) var(--cy, 0); opacity: 0; transition: opacity .45s var(--ease-out); }
.act.pinned .co.on { opacity: 1; }
.co i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 210, 31, .2), 0 0 14px var(--accent); }
.co i::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--accent); animation: co-pulse 1.8s var(--ease-out) infinite; }
@keyframes co-pulse { from { scale: .6; opacity: 1; } to { scale: 2.6; opacity: 0; } }
.co b { position: absolute; left: -1px; bottom: 22px; padding: 9px 13px; white-space: nowrap; border-left: 1.5px solid var(--accent); background: rgba(8, 9, 12, .74); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font: 700 12px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--text); translate: 0 8px; transition: translate .6s var(--ease-expo); }
.co b::after { content: ''; position: absolute; left: -1.5px; top: 100%; width: 1.5px; height: 16px; background: linear-gradient(var(--accent), rgba(255, 210, 31, .2)); }
.co.on b { translate: none; }
.co.l b { left: auto; right: -1px; border-left: 0; border-right: 1.5px solid var(--accent); }
.co.l b::after { left: auto; right: -1.5px; }
.co.d b { bottom: auto; top: 22px; translate: 0 -8px; }
.co.d b::after { top: auto; bottom: 100%; background: linear-gradient(rgba(255, 210, 31, .2), var(--accent)); }
.co.d.on b { translate: none; }
.act:not(.pinned) .callouts { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.act:not(.pinned) .co { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 2px; background: rgba(8, 9, 12, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.act:not(.pinned) .co i { position: static; width: 7px; height: 7px; flex: none; box-shadow: 0 0 8px var(--accent); }
.act:not(.pinned) .co i::after { display: none; }
.act:not(.pinned) .co b { position: static; padding: 0; border: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; translate: none; font-size: 10.5px; white-space: normal; }
.act:not(.pinned) .co b::after { display: none; }

/* 10 · заявка: форма слева, справа — стеклянная панель «где мы сейчас» и вопросы */
.apply-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.apply .h2 { max-width: 12ch; }
.apply-side { position: relative; padding: clamp(22px, 2.6vw, 36px); border: 1px solid var(--line-2); border-radius: 4px; background: rgba(10, 11, 14, .64); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); }
.apply-side .state-row { grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 0; padding: 0 0 22px; border-top: 0; }
.apply-side .state-row .lbl { grid-column: 1 / -1; }
.apply-side .faq { margin-top: 6px; max-width: none; }
.apply-side .faq summary { min-height: 56px; font-size: clamp(18px, 1.5vw, 22px); }
.apply-side .faq details:last-child { border-bottom: 0; }
.apply-side .faq details p { margin-bottom: 18px; font-size: 15px; }

@media (max-width: 1100px) {
  .desk-main { grid-template-columns: 132px minmax(0, 1fr); }
  .desk-side { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .desk-side .cam { grid-row: span 3; }
  .fire-row { margin-top: 0; }
}
@media (max-width: 900px) {
  .power-head { grid-template-columns: 1fr; }
  .apply-grid { grid-template-columns: 1fr; }
  .role-card { grid-template-columns: 1fr; }
  .rc-art { min-height: 0; aspect-ratio: 4 / 3; }
  .rc-art::after { box-shadow: inset 0 -1px 0 var(--line); }
  .rc-art::before { background: linear-gradient(to bottom, transparent 70%, rgba(17, 20, 25, .55)); }
  .city-vis { aspect-ratio: 4 / 3; }
  .about-vis { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .desk { padding: 8px; }
  .desk-bar { padding: 9px 10px; gap: 10px 14px; }
  .desk-id { white-space: normal; letter-spacing: .1em; line-height: 1.3; }
  .leds { margin: 0; gap: 8px 12px; font-size: 10px; }
  .desk-clock { margin-left: auto; }
  .desk-main { grid-template-columns: 1fr; gap: 10px; }
  .desk-keys { grid-template-rows: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .key { padding: 12px 4px 10px; }
  .lock { width: 50px; height: 50px; }
  .lock i::before { width: 12px; height: 12px; }
  .lock .m0 { left: -9px; } .lock .m1 { right: -7px; }
  .key-lamp { right: 5px; top: 5px; width: 7px; height: 7px; }
  .key .who { font-size: 10px; letter-spacing: .06em; }
  .desk-side { display: flex; }
  .scope-screen .pin { font-size: 9.5px; gap: 5px; }
  .scope-screen .pin small { display: none; }
  .nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .nums span { font-size: 11px; }
  .roles-side .btn { display: none; }
  .apply-side .state-row { grid-template-columns: 1fr; }
  .act.pinned .about-vis::after { background: linear-gradient(to bottom, rgba(7, 9, 11, .45) 0%, rgba(7, 9, 11, .72) 26%, rgba(7, 9, 11, .88) 52%, rgba(7, 9, 11, .94) 100%); }
  .about-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .about-tag i, .scope-sweep, .cam::before, .cam-none, .cam-hud i, .fire:not(:disabled), .co i::after, .leds li.alarm i { animation: none !important; }
}

/* пульт этапов: справа тонкие отметки, подпись — у текущего и при наведении */
.rail { position: fixed; z-index: 45; right: clamp(8px, 1.4vw, 22px); top: 50%; translate: 0 -50%; transition: opacity .4s var(--ease-out); }
.rail-toggle { display: none; }
.rail ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.rail a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-height: 28px; padding: 0 2px 0 8px; text-decoration: none; color: var(--text-3); font: 700 10px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; }
.rail .l { padding: 5px 8px; border-radius: 2px; background: rgba(8, 9, 12, .78); white-space: nowrap; opacity: 0; translate: 6px 0; transition: opacity .25s var(--ease-out), translate .25s var(--ease-out); pointer-events: none; }
.rail .n { width: 18px; text-align: right; }
.rail .bar { position: relative; width: 14px; height: 2px; background: rgba(236, 232, 224, .22); transition: width .35s var(--ease-expo), background-color .3s; }
.rail .bar b { position: absolute; inset: 0; background: var(--accent); transform-origin: left center; scale: var(--rp, 0) 1; }
.rail a:hover { color: var(--text); }
.rail a:focus-visible .l { opacity: 1; translate: 0 0; }
.rail a[aria-current="step"] { color: var(--text); }
.rail a[aria-current="step"] .bar { width: 30px; }
.rail.quiet a:not(:hover):not(:focus-visible) .l { opacity: 0; }
.veil { position: fixed; inset: 0; z-index: 44; pointer-events: none; background: var(--ink-0); opacity: 0; transition: opacity .16s linear; }
.veil.on { opacity: 1; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aim { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .rail { top: auto; bottom: 14px; right: 12px; translate: none; }
  .rail-toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8, 9, 12, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); cursor: pointer; font: 700 11px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
  .rail-toggle .bar { width: 22px; height: 2px; background: rgba(236, 232, 224, .22); position: relative; }
  .rail-toggle .bar b { position: absolute; inset: 0; background: var(--accent); transform-origin: left; scale: var(--rp, 0) 1; }
  .rail ol { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 230px; padding: 8px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(8, 9, 12, .96); display: none; }
  .rail.open ol { display: grid; }
  .rail a { justify-content: flex-start; min-height: 44px; padding: 0 10px; font-size: 11px; }
  .rail a .bar { display: none; }
  .rail .l, .rail.quiet a .l { opacity: 1; translate: none; background: none; padding: 0; }
  .rail .n { display: inline; order: -1; text-align: left; color: var(--text-3); }
  .rail.away { opacity: 0; pointer-events: none; }
  .shop-grid { grid-template-columns: 1fr; }
  .ware-vis { aspect-ratio: 16 / 9; }
  .fire-row { align-items: center; }
  .rail-toggle .rl { display: none; }
  .cine-hud { top: 72px; right: var(--pad); }
  /* панорама войны на телефоне стоит за текстом — тень гуще и ниже */
  .act.pinned .band::before { background: linear-gradient(to bottom, rgba(11, 13, 16, .94) 0%, rgba(11, 13, 16, .82) 34%, rgba(11, 13, 16, .35) 56%, rgba(11, 13, 16, 0) 70%, rgba(11, 13, 16, 0) 82%, var(--ink-0) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .scrub, .act:not(.pinned) .scrub { opacity: 1 !important; translate: none !important; transition: none !important; }
  .ware-look .trail rect, .ware-city .flag, .ware-city .arms, .ware-city .arms-in, .meter .fill, .strike.alarmed .alarm-wash, .cine-led, .cine-radar::before { animation: none !important; }
  .veil { transition: none; }
}

/* ------------------------------------------------------------ мобильный */
@media (max-width: 900px) {
  .split, .split.rev, .strike-grid, .mods-grid, .honest-grid { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 2; }
  .armor-grid { grid-template-columns: 1fr; }
  .band { aspect-ratio: 4 / 3; max-height: none; }
  .band > img { object-position: 20% 50%; }
  .war-more { grid-template-columns: 1fr; }
  .state-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .shell { height: 60px; grid-template-columns: auto 1fr auto; gap: 10px; }
  .mark { font-size: 19px; gap: 8px; letter-spacing: .04em; }
  .mark svg { width: 22px; height: 22px; }
  .worlds { justify-self: center; }
  .world-tab { min-height: 44px; padding: 0 12px; gap: 8px; font-size: 11px; letter-spacing: .1em; }
  .world-tab .long { display: none; }
  .status { display: none; }
  .btn-login { min-height: 44px; width: 44px; padding: 0; justify-content: center; }
  .btn-login svg { display: block; }
  .btn-login .txt { display: none; }
  .shell-right { gap: 6px; }
  .btn-sound { min-height: 44px; width: 44px; padding: 0; justify-content: center; }
  .btn-sound .txt, .btn-sound .sw { display: none; }
  .kicker .opt { display: none; }
  .layer img { object-position: var(--focus-m, 50% 50%); }
  .scene .layer { inset: -9% 0 9% 0; }
  .copy { right: var(--pad); bottom: calc(44px + 22px); }
  .kicker { margin-bottom: 12px; font-size: 10.5px; letter-spacing: .12em; }
  .logo { font-size: min(19vw, 92px); }
  .slogan { margin-top: 14px; font-size: 24px; }
  .tagline { font-size: 15.5px; }
  .ctas { margin-top: 18px; }
  .ctas .btn { flex: 1 1 100%; }
  .micro { font-size: 12.5px; }
  .scrim { background: linear-gradient(to top, rgba(7, 6, 10, .95) 0%, rgba(7, 6, 10, .78) 42%, rgba(7, 6, 10, 0) 70%); }
  .console .track { animation: ticker 28s linear infinite; padding-right: 0; }
  .console .dup { display: contents; }
  .console .track > .cell:last-of-type { border-right: 1px solid var(--line); }
  .levels { grid-template-columns: repeat(5, 1fr); }
  .war-table, .war-table tbody, .war-table tr, .war-table td, .war-table th { display: block; width: auto; }
  .war-table thead { display: none; }
  .war-table tbody tr { padding: 16px 0; border-top: 1px solid var(--line); }
  .war-table tbody th, .war-table td { border-top: 0; padding: 4px 0; }
  .war-table td::before { content: attr(data-k); display: block; margin-top: 8px; font: 700 11px/1.4 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
  .form .btn { flex: 1 1 100%; }
}
/* узкие телефоны: в шапке знак без слова (слово — в подвале и в названии страницы), вкладки плотнее */
@media (max-width: 420px) {
  .mark > span { display: none; }
  .mark svg { width: 26px; height: 26px; }
}
@media (max-width: 360px) {
  .shell { gap: 8px; }
  .world-tab { padding: 0 10px; gap: 6px; }
}
@media (max-width: 340px) {
  :root { --pad: 12px; }
}
@keyframes ticker { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .led, .scene-soon .tear, .console .track, .count i, .armor-art .beam, .redact::after { animation: none !important; }
  .art > img { scale: 1; transition: none; }
  .btn, .btn-primary::after, .chunk-grid i, .lock i, .cover, .city-vis img { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
/* Сайт поверх темы эскиза: то, чего в эскизе нет. */

/* вкладки миров — ссылки (в эскизе были кнопки) */
a.world-tab { text-decoration: none; }

/* «Войти» — до кабинета, «Новости в Telegram» — до канала: скрыты, место в разметке остаётся */
.btn-login[hidden], .tg[hidden] { display: none; }

/* мир «Скоро» — тизер, а не «Атом» в другом цвете: акты «Атома» и пульт этапов в нём не показываются */
html[data-world="soon"] .act, html[data-world="soon"] .rail { display: none !important; }
/* кнопка с hidden (подписка до плана Б): у .btn свой display, hidden его не перебивает */
.btn[hidden] { display: none !important; }
.scene-soon .survey {
  position: absolute; left: -1.5px; bottom: calc(100% + 8px); padding: 6px 9px 5px; white-space: nowrap;
  border-left: 1.5px solid var(--accent); background: rgba(5, 12, 20, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 700 10.5px/1 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: rgba(205, 240, 255, .92);
}
@media (max-width: 720px) { .scene-soon .frame-sq { left: 66%; top: 30%; } }
/* Новое на главной, чего нет в эскизе (спецификация 4.2, «Отличия от эскиза»). Этот же файл tools/reference.mjs
   вставляет в эталон: кадры сайта и эталона сравниваются с одинаковыми отличиями. */

/* подвал: разделы сайта; цели касания — 44 px; в мире «Скоро» — без имени «Атома» */
.foot-links { display: flex; flex-wrap: wrap; gap: 0 22px; margin: -13px 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); text-decoration: none; transition: color .2s var(--ease-out); }
.foot-links a:hover { color: var(--accent); }
html[data-world="soon"] .foot-world { display: none; }

/* приём заявок закрыт: строка состояния вместо формы, по образцу «Где мы сейчас» */
.apply-closed { max-width: 900px; }
.apply-closed a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.apply-closed a:hover { color: var(--accent); }

/* форма заявки (план Г): ник, согласие, ловушка, ответ «Заставы» — и экран «Подтвердить в Telegram» с QR-кодом.
   Язык — эскиза: поле и кнопка формы, подписи пульта, панель «Где мы сейчас». Ошибки — свой тёплый тон, не жёлтый
   акцент и не красный тревог: красный на странице — только пуски */
.apply-flow { --fault: #ff9a7a; position: relative; max-width: 900px; margin-top: 36px; }
.apply-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nick send" "hint ." "check check" "chint chint" "msg msg"; gap: 10px 12px; margin-top: 0; max-width: none; }
.apply-form[hidden] { display: none; }
.apply-form .field { grid-area: nick; }
.apply-form > .btn { grid-area: send; align-self: end; min-height: 54px; }
.apply-form #nick-hint { grid-area: hint; }
.apply-form .check { grid-area: check; }
.apply-form #consent-hint { grid-area: chint; }
.apply-form .form-msg { grid-area: msg; }
.apply-form[aria-busy="true"] > .btn { pointer-events: none; opacity: .72; }
.hint { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.hint-bad { color: var(--fault); }
.hint-bad::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 9px 0 1px; background: var(--fault); transform: translateY(-1px) rotate(45deg); }
.field input[aria-invalid] { border-color: var(--fault); }
.field input[aria-invalid]:focus { border-color: var(--fault); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fault) 25%, transparent); }
/* ловушка: людям не видна, в порядке Tab её нет; программы её заполняют */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.check input { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 24px; height: 24px; margin: 0; border: 1px solid var(--line-2); border-radius: 2px; background: rgba(0, 0, 0, .35); cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out), box-shadow .3s var(--ease-out); }
.check input::before { content: ''; width: 12px; height: 7px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: translateY(-2px) rotate(-45deg) scale(0); transition: transform .18s var(--ease-out); }
.check input:hover { border-color: var(--text-2); }
.check input:checked { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 18px -4px color-mix(in srgb, var(--accent) 70%, transparent); }
.check input:checked::before { transform: translateY(-2px) rotate(-45deg) scale(1); }
.check input[aria-invalid] { border-color: var(--fault); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fault) 22%, transparent); }
.check label { font-size: 14px; line-height: 1.55; color: var(--text-2); cursor: pointer; }
.check a { color: var(--text); text-decoration-color: var(--accent); text-underline-offset: 3px; }
.check a:hover { color: var(--accent); }
.form-msg { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.form-msg-bad { color: var(--fault); }
.form-reload { min-height: 44px; margin-left: 6px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--text);
  font: 700 12px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.form-reload:hover { border-color: var(--accent); color: var(--accent); }

.confirm { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(22px, 3.4vw, 48px); align-items: center; padding: clamp(22px, 2.6vw, 36px);
  border: 1px solid var(--line-2); border-radius: 4px; background: rgba(10, 11, 14, .64); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9); animation: confirm-in .7s var(--ease-expo) both; }
.confirm[hidden] { display: none; }
@keyframes confirm-in { from { opacity: 0; transform: translateY(12px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.confirm .lbl { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 700 12px/1.6 var(--font-ui); letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.confirm-nick { color: var(--accent); letter-spacing: .06em; text-transform: none; }
.confirm-h { margin: 0 0 14px; font: 900 clamp(30px, 2.8vw, 44px)/.95 var(--font-display); font-stretch: 75%; text-transform: uppercase; }
.confirm-lead { margin: 0 0 24px; max-width: 44ch; color: var(--text-2); text-wrap: pretty; }
.confirm-until { margin: 18px 0 0; font: 500 12px/1.5 var(--font-ui); letter-spacing: .04em; color: var(--text-3); text-wrap: pretty; }
.confirm-again { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: 14px;
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; cursor: pointer; transition: color .2s var(--ease-out), text-decoration-color .2s var(--ease-out); }
.confirm-again:hover { color: var(--accent); text-decoration-color: var(--accent); }
.qr { display: grid; justify-items: center; gap: 16px; width: 232px; margin: 0; }
.qr img { display: block; width: 232px; height: 232px; border-radius: 2px; box-shadow: 0 0 0 7px var(--ink-1), 0 0 0 8px var(--line-2), 0 30px 70px -30px rgba(0, 0, 0, .95); }
.qr figcaption { max-width: 232px; font: 500 12px/1.5 var(--font-ui); letter-spacing: .04em; text-align: center; color: var(--text-3); }
@media (max-width: 760px) {
  .apply-form { grid-template-columns: minmax(0, 1fr); grid-template-areas: "nick" "hint" "check" "chint" "send" "msg"; }
  .confirm { grid-template-columns: minmax(0, 1fr); }
  .confirm .btn { width: 100%; }
  .qr { justify-self: start; }
}
/* телефон: Telegram на нём же, QR-код не нужен (спецификация 5.2 — «на компьютере рядом QR-код») */
@media (hover: none) and (pointer: coarse) {
  .confirm .qr { display: none; }
  .confirm { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .confirm { animation: none; }
  .check input, .check input::before { transition: none; }
}
