/* USTOZ PRO — лендинг 3D-конструктора. Тёмный премиум семьи USTOZ:
   фон #10141c, латунь #c9a86a, сериф-дисплей Playfair Display, текст Manrope.
   Все цвета — на переменных; вендорных библиотек стилей нет. */

:root {
  --bg: #10141c;
  --bg-deep: #0b0e14;
  --panel: #151a25;
  --panel-2: #1a2030;
  --line: rgba(233, 224, 209, 0.10);
  --line-strong: rgba(233, 224, 209, 0.18);
  --text: #ede6d8;
  --text-dim: #c7c0b2;
  --muted: #97a0af;
  --brass: #c9a86a;
  --brass-strong: #e2c087;
  --brass-deep: #a5813f;
  --brass-dim: rgba(201, 168, 106, 0.14);
  --brass-glow: rgba(201, 168, 106, 0.30);
  --ink-on-brass: #241b0d;
  --ok: #9dc08b;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-1: 0 18px 44px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 30px 70px rgba(0, 0, 0, 0.52);
  --font-display: "Playfair Display", "Georgia", serif;
  --font-text: "Manrope", "Segoe UI", sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

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

/* Эконом-режим CPU-растра (класс ставит js/perf-guard.js при софтверном
   рендере — WARP/SwiftShader): backdrop-блюры — свёртка на всю полосу
   каждый кадр прокрутки, в программном растеризаторе одна из самых
   дорогих операций; полупрозрачный фон остаётся, стекло — нет.
   На GPU-железе класс не ставится и блюры работают как прежде. */
html.perf-eco .site-header,
html.perf-eco .hud-card,
html.perf-eco .hero-skip { backdrop-filter: none; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 88% -120px, rgba(201, 168, 106, 0.08), transparent 62%),
    radial-gradient(900px 500px at -140px 34vh, rgba(96, 120, 140, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.01em; }
h1 em, h2 em { font-style: italic; color: var(--brass-strong); }
.display { font-size: clamp(30px, 4.6vw, 54px); }
.lead { color: var(--text-dim); font-size: clamp(15px, 1.6vw, 18px); max-width: 60ch; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass-strong); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
}
.kicker::before { content: ""; width: 26px; height: 1px; background: var(--brass); opacity: 0.8; }

/* ── Кнопки ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--font-text); letter-spacing: 0.02em; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-solid { background: linear-gradient(135deg, var(--brass-strong), var(--brass) 55%, var(--brass-deep)); color: var(--ink-on-brass); box-shadow: 0 10px 26px rgba(201, 168, 106, 0.22); }
.btn-solid:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(201, 168, 106, 0.3); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(233, 224, 209, 0.03); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-strong); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ── Шапка ──────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(13, 16, 23, 0.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 26px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: 0.06em; }
.logo img { height: 38px; width: auto; }
.logo b { color: var(--brass-strong); }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a { font-size: 14px; color: var(--text-dim); transition: color 0.15s ease; }
.nav a:hover { color: var(--brass-strong); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.header-tg { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-dim); }
.header-tg:hover { color: var(--brass-strong); }
.header-tg svg { width: 16px; height: 16px; stroke: var(--brass); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn-header { padding: 10px 18px; font-size: 13.5px; }

/* языковой якорь: RU/UZ уже живут в конструкторе (select #interface-language),
   кнопка ведёт к живой сцене, где интерфейс переключается на месте */
.lang {
  position: relative; display: inline-grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted);
  font: 700 12.5px var(--font-text); letter-spacing: 0.08em; cursor: pointer;
}
.lang:hover { border-color: var(--brass); color: var(--brass-strong); }
.lang::after {
  content: attr(data-tip); position: absolute; top: calc(100% + 9px); right: 0;
  transform: translateY(4px); padding: 6px 11px; border-radius: 8px;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--text);
  font: 500 12px var(--font-text); letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: var(--shadow-1); z-index: 60;
}
.lang:hover::after, .lang:focus-visible::after { opacity: 1; transform: translateY(0); }

.burger { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 40px; height: 40px; color: var(--text); cursor: pointer; }
.burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; }
.mobile-nav { display: none; }

/* ── Герой: sticky-трек 100vh + канвас ──────────────────────────────── */
.hero-track { height: 340vh; position: relative; }
/* секция обязана тянуться на весь трек: иначе sticky-пину некуда ездить
   (высота содержимого = 100vh → пин «не прилипает», канвас уезжает за верх) */
.hero { height: 100%; }
.hero-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  overflow: hidden; display: flex; align-items: center;
}
/* скролл НЕ лочится: тач по канвасу всегда скроллит страницу (панорамирование
   сцены не перехватывается), слушатели скролла в hero-scene.js — пассивные */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 20, 28, 0.85) 0%, rgba(16, 20, 28, 0.34) 30%, rgba(16, 20, 28, 0.22) 55%, rgba(16, 20, 28, 0.9) 100%),
    linear-gradient(90deg, rgba(16, 20, 28, 0.82) 0%, rgba(16, 20, 28, 0.58) 40%, rgba(16, 20, 28, 0.24) 60%, rgba(16, 20, 28, 0.04) 80%);
}
.hero.no-webgl .hero-pin {
  background:
    radial-gradient(900px 460px at 74% 60%, rgba(201, 168, 106, 0.14), transparent 65%),
    radial-gradient(700px 420px at 30% 80%, rgba(96, 120, 140, 0.1), transparent 60%),
    var(--bg-deep);
}
.hero.no-webgl .hero-canvas { display: none; }

.hero-ui { position: relative; z-index: 2; width: 100%; }
.hero-copy { position: relative; max-width: 620px; }
/* собранная кухня встаёт ровно в зону копии, поэтому под текстом держим
   собственное тёмное пятно: шейд сцены в центре слабее, чем нужно для контраста */
.hero-copy::before {
  content: ""; position: absolute; z-index: -1;
  inset: -34px -92px -40px -30px;
  background: radial-gradient(58% 66% at 38% 45%, rgba(11, 14, 20, 0.78), rgba(11, 14, 20, 0.5) 52%, rgba(11, 14, 20, 0) 78%);
}
.hero-copy .kicker, .hero-copy .hero-display, .hero-copy .lead {
  text-shadow: 0 2px 20px rgba(11, 14, 20, 0.8), 0 1px 4px rgba(11, 14, 20, 0.6);
}
.hero-copy .kicker { margin-bottom: 18px; }
/* гигантская чёткая типографика поверх сцены: герой v2 собирает кухню,
   заголовок держит кадр и читается поверх летящих модулей */
.hero-display {
  margin: 0 0 20px;
  font-family: var(--font-display); font-weight: 700; line-height: 1.02;
  font-size: clamp(38px, 6.4vw, 92px); letter-spacing: -0.015em;
}
.hero-display em { font-style: italic; color: var(--brass-strong); font-weight: 600; }
.hero-copy .lead { margin: 0 0 28px; max-width: 46ch; font-size: clamp(16px, 1.8vw, 20px); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-hud {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; pointer-events: none;
}
.hero-hud-in {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding-bottom: 26px;
}
.hud-card {
  min-width: 250px; max-width: 320px; padding: 14px 18px 16px;
  background: rgba(13, 16, 23, 0.66); border: 1px solid var(--line);
  border-radius: var(--radius-sm); backdrop-filter: blur(10px);
}
.hud-card .k { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.hud-card .v { display: block; margin-top: 5px; font-weight: 600; font-size: 14.5px; color: var(--brass-strong); }
.hud-bar { margin-top: 10px; height: 4px; border-radius: 4px; background: rgba(233, 224, 209, 0.12); overflow: hidden; }
.hud-bar i { display: block; height: 100%; width: 0%; border-radius: 4px; background: linear-gradient(90deg, var(--brass-deep), var(--brass-strong)); transition: width 0.12s linear; }
.hud-count { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.hero-hint { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-dim); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.hero-hint i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--brass), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .hero-hint i { animation: none; } }

/* правая колонка HUD: подсказка + «Пропустить сборку» (якорь #how, работает и без JS) */
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-skip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: rgba(13, 16, 23, 0.55); color: var(--text-dim);
  font: 600 12.5px var(--font-text); letter-spacing: 0.06em; text-transform: uppercase;
  backdrop-filter: blur(8px); transition: color 0.15s ease, border-color 0.15s ease;
  pointer-events: auto;
}
.hero-skip svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero-skip:hover { color: var(--brass-strong); border-color: var(--brass); }
/* статичный кадр (reduced-motion / нет WebGL / ?static=1): подсказка скролла
   не нужна — сборка уже показана собранной */
