/* =========================================================
   TESTING — строительная лаборатория · макет лендинга
   ========================================================= */

:root {
  --bg: #0b0c0e;
  --bg-2: #111317;
  --panel: #14171b;
  --line: rgba(236, 235, 230, .09);
  --line-2: rgba(236, 235, 230, .18);
  --text: #ecebe6;
  --muted: #8d8f93;
  --dim: #5b5e64;
  --accent: #f39200;
  --accent-deep: #d47f00;
  --ok: #5fe0a0;

  --paper: #e8e5dd;
  --ink: #121314;
  --ink-muted: #5f5e59;
  --ink-line: rgba(18, 19, 20, .14);

  --f-display: 'Unbounded', system-ui, sans-serif;
  --f-body: 'Manrope', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  --pad: clamp(16px, 4vw, 60px);
  --ease: cubic-bezier(.19, 1, .22, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.is-loading, html.is-loading body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--accent); color: #000; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1s steps(5) infinite;
}
@keyframes grain {
  0% { background-position: 0 0; } 20% { background-position: -40px 30px; } 40% { background-position: 50px -20px; }
  60% { background-position: -20px -50px; } 80% { background-position: 30px 40px; } 100% { background-position: 0 0; }
}

/* ---------- word split ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  background: var(--accent); color: #140700;
  font-weight: 700; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: color .35s, box-shadow .35s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: #fff; transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn:hover { box-shadow: 0 10px 40px -10px rgba(243, 146, 0, .55); }
.btn .arr { transition: transform .35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost::before { background: var(--text); }
.btn-ghost:hover { color: var(--ink); box-shadow: none; }
.btn-ghost-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink-line); }
.btn-ghost-dark::before { background: var(--ink); }
.btn-ghost-dark:hover { color: #fff; box-shadow: none; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }

/* ---------- preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between; padding: var(--pad);
}
.pl-top, .pl-meta {
  display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase;
}
.pl-center { display: flex; justify-content: flex-start; }
.pl-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(80px, 17vw, 260px); line-height: .85; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.pl-num small { font-size: .3em; color: var(--accent); margin-left: .1em; vertical-align: top; }
.pl-bar { height: 2px; background: var(--line); margin-bottom: 16px; overflow: hidden; }
.pl-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; mix-blend-mode: difference; }
html.has-cursor .cursor { display: block; }
html.has-cursor, html.has-cursor a, html.has-cursor button { cursor: none; }
html.has-cursor input, html.has-cursor textarea { cursor: text; }
.cursor-ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1px solid #fff; border-radius: 50%;
  transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease), background .35s;
}
.cursor-ring::before, .cursor-ring::after { content: ""; position: absolute; background: #fff; }
.cursor-ring::before { left: 50%; top: -7px; width: 1px; height: calc(100% + 14px); transform: translateX(-.5px); opacity: .5; }
.cursor-ring::after { top: 50%; left: -7px; height: 1px; width: calc(100% + 14px); transform: translateY(-.5px); opacity: .5; }
.cursor-dot { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: #fff; }
.cursor-xy { position: absolute; left: 26px; top: 16px; font-family: var(--f-mono); font-size: 10px; color: #fff; white-space: nowrap; opacity: .75; }
.cursor.hover .cursor-ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; background: #fff; }
.cursor.hover .cursor-ring::before, .cursor.hover .cursor-ring::after { opacity: 0; }
.cursor.hover .cursor-xy { opacity: 0; }
.cursor.text { opacity: 0; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px var(--pad);
  transition: transform .6s var(--ease), background .4s, padding .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11, 12, 14, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding-top: 12px; padding-bottom: 12px; border-color: var(--line); }
.nav.hidden { transform: translateY(-110%); }
.logo { display: flex; align-items: center; gap: 11px; font-family: var(--f-display); font-weight: 600; font-size: 15px; letter-spacing: .16em; }
.logo-mark { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 34px; font-size: 14.5px; color: rgba(236, 235, 230, .72); }
.nav-links a { position: relative; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-family: var(--f-mono); font-size: 13px; color: rgba(236, 235, 230, .85); }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease);
}
.mnav.open { clip-path: inset(0 0 0 0); }
.mnav nav { display: flex; flex-direction: column; }
.mnav nav a { display: flex; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 500; font-size: clamp(26px, 8vw, 40px); letter-spacing: -.02em; }
.mnav nav a small { font-family: var(--f-mono); font-size: 12px; color: var(--accent); letter-spacing: .05em; }
.mnav-foot { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 14px; color: var(--muted); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; height: 640vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 65% at 64% 52%, #1d2126 0%, rgba(11, 12, 14, 0) 70%),
    radial-gradient(30% 30% at 64% 60%, rgba(243, 146, 0, .06) 0%, rgba(243, 146, 0, 0) 70%),
    var(--bg);
}
.hero-bg::before {
  content: ""; position: absolute; inset: 0; opacity: .6;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 84px 84px; background-position: center center;
  -webkit-mask-image: radial-gradient(70% 70% at 60% 50%, #000 15%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 60% 50%, #000 15%, transparent 80%);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback-cube { display: none; }

.co-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 2; }
.co-line { stroke: rgba(236, 235, 230, .45); stroke-width: 1; }
.co-dot { fill: var(--accent); }
.co-ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.callouts { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.callout { position: absolute; left: 0; top: 0; width: min(32vw, 360px); opacity: 0; will-change: transform, opacity; }
.co-num { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }
.co-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(15px, 1.35vw, 20px); letter-spacing: -.01em; margin: 5px 0 4px; }
.co-tests { font-size: 13.5px; line-height: 1.4; color: rgba(236, 235, 230, .62); }
.co-gost { display: inline-block; margin-top: 8px; padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px; font-family: var(--f-mono); font-size: 10.5px; color: rgba(236, 235, 230, .78); background: rgba(11, 12, 14, .5); }

.stage { position: absolute; z-index: 4; will-change: opacity, transform; }
.s1 { left: var(--pad); top: 0; bottom: 0; width: min(48vw, 720px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: rgba(236, 235, 230, .7);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(243, 146, 0, .6); } 70% { box-shadow: 0 0 0 9px rgba(243, 146, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(243, 146, 0, 0); } }
.h-display { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.3vw, 74px); line-height: 1.03; letter-spacing: -.03em; margin: 28px 0 24px; }
.h-display em { font-style: normal; color: var(--accent); }
.lead { font-size: clamp(15px, 1.15vw, 18px); color: rgba(236, 235, 230, .7); max-width: 500px; margin: 0 0 34px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.spec-card {
  position: absolute; z-index: 4; right: calc(var(--pad) + 70px); bottom: 42px;
  padding-left: 16px; border-left: 1px solid var(--accent);
  font-family: var(--f-mono); font-size: 11.5px; color: rgba(236, 235, 230, .6);
}
.sc-head { display: flex; align-items: center; gap: 8px; color: var(--text); letter-spacing: .06em; margin-bottom: 10px; }
.sc-head .rec { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.spec-card dl { display: grid; grid-template-columns: auto auto; gap: 4px 18px; margin: 0; }
.spec-card dt { color: var(--dim); }
.spec-card dd { margin: 0; color: rgba(236, 235, 230, .82); }

.scroll-hint {
  position: absolute; z-index: 4; left: var(--pad); bottom: 40px;
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.sh-line { position: relative; width: 1px; height: 46px; background: var(--line-2); overflow: hidden; }
.sh-line i { position: absolute; left: 0; top: 0; width: 1px; height: 14px; background: var(--accent); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: translateY(-14px); } 100% { transform: translateY(46px); } }

.s2 { left: var(--pad); top: 0; bottom: 0; width: min(23vw, 340px); display: flex; flex-direction: column; justify-content: center; opacity: 0; }
.stage-num { font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.h-stage { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 2.6vw, 44px); line-height: 1.06; letter-spacing: -.025em; margin: 0 0 16px; }
.stage p { margin: 0; font-size: 15px; color: rgba(236, 235, 230, .66); max-width: 380px; }

.s3 { left: var(--pad); top: 0; bottom: 0; width: min(34vw, 450px); display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.heads { display: grid; }
.heads > * { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
.heads .btn { margin-top: 22px; }
.readout {
  opacity: 0; will-change: opacity, transform;
  background: rgba(16, 18, 21, .72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 20px 16px;
}
.ro-top, .ro-foot { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .05em; color: var(--muted); }
.ro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 14px 0 12px; }
.ro-grid label { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.ro-grid b { font-family: var(--f-mono); font-weight: 500; font-size: clamp(26px, 2.5vw, 40px); line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ro-chart { width: 100%; height: 96px; overflow: visible; }
.ro-gridlines path { stroke: var(--line); stroke-width: 1; fill: none; vector-effect: non-scaling-stroke; }
.ro-req { stroke: rgba(95, 224, 160, .55); stroke-width: 1; stroke-dasharray: 4 4; fill: none; vector-effect: non-scaling-stroke; }
.ro-path { stroke: var(--accent); stroke-width: 2; fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.ro-fill { fill: url(#none); fill: rgba(243, 146, 0, .12); stroke: none; }
.ro-dot { fill: var(--accent); }
.ro-foot { margin-top: 10px; }
#roState.live { color: var(--accent); }
#roState.done { color: var(--ok); }

.stamp { position: absolute; left: 0; top: 0; z-index: 5; width: 210px; height: 210px; margin: -105px 0 0 -105px; pointer-events: none; opacity: 0; will-change: transform, opacity; }
.stamp-in {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; text-align: center;
  color: var(--accent); transform: rotate(-12deg);
  border: 3px solid var(--accent); box-shadow: inset 0 0 0 7px rgba(11, 12, 14, .65), inset 0 0 0 9px var(--accent), 0 0 60px rgba(243, 146, 0, .25);
  background: rgba(11, 12, 14, .62); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.stamp-in small { display: block; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; white-space: nowrap; }
.stamp-in b { display: block; font-family: var(--f-display); font-weight: 700; font-size: 58px; line-height: 1; letter-spacing: -.04em; margin: 6px 0 2px; }
.stamp-in span { display: block; font-family: var(--f-display); font-weight: 600; font-size: 12px; letter-spacing: .12em; margin-bottom: 6px; }

.rail { position: absolute; z-index: 6; right: var(--pad); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.rail button { display: flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); transition: color .4s; }
.rail button span { opacity: 0; transform: translateX(6px); transition: opacity .4s, transform .4s var(--ease); }
.rail:hover button span, .rail button.on span { opacity: 1; transform: none; }
.rail i { display: block; width: 16px; height: 1px; background: currentColor; transition: width .5s var(--ease), background .4s; }
.rail button.on { color: var(--text); }
.rail button.on i { width: 34px; background: var(--accent); }
.hero-bar { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); z-index: 6; }
.hero-bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

html.no-webgl .hero { height: auto; }
html.no-webgl .hero-sticky { position: relative; }
html.no-webgl .s2, html.no-webgl .s3, html.no-webgl .stamp, html.no-webgl .callouts, html.no-webgl .co-svg, html.no-webgl .rail, html.no-webgl .hero-bar, html.no-webgl .scroll-hint { display: none; }
html.no-webgl .fallback-cube {
  display: block; position: absolute; right: 14%; top: 50%; width: min(26vw, 320px); aspect-ratio: 1; transform: translateY(-50%) rotate(8deg);
  border-radius: 6px; background: linear-gradient(135deg, #a3a19b, #6f6d68); box-shadow: 30px 40px 80px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .1);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { position: relative; padding: clamp(90px, 12vw, 170px) var(--pad); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: clamp(44px, 6vw, 84px); }
.sec-head > p { margin: 0; max-width: 470px; justify-self: end; color: var(--muted); font-size: 16px; }
.kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.h2 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 4.3vw, 68px); line-height: 1.04; letter-spacing: -.03em; max-width: 15ch; }
.h2 em { font-style: normal; color: var(--accent); }
.light { background: var(--paper); color: var(--ink); margin: 0 clamp(6px, .9vw, 14px); border-radius: clamp(24px, 3vw, 44px); }
.light .kicker, .light .h2 em { color: var(--accent-deep); }
.light .sec-head > p { color: var(--ink-muted); }

/* marquee */
.marquee { overflow: hidden; white-space: nowrap; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(22px, 3vw, 38px) 0; }
.mq-track { display: inline-flex; will-change: transform; }
.mq-track span {
  display: inline-flex; align-items: center; gap: .4em; padding-right: .4em;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(42px, 8vw, 128px); line-height: 1; letter-spacing: -.03em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(236, 235, 230, .32);
}
.mq-track span:nth-child(even) { color: var(--text); -webkit-text-stroke: 0; }
.mq-track span::after { content: ""; width: .22em; height: .22em; background: var(--accent); transform: rotate(45deg); flex: none; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stat { padding: 36px 28px 6px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num { font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 4.6vw, 86px); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num sup { font-size: .32em; color: var(--accent); letter-spacing: 0; vertical-align: top; margin-left: 6px; position: relative; top: .2em; }
.stat p { margin: 18px 0 0; max-width: 250px; font-size: 14.5px; color: var(--muted); }

/* tests */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tab {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--ink-line); font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: background .35s, color .35s, border-color .35s;
}
.tab small { font-family: var(--f-mono); font-size: 11px; opacity: .5; }
.tab:hover { border-color: var(--ink); }
.tab.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tests-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.t-list { border-top: 1px solid var(--ink-line); }
.t-row {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 96px 22px; gap: 18px; align-items: center;
  padding: 20px 8px; border-bottom: 1px solid var(--ink-line); transition: padding .45s var(--ease), color .35s;
}
.t-row::before { content: ""; position: absolute; inset: 0; border-radius: 12px; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease); }
.t-row > * { position: relative; }
.t-row:hover { color: var(--paper); padding-left: 18px; padding-right: 18px; }
.t-row:hover::before { transform: scaleY(1); }
.t-i { font-family: var(--f-mono); font-size: 12px; opacity: .45; }
.t-n { font-weight: 600; font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.35; }
.t-g { font-family: var(--f-mono); font-size: 12px; opacity: .65; white-space: nowrap; }
.t-d { font-family: var(--f-mono); font-size: 12px; text-align: right; white-space: nowrap; }
.t-a { color: var(--accent); opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .45s var(--ease); }
.t-row:hover .t-a { opacity: 1; transform: none; }
.t-vis {
  position: sticky; top: 100px; display: flex; flex-direction: column; overflow: hidden;
  min-height: 520px; padding: 26px; border-radius: 26px; background: var(--ink); color: var(--paper);
}
.tv-top { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 229, 221, .5); }
.tv-top b { color: var(--accent); font-weight: 500; }
.t-art { width: 100%; max-width: 280px; height: auto; margin: 18px auto 22px; color: rgba(232, 229, 221, .82); }
.t-art * { vector-effect: non-scaling-stroke; }
.t-art .ac { stroke: var(--accent); }
.t-art .fa { fill: var(--accent); stroke: none; }
.t-art .thin { stroke-opacity: .35; }
.t-vis h3 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 500; font-size: clamp(19px, 1.6vw, 24px); letter-spacing: -.02em; }
.t-vis p { margin: 0 0 22px; font-size: 14.5px; color: rgba(232, 229, 221, .62); }
.tv-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-top: 18px; border-top: 1px solid rgba(232, 229, 221, .12); margin-top: auto; margin-bottom: 18px; }
.tv-meta span { display: block; font-family: var(--f-mono); font-size: 10.5px; color: rgba(232, 229, 221, .45); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tv-meta b { font-weight: 600; font-size: 14px; }
.t-vis .btn { width: 100%; }

/* process */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-top: 60px; }
.proc-line { position: absolute; left: 0; right: 0; top: 20px; height: 1px; background: var(--line-2); }
.proc-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); }
.step { position: relative; }
.step::before {
  content: ""; position: absolute; left: 0; top: -46px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line-2); transition: background .4s, border-color .4s, box-shadow .4s;
}
.step.on::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 7px rgba(243, 146, 0, .16); }
.step-n { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.step h3 { margin: 12px 0 12px; font-family: var(--f-display); font-weight: 500; font-size: clamp(18px, 1.6vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
.step p { margin: 0; font-size: 15px; color: var(--muted); }
.step-t { display: inline-flex; margin-top: 20px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 11.5px; transition: border-color .4s, color .4s; }
.step.on .step-t { border-color: rgba(243, 146, 0, .6); color: var(--accent); }

/* works */
.works { position: relative; }
.works-pin { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 110px 0 60px; overflow: hidden; }
.works-head { padding: 0 var(--pad); margin-bottom: clamp(30px, 4vw, 56px); }
.w-track { display: flex; gap: 22px; padding: 0 var(--pad); will-change: transform; }
.w-track::after { content: ""; flex: 0 0 1px; }
.w-card {
  flex: 0 0 clamp(300px, 32vw, 500px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 22px; background: var(--panel); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease);
}
.w-card:hover { border-color: rgba(243, 146, 0, .45); }
.w-art { position: relative; aspect-ratio: 4 / 3; background: #0f1114; overflow: hidden; }
.w-art svg { width: 100%; height: 100%; transition: transform 1.1s var(--ease); }
.w-card:hover .w-art svg { transform: scale(1.05); }
.w-idx { position: absolute; left: 18px; top: 16px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.w-tag { position: absolute; right: 14px; top: 13px; padding: 5px 10px; border-radius: 999px; background: rgba(11, 12, 14, .7); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 10.5px; color: rgba(236, 235, 230, .8); }
.w-info { padding: 22px 22px 24px; }
.w-info h3 { margin: 0 0 6px; font-family: var(--f-display); font-weight: 500; font-size: clamp(17px, 1.35vw, 21px); letter-spacing: -.02em; }
.w-meta { font-size: 13.5px; color: var(--muted); }
.w-m { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.w-m b { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; }
.w-m span { display: block; font-size: 12px; color: var(--muted); }
.w-cta { background: var(--accent); color: #140700; border-color: var(--accent); justify-content: space-between; padding: 28px; }
.w-cta h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 40px); line-height: 1.05; letter-spacing: -.03em; }
.w-cta p { margin: 14px 0 0; font-size: 15px; opacity: .75; }
.w-cta .btn { background: var(--ink); color: #fff; align-self: flex-start; }
.w-cta .btn::before { background: #fff; }
.w-cta .btn:hover { color: var(--ink); }
.w-progress { margin: 40px var(--pad) 0; height: 1px; background: var(--line); overflow: hidden; }
.w-progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* clients */
.clients { padding: clamp(60px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.cl-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 var(--pad); margin-bottom: 30px; }
.cl-head .kicker { margin: 0; }
.cl-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.cl-row { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cl-track { display: inline-flex; white-space: nowrap; will-change: transform; }
.cl { display: inline-flex; align-items: center; gap: 14px; height: 104px; padding: 0 48px; border-right: 1px solid var(--line); color: rgba(236, 235, 230, .5); transition: color .35s; }
.cl:hover { color: var(--text); }
.cl svg { width: 28px; height: 28px; flex: none; }
.cl b { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .04em; }
.cl i { font-style: normal; font-family: var(--f-mono); font-size: 11px; opacity: .6; }

/* request */
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 100px); align-items: start; }
.req-info .h2 { max-width: 13ch; }
.req-perks { list-style: none; padding: 0; margin: 44px 0 0; border-top: 1px solid var(--ink-line); }
.req-perks li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--ink-line); font-weight: 600; font-size: 16px; }
.req-perks span { font-family: var(--f-mono); font-size: 12px; color: var(--accent-deep); padding-top: 3px; }
.req-direct { margin-top: 40px; }
.req-direct span { display: block; font-size: 13px; color: var(--ink-muted); margin-bottom: 6px; }
.req-direct a { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.4vw, 34px); letter-spacing: -.02em; }
.form { position: relative; overflow: hidden; background: #fff; border-radius: 26px; padding: clamp(22px, 3vw, 38px); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .45); }
.form-head { display: flex; justify-content: space-between; margin-bottom: 22px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; margin-bottom: 12px; }
.field input, .field textarea {
  width: 100%; height: 62px; padding: 25px 16px 9px; border-radius: 14px; outline: none;
  border: 1px solid var(--ink-line); background: #f6f5f1; color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { height: 116px; resize: none; padding-top: 30px; }
.field label { position: absolute; left: 17px; top: 20px; font-size: 15px; color: #8a8984; pointer-events: none; transition: top .3s var(--ease), font-size .3s var(--ease), color .3s; }
.field input:focus, .field textarea:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(243, 146, 0, .12); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { top: 9px; font-size: 11.5px; color: var(--accent-deep); }
.field.err input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.field.err label { color: #e5484d; }
.chips-l { margin: 8px 0 10px; font-size: 13px; color: var(--ink-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 14px; font-weight: 600; color: var(--ink); transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; color: var(--accent); }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 20px; font-size: 12.5px; color: #7a7974; cursor: pointer; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--ink-line); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.consent input:checked + .box { background: var(--ink); border-color: var(--ink); }
.consent input:checked + .box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.consent.err .box { border-color: #e5484d; }
.submit { --h: 62px; width: 100%; font-size: 16px; }
.submit.loading { pointer-events: none; }
.submit.loading .arr { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.f-success {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px;
  background: #fff; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s;
}
.form.done .f-success { opacity: 1; visibility: visible; }
.f-check { width: 84px; height: 84px; margin-bottom: 20px; }
.f-check circle { fill: none; stroke: var(--accent); stroke-width: 3; stroke-dasharray: 227; stroke-dashoffset: 227; transition: stroke-dashoffset .9s var(--ease) .1s; }
.f-check path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 50; stroke-dashoffset: 50; transition: stroke-dashoffset .6s var(--ease) .6s; }
.form.done .f-check circle, .form.done .f-check path { stroke-dashoffset: 0; }
.f-success h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.f-success p { margin: 0 0 24px; color: var(--ink-muted); max-width: 320px; }
.f-success b { font-family: var(--f-mono); color: var(--ink); }

/* contacts */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(20px, 3vw, 40px); align-items: stretch; }
.c-list { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); align-content: start; }
.c-item { padding: 28px 20px 28px 0; border-bottom: 1px solid var(--line); }
.c-item:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.c-item label { display: block; margin-bottom: 10px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.c-item b { display: block; font-weight: 600; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.35; }
.c-item b a { transition: color .3s; }
.c-item b a:hover { color: var(--accent); }
.c-item span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.c-map { position: relative; min-height: 420px; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: #0f1114; }
.c-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-route path { animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.map-btn { position: absolute; left: 20px; bottom: 20px; }

/* footer */
.footer { padding: clamp(60px, 7vw, 100px) var(--pad) 28px; border-top: 1px solid var(--line); overflow: hidden; }
.f-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 30px; }
.f-tag { margin: 0; max-width: 380px; color: var(--muted); }
.f-links { display: flex; flex-direction: column; gap: 8px; }
.f-links a, .f-contact a { transition: color .3s; width: fit-content; }
.f-links a:hover, .f-contact a:hover { color: var(--accent); }
.f-contact { display: flex; flex-direction: column; gap: 8px; font-family: var(--f-mono); font-size: 14px; }
.f-word {
  display: flex; justify-content: space-between; margin: clamp(40px, 6vw, 80px) 0 24px;
  font-family: var(--f-display); font-weight: 700; font-size: 16.2vw; line-height: .8; letter-spacing: -.05em; color: var(--text);
  overflow: hidden; padding-bottom: .04em;
}
.f-word span { display: inline-block; will-change: transform; }
.f-word span:nth-child(1) { color: var(--accent); }
.f-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1240px) {
  .rail button span, .rail:hover button span, .rail button.on span { display: none; }
}

@media (max-width: 1100px) {
  .nav-links { gap: 22px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 30px 20px 26px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .t-row { grid-template-columns: 34px minmax(0, 1fr) 90px; }
  .t-g { grid-column: 2; grid-row: 2; margin-top: -10px; }
  .t-d { grid-column: 3; grid-row: 1 / span 2; }
  .t-a { display: none; }
}

@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .burger { display: block; }
  .nav-right .btn { display: none; }
  .tests-body { grid-template-columns: 1fr; }
  .t-vis { position: relative; top: 0; min-height: 0; }
  .req-grid, .contacts-grid { grid-template-columns: 1fr; }
  .f-top { grid-template-columns: 1fr 1fr; }
  .f-tag { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .hero { height: 560vh; }
  .s1 { top: 96px; bottom: auto; right: var(--pad); width: auto; justify-content: flex-start; }
  .eyebrow { font-size: 10px; padding: 6px 11px; }
  .h-display { margin: 18px 0 14px; font-size: clamp(29px, 8.4vw, 44px); }
  .lead { font-size: 14.5px; margin-bottom: 20px; max-width: 420px; }
  .actions .btn { --h: 48px; padding: 0 20px; font-size: 14px; }
  .spec-card { display: none; }
  .scroll-hint { bottom: 22px; font-size: 10.5px; }
  .s2 { top: 88px; bottom: auto; right: var(--pad); width: auto; }
  .s2 .h-stage { font-size: 25px; margin-bottom: 8px; }
  .s2 p { font-size: 13.5px; max-width: 300px; }
  .stage-num { margin-bottom: 10px; font-size: 11px; }
  .s3 { top: 84px; bottom: auto; right: var(--pad); width: auto; gap: 12px; }
  .s3 .h-stage { font-size: 25px; margin-bottom: 8px; }
  .s3 p { font-size: 13.5px; }
  .heads .btn { margin-top: 12px; }
  .readout { padding: 12px 14px; border-radius: 14px; }
  .ro-grid { margin: 8px 0 6px; gap: 10px; }
  .ro-grid b { font-size: 22px; }
  .ro-chart { display: none; }
  .ro-foot { font-size: 10px; margin-top: 6px; }
  .ro-foot span:last-child { display: none; }
  .callout { width: 44vw; }
  .co-title { font-size: 13.5px; margin: 3px 0 2px; }
  .co-tests { font-size: 11px; }
  .co-gost { display: none; }
  .co-num { font-size: 9.5px; }
  .stamp { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
  .stamp-in b { font-size: 40px; }
  .stamp-in span { font-size: 10px; }
  .stamp-in small { font-size: 8.5px; }
  .rail { display: none; }
  .hero-bar { display: block; }

  .sec-head { grid-template-columns: 1fr; gap: 22px; }
  .sec-head > p { justify-self: start; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat, .stat + .stat { padding: 26px 16px 22px 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat p { font-size: 13px; margin-top: 12px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(-1 * var(--pad)) 26px; padding: 0 var(--pad); scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .steps { grid-template-columns: 1fr; gap: 34px; padding: 0 0 0 34px; }
  .proc-line { left: 5px; right: auto; top: 6px; bottom: 0; width: 1px; height: auto; }
  .proc-fill { transform-origin: top; transform: scaleY(var(--p, 0)); }
  .step::before { left: -34px; top: 4px; }
  .works-pin { min-height: 0; padding: 90px 0 70px; }
  .w-track { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .w-track::-webkit-scrollbar { display: none; }
  .w-card { flex-basis: 82vw; scroll-snap-align: center; }
  .cl { height: 84px; padding: 0 30px; }
  .cl b { font-size: 16px; }
  .cl-note { display: none; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .c-list { grid-template-columns: 1fr; }
  .c-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .c-map { min-height: 320px; }
  .f-top { grid-template-columns: 1fr; }
  .f-bottom { flex-direction: column; }
}

@media (min-width: 821px) and (max-height: 800px) {
  .co-gost { display: none; }
  .co-tests { font-size: 12.5px; }
  .co-title { font-size: 16px; margin: 3px 0 2px; }
}

@media (max-width: 380px) {
  .actions .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .sh-line i, .map-route path, .eyebrow .dot { animation: none; }
}
