/* BIM Grade — лендинг.
   Дизайн-направление: «чертёж встречает CI/CD + 3D BIM WebGL».
   Тёмная архитектурная база, сигнальный акцент цвета «проверка пройдена», 3D модель и коллажи.
   Author: Alexander Brichkin */

:root {
  --bg: #0a0c10;
  --bg-2: #0e1117;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --ink: #f2f4f7;
  --ink-2: #9aa3b2;
  --ink-3: #6b7484;
  --accent: #c8f751;          /* сигнальный лайм = «pass» */
  --accent-dim: rgba(200, 247, 81, 0.14);
  --cyan: #38bdf8;
  --warn: #ffc857;
  --fail: #ff6b6b;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── фон: чертёжная сетка + зерно ── */
.grid-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 65% at 50% 0%, #000 40%, transparent 100%);
  opacity: .55;
}
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ── навигация ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 16px 28px;
  max-width: var(--wrap); margin: 0 auto;
  backdrop-filter: blur(14px);
  transition: border-color .3s, background .3s;
  border-bottom: 1px solid transparent;
}
.nav.stuck { background: rgba(10, 12, 16, .82); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 30px; height: 30px;
  border: 1px solid var(--line-2); border-radius: 8px; color: var(--accent);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-name { font-weight: 700; letter-spacing: -.02em; font-size: 17px; }
.brand-accent { color: var(--accent); }

.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

/* ── кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--line-2); color: var(--ink);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #0a0c10; border-color: var(--accent); }
.btn-primary:hover { box-shadow: 0 10px 34px rgba(200, 247, 81, .22); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ── появление при скролле ── */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1) var(--d, 0s),
              transform .7s cubic-bezier(.2,.7,.3,1) var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── типографика ── */
h1 {
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: .96; letter-spacing: -.045em; font-weight: 700;
  margin: 18px 0 0;
}
h1 .accent { color: var(--accent); }

h2 {
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1.06; letter-spacing: -.035em; font-weight: 700;
  margin: 12px 0 0;
}
h3 { font-size: 20px; letter-spacing: -.02em; margin: 12px 0 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px;
  margin: 0;
}
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200,247,81,.6); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(200,247,81,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(200,247,81,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,247,81,0); }
}

.kicker {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin: 0;
}

.lede { font-size: clamp(17px, 1.5vw, 21px); color: var(--ink-2); max-width: 640px; margin: 26px 0 0; }
.section-lede { font-size: 18px; color: var(--ink-2); max-width: 640px; margin: 18px 0 0; }
.note { color: var(--ink-3); font-size: 14.5px; margin-top: 22px; max-width: 720px; }

/* ── секции ── */
.hero { padding: 78px 0 96px; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }

.section { padding: 104px 0; border-top: 1px solid var(--line); }
.band { background: linear-gradient(180deg, rgba(255,255,255,.018), transparent); }

/* ── HERO SHOWCASE GRID (Терминал + 3D BIM Viewport) ── */
.hero-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 54px; align-items: stretch;
}

/* ── терминал ── */
.terminal {
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(255,255,255,.022); overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  display: flex; flex-direction: column; height: 100%;
}
.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal-bar em {
  margin-left: 12px; font-style: normal; font-family: var(--mono);
  font-size: 12px; color: var(--ink-3);
}
.terminal-body { padding: 8px 0; font-family: var(--mono); font-size: 13.5px; flex: 1; }
.tline {
  display: flex; align-items: baseline; gap: 12px;
  padding: 9px 18px; border-bottom: 1px solid rgba(255,255,255,.04);
  color: var(--ink-2); flex-wrap: wrap;
}
.tline:last-child { border-bottom: 0; }
.tline b { color: var(--ink); font-weight: 500; }
.tline i {
  font-style: normal; font-size: 11px; letter-spacing: .06em;
  padding: 2px 7px; border-radius: 4px; flex: none;
}
.tline .ok   { background: var(--accent-dim); color: var(--accent); }
.tline .warn { background: rgba(255,200,87,.14); color: var(--warn); }
.tline .fail { background: rgba(255,107,107,.14); color: var(--fail); }
.tline .run  { background: rgba(255,255,255,.06); color: var(--ink-3); }
.tline.muted { color: var(--ink-3); }
.tline.gate {
  background: rgba(200,247,81,.05);
  border-top: 1px solid rgba(200,247,81,.18);
  color: var(--ink-2);
}
.gate-i { background: var(--accent); color: #0a0c10; font-weight: 600; }

/* ── HERO 3D BIM CARD ── */
.hero-bim-card {
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(14, 17, 23, 0.7); overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.5);
  display: flex; flex-direction: column; position: relative;
}
.bim-card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.02);
}
.bim-status-badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.bim-tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase;
  color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 4px; padding: 2px 8px;
}
.hero-canvas-wrapper {
  position: relative; flex: 1; min-height: 280px; width: 100%;
}
#hero-bim-canvas {
  width: 100%; height: 100%; display: block; cursor: grab;
}
#hero-bim-canvas:active { cursor: grabbing; }