.hero.hero-static .hero-hint { display: none; }

/* ── Короткие десктоп-вьюпорты (высота ≤ 860px: 1366×768 и весь ряд ниже) ──
   Копия центрирована, и на невысоком десктопе CTA-кнопки опускались до
   ~y617 — ровно туда, где начинается HUD-карточка (bottom 26px, ~150px):
   от «Открыть конструктор» виднелась только латунная долька. Гасим
   типографику героя, приподнимаем копию (padding-bottom у .hero-ui при
   align-items:center сдвигает её вверх на половину) и сжимаем HUD-карточку. */
@media (min-width: 761px) and (max-height: 860px) {
  .hero-ui { padding-bottom: 96px; } /* клир ~48px между кнопками и HUD */
  .hero-copy .kicker { margin-bottom: 12px; }
  .hero-display { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 14px; }
  .hero-copy .lead { margin-bottom: 18px; }
  .hero-hud-in { padding-bottom: 20px; }
  .hud-card { padding: 10px 16px 12px; }
}

/* ── Секции ─────────────────────────────────────────────────────────── */
.section { padding: 84px 0; position: relative; }
/* якоря не прячутся под фиксированной шапкой */
.section, .hero-track { scroll-margin-top: calc(var(--header-h) + 14px); }
/* тинт на всю высоту секции: иначе низ секции сливается с чёрным фоном
   следующей, и стык читается как провал пустоты */
