/* Лендинг kvalitend.ru — «машинный зал».
   Источник правды: docs/product/LANDING-SPEC.md (свод + приложения А, Б).
   Палитра — токены тёмной темы приложения; радиус на всём сайте 0
   (исключение — рамка окна продукта, 8px: это объект-окно, а не вёрстка). */

/* ── Шрифты: самохостинг, переменные начертания ── */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-var-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Lora';
  src: url('fonts/lora-italic-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212;
}
@font-face {
  font-family: 'Lora';
  src: url('fonts/lora-italic-cyrillic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jbmono-var-latin.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2116, U+2212;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/jbmono-var-cyrillic.woff2') format('woff2');
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* ── Токены ── */
:root {
  --bg: #0f1319;
  --surface: #161b23;
  --surface2: #1d242e;
  --border: #2a3340;
  --text: #e6eaf0;
  --muted: #97a1b0;
  --accent: #5b8def;
  --ok: #3fb984;
  --warn: #e0a32e;
  --stop: #e05c5c;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --rail-x: 308px;
  --content-x: 332px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
::selection { background: var(--accent); color: var(--bg); }
img, svg, canvas { max-width: 100%; height: auto; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }

/* ── Каркас: страница, сетка, рельс ── */
.page { max-width: 1440px; margin: 0 auto; position: relative; overflow-x: hidden; }
@supports (overflow-x: clip) { .page { overflow-x: clip; } }
.zal {
  background:
    repeating-linear-gradient(0deg, rgba(151, 161, 176, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(151, 161, 176, 0.035) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(151, 161, 176, 0.06) 0 1px, transparent 1px 280px),
    repeating-linear-gradient(90deg, rgba(151, 161, 176, 0.06) 0 1px, transparent 1px 280px);
}
.rail {
  position: absolute;
  left: var(--rail-x);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.rail-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: var(--accent);
}

/* ── Типографика ── */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.h2 {
  font-size: clamp(30px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text);
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-size: 19px;
  line-height: 1.58;
  color: var(--muted);
  max-width: 640px;
}
.secnum {
  position: absolute;
  left: 96px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
a.secnum:hover { color: var(--accent); }
.vlabel {
  position: absolute;
  left: 150px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.wm {
  position: absolute;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(140px, 19vw, 280px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px var(--border);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}
@supports not (-webkit-text-stroke: 1px #000) {
  .wm { color: rgba(151, 161, 176, 0.05); }
}
@supports (animation-timeline: view()) {
  .wm { animation: wm-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  @keyframes wm-drift { from { transform: translateY(28px); } to { transform: translateY(-28px); } }
}

/* ── Секции ── */
.section { position: relative; padding: 150px 96px 0 0; }
.section > .inner { margin-left: var(--content-x); position: relative; z-index: 1; }
.section .eyebrow { margin-bottom: 20px; }
.section .h2 { margin-bottom: 28px; }
.pause {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  padding: 60px 96px 60px 0;
}
.pause > .inner { margin-left: var(--content-x); }

/* ── Кнопки ── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 600;
  padding: 15px 30px;
  border: 0;
  font-family: var(--sans);
  cursor: pointer;
}
.btn:hover { background: #7da5f2; color: var(--bg); }
.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 14px 24px;
  font-weight: 400;
}
.btn--ghost:hover { background: transparent; color: var(--text); border-color: var(--muted); }

/* ── Шапка ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2 + 96px));
  background: rgba(15, 19, 25, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-word { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.brand-mark .tick { stroke-dasharray: 6; stroke-dashoffset: 6; }
.brand-mark.is-drawn .tick { animation: tick-draw 0.24s ease-out 0.4s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.topnav { display: flex; gap: 20px; margin-left: auto; }
.topnav a { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); }
.topnav a:hover { color: var(--text); }
.top-counter {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.3s;
  white-space: nowrap;
}
.top-counter.is-on { opacity: 1; }
.top-login { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.top-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
}
.top-cta:hover { background: var(--accent); color: var(--bg); }

/* ── Hero и сцена ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 1000px;
  max-height: 1080px;
  overflow: hidden;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 62% 40%, transparent 55%, rgba(6, 8, 11, 0.55) 100%);
  pointer-events: none;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.porog { position: absolute; left: var(--porog-x, 76%); top: 12%; bottom: 24%; width: 2px; pointer-events: none; }
.porog-halo {
  position: absolute;
  top: -6%;
  bottom: -6%;
  left: -90px;
  width: 180px;
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.10), transparent 70%);
}
.porog-core {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  box-shadow: 0 0 12px 1px rgba(91, 141, 239, 0.35), 0 0 40px 4px rgba(91, 141, 239, 0.12);
  animation: porog-pulse 4s ease-in-out infinite alternate;
}
@keyframes porog-pulse { from { opacity: 0.72; } to { opacity: 1; } }
.porog-tag {
  position: absolute;
  top: -22px;
  right: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(91, 141, 239, 0.55);
  white-space: nowrap;
}
.hero-copy {
  position: absolute;
  left: 212px;
  top: 14%;
  width: min(1160px, calc(100% - 260px));
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 26px;
  pointer-events: none;
}
.hero-copy .eyebrow, .hero-copy .hero-lead, .hero-cta { padding-left: 96px; }
.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 78px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.06;
}
.hero h1 .dim { color: var(--muted); }
.sem { position: relative; }
.sem::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  background: var(--ok);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
}
.sem.is-commit::after { animation: sem-underline 2s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes sem-underline {
  0% { transform: scaleX(0); opacity: 1; }
  30% { transform: scaleX(1); opacity: 1; }
  70% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.hero-lead { font-size: 19px; line-height: 1.58; color: var(--muted); max-width: 620px; }
.hero-cta { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; pointer-events: auto; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.stol {
  position: absolute;
  left: var(--rail-x);
  bottom: 92px;
  width: 470px;
  z-index: 3;
  border-top: 1px solid var(--border);
  padding-top: 6px;
}
.stol-cap { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.stol-rows { display: flex; flex-direction: column; gap: 4px; }
.stol-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  background: var(--surface);
  border-left: 2px solid var(--ok);
  padding: 0 10px;
  font-size: 12px;
  color: var(--text);
  opacity: 0;
  white-space: nowrap;
  overflow: hidden;
}
.stol-row .n { font-family: var(--mono); font-size: 10px; color: var(--muted); flex: none; }
.stol-row .t { overflow: hidden; text-overflow: ellipsis; }
.stol-row .s { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--ok); flex: none; }
.stol-row.is-landed { animation: stack-land 0.24s cubic-bezier(0.22, 0.8, 0.24, 1) forwards; }
@keyframes stack-land {
  0% { opacity: 0; transform: translateY(-6px); }
  70% { opacity: 1; transform: translateY(1px); }
  100% { opacity: 1; transform: translateY(0); }
}
.ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 96px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  z-index: 5;
  background: rgba(15, 19, 25, 0.8);
}
.ticker b { color: var(--text); font-weight: 400; }
.ticker .ok { color: var(--ok); }
.ticker-note { margin-left: auto; font-size: 10px; opacity: 0.7; }
.motion-toggle {
  position: absolute;
  right: 96px;
  top: 84px;
  z-index: 6;
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 0;
}
.motion-toggle:hover { color: var(--text); }

/* ── Появление секций (только при работающем JS: html.js ставит скрипт) ── */
html.js .io { opacity: 0; transform: translateY(8px); transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1); }
html.js .io-in .io { opacity: 1; transform: none; }
.io-in .io:nth-child(2) { transition-delay: 0.05s; }
.io-in .io:nth-child(3) { transition-delay: 0.1s; }
.io-in .io:nth-child(4) { transition-delay: 0.15s; }

/* ── Чипы-строка форматов ── */
.chips { display: flex; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; color: var(--muted); border-top: 1px solid var(--border); max-width: 900px; }
.chips span { padding: 14px 22px; border-bottom: 1px solid var(--border); }
.chips span:first-child { padding-left: 0; }
.chips .lit { color: var(--text); }

/* ── Индекс-таблицы ── */
.idx { border-top: 1px solid var(--border); max-width: 1010px; }
.idx-row {
  display: grid;
  grid-template-columns: 70px 240px minmax(0, 1fr);
  gap: 0 24px;
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.idx-row.has-w { grid-template-columns: 70px 300px minmax(0, 1fr) 80px; }
.idx-row .i { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.idx-row .t { font-size: 19px; font-weight: 500; color: var(--text); }
.idx-row .d { font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.idx-row .w { font-family: var(--mono); font-size: 13px; text-align: right; }
.w--stop { color: var(--stop); }
.w--risk { color: var(--warn); }
.idx-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 24px; }

/* ── Окно продукта («Разбор») ── */
.appwin-wrap { position: relative; margin-top: 64px; }
.appwin-glow {
  position: absolute;
  left: -120px;
  top: 120px;
  width: 640px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(91, 141, 239, 0.07), transparent 70%);
  pointer-events: none;
}
.appwin-scroll { overflow-x: auto; }
.appwin {
  width: 1010px;
  min-width: 860px;
  background: #f6f7f9;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  font-size: 13px;
  color: #14181f;
  position: relative;
}
.appwin-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid #e2e6ec; background: #ffffff; }
.appwin-bar .w-brand { font-size: 12px; font-weight: 600; color: #14181f; }
.appwin-bar .w-title { font-size: 12px; color: #5b6472; margin-left: 12px; }
.appwin-bar .w-meta { margin-left: auto; font-family: var(--mono); font-size: 10px; color: #5b6472; }
.appwin-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); }
.appwin-docs { border-right: 1px solid #e2e6ec; padding: 14px 16px; background: #ffffff; }
.appwin-docs .cap { font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #5b6472; margin-bottom: 8px; }
.appwin-doc { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: #14181f; padding: 5px 8px; }
.appwin-doc.sel { background: #f0f2f5; }
.appwin-doc.sub { padding-left: 20px; }
.appwin-doc .st { color: #1f8a5f; flex: none; }
.appwin-main { padding: 16px 20px; background: #ffffff; display: flex; flex-direction: column; gap: 12px; }
.appwin-score { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.appwin-score .big { font-family: var(--mono); font-size: 22px; font-weight: 500; color: #a9741a; }
.appwin-score .formula { font-family: var(--mono); font-size: 12px; color: #5b6472; }
.appwin-meter { width: 200px; height: 6px; background: #f0f2f5; position: relative; }
.appwin-meter i { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; background: #a9741a; }
.appwin-verdict { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #a9741a; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot--w { background: #a9741a; }
.appwin-override { margin-left: auto; font-size: 12px; color: #2c6bd4; border: 1px solid #e2e6ec; padding: 5px 12px; white-space: nowrap; }
.appwin-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.appwin-flag { font-size: 11.5px; font-weight: 600; color: #a9741a; border: 1px solid #a9741a; border-radius: 999px; padding: 2px 10px; }
.appwin-quote { border-left: 3px solid #a9741a; padding: 4px 0 4px 12px; font-family: var(--serif); font-style: italic; font-size: 13.5px; line-height: 1.5; color: #14181f; }
.appwin-quote .src { display: block; font-family: var(--mono); font-style: normal; font-size: 10.5px; color: #2c6bd4; margin-top: 5px; }
.hotspots { display: flex; gap: 36px; margin-top: 28px; max-width: 1010px; flex-wrap: wrap; }
.hotspot { flex: 1; min-width: 200px; border-top: 1px solid var(--border); padding-top: 14px; }
.hotspot .k { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 6px; }
.hotspot .d { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ── Пауза-цитата и «бумага» ── */
.pause-quote { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2vw, 28px); line-height: 1.55; color: var(--text); max-width: 860px; }
.pause-src { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 18px; }
.proof { display: flex; gap: 72px; align-items: flex-start; flex-wrap: wrap; }
.proof-copy { width: 480px; display: flex; flex-direction: column; gap: 22px; }
.proof-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.paper-wrap { width: 440px; position: relative; margin-top: 10px; }
.paper-glow {
  position: absolute;
  right: -120px;
  top: -40px;
  width: 520px;
  height: 380px;
  background: radial-gradient(closest-side, rgba(63, 185, 132, 0.05), transparent 70%);
  pointer-events: none;
}
.paper {
  background: var(--text);
  color: #14181f;
  padding: 30px 32px 34px;
  transform: rotate(-0.6deg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}
.paper .cap { font-family: var(--mono); font-size: 9.5px; color: #5b6472; margin-bottom: 14px; }
.paper .body { font-size: 12.5px; line-height: 1.75; color: #3a3f47; }
.paper mark { background: rgba(224, 163, 46, 0.35); box-shadow: 0 1px 0 #a9741a; color: inherit; }
.paper-src { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 16px; }

/* ── Калькулятор ── */
.calc { display: flex; gap: 80px; align-items: flex-start; flex-wrap: wrap; }
.calc-left { width: 420px; display: flex; flex-direction: column; gap: 24px; }
.calc-inputs { border-top: 1px solid var(--border); margin-top: 8px; }
.calc-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 14px; }
.calc-in label { color: var(--muted); }
.calc-in input {
  width: 96px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 14px;
  text-align: right;
  padding: 8px 10px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.calc-in input::-webkit-outer-spin-button, .calc-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-in input:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
.calc-note { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.calc-right { flex: 1; min-width: 380px; display: flex; flex-direction: column; padding-top: 90px; }
.calc-out { display: flex; align-items: baseline; gap: 28px; padding: 28px 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.calc-out:last-of-type { border-bottom: 1px solid var(--border); }
.calc-out .big { font-family: var(--mono); font-size: clamp(38px, 4vw, 56px); color: var(--text); letter-spacing: -0.01em; line-height: 1.05; white-space: nowrap; }
.calc-out .cap { font-size: 15px; color: var(--muted); max-width: 300px; }
.calc-cta { margin-top: 40px; }

/* ── Сравнение ── */
.cmp-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  max-width: 1010px;
}
.cmp-head .after { padding-left: 28px; color: var(--accent); border-top: 2px solid var(--accent); padding-top: 8px; margin-top: -10px; }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); max-width: 1010px; }
.cmp > span { padding: 20px 28px 20px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.55; }
.cmp > span:nth-child(odd) { color: var(--muted); border-right: 1px solid var(--border); }
.cmp > span:nth-child(even) { color: var(--text); padding-left: 28px; }

/* ── Правила + диалог ── */
.rules { display: flex; gap: 80px; align-items: flex-start; flex-wrap: wrap; }
.rules-left { width: 460px; display: flex; flex-direction: column; gap: 24px; }
.rules-list { border-top: 1px solid var(--border); margin-top: 8px; }
.rules-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 0 20px; padding: 20px 0; border-bottom: 1px solid var(--border); align-items: baseline; }
.rules-row .i { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rules-row .t { font-size: 17px; font-weight: 500; color: var(--text); }
.rules-row .d { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.dialog-wrap { width: 440px; padding-top: 110px; }
.dialog {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.dialog .t { font-size: 18px; font-weight: 600; color: var(--text); }
.dialog .d { font-size: 14px; line-height: 1.6; color: var(--muted); }
.dialog .row { display: flex; gap: 12px; justify-content: flex-end; margin-top: 6px; }
.dialog .b-ghost { border: 1px solid var(--border); padding: 9px 18px; font-size: 14px; color: var(--muted); }
.dialog .b-main { background: var(--accent); color: var(--bg); padding: 9px 18px; font-size: 14px; font-weight: 600; }
.dialog-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-top: 14px; }

/* ── Чат ── */
.chat { display: flex; gap: 80px; align-items: flex-start; flex-wrap: wrap; }
.chat-left { width: 400px; display: flex; flex-direction: column; gap: 22px; }
.chat-thread { flex: 1; min-width: 380px; display: flex; flex-direction: column; gap: 16px; padding-top: 10px; }
.chat-q { align-self: flex-end; max-width: 380px; background: var(--surface2); padding: 13px 20px; font-size: 14.5px; color: var(--text); }
.chat-a { align-self: flex-start; max-width: 540px; border-left: 2px solid var(--accent); background: var(--surface); padding: 16px 22px; font-size: 14.5px; line-height: 1.6; color: var(--text); }
.chat-a q { display: block; font-family: var(--serif); font-style: italic; color: var(--muted); margin-top: 8px; quotes: '«' '»'; }
.chat-a .src { display: block; font-family: var(--mono); font-size: 11px; color: var(--accent); margin-top: 8px; }

/* ── Замерено / не заявляем ── */
.bounds { display: grid; grid-template-columns: 1fr 1fr; gap: 0 72px; max-width: 1010px; }
.bounds .col-cap { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.bounds .col-cap.ok { color: var(--ok); }
.bounds .col-cap.no { color: var(--muted); }
.bounds .m { font-family: var(--mono); font-size: 13.5px; line-height: 1.6; color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--border); }
.bounds .p { font-size: 14.5px; line-height: 1.6; color: var(--muted); padding: 14px 0; border-bottom: 1px solid var(--border); }
.bounds .m:last-child, .bounds .p:last-child { border-bottom: 0; }

/* ── Доступ ── */
.access { max-width: 860px; }
.acc-head { display: grid; grid-template-columns: 260px 1fr 1fr; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.acc-head .demo { color: var(--accent); border-top: 2px solid var(--accent); padding-top: 8px; margin-top: -10px; }
.acc-row { display: grid; grid-template-columns: 260px 1fr 1fr; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.acc-row .l { color: var(--muted); }
.acc-row .v { font-family: var(--mono); color: var(--text); }
.acc-row .r { color: var(--muted); }
.acc-cta { display: flex; gap: 20px; align-items: center; margin-top: 40px; flex-wrap: wrap; }
.acc-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── Финал ── */
.porog-h {
  position: relative;
  height: 2px;
  margin: 150px 96px 0;
  background: linear-gradient(90deg, transparent, var(--accent) 12%, var(--accent) 88%, transparent);
  box-shadow: 0 0 12px 1px rgba(91, 141, 239, 0.35), 0 0 40px 4px rgba(91, 141, 239, 0.12);
}
.porog-h-tag { position: absolute; right: 14px; top: 10px; font-family: var(--mono); font-size: 10px; color: rgba(91, 141, 239, 0.55); }
.final { position: relative; min-height: 600px; display: flex; flex-direction: column; justify-content: center; padding: 110px 96px 100px 0; }
.final-glow { position: absolute; left: 38%; top: 60px; width: 640px; height: 420px; background: radial-gradient(closest-side, rgba(91, 141, 239, 0.07), transparent 70%); pointer-events: none; }
.final-echo { position: absolute; right: 96px; top: 90px; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 12px; color: rgba(151, 161, 176, 0.35); text-align: right; }
.final .inner { margin-left: var(--content-x); position: relative; display: flex; flex-direction: column; gap: 30px; }
.final h2 { font-size: clamp(34px, 4.4vw, 62px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--text); margin: 0; max-width: 980px; }
.final .sub { font-size: 19px; color: var(--muted); max-width: 640px; }

/* ── Футер ── */
.footer { border-top: 1px solid var(--border); padding: 56px 96px 48px; display: flex; flex-direction: column; gap: 36px; }
.footer-top { display: flex; align-items: flex-start; gap: 60px; flex-wrap: wrap; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--mono); font-size: 12px; padding-top: 4px; }
.footer-nav a { color: var(--muted); }
.footer-nav a:hover { color: var(--text); }
.footer-addr { margin-left: auto; display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; padding-top: 4px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; display: flex; justify-content: space-between; gap: 24px; align-items: baseline; flex-wrap: wrap; }
.footer-rule { font-size: 13px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.footer-c { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ── Планшет и мобильный ── */
@media (max-width: 1160px) {
  :root { --content-x: 24px; }
  .rail, .secnum, .vlabel, .wm { display: none; }
  .section { padding: 96px 24px 0 0; }
  .section > .inner, .pause > .inner, .final .inner { margin-left: 24px; }
  .pause { padding: 48px 24px 48px 0; min-height: 0; }
  .hero-copy { left: 24px; width: calc(100% - 48px); }
  .hero-copy .eyebrow, .hero-copy .hero-lead, .hero-cta { padding-left: 0; }
  .stol { left: 24px; width: min(470px, calc(100% - 48px)); }
  .ticker { padding: 0 24px; gap: 20px; }
  .porog-h { margin: 96px 24px 0; }
  .final { padding: 90px 24px 80px 0; }
  .final-echo { display: none; }
  .footer { padding: 48px 24px 40px; }
  .topnav { display: none; }
  .motion-toggle { right: 24px; }
  .calc-right { padding-top: 0; }
  .dialog-wrap { padding-top: 0; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; height: auto; padding-bottom: 0; }
  .hero-copy { position: static; padding: 92px 18px 0; width: 100%; }
  .hero h1 { font-size: clamp(30px, 8.8vw, 40px); }
  #scene { position: relative; display: block; height: 300px; margin-top: 24px; }
  .porog { display: none; }
  .stol { position: static; width: auto; margin: 0 18px; }
  .ticker { position: static; margin-top: 16px; }
  .hero-vignette { display: none; }
  .motion-toggle { top: 70px; }
  .section { padding: 72px 18px 0 0; }
  .section > .inner, .pause > .inner, .final .inner { margin-left: 18px; }
  .idx-row, .idx-row.has-w { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; }
  .idx-row .d { grid-column: 2; }
  .idx-row.has-w .w { grid-column: 2; text-align: left; }
  .cmp { grid-template-columns: 1fr; }
  .cmp > span:nth-child(odd) { border-right: 0; border-bottom: 0; padding-bottom: 6px; }
  .cmp > span:nth-child(even) { padding-left: 0; padding-top: 0; }
  .cmp-head { grid-template-columns: 1fr; }
  .cmp-head .after { display: none; }
  .acc-head, .acc-row { grid-template-columns: 1fr 1fr; }
  .acc-head .l0, .acc-row .l { grid-column: 1 / -1; padding-bottom: 2px; }
  .proof-copy, .calc-left, .rules-left, .chat-left { width: 100%; }
  .paper-wrap, .dialog-wrap { width: 100%; }
  .btn { width: 100%; text-align: center; }
  .hero-cta .btn { width: 100%; }
  .footer-addr { margin-left: 0; text-align: left; }
  .porog-h { margin: 72px 18px 0; }
}

/* ── Движение выключено ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .io { opacity: 1; transform: none; }
}
body.motion-off .porog-core { animation: none; }
html.js body.motion-off .io { opacity: 1; transform: none; }