.hero-canvas-overlay {
  position: absolute; bottom: 12px; left: 14px; right: 14px;
  display: flex; justify-content: space-between; align-items: center;
  pointer-events: none;
}
.scan-tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--accent);
  background: rgba(10, 12, 16, 0.85); padding: 4px 10px; border-radius: 6px;
  border: 1px solid rgba(200, 247, 81, 0.3); backdrop-filter: blur(8px);
}
.hint-tag {
  font-family: var(--mono); font-size: 10.5px; color: var(--ink-3);
  background: rgba(10, 12, 16, 0.7); padding: 4px 10px; border-radius: 6px;
}

/* ── 3D BIM INSPECTOR SECTION ── */
.bim-inspector-container {
  margin-top: 42px; border: 1px solid var(--line-2); border-radius: 16px;
  background: rgba(14, 17, 23, 0.85); overflow: hidden;
  box-shadow: 0 35px 100px rgba(0,0,0,.6); backdrop-filter: blur(16px);
}
.bim-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.015); flex-wrap: wrap;
}
.bim-layers-toggle { display: flex; gap: 8px; flex-wrap: wrap; }
.bim-btn {
  font-family: var(--mono); font-size: 12.5px; padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--ink-2);
  cursor: pointer; transition: all .2s ease;
}
.bim-btn:hover { color: var(--ink); border-color: var(--ink-2); background: rgba(255,255,255,.06); }
.bim-btn.active {
  background: var(--accent); color: #0a0c10; border-color: var(--accent); font-weight: 600;
}
.bim-actions { display: flex; gap: 8px; }
.btn-action { background: rgba(255,255,255,.05); border-color: var(--line-2); }
.btn-action:hover { border-color: var(--accent); color: var(--accent); }

.bim-viewport-wrapper {
  position: relative; width: 100%; height: 520px; background: #07080c;
}
#bim-canvas-full {
  width: 100%; height: 100%; display: block; cursor: grab;
}
#bim-canvas-full:active { cursor: grabbing; }

/* Dynamic HUD Tooltip Panel */
.bim-hud {
  position: absolute; top: 20px; right: 20px; width: 300px;
  background: rgba(10, 12, 16, 0.92); border: 1px solid rgba(200, 247, 81, 0.4);
  border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,.8); backdrop-filter: blur(12px);
  pointer-events: none; transition: opacity .2s ease; z-index: 10;
}
.hud-header {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 10px;
}
.hud-title { font-weight: 600; color: var(--ink); font-size: 13px; }
.hud-badge {
  font-size: 10px; padding: 2px 7px; border-radius: 4px; font-weight: 600;
  background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent);
}
.hud-body { display: flex; flex-direction: column; gap: 6px; }
.hud-row { display: flex; justify-content: space-between; color: var(--ink-2); }
.hud-row b { color: var(--ink); font-weight: 500; }

/* Scan Status Bar */
.bim-scan-bar {
  position: absolute; bottom: 0; inset-x: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 20px; background: rgba(10, 12, 16, 0.88);
  border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px;
  color: var(--ink-2); backdrop-filter: blur(10px); flex-wrap: wrap; gap: 10px;
}
.scan-indicator { display: flex; align-items: center; gap: 8px; color: var(--accent); }
.scan-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 10px var(--accent); animation: pulse 1.5s infinite;
}
.scan-metrics { display: flex; gap: 18px; color: var(--ink-3); }
.scan-metrics b { color: var(--ink); }

/* ── VISUAL COLLAGES GRID ── */
.collage-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 52px;
}
.collage-card {
  border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,.015); transition: border-color .3s, transform .3s ease, box-shadow .3s;
}
.collage-card:hover {
  border-color: rgba(200, 247, 81, 0.4);
  box-shadow: 0 25px 60px rgba(0,0,0,.5);
}
.collage-image-wrap {
  position: relative; width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: #0d1017;
}
.collage-image-wrap img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s ease;
}
.collage-card:hover .collage-image-wrap img {
  transform: scale(1.03);
}