.section.tint { background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.section-head .kicker { margin-bottom: 12px; }
.section-head .lead { margin: 12px 0 0; }
.ruler { height: 1px; background: linear-gradient(90deg, var(--brass), rgba(201, 168, 106, 0.06) 55%, transparent); opacity: 0.5; margin-top: 30px; }

/* шаги */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  position: relative; padding: 28px 26px 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: linear-gradient(180deg, var(--panel), rgba(21, 26, 37, 0.55));
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.step:hover { transform: translateY(-3px); border-color: rgba(201, 168, 106, 0.4); }
.step-num {
  position: absolute; top: 20px; right: 22px; font-family: var(--font-display);
  font-size: 44px; line-height: 1; color: rgba(201, 168, 106, 0.22); font-weight: 700;
}
.step-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brass-dim); border: 1px solid rgba(201, 168, 106, 0.35); margin-bottom: 18px;
}
.step-ic svg { width: 24px; height: 24px; stroke: var(--brass-strong); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14.5px; }
.step .spec { display: block; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.step .spec b { color: var(--brass-strong); font-weight: 600; }

/* живой конструктор — окно браузера */
.browser {
  border: 1px solid var(--line-strong); border-radius: 16px; overflow: hidden;
  background: #0d1017; box-shadow: var(--shadow-2);
}
.browser-top {
  display: flex; align-items: center; gap: 14px; padding: 12px 16px;
  background: #141926; border-bottom: 1px solid var(--line);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #3a4254; }
.dots i:nth-child(1) { background: #d97b6c; }
.dots i:nth-child(2) { background: #d9b36c; }
.dots i:nth-child(3) { background: #8fbf7f; }
.address {
  flex: 1; display: flex; align-items: center; gap: 9px; padding: 8px 14px;
  background: #0d1119; border: 1px solid var(--line); border-radius: 9px;
  color: var(--muted); font-size: 13px; overflow: hidden;
}
.address svg { width: 14px; height: 14px; stroke: var(--brass); fill: none; stroke-width: 1.8; flex: none; }
.address span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* бейдж статуса движка: серый, пока probe (js/landing.js) не ответил;
   зелёный «live» — только при живом конструкторе, «offline» — при недоступности
   (раньше «live» горел всегда, даже на мёртвом движке) */
.browser-live { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.browser-live i { width: 7px; height: 7px; border-radius: 50%; background: #3a4254; }
.browser-live.is-live { color: var(--ok); }
.browser-live.is-live i { background: var(--ok); box-shadow: 0 0 8px rgba(157, 192, 139, 0.8); }
.browser-live.is-off { color: #d98a7a; }
.browser-live.is-off i { background: #d98a7a; }
.browser-frame { position: relative; height: 80vh; min-height: 480px; background: #e8ebee; }
.browser-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ctor-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.ctor-note b { color: var(--brass-strong); font-weight: 600; }
.ctor-offline {
  display: none; margin: 14px 0 0; padding: 12px 16px; border-radius: var(--radius-sm);
  border: 1px solid rgba(217, 138, 122, 0.4); background: rgba(217, 138, 122, 0.08);
  color: #e6b3a6; font-size: 13.5px;
}
.ctor-offline.show { display: block; }

/* производство — 4 карточки */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(21, 26, 37, 0.55));
  display: flex; flex-direction: column; gap: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.prod:hover { transform: translateY(-3px); border-color: rgba(201, 168, 106, 0.4); }
.prod-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brass-dim); border: 1px solid rgba(201, 168, 106, 0.35);
}
.prod-ic svg { width: 24px; height: 24px; stroke: var(--brass-strong); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.prod h3 { font-size: 19px; }
.prod p { margin: 0; color: var(--text-dim); font-size: 14px; flex: 1; }
.prod .formula {
  font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line-strong);
  padding-top: 12px;
}
.prod .formula b { color: var(--brass-strong); font-weight: 600; }

/* библиотека — цифры + линейка модулей */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat {
  padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel-2), rgba(26, 32, 48, 0.4)); text-align: left;
}
.stat .n { font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 42px); font-weight: 700; color: var(--brass-strong); line-height: 1.05; }
.stat .t { margin-top: 8px; color: var(--text-dim); font-size: 14px; }
.modules-row { display: flex; flex-wrap: wrap; gap: 10px; }
.module-chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 9px 15px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(233, 224, 209, 0.03);
  font-size: 13px; color: var(--text-dim);
}
.module-chip b { color: var(--text); font-weight: 600; }
.module-chip i { font-style: normal; color: var(--brass-strong); font-variant-numeric: tabular-nums; font-size: 12.5px; }

/* CTA-финал */
.cta-card {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(36px, 5vw, 64px);
  border: 1px solid rgba(201, 168, 106, 0.4);
  background:
    radial-gradient(720px 320px at 88% 0%, rgba(201, 168, 106, 0.2), transparent 62%),
    radial-gradient(520px 300px at 4% 100%, rgba(96, 120, 140, 0.14), transparent 60%),
    linear-gradient(160deg, #1a1f2c, #12151e);
  box-shadow: var(--shadow-2);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px;
}
.cta-card > div, .cta-card > .cta-actions { position: relative; z-index: 1; }
.cta-text { max-width: 560px; }
/* фоновый якорь правой половины: схема карты раскроя листа ЛДСП */
.cta-map {
  position: absolute; z-index: 0; top: 50%; right: 46px; transform: translateY(-50%);
  width: clamp(210px, 26%, 320px); height: auto; color: var(--brass); opacity: 0.3;
  pointer-events: none;
}
.cta-map rect { fill: none; stroke: currentColor; stroke-opacity: 0.38; stroke-width: 1.4; }
.cta-map .waste { stroke-dasharray: 6 5; stroke-opacity: 0.2; }
.cta-card h2 { max-width: 560px; }
.cta-card .lead { margin: 14px 0 0; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
/* Telegram-кнопка CTA: латунная пилюля в стиле сайта (дыхание глоу — .btn-tg::after ниже) */
.btn-tg {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 24px;
  border-radius: 999px; border: 1px solid rgba(201, 168, 106, 0.5); background: rgba(201, 168, 106, 0.08);
  font-family: var(--font-display); font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: var(--brass-strong);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-tg:hover { background: rgba(201, 168, 106, 0.16); transform: translateY(-1px); }
.btn-tg svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* каналы связи «Пилота» вместо телефона (решение владельца, 2026-10-12):
   AI-менеджер (кнопка открывает виджет agent/agent-widget.js), Telegram
   (ссылка из agent/config.js; пусто → открывает виджет), личный кабинет —
   фаза 2: бейдж-заглушка, НЕ кнопка (pointer-events нет, фокус не ловит) */
.pilot-channels { display: flex; flex-direction: column; gap: 10px; }
.pchannel {
  display: grid; gap: 9px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(233, 224, 209, 0.03);
  transition: border-color 0.18s ease;
}
.pchannel:hover { border-color: rgba(201, 168, 106, 0.4); }
.pch-k { font-weight: 600; font-size: 14px; color: var(--text); letter-spacing: 0.01em; }
.pchannel .btn { width: 100%; }
.btn-agent {
  border-color: var(--line-strong); color: var(--text);
  background: transparent; padding: 12px 20px;
}
.btn-agent:hover { border-color: var(--brass); color: var(--brass-strong); }
.btn-agent svg { width: 18px; height: 18px; stroke: var(--brass); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pchannel .btn-tg { font-size: 16px; padding: 12px 20px; }
.pchannel.is-static { border-style: dashed; background: transparent; }
.pchannel.is-static:hover { border-color: var(--line); }
.pch-soon { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); pointer-events: none; }
.pch-soon svg { width: 15px; height: 15px; stroke: var(--brass); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pch-soon b { color: var(--text-dim); font-weight: 600; }

/* футер */
.site-footer { border-top: 1px solid var(--line); padding: 30px 0 34px; background: var(--bg-deep); }
.footer-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer-in .logo img { height: 30px; }
.footer-note { color: var(--muted); font-size: 13px; }
.footer-links { margin-left: auto; display: flex; gap: 18px; font-size: 13.5px; }
.footer-links a { color: var(--text-dim); }
.footer-links a:hover { color: var(--brass-strong); }

/* появление по скроллу */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ── Адаптив ────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  .nav, .header-tg, .btn-header { display: none; }
  .burger { display: inline-grid; place-items: center; }
  .mobile-nav {
    display: flex; flex-direction: column; gap: 4px; padding: 10px 24px 18px;
    background: rgba(13, 16, 23, 0.97); border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-header.nav-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; }
  .mobile-nav a { padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 15px; }
  .mobile-nav a:last-child { border-bottom: 0; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-track { height: 300vh; }
  .hero-copy { max-width: 560px; }
  .section { padding: 76px 0; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 18px; }

  /* ── мобильный герой: сцена сверху, текст — внизу на тёмной подложке ──
     (раньше текст висел по центру и наезжал на 3D-сцену, верх экрана пустовал) */
  .hero-pin {
    align-items: flex-end;
    /* фон под сценой: мягкий тёплый градиент — модули читаются на мобиле,
       верхняя треть не выглядит пустой тёмной зоной (канвас прозрачный) */
    background:
      radial-gradient(135% 46% at 50% 20%, rgba(201, 168, 106, 0.15), transparent 64%),
      radial-gradient(120% 36% at 50% 0%, rgba(96, 120, 140, 0.12), transparent 60%),
      linear-gradient(180deg, #1c2231 0%, #131826 46%, #10141c 72%);
  }
  /* шейд: низ — плотная тёмная подложка под текст, верх сцены не глушим */
  .hero-shade {
    background: linear-gradient(180deg,
      rgba(16, 20, 28, 0.55) 0%, rgba(16, 20, 28, 0.1) 22%,
      rgba(16, 20, 28, 0.02) 42%, rgba(16, 20, 28, 0.34) 54%,
      rgba(16, 20, 28, 0.9) 66%, rgba(16, 20, 28, 0.98) 100%);
  }
  .hero-ui { padding-bottom: 152px; } /* клир над статус-панелью */
  .hero-copy { max-width: none; }
  .hero-copy::before { inset: -22px -18px -20px -14px; }
  .hero-copy .kicker { margin-bottom: 10px; }
  .hero-display { font-size: clamp(34px, 10.5vw, 46px); margin-bottom: 12px; }
  .hero-copy .lead { margin: 0 0 16px; font-size: 16px; }
  /* кнопки: 16px + полная ширина в столбик. В ряд не ставим: пара кнопок
     при 16px не влезает в 324–378px ни на одной из ширин 360/390/414 без
     переноса — по условию «в ряд, если влезают» оставляем столбик */
  .btn { min-height: 46px; padding: 12px 20px; font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-actions .btn { width: 100%; }

  /* статус-панель сборки: всегда внутри экрана, с отступом от нижнего края
     (safe-area для телефонов с жестовой навигацией) */
  .hero-hud-in { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .hud-card { min-width: 0; max-width: 270px; padding: 10px 14px 12px; }
  .hud-card .k { font-size: 10.5px; }
  .hud-card .v { margin-top: 4px; font-size: 13.5px; }
  .hud-bar { margin-top: 8px; }
  .hud-count { margin-top: 6px; font-size: 12.5px; }

  /* тап-таргеты ≥ 44px */
  .burger { width: 44px; height: 44px; }
  .lang { min-width: 44px; height: 44px; }
  .header-in .logo { padding: 12px 0; }
  .mobile-nav a { padding: 13px 2px; font-size: 16px; }
  .footer-links a { padding: 12px 0; }

  /* чтение ≥ 16px на мобиле */
  .lead { font-size: 16px; }
  .step p, .prod p { font-size: 16px; }
  .stat .t { font-size: 16px; }
  .ctor-note { font-size: 16px; }
  .footer-note, .footer-links a { font-size: 16px; }
  .step h3 { font-size: 20px; }
  /* карточная «мета» (спеки/формулы/чипы) — подписи, 13–14px, не чтение */
  .step .spec, .prod .formula { font-size: 13.5px; }
  .module-chip { font-size: 14px; }
  .module-chip i { font-size: 13px; }
  /* каналы «Пилота» на мобиле: кнопки ≥ 46px (тик-таргет), подписи читаются */
  .pch-k { font-size: 15px; }
  .pchannel .btn { min-height: 46px; }
  .pch-soon { font-size: 14px; }

  .prod-grid, .stats-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .browser-frame { height: 72vh; min-height: 420px; }
  .browser-live span { display: none; }
  /* на тач-экране в живом режиме HUD-подсказка и «пропустить» не нужны
     (сборка едет от пальца); в статике (reduced-motion) «пропустить» возвращаем */
  .hero-side { display: none; }
  .hero.hero-static .hero-side { display: flex; align-items: flex-end; }
  .hero.hero-static .hero-hud-in { flex-wrap: wrap; }
  .cta-card { grid-template-columns: 1fr; gap: 28px; }
  .cta-actions { width: 100%; }
  .cta-map { right: -30px; opacity: 0.35; }
  .footer-links { margin-left: 0; }
  .section { padding: 62px 0; }
}

/* ── Живой конструктор: постер вместо iframe ─────────────────────────────
   Два случая: (1) тач-экран ≤760px — iframe не грузим по замыслу (проба
   qa/touch-probe.cjs, 2026-10-02: canvas движка перехватывает тач — скролл
   страницы «замирает» на 72vh); (2) десктоп при недоступном движке — фикс P1
   критика (2026-10-11): раньше iframe получал src и Chrome рисовал внутри
   нативную ошибку «Сайт не позволяет установить соединение» (белый блок);
   теперь js/landing.js не ставит src и показывает этот же постер
   (класс .is-offline-poster). */
.ctor-poster { display: none; }
.ctor-poster {
  position: absolute; inset: 0; flex-direction: column;
  align-items: center; justify-content: flex-end; text-align: center;
  background: #e8ebee; overflow: hidden;
}
.browser.is-offline-poster .ctor-poster { display: flex; }
.ctor-poster img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
.ctor-poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(13, 16, 23, 0.72) 78%);
}
.ctor-poster-in {
  position: relative; z-index: 1; width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 0 22px calc(22px + env(safe-area-inset-bottom));
}
.ctor-poster-note {
  font-size: 14px; line-height: 1.45; color: #f0e9db;
  text-shadow: 0 1px 8px rgba(13, 16, 23, 0.8);
}
.ctor-poster .btn { min-height: 46px; padding: 12px 26px; font-size: 16px; }
@media (max-width: 760px) {
  .browser-frame iframe { display: none; }
  .ctor-poster { display: flex; } /* мобилка: постер всегда (тач-проба 2026-10-02) */
}

/* ═════════════════════════════════════════════════════════════════════════
   v3 — СОЧНОСТЬ НИЖНИХ СЕКЦИЙ (пара к hero-сборке) — ВОССТАНОВЛЕНО v4.1:
   кусок был случайно вырезан при пересборке poster-блока (fx-canvas стал
   static и вытолкнул контент секций — reveal/#how «исчез»).
   js/effects.js: фоновые панели [data-fx] (пыль-боке/лучи/туман — рецепт
   evo-scenes), микро-параллакс [data-parallax]; ниже — глоу-иконки при
   появлении, крупные градиентные цифры, ховер-подъёмы, CTA-световой акцент.
   ═════════════════════════════════════════════════════════════════════════ */

/* фоновые панели: canvas за контентом секции, сама секция не пускает
   канвас шире вьюпорта (h-scroll = 0) */
.section[data-fx] { overflow: hidden; }
.fx-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; display: block;
}
.section[data-fx] > .wrap { position: relative; z-index: 1; }

/* амбиентные градиенты секций — база сочности под канвасом */
#how {
  background:
    radial-gradient(880px 420px at 92% -60px, rgba(201, 168, 106, 0.10), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
}
#live {
  background:
    radial-gradient(920px 460px at -120px 20%, rgba(96, 120, 140, 0.10), transparent 60%),
    radial-gradient(760px 400px at 108% 88%, rgba(201, 168, 106, 0.08), transparent 60%);
}
#production {
  background:
    radial-gradient(980px 480px at 88% 4%, rgba(201, 168, 106, 0.13), transparent 62%),
    radial-gradient(860px 440px at -140px 78%, rgba(96, 120, 140, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
}
#library {
  background:
    radial-gradient(900px 440px at 6% 0%, rgba(96, 120, 140, 0.12), transparent 60%),
    radial-gradient(820px 420px at 100% 100%, rgba(201, 168, 106, 0.10), transparent 62%);
}
#pilot {
  background:
    radial-gradient(1000px 520px at 50% 64%, rgba(201, 168, 106, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
}

/* «Как это работает»: крупные цифры с латунным градиентом */
.step-num {
  top: 16px; right: 20px; font-size: 64px;
  background: linear-gradient(180deg, #f2ddb0 0%, var(--brass) 48%, rgba(165, 129, 63, 0.28) 94%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
/* «Библиотека»: те же градиентные цифры в стате */
.stat .n {
  background: linear-gradient(180deg, #f2ddb0 0%, var(--brass) 50%, rgba(165, 129, 63, 0.34) 94%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* глоу-обводка иконок при появлении карточки (данные [data-reveal].in) */
.step-ic, .prod-ic { position: relative; }
.step-ic::after, .prod-ic::after {
  content: ""; position: absolute; inset: -9px; border-radius: 18px;
  background: radial-gradient(closest-side, rgba(232, 198, 140, 0.55), rgba(201, 168, 106, 0.16) 58%, transparent 78%);
  filter: blur(9px);
  opacity: 0; transform: scale(0.55);
  pointer-events: none;
}
.step.in .step-ic::after, .prod.in .prod-ic::after {
  animation: iconGlow 1.15s cubic-bezier(0.2, 0.7, 0.3, 1) 0.18s forwards;
}
@keyframes iconGlow {
  0% { opacity: 0; transform: scale(0.55); }
  55% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0.85; transform: scale(1); }
}
.step.in .step-ic, .prod.in .prod-ic {
  border-color: rgba(201, 168, 106, 0.55);
  box-shadow: 0 0 22px rgba(201, 168, 106, 0.26), inset 0 0 12px rgba(201, 168, 106, 0.13);
  transition: border-color 0.5s ease 0.3s, box-shadow 0.5s ease 0.3s;
}

/* ховер-подъём карточек (глубже v2: −6px + латунное свечение) */
.step, .prod, .stat { will-change: transform; }
.step {
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.step:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 106, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 10px 36px rgba(201, 168, 106, 0.12);
}
.prod {
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.prod:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 168, 106, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 10px 36px rgba(201, 168, 106, 0.12);
}
.stat {
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
.stat:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 168, 106, 0.45);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), 0 8px 30px rgba(201, 168, 106, 0.10);
}
.module-chip { transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
.module-chip:hover {
  border-color: rgba(201, 168, 106, 0.5);
  background: rgba(201, 168, 106, 0.07);
  box-shadow: 0 6px 22px rgba(201, 168, 106, 0.12);
}

/* живой конструктор: окно получает латунный ореол при появлении */
.browser { transition: box-shadow 0.6s ease; }
.browser.in { box-shadow: var(--shadow-2), 0 0 64px rgba(201, 168, 106, 0.10); }

/* CTA-финал: световой акцент — дыхание ореола + диагональный блик-свип */
.cta-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  z-index: 0; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(226, 192, 135, 0.30), 0 0 46px rgba(201, 168, 106, 0.12);
  animation: ctaBreath 5.2s ease-in-out infinite;
}
@keyframes ctaBreath { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.cta-card::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* свип анимируется background-position, не transform: transform-бокс
     псевдоэлемента расширял scrollable-overflow карточки (+~970px
     element-метрики) — фон этого не делает */
  background: linear-gradient(115deg, transparent 40%, rgba(255, 228, 176, 0.09) 50%, transparent 60%) no-repeat;
  background-size: 220% 100%;
  animation: ctaSweep 5.6s ease-in-out infinite;
}
@keyframes ctaSweep { 0% { background-position: 130% 0; } 55%, 100% { background-position: -30% 0; } }
.btn-tg { box-shadow: 0 0 30px rgba(201, 168, 106, 0.16); }
.btn-tg:hover { box-shadow: 0 0 42px rgba(201, 168, 106, 0.26); }

/* reduced-motion: статичная «сочность» без анимаций (генератор FX сам
   рисует один кадр; здесь гасим только CSS-движения) */
@media (prefers-reduced-motion: reduce) {
  .step.in .step-ic::after, .prod.in .prod-ic::after { animation: none; opacity: 0.85; transform: none; }
  .cta-card::before, .cta-card::after { animation: none; }
  .cta-card::after { opacity: 0; }
  .cta-card::before { opacity: 0.7; }
  .step, .prod, .stat { will-change: auto; }
}

/* ═════════════════════════════════════════════════════════════════════════
   v4 — НИЖНИЕ СЕКЦИИ ДО УРОВНЯ ГЕРОЯ («цех-класс»)
   Световые швы между секциями, микро-сцены «Как это работает», живая сцена
   раскроя + печатающаяся смета, GLB-плитки «Библиотеки», ЧПУ-контур «Пилота».
   Всё процедурное, без внешних ассетов; герой не тронут.
   ═════════════════════════════════════════════════════════════════════════ */

/* ── Световые линии студии: швы на границах секций ────────────────────────
   Тонкая латунная прожилка + мягкое свечение (box-shadow) + бегущий пульс.
   Класс .live ставит js/effects.js по IntersectionObserver — вне вьюпорта
   анимация не крутится. */
.seam {
  position: relative; height: 30px; pointer-events: none; z-index: 1;
  overflow: hidden;
}
.seam i {
  position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  transform: translateY(-0.5px);
  background: linear-gradient(90deg,
    transparent 0%, rgba(201, 168, 106, 0.4) 16%,
    rgba(232, 198, 140, 0.85) 38%, rgba(201, 168, 106, 0.5) 58%,
    rgba(150, 180, 215, 0.28) 74%, transparent 96%);
  opacity: 0.45;
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.30), 0 0 38px rgba(201, 168, 106, 0.14);
  transition: opacity 0.6s ease;
}
/* бегущий блик по прожилке */
.seam b {
  position: absolute; top: 50%; left: 0; width: 30%; height: 3px;
  transform: translate(-130%, -50%);
  background: linear-gradient(90deg, transparent, rgba(255, 230, 180, 0.9) 45%, rgba(255, 244, 220, 1) 50%, rgba(255, 230, 180, 0.9) 55%, transparent);
  filter: blur(0.6px);
  opacity: 0;
}
.seam.live i { opacity: 0.9; }
.seam.live b { animation: seamPulse 5.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
@keyframes seamPulse {
  0% { transform: translate(-130%, -50%); opacity: 0; }
  10% { opacity: 0.95; }
  60% { opacity: 0.55; }
  100% { transform: translate(440%, -50%); opacity: 0; }
}
/* туман глубины у шва: тонкие дымчатые полосы над и под линией */
.seam::before, .seam::after {
  content: ""; position: absolute; left: 12%; right: 12%; height: 14px;
  background: radial-gradient(50% 100% at 50% 50%, rgba(150, 175, 205, 0.07), transparent 75%);
  pointer-events: none;
}
.seam::before { top: -4px; }
.seam::after { bottom: -4px; }

/* ── «Как это работает»: микро-сцены вместо иконок ─────────────────────── */
.mscene {
  position: relative; height: 172px; margin: 0 0 18px;
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(201, 168, 106, 0.07), transparent 58%),
    linear-gradient(180deg, #10141d, #0c0f16);
  box-shadow: inset 0 1px 0 rgba(233, 224, 209, 0.05);
}
/* золотой bloom крупных цифр 01/02/03: дыхание свечения поверх градиента текста */
.step-num {
  animation: numBloom 4.4s ease-in-out infinite;
  animation-delay: 0.4s;
  z-index: 2; pointer-events: none; /* поверх микро-сцены, не мешает тачу */
}
@keyframes numBloom {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(226, 192, 135, 0.28)) drop-shadow(0 4px 20px rgba(201, 168, 106, 0.16)); }
  50% { filter: drop-shadow(0 0 24px rgba(236, 206, 148, 0.6)) drop-shadow(0 4px 30px rgba(201, 168, 106, 0.34)); }
}

/* сцена 01: плитка кликается → модуль встаёт в мини-сцену (CSS 3D) */
.ms-stage { position: absolute; inset: 0; perspective: 640px; }
.ms-tiles { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 7px; }
.ms-tiles i {
  width: 46px; height: 30px; border-radius: 7px;
  border: 1px solid rgba(201, 168, 106, 0.35);
  background: linear-gradient(180deg, rgba(201, 168, 106, 0.16), rgba(201, 168, 106, 0.04));
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.ms-tiles i.ms-press { transform-origin: center; animation: tilePress 4.6s ease-in-out infinite; }
@keyframes tilePress {
  0%, 8% { transform: none; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); background: linear-gradient(180deg, rgba(201, 168, 106, 0.16), rgba(201, 168, 106, 0.04)); }
  12%, 20% { transform: scale(0.88); box-shadow: 0 0 18px rgba(232, 198, 140, 0.45), inset 0 0 10px rgba(232, 198, 140, 0.3); background: linear-gradient(180deg, rgba(232, 198, 140, 0.4), rgba(201, 168, 106, 0.14)); }
  40% { transform: scale(0.94); }
  62%, 100% { transform: none; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
}
.ms-scene {
  position: absolute; right: 8%; top: 50%; width: 190px; height: 190px; margin-top: -95px;
  transform-style: preserve-3d; transform: rotateX(56deg) rotateZ(-34deg);
}
.ms-grid {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(201, 168, 106, 0.14) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(201, 168, 106, 0.14) 0 1px, transparent 1px 24px);
  border: 1px solid rgba(201, 168, 106, 0.25);
  mask-image: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 92%);
  -webkit-mask-image: radial-gradient(75% 75% at 50% 50%, #000 40%, transparent 92%);
}
.ms-mod {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  background: linear-gradient(160deg, #2a3040 0%, #1c2230 70%);
  border: 1px solid rgba(233, 224, 209, 0.25);
  box-shadow: inset 0 0 0 3px rgba(201, 168, 106, 0.16);
  animation: modRise 4.6s cubic-bezier(0.2, 0.9, 0.3, 1.15) infinite;
}
.ms-mod::before { /* верхняя грань куба */
  content: ""; position: absolute; left: 0; top: -14px; width: 44px; height: 14px;
  background: linear-gradient(180deg, rgba(233, 224, 209, 0.28), rgba(201, 168, 106, 0.18));
  transform: skewX(45deg); transform-origin: bottom left;
}
.ms-mod::after { /* боковая грань */
  content: ""; position: absolute; right: -14px; top: 0; width: 14px; height: 44px;
  background: linear-gradient(90deg, rgba(11, 14, 20, 0.7), rgba(26, 32, 48, 0.9));
  transform: skewY(45deg); transform-origin: top left;
}
@keyframes modRise {
  0%, 16% { transform: translate3d(0, 70px, 0) scale(0.7); opacity: 0; }
  38% { transform: translate3d(0, -6px, 0) scale(1.04); opacity: 1; }
  46% { transform: translate3d(0, 2px, 0) scale(1); opacity: 1; }
  74% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  92%, 100% { transform: translate3d(0, 46px, 0) scale(0.82); opacity: 0; }
}
.ms-glow {
  position: absolute; left: 50%; top: 50%; width: 90px; height: 90px; margin: -45px 0 0 -45px;
  background: radial-gradient(closest-side, rgba(232, 198, 140, 0.55), rgba(201, 168, 106, 0.16) 55%, transparent 78%);
  opacity: 0; animation: modGlow 4.6s ease-in-out infinite;
}
@keyframes modGlow {
  0%, 30% { opacity: 0; }
  40% { opacity: 0.9; }
  58% { opacity: 0.25; }
  74% { opacity: 0.5; }
  92%, 100% { opacity: 0; }
}

/* сцена 02: размеры бегут по линейкам (анимированные засечки + пульс габарита) */
.ms-box {
  position: absolute; left: 34px; top: 30px; width: 148px; height: 96px;
  border: 1px solid rgba(233, 224, 209, 0.3); border-radius: 4px;
  background: linear-gradient(160deg, rgba(201, 168, 106, 0.12), rgba(26, 32, 48, 0.7));
  animation: boxBreath 5.2s ease-in-out infinite;
}
@keyframes boxBreath { 0%, 100% { width: 148px; } 50% { width: 176px; } }
.ms-door {
  position: absolute; inset: 7px; border: 1px solid rgba(201, 168, 106, 0.4); border-radius: 3px;
  background: linear-gradient(180deg, rgba(233, 224, 209, 0.05), rgba(201, 168, 106, 0.06));
}
.ms-door::after { /* ручка */
  content: ""; position: absolute; right: 8px; top: 50%; width: 4px; height: 22px;
  transform: translateY(-50%); border-radius: 3px; background: var(--brass-strong);
  box-shadow: 0 0 8px rgba(232, 198, 140, 0.6);
}
.ms-dim { position: absolute; color: var(--brass-strong); }
.ms-dim b {
  position: absolute; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em; background: rgba(13, 16, 23, 0.92); padding: 1px 6px; border-radius: 4px;
}
.ms-dim::before, .ms-dim::after { content: ""; position: absolute; background: rgba(232, 198, 140, 0.8); }
.ms-dim-w { left: 0; right: 0; bottom: -24px; height: 1px; background: rgba(232, 198, 140, 0.55); }
.ms-dim-w::before, .ms-dim-w::after { width: 1px; height: 9px; top: -4px; }
.ms-dim-w::before { left: 0; }
.ms-dim-w::after { right: 0; }
.ms-dim-w b { left: 50%; top: -14px; transform: translateX(-50%); }
.ms-dim-h { top: 0; bottom: 0; right: -24px; width: 1px; background: rgba(232, 198, 140, 0.55); }
.ms-dim-h::before, .ms-dim-h::after { height: 1px; width: 9px; left: -4px; }
.ms-dim-h::before { top: 0; }
.ms-dim-h::after { bottom: 0; }
.ms-dim-h b { top: 50%; right: -30px; transform: translateY(-50%); }
.ms-ruler { position: absolute; overflow: hidden; }
.ms-ruler-x {
  left: 0; right: 0; bottom: 12px; height: 12px;
  background: repeating-linear-gradient(90deg, rgba(233, 224, 209, 0.34) 0 1px, transparent 1px 11px);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  animation: rulerRun 2.6s linear infinite;
}
.ms-ruler-y {
  top: 12px; bottom: 12px; right: 44px; width: 12px;
  background: repeating-linear-gradient(0deg, rgba(233, 224, 209, 0.34) 0 1px, transparent 1px 11px);
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  animation: rulerRunY 2.6s linear infinite;
}
@keyframes rulerRun { to { background-position-x: 22px; } }
@keyframes rulerRunY { to { background-position-y: 22px; } }

/* сцена 03: документы CSV/PDF летят в папку */
.ms-folder { position: absolute; inset: 0; }
.ms-folder-back {
  position: absolute; left: 50%; bottom: 26px; width: 118px; height: 44px;
  transform: translateX(-58%);
  background: linear-gradient(180deg, #232a3a, #1a2030);
  border: 1px solid rgba(201, 168, 106, 0.4); border-radius: 4px 8px 4px 4px;
}
.ms-folder-back::before { /* язычок папки */
  content: ""; position: absolute; top: -9px; left: -1px; width: 42px; height: 10px;
  background: linear-gradient(180deg, #2a3244, #232a3a);
  border: 1px solid rgba(201, 168, 106, 0.4); border-bottom: 0; border-radius: 4px 6px 0 0;
}
.ms-folder-front {
  position: absolute; left: 50%; bottom: 14px; width: 118px; height: 20px;
  transform: translateX(-58%);
  background: linear-gradient(180deg, #2b3346, #20263a);
  border: 1px solid rgba(201, 168, 106, 0.5); border-radius: 3px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
.ms-folder-glow {
  position: absolute; left: 50%; bottom: 8px; width: 150px; height: 56px;
  transform: translateX(-58%);
  background: radial-gradient(closest-side, rgba(232, 198, 140, 0.5), transparent 75%);
  opacity: 0; animation: folderCatch 4.8s ease-in-out infinite;
}
@keyframes folderCatch {
  0%, 26% { opacity: 0; }
  32% { opacity: 0.95; }
  42% { opacity: 0.2; }
  52% { opacity: 0.85; }
  62% { opacity: 0.25; }
  80%, 100% { opacity: 0; }
}
.ms-doc {
  position: absolute; left: 50%; top: 18px; width: 42px; height: 54px; margin-left: -21px;
  border: 1px solid rgba(233, 224, 209, 0.35); border-radius: 4px;
  background: linear-gradient(180deg, #e9e0d1, #cabfa8);
  color: #241b0d; overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ms-doc b { position: absolute; left: 0; right: 0; top: 16px; text-align: center; font: 700 11px/1 var(--font-text); letter-spacing: 0.06em; }
.ms-doc i { position: absolute; left: 7px; right: 7px; height: 3px; border-radius: 2px; background: rgba(36, 27, 13, 0.4); }
.ms-doc i:nth-of-type(1) { bottom: 13px; }
.ms-doc i:nth-of-type(2) { bottom: 6px; right: 16px; }
.ms-doc-csv { animation: docFly 4.8s cubic-bezier(0.3, 0.6, 0.4, 1) infinite; }
.ms-doc-pdf { animation: docFly2 4.8s cubic-bezier(0.3, 0.6, 0.4, 1) infinite; opacity: 0; }
/* PDF летит зеркально (справа) и садится позже CSV — фазы согласованы с folderCatch */
@keyframes docFly {
  0% { transform: translate(-150px, -10px) rotate(-16deg) scale(1); opacity: 0; }
  8% { opacity: 1; }
  24% { transform: translate(-60px, 12px) rotate(-6deg) scale(0.98); }
  30%, 31% { transform: translate(-10px, 44px) rotate(4deg) scale(0.62); opacity: 1; }
  34%, 100% { transform: translate(0, 64px) rotate(0deg) scale(0.4); opacity: 0; }
}
@keyframes docFly2 {
  0% { transform: translate(150px, -14px) rotate(18deg) scale(1); opacity: 0; }
  10%, 30% { opacity: 0; }
  36% { opacity: 1; transform: translate(66px, 6px) rotate(7deg) scale(0.98); }
  50%, 51% { transform: translate(12px, 46px) rotate(-3deg) scale(0.62); opacity: 1; }
  54%, 100% { transform: translate(0, 64px) rotate(0deg) scale(0.4); opacity: 0; }
}

/* вне вьюпорта секции — CSS-анимации микро-сцен на паузу (ставит effects.js) */
[data-fx-hold] .mscene, [data-fx-hold] .mscene * { animation-play-state: paused !important; }

/* ── «Для производства»: живая сцена раскроя + печатающаяся смета ──────── */
.cutstage {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 18px;
  margin-bottom: 24px;
}
.cut-sheet, .cut-est {
  position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background:
    radial-gradient(720px 300px at 82% -60px, rgba(201, 168, 106, 0.10), transparent 60%),
    linear-gradient(180deg, var(--panel), rgba(21, 26, 37, 0.6));
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.cut-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px 12px;
}
.cut-title { font-size: 13px; color: var(--text-dim); letter-spacing: 0.04em; }
.cut-title b { color: var(--brass-strong); font-variant-numeric: tabular-nums; }
.cut-live {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
  border: 1px solid rgba(201, 168, 106, 0.4); border-radius: 999px;
  font: 600 11px/1 var(--font-text); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--brass-strong); background: rgba(201, 168, 106, 0.08); white-space: nowrap;
}
.cut-live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass-strong);
  box-shadow: 0 0 8px rgba(232, 198, 140, 0.9); animation: cutLivePulse 1.1s ease-in-out infinite;
}
@keyframes cutLivePulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.cut-live.is-done { color: var(--ok); border-color: rgba(157, 192, 139, 0.5); background: rgba(157, 192, 139, 0.08); }
.cut-live.is-done i { background: var(--ok); box-shadow: 0 0 8px rgba(157, 192, 139, 0.8); animation: none; }
.cut-viewport {
  position: relative; margin: 0 16px; border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  background: #0d1017;
}
.cut-svg { display: block; width: 100%; height: auto; }
/* внутренности SVG (создаёт js/cut-scene.js) */
.cut-svg .cs-sheet { fill: rgba(233, 224, 209, 0.045); stroke: rgba(233, 224, 209, 0.3); stroke-width: 2; }
.cut-svg .cs-tick { stroke: rgba(233, 224, 209, 0.16); stroke-width: 2; }
.cut-svg .cs-part rect {
  fill: rgba(233, 224, 209, 0.06); stroke: rgba(201, 168, 106, 0.35); stroke-width: 2.5;
  transition: fill 0.35s ease, stroke 0.35s ease, filter 0.35s ease;
}
.cut-svg .cs-part text { fill: rgba(199, 192, 178, 0.72); font: 600 58px var(--font-text); letter-spacing: 0.02em; }
.cut-svg .cs-part.cut rect {
  fill: rgba(201, 168, 106, 0.16); stroke: rgba(232, 198, 140, 0.85);
  filter: drop-shadow(0 0 10px rgba(201, 168, 106, 0.35));
}
.cut-svg .cs-part.cut text { fill: rgba(236, 226, 205, 0.95); }
.cut-svg .cs-waste rect { fill: url(#csHatch); stroke: rgba(216, 106, 92, 0); stroke-width: 3; opacity: 0; transition: opacity 0.5s ease, stroke 0.5s ease; }
.cut-svg .cs-waste.cut rect { opacity: 1; stroke: rgba(216, 106, 92, 0.75); }
.cut-svg .cs-waste text { fill: rgba(216, 106, 92, 0.85); font: 700 54px var(--font-text); letter-spacing: 0.18em; opacity: 0; transition: opacity 0.5s ease 0.15s; }
.cut-svg .cs-waste.cut text { opacity: 1; }
.cut-svg .cs-saw-rest { fill: none; stroke: rgba(233, 224, 209, 0.3); stroke-width: 3; stroke-dasharray: 14 12; }
.cut-svg .cs-saw-done {
  fill: none; stroke: #e9c88a; stroke-width: 5; stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(232, 198, 140, 0.8)) drop-shadow(0 0 18px rgba(201, 168, 106, 0.45));
}
.cut-svg .cs-head {
  fill: #fff3de; stroke: rgba(232, 198, 140, 0.9); stroke-width: 3;
  filter: drop-shadow(0 0 9px rgba(255, 228, 176, 0.95));
}
.cut-meta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 13px 18px 15px; font-size: 13px; color: var(--text-dim);
}
.cut-meta b { color: var(--brass-strong); font-variant-numeric: tabular-nums; font-weight: 700; }
.cut-fillmeter { flex: 1 1 90px; height: 5px; border-radius: 4px; background: rgba(233, 224, 209, 0.1); overflow: hidden; min-width: 70px; }
.cut-fillmeter i {
  display: block; height: 100%; width: 0%; border-radius: 4px;
  background: linear-gradient(90deg, var(--brass-deep), var(--brass-strong));
  box-shadow: 0 0 10px rgba(201, 168, 106, 0.5);
}
.cut-waste b { color: #d98a7a; }
/* смета */
.cut-est { display: flex; flex-direction: column; }
.cut-est-head {
  display: flex; align-items: center; gap: 10px; padding: 15px 18px 12px;
  font: 600 13px var(--font-text); letter-spacing: 0.06em; color: var(--text-dim);
  border-bottom: 1px dashed var(--line-strong);
}
.cut-est-head svg { width: 17px; height: 17px; stroke: var(--brass); fill: none; stroke-width: 1.8; stroke-linecap: round; }
.cut-lines { list-style: none; margin: 0; padding: 8px 18px 4px; flex: 1; overflow: hidden; }
.cut-lines li {
  display: flex; align-items: baseline; gap: 10px;
  padding: 6px 0; border-bottom: 1px dashed rgba(233, 224, 209, 0.07);
  font-size: 13px; color: var(--text-dim);
  opacity: 0; transform: translateY(9px); transition: opacity 0.4s ease, transform 0.4s ease;
}
.cut-lines li.on { opacity: 1; transform: none; }
.cut-lines li .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cut-lines li .qty { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.cut-lines li .sum { color: var(--brass-strong); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cut-est-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 4px 18px 0; padding: 11px 0 13px; border-top: 1px solid var(--line-strong);
  font-size: 13.5px; color: var(--text);
}
.cut-est-foot b { font-family: var(--font-display); font-size: 22px; color: var(--brass-strong); font-variant-numeric: tabular-nums; }
.cut-note { padding: 0 18px 14px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ── «Библиотека»: живые GLB-плитки ────────────────────────────────────── */
.m3d-head {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  margin: 34px 0 14px;
}
.m3d-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brass-strong); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
}
.m3d-kicker::before { content: ""; width: 22px; height: 1px; background: var(--brass); }
.m3d-kicker i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brass-strong);
  box-shadow: 0 0 9px rgba(232, 198, 140, 0.9); animation: cutLivePulse 1.6s ease-in-out infinite;
}
.m3d-hint { color: var(--muted); font-size: 13px; }
.m3d-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module3d {
  margin: 0; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), rgba(21, 26, 37, 0.55));
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease;
}
/* световая кромка сверху — студийный приём панелей */
.module3d::before {
  content: ""; position: absolute; z-index: 3; top: 0; left: 9%; right: 9%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 198, 140, 0.55), transparent);
  opacity: 0.5; transition: opacity 0.3s ease;
}
.module3d:hover {
  transform: translateY(-6px); border-color: rgba(201, 168, 106, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.5), 0 10px 36px rgba(201, 168, 106, 0.12);
}
.module3d:hover::before { opacity: 1; }
.m3d-stage {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 8%, rgba(201, 168, 106, 0.11), transparent 56%),
    radial-gradient(105% 75% at 50% 108%, rgba(96, 120, 140, 0.14), transparent 62%),
    #0c0f16;
}
/* глоу-подиум под моделью (фейк-бloom, GENERATE §7) */
.m3d-stage::after {
  content: ""; position: absolute; left: 50%; bottom: 9%; width: 62%; height: 14%;
  transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(201, 168, 106, 0.18), rgba(96, 120, 140, 0.05) 60%, transparent 80%);
  filter: blur(6px);
}
.m3d-stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.m3d-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; color: rgba(201, 168, 106, 0.4);
}
.m3d-fallback svg { width: 52px; height: 52px; stroke: currentColor; fill: none; stroke-width: 1.2; }
.module3d.m3d-live .m3d-fallback { display: none; }
.module3d figcaption {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 12px 16px 14px; border-top: 1px solid var(--line); background: rgba(13, 16, 23, 0.55);
}
.module3d figcaption b { font-size: 14.5px; font-weight: 600; color: var(--text); }
.module3d figcaption i { font-style: normal; font-size: 12.5px; color: var(--brass-strong); font-variant-numeric: tabular-nums; }

/* ── CTA «Пилот»: ЧПУ-контур + глоу Telegram-кнопки ────────────────────── */
.cnc-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cnc-frame .cnc-track { fill: none; stroke: rgba(233, 224, 209, 0.18); stroke-width: 1.5; stroke-dasharray: 10 9; }
.cnc-frame .cnc-path {
  fill: none; stroke: rgba(233, 198, 140, 0.9); stroke-width: 2; stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(201, 168, 106, 0.65)) drop-shadow(0 0 16px rgba(201, 168, 106, 0.3));
}
.cnc-frame .cnc-dot { fill: #fff3de; filter: drop-shadow(0 0 8px rgba(255, 228, 176, 1)); }
.cnc-frame .cnc-cross { stroke: rgba(232, 198, 140, 0.55); stroke-width: 1.5; opacity: 0; transition: opacity 0.3s ease, filter 0.3s ease; }
.cnc-frame .cnc-cross.on { opacity: 1; stroke: rgba(236, 206, 148, 0.95); filter: drop-shadow(0 0 5px rgba(232, 198, 140, 0.8)); }
.cnc-frame text { fill: rgba(232, 198, 140, 0.8); font: 600 12px ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.08em; }
.btn-tg { position: relative; }
.btn-tg::after {
  content: ""; position: absolute; inset: -3px; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 26px rgba(201, 168, 106, 0.38), inset 0 0 14px rgba(232, 198, 140, 0.22);
  opacity: 0.5; animation: tgGlow 3s ease-in-out infinite;
}
@keyframes tgGlow { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

/* ── свечение за панелями (мягкий латунный ореол под карточкой) ─────────── */
.step.in, .prod.in, .stat.in, .module3d.in {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36), 0 4px 28px rgba(201, 168, 106, 0.07);
}
.stat { position: relative; }

/* ── туман глубины: статичные дымчатые полосы в фоне секций ────────────── */
#production {
  background-image:
    linear-gradient(180deg, transparent 58%, rgba(96, 118, 140, 0.055) 78%, rgba(96, 118, 140, 0.02) 88%, transparent 99%),
    radial-gradient(980px 480px at 88% 4%, rgba(201, 168, 106, 0.13), transparent 62%),
    radial-gradient(860px 440px at -140px 78%, rgba(96, 120, 140, 0.10), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
}
#pilot {
  background-image:
    linear-gradient(180deg, transparent 58%, rgba(96, 118, 140, 0.05) 78%, transparent 99%),
    radial-gradient(1000px 520px at 50% 64%, rgba(201, 168, 106, 0.09), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.006));
}
#library {
  background-image:
    linear-gradient(180deg, transparent 64%, rgba(150, 175, 205, 0.05) 82%, transparent 98%),
    radial-gradient(900px 440px at 6% 0%, rgba(96, 120, 140, 0.12), transparent 60%),
    radial-gradient(820px 420px at 100% 100%, rgba(201, 168, 106, 0.10), transparent 62%);
}

/* ── адаптив v4 ────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .m3d-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .cutstage { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mscene { height: 158px; }
  .ms-scene { width: 160px; height: 160px; margin-top: -80px; right: 4%; }
  .cut-head { flex-wrap: wrap; }
  .cut-meta { gap: 10px; font-size: 13.5px; }
  .cut-lines li { font-size: 13.5px; }
  .cut-est-foot b { font-size: 20px; }
  .m3d-hint { display: none; }
  .cnc-frame text { font-size: 11px; }
}
@media (max-width: 480px) {
  .m3d-grid { grid-template-columns: 1fr; }
  .m3d-stage { aspect-ratio: 16 / 10; }
}

/* ── reduced-motion v4: всё статичное, но сочное ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .seam b, .seam.live b { animation: none; opacity: 0; }
  .seam i, .seam.live i { opacity: 0.8; }
  .step-num { animation: none; filter: drop-shadow(0 0 16px rgba(226, 192, 135, 0.4)); }
  .mscene, .mscene * { animation: none !important; }
  /* статичные раскладки микро-сцен (финальные положения циклов) */
  .ms-tiles i.ms-press { transform: scale(0.94); box-shadow: 0 0 16px rgba(232, 198, 140, 0.4); }
  .ms-mod { transform: none; opacity: 1; }
  .ms-glow { opacity: 0.5; }
  .ms-ruler-x, .ms-ruler-y { animation: none; }
  .ms-box { animation: none; width: 168px; }
  .ms-doc-pdf { display: none; }
  .ms-doc-csv { animation: none; transform: translate(-10px, 36px) scale(0.72); opacity: 0.9; }
  .ms-folder-glow { opacity: 0.7; }
  .cut-live i { animation: none; }
  .btn-tg::after { animation: none; opacity: 0.8; }
  .agent-fab, .agent-panel, .agent-msg, .agent-status u, .agent-typing i { animation: none !important; }
}