/* Hotspot Pins on Collage */
.hotspot {
  position: absolute; display: flex; align-items: center; gap: 6px;
  cursor: pointer; transform: translate(-50%, -50%); z-index: 2;
}
.hotspot-pulse {
  width: 12px; height: 12px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent); position: relative;
}
.hotspot-pulse::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid var(--accent); animation: pulse-ring 2s infinite;
}
.hotspot-pulse.warn { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.hotspot-pulse.warn::after { border-color: var(--warn); }
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
.hotspot-label {
  font-family: var(--mono); font-size: 10.5px; padding: 3px 8px; border-radius: 6px;
  background: rgba(10, 12, 16, 0.88); border: 1px solid var(--line-2); color: var(--ink);
  white-space: nowrap; backdrop-filter: blur(8px);
}
.hotspot:hover .hotspot-label {
  border-color: var(--accent); color: var(--accent);
}

/* Tooltip on Hover Hotspot */
.hotspot[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%) translateY(-8px);
  padding: 6px 12px; border-radius: 6px; background: rgba(10,12,16,0.95);
  border: 1px solid var(--accent); color: var(--ink); font-family: var(--mono);
  font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 10;
}
.hotspot:hover[data-tooltip]::before {
  opacity: 1; transform: translateX(-50%) translateY(-4px);
}

/* Layer Badges on Collage */
.layer-badges {
  position: absolute; bottom: 12px; left: 12px; right: 12px;
  display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none;
}
.l-badge {
  font-family: var(--mono); font-size: 10.5px; padding: 4px 10px; border-radius: 6px;
  background: rgba(10, 12, 16, 0.82); border: 1px solid var(--line-2); color: var(--ink-2);
  backdrop-filter: blur(8px);
}
.l-badge.arch { border-color: rgba(56, 189, 248, 0.4); color: var(--cyan); }
.l-badge.struct { border-color: rgba(200, 247, 81, 0.4); color: var(--accent); }
.l-badge.mep { border-color: rgba(255, 200, 87, 0.4); color: var(--warn); }

.collage-caption { padding: 24px 22px; }
.collage-caption h3 { margin: 0 0 8px; font-size: 19px; }
.collage-caption p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

/* ── 3D CARD TILT PHYSICS ── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .15s ease-out, border-color .25s ease, box-shadow .25s ease;
}

/* ── статистика ── */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
}
.stat { background: var(--bg); padding: 30px 26px; }
.stat b {
  display: block; font-size: clamp(38px, 4.6vw, 56px); line-height: 1;
  letter-spacing: -.04em; color: var(--accent); font-weight: 700;
}
.stat b em { font-style: normal; font-size: 18px; color: var(--ink-2); margin-left: 8px; letter-spacing: 0; }
.stat span { display: block; margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }
.stat i { display: block; font-style: normal; margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* ── карточки ── */
.cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px; margin-top: 52px;
}
.card {
  border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px;
  background: rgba(255,255,255,.018);
  transition: border-color .25s, transform .25s cubic-bezier(.2,.7,.3,1), background .25s;
}
.card:hover { border-color: rgba(200,247,81,.35); transform: translateY(-4px); background: rgba(200,247,81,.03); }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card b { color: var(--ink); font-weight: 600; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .07em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  padding: 4px 10px; border-radius: 999px;
}

/* ── пайплайн ── */
.flow { display: flex; align-items: center; gap: 10px; margin-top: 54px; flex-wrap: wrap; }
.flow-step {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 20px;
  font-size: 14px; color: var(--ink-2); background: rgba(255,255,255,.02);
}
.flow-step span { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.flow-step.is-end { border-color: var(--accent); color: var(--ink); }
.flow-arrow { width: 22px; height: 1px; background: var(--line-2); flex: none; }

/* ── proof ── */
.proof-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; margin-top: 52px; align-items: center; }
.proof-hero {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  border: 1px solid var(--line-2); border-radius: 16px; padding: 34px 30px;
  background: rgba(255,255,255,.02);
}
.proof-before span, .proof-after span {
  display: block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3);
}
.proof-before b, .proof-after b {
  display: block; margin-top: 8px; font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -.035em; line-height: 1;
}
.proof-before b { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.proof-after b { color: var(--accent); }
.proof-to { color: var(--ink-3); font-size: 26px; }
.proof-list { list-style: none; padding: 0; margin: 0; }
.proof-list li {
  padding: 15px 0 15px 26px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); font-size: 15.5px; position: relative;
}
.proof-list li::before {
  content: ''; position: absolute; left: 0; top: 23px;
  width: 9px; height: 9px; border-radius: 2px; background: var(--accent);
}
.proof-list li:last-child { border-bottom: 0; }
.proof-list b { color: var(--ink); }

/* ── рынок ── */
.market { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; margin-top: 52px; }
.m { border-left: 2px solid var(--accent); padding: 6px 0 6px 20px; }
.m b { display: block; font-size: clamp(28px, 3.2vw, 40px); letter-spacing: -.035em; line-height: 1; }
.m span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 14.5px; }