/* ═════════════════════════════════════════════════════════════════════════
   v4.1 — фикс-раунд критика (avg 8.66): статика #how/#pilot держит планку
   героя. ЧПУ-разметка листа в CTA (пустая нижне-левая зона), контраст
   микро-сцен #how (keyGlow поднят в effects.js: how gain 0.9, pilot 1.15).
   ═════════════════════════════════════════════════════════════════════════ */

/* ЧПУ-разметка под текстом CTA: размерные тики листа + координаты */
.cta-blueprint {
  margin-top: 26px; max-width: 430px;
  display: flex; flex-direction: column; gap: 7px;
}
.cb-ruler {
  height: 13px;
  background:
    repeating-linear-gradient(90deg,
      rgba(201, 168, 106, 0.5) 0 1px, transparent 1px 23px),
    linear-gradient(180deg, transparent 0 8px, rgba(201, 168, 106, 0.35) 8px 9px, transparent 9px);
  /* каждая 5-я засечка длиннее — слои ниже перекрывают короткие */
  position: relative;
  mask-image: linear-gradient(90deg, #000 82%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
}
.cb-ruler::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 100%;
  background: repeating-linear-gradient(90deg,
    rgba(232, 198, 140, 0.85) 0 1.5px, transparent 1.5px 115px);
}
.cb-labels {
  display: flex; align-items: baseline; gap: 10px;
  font: 600 12px ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.1em; color: rgba(226, 192, 135, 0.8);
}
.cb-labels b { font-weight: 600; }
.cb-labels i { font-style: normal; color: rgba(201, 168, 106, 0.45); }

/* контраст микро-сцен #how: сочнее фон, рамки, элементы — статика читается */
.mscene {
  border-color: rgba(201, 168, 106, 0.28);
  background:
    radial-gradient(130% 110% at 50% -6%, rgba(232, 198, 140, 0.13), transparent 60%),
    radial-gradient(90% 70% at 18% 108%, rgba(96, 120, 140, 0.14), transparent 62%),
    linear-gradient(180deg, #131826, #0b0e15);
  box-shadow: inset 0 1px 0 rgba(233, 224, 209, 0.08), 0 8px 26px rgba(0, 0, 0, 0.3);
}
.ms-tiles i { border-color: rgba(201, 168, 106, 0.5); background: linear-gradient(180deg, rgba(201, 168, 106, 0.26), rgba(201, 168, 106, 0.07)); }
.ms-grid {
  background:
    repeating-linear-gradient(0deg, rgba(201, 168, 106, 0.22) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(201, 168, 106, 0.22) 0 1px, transparent 1px 24px);
  border-color: rgba(201, 168, 106, 0.4);
}
.ms-box { border-color: rgba(233, 224, 209, 0.45); background: linear-gradient(160deg, rgba(201, 168, 106, 0.2), rgba(26, 32, 48, 0.75)); }
.ms-door { border-color: rgba(201, 168, 106, 0.55); }
.ms-folder-back { background: linear-gradient(180deg, #2c354a, #1e2536); border-color: rgba(201, 168, 106, 0.55); }
.ms-folder-front { background: linear-gradient(180deg, #35405a, #262e44); border-color: rgba(201, 168, 106, 0.6); }
.ms-doc { background: linear-gradient(180deg, #f4ecdd, #d5cab2); border-color: rgba(255, 244, 224, 0.5); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55), 0 0 14px rgba(232, 198, 140, 0.25); }

/* покоящиеся фазы полнее: модуль в сцене дольше виден, плитка дольше нажата */
@keyframes modRise {
  0%, 14% { transform: translate3d(0, 70px, 0) scale(0.7); opacity: 0; }
  36% { transform: translate3d(0, -6px, 0) scale(1.04); opacity: 1; }
  44% { transform: translate3d(0, 2px, 0) scale(1); opacity: 1; }
  82% { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
  94%, 100% { transform: translate3d(0, 46px, 0) scale(0.82); opacity: 0; }
}
@keyframes tilePress {
  0%, 8% { transform: none; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); background: linear-gradient(180deg, rgba(201, 168, 106, 0.26), rgba(201, 168, 106, 0.07)); }
  12%, 26% { transform: scale(0.88); box-shadow: 0 0 18px rgba(232, 198, 140, 0.5), inset 0 0 10px rgba(232, 198, 140, 0.34); background: linear-gradient(180deg, rgba(232, 198, 140, 0.44), rgba(201, 168, 106, 0.16)); }
  44% { transform: scale(0.94); }
  66%, 100% { transform: none; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4); }
}