/* ── таблица сравнения ── */
.table-wrap { margin-top: 46px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp th, .cmp td { padding: 17px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.cmp thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
  background: rgba(255,255,255,.02);
}
.cmp tbody th { font-weight: 600; font-size: 15px; color: var(--ink-2); }
.cmp tbody th em {
  display: block; font-style: normal; font-size: 12.5px;
  color: var(--ink-3); font-weight: 400; margin-top: 4px;
}
.cmp td { text-align: center; color: var(--ink-3); font-size: 17px; }
.cmp td.y { color: var(--accent); }
.cmp tr.us { background: rgba(200,247,81,.05); }
.cmp tr.us th { color: var(--ink); }
.cmp tr.us th em { color: var(--accent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }

/* ── CTA ── */
.cta { text-align: center; }
.cta .section-lede { margin-left: auto; margin-right: auto; }
.cta .hero-cta { justify-content: center; }

/* ── подвал ── */
.footer { border-top: 1px solid var(--line); padding: 66px 0 40px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 42px; }
.footer h4 { font-size: 12.5px; font-family: var(--mono); letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; font-weight: 500; }
.footer h4.mt { margin-top: 26px; }
.footer p { color: var(--ink-2); font-size: 14px; margin: 0 0 14px; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-note { max-width: 340px; margin-top: 14px; }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.footer-legal { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.footer-legal p { color: var(--ink-3); font-size: 12.5px; }
.footer-domain { margin-top: 16px; font-family: var(--mono); font-size: 14px; }
.footer-domain a { color: var(--accent); letter-spacing: .01em; }

/* ── адаптив ── */
@media (max-width: 1024px) {
  .hero-showcase { grid-template-columns: 1fr; }
  .collage-grid { grid-template-columns: 1fr; }
  .bim-viewport-wrapper { height: 420px; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .proof-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 76px 0; }
  .flow-arrow { display: none; }
}

/* Дисклеймер под терминалом: без него иллюстрация читается как живой прогон
   по шведским нормам, которых пока нет — прямой оверклейм. */
.terminal-note {
  margin: 12px 2px 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}

/* ══════════════════════════════════════════════════════════════
   LIVE REVIEW ROOM
   Порт хореографии с русского контура на палитру BIM Grade.
   Лист документа оставлен светлым намеренно: это бумага внутри
   тёмного интерфейса, и контраст «лист в комнате» — часть смысла.
   ══════════════════════════════════════════════════════════════ */
.live-demo {
  margin: 40px auto 0;
  max-width: 1060px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.live-demo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.live-demo-title { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.live-demo-status { color: var(--accent); font-size: 0.85rem; font-weight: 700; }

.live-demo-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 270px;
  min-height: 360px;
}
.live-demo-panel {
  padding: 18px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.live-demo-panel.right { border-right: 0; border-left: 1px solid var(--line); }

.agent-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-2);
  letter-spacing: 0.03em;
  transition: color 0.25s;
}
.agent-chip strong { color: var(--ink); font-weight: 700; }
.agent-chip.active strong { color: var(--accent); }
.agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
/* Неактивная роль всё ещё «в работе», но не тянет на себя внимание. */
.agent-chip:not(.active) .agent-dot { background: var(--ink-3); box-shadow: none; }

.doc-canvas { background: #11151d; padding: 24px; min-width: 0; }
.doc-page {
  background: #f7f8fa;
  color: #0f172a;
  border-radius: 10px;
  padding: 24px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.doc-page h4 { margin: 0 0 14px; font-size: 1rem; color: #0f172a; }
.doc-line { height: 10px; background: #e2e6ec; border-radius: 999px; margin: 10px 0; }
.doc-line.wide { width: 92%; }
.doc-line.mid { width: 72%; }
.doc-line.short { width: 48%; }

.doc-highlight {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(200, 247, 81, 0.30);
  border: 1px solid #9bc72f;
  box-shadow: 0 0 0 4px rgba(200, 247, 81, 0.16);
  font-size: 0.92rem;
  line-height: 1.5;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
}
.doc-highlight.focused {
  transform: translateY(-2px);
  background: rgba(200, 247, 81, 0.48);
  border-color: #7ea617;
}

.finding-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}
.finding-card .sev {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.finding-card h4 { color: var(--ink); margin: 6px 0; font-size: 0.98rem; }
.finding-card p { color: var(--ink-2); margin: 0; font-size: 0.86rem; line-height: 1.5; }

.report-mini {
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 247, 81, 0.35);
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

/* На узком экране колонки складываются, чтобы лист не сжимался в полоску. */
@media (max-width: 900px) {
  .live-demo-body { grid-template-columns: 1fr; }
  .live-demo-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .live-demo-panel.right { border-left: 0; border-top: 1px solid var(--line); }
  .live-demo-panel:first-child { display: flex; flex-wrap: wrap; gap: 0 16px; }
  .live-demo-panel:first-child .agent-chip { border-bottom: 0; }
}

/* Уважаем системную настройку: без движения ротация замирает на первом шаге. */
@media (prefers-reduced-motion: reduce) {
  .doc-highlight { transition: none; }
}
