/* ═══════════════════════════════════════════════════════════════
   CIUDAD · EKB — stylesheet v2
   Type: Unbounded (display) · Cormorant (accent italic) · JetBrains Mono
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #04050a;
  --bg-2: #070a12;
  --ink: #4a6fa5;
  --ink-light: #6b9bd2;
  --ink-bright: #8fb8e8;
  --ink-deep: #22365a;
  --ink-faint: rgba(74, 111, 165, 0.20);
  --ink-grid: rgba(74, 111, 165, 0.055);
  --paper: #e9edf4;
  --paper-dim: #8e98aa;
  --paper-faint: rgba(233, 237, 244, 0.35);
  --amber: #d9a857;
  --red: #d64545;
  --display: 'Unbounded', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: clip;
}
::selection { background: var(--ink); color: #000; }
img { max-width: 100%; }

/* blueprint grid behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 88px 88px;
  pointer-events: none;
  z-index: 0;
}

/* ── animated film grain ── */
.grain {
  position: fixed; inset: -100px;
  pointer-events: none;
  z-index: 90;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-jitter 0.9s steps(6) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-30px, 14px); }
  40% { transform: translate(18px, -28px); }
  60% { transform: translate(-12px, -20px); }
  80% { transform: translate(26px, 22px); }
  100% { transform: translate(0, 0); }
}

main { position: relative; z-index: 2; }

/* ── custom cursor (fine pointers only) ── */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 200;
    will-change: transform;
  }
  .cursor-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--ink-bright);
    margin: -2.5px 0 0 -2.5px;
  }
  .cursor-ring {
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1px solid rgba(107, 155, 210, 0.5);
    border-radius: 50%;
    transition: width 0.25s, height 0.25s, margin 0.25s, border-color 0.25s, background 0.25s;
  }
  body.cursor-hover .cursor-ring {
    width: 56px; height: 56px;
    margin: -28px 0 0 -28px;
    border-color: var(--ink-bright);
    background: rgba(74, 111, 165, 0.08);
  }
  body.cursor-drag .cursor-ring {
    width: 64px; height: 64px;
    margin: -32px 0 0 -32px;
    border-style: dashed;
  }
}

/* ────────── TOP RAIL ────────── */
.rail {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 60;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 168px 20px 32px;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-dim);
  mix-blend-mode: difference;
  pointer-events: none;
}
.rail > * { pointer-events: auto; }
.rail-mark {
  font-family: var(--display);
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.22em; color: var(--paper);
}
.rail-mark .i { color: var(--ink-light); }
.rail-coords { display: flex; gap: 28px; }
.rail-elev { min-width: 110px; text-align: right; color: var(--ink-light); }

/* ────────── SECTION CHROME ────────── */
section { position: relative; padding: 140px 6vw; }
.section-head { margin-bottom: 72px; }
.section-id {
  display: flex; align-items: center; gap: 16px;
  font-size: 11px; color: var(--ink-light);
  letter-spacing: 0.25em; text-transform: uppercase;
  margin-bottom: 26px;
}
.section-id::after { content: ""; flex: 0 0 64px; height: 1px; background: var(--ink); }
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 22ch;
  text-wrap: balance;
}
.section-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-bright);
}

/* ruler dividers */
.ruler {
  position: relative; height: 30px; margin: 0 6vw;
  border-top: 1px solid var(--ink-faint);
}
.ruler::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 9px;
  background-image: repeating-linear-gradient(90deg, var(--ink-faint) 0 1px, transparent 1px 40px);
}
.ruler-label {
  position: absolute; right: 0; top: 13px;
  font-size: 10px; color: var(--ink-light);
  letter-spacing: 0.22em; text-transform: uppercase;
  background: var(--bg); padding-left: 14px;
}

/* ────────── HERO ────────── */
.hero { min-height: 100vh; min-height: 100svh; padding: 0; display: flex; flex-direction: column; overflow: clip; }
.hero-stage { position: relative; flex: 1; min-height: calc(100vh - 56px); min-height: calc(100svh - 56px); display: flex; align-items: flex-end; }
#cityCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  cursor: grab;
}
#cityCanvas:active { cursor: grabbing; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 75% at 26% 72%, rgba(4, 5, 10, 0.82), rgba(4, 5, 10, 0.18) 55%, transparent 80%),
    linear-gradient(180deg, rgba(4, 5, 10, 0.7), transparent 22%, transparent 78%, rgba(4, 5, 10, 0.85));
}
.hero-content {
  position: relative; z-index: 3;
  padding: 18vh 6vw 9vh;
  width: 100%;
  pointer-events: none;
}
.hero-content a, .hero-content .drag-hint { pointer-events: auto; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 11px; letter-spacing: 0.3em;
  color: var(--ink-light); text-transform: uppercase;
  margin-bottom: 4.5vh;
}
.hero-eyebrow .dot {
  width: 7px; height: 7px; background: var(--red); border-radius: 50%;
  animation: beacon 2.4s ease-in-out infinite;
}
@keyframes beacon { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

/* stacked display headline */
.hero-h1 { margin-bottom: 4.5vh; }
.hero-h1 .row {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(40px, 8.2vw, 124px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  overflow: hidden;
}
.hero-h1 .row > span {
  display: inline-block;
  transform: translateY(110%);
  animation: rise 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero-h1 .row:nth-child(1) > span { animation-delay: 0.15s; }
.hero-h1 .row:nth-child(2) > span { animation-delay: 0.28s; }
.hero-h1 .row:nth-child(3) > span { animation-delay: 0.41s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-h1 .outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-light);
}
.hero-h1 .ital {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-bright);
}
.hero-h1 .shift { padding-left: clamp(40px, 9vw, 180px); }

.hero-sub {
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.75;
  color: var(--paper-dim);
  max-width: 46ch;
  margin-bottom: 5vh;
}
.hero-sub strong { color: var(--paper); font-weight: 400; }

.hero-cta-row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }

.drag-hint {
  position: absolute;
  right: 6vw; bottom: 10vh;
  display: flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--paper-dim);
  z-index: 3;
}
.drag-hint .knob {
  width: 30px; height: 30px;
  border: 1px dashed var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-light);
  animation: knob-swing 3s ease-in-out infinite;
}
@keyframes knob-swing {
  0%, 100% { transform: translateX(-6px); }
  50% { transform: translateX(6px); }
}

/* ────────── BUTTONS ────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 16px;
  padding: 20px 34px;
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--ink);
  cursor: pointer; text-decoration: none;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s ease;
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink-light);
  transform: translateY(101%);
  transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1);
  z-index: -1;
}
.btn:hover { color: #02030a; }
.btn:hover::before { transform: translateY(0); }
.btn .arrow { transition: transform 0.4s cubic-bezier(0.65, 0.05, 0.36, 1); }
.btn:hover .arrow { transform: translateX(6px); }
.btn.solid { background: var(--ink); color: #02030a; border-color: var(--ink); }
.btn.solid::before { background: var(--paper); }

.btn-ghost {
  color: var(--paper-dim);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 5px;
  border-bottom: 1px solid var(--ink-faint);
  transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--ink-bright); border-color: var(--ink-light); }

/* ────────── TICKER ────────── */
.ticker {
  position: relative; z-index: 5;
  border-top: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  overflow: hidden; padding: 17px 0; white-space: nowrap;
  background: var(--bg);
}
.ticker-track {
  display: inline-flex; gap: 72px; padding-left: 72px;
  animation: ticker 48s linear infinite;
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; gap: 72px; color: var(--paper); }
.ticker-track span::after { content: "✦"; color: var(--ink); font-size: 10px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ────────── GIANT EKB STRIP (scroll-bound) ────────── */
.ekb-strip {
  position: relative;
  padding: 110px 0 90px;
  overflow: clip;
}
.ekb-line {
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(90px, 16vw, 260px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  will-change: transform;
}
.ekb-line.hollow {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(107, 155, 210, 0.4);
}
.ekb-line.fill { color: var(--ink-deep); margin-top: -0.12em; }
.ekb-line .star { color: var(--ink); -webkit-text-stroke: 0; }
.ekb-meta {
  position: absolute; left: 6vw; bottom: 36px;
  display: flex; gap: 40px;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--paper-dim);
}
.ekb-meta b { color: var(--ink-light); font-weight: 400; }

/* ────────── MANIFESTO (scroll-lit words) ────────── */
.manifesto { padding-top: 110px; padding-bottom: 110px; }
.manifesto-text {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(21px, 2.9vw, 42px);
  line-height: 1.5;
  max-width: 34ch;
  letter-spacing: 0.01em;
}
.manifesto-text .w { color: rgba(233, 237, 244, 0.16); transition: color 0.45s ease; }
.manifesto-text .w.lit { color: var(--paper); }
.manifesto-text .w.accent.lit { color: var(--ink-bright); }
.manifesto-sig {
  margin-top: 52px;
  display: flex; align-items: center; gap: 18px;
  font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-light);
}
.manifesto-sig::before { content: ""; width: 64px; height: 1px; background: var(--ink); }

/* ────────── WHY (tilt cards) ────────── */
.why-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-faint);
  border-left: 1px solid var(--ink-faint);
  perspective: 1400px;
}
.why-card {
  position: relative;
  padding: 44px 32px 44px;
  border-right: 1px solid var(--ink-faint);
  border-bottom: 1px solid var(--ink-faint);
  min-height: 360px;
  display: flex; flex-direction: column;
  background: rgba(4, 5, 10, 0.4);
  transition: background 0.4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.why-card:hover { background: rgba(74, 111, 165, 0.05); }
.why-card::before {
  content: "";
  position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--ink-light);
  transition: height 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.why-card:hover::before { height: 100%; }
.why-num {
  font-family: var(--display); font-weight: 300;
  font-size: 14px; color: var(--ink-light);
  letter-spacing: 0.2em; margin-bottom: 40px;
}
.why-ghost {
  position: absolute; right: 14px; top: 8px;
  font-family: var(--display); font-weight: 700;
  font-size: 110px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 111, 165, 0.16);
  pointer-events: none;
  transform: translateZ(30px);
}
.why-title {
  font-family: var(--display); font-weight: 500;
  font-size: 21px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 20px; flex: 1;
}
.why-body { font-size: 13px; line-height: 1.65; color: var(--paper-dim); }
.why-mark {
  margin-top: 28px;
  display: flex; justify-content: space-between;
  color: var(--ink); font-size: 10px; letter-spacing: 0.25em;
}
/* пятая карточка-гарантия — во всю ширину сетки, как закрывающий блок */
.why-card.guarantee { grid-column: 1 / -1; min-height: 0; }
.why-card.guarantee .why-body { max-width: 70ch; }

/* ────────── PROCESS (metro line) ────────── */
.process-note {
  margin: -48px 0 64px;
  font-size: 12px; color: var(--paper-dim); letter-spacing: 0.08em;
}
.process-note b { color: var(--ink-light); font-weight: 400; }
.process-map { position: relative; padding: 90px 0 30px; }
.process-track {
  position: absolute; left: 4%; right: 4%; top: 99px; height: 3px;
  background: var(--ink-faint);
}
.process-track::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink), var(--ink-light));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.6s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.process-track.lit::before { transform: scaleX(1); }
.process-stations { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.station { position: relative; text-align: center; padding: 0 8px; }
.station-node {
  position: relative;
  width: 20px; height: 20px;
  border: 2px solid var(--ink-light);
  background: var(--bg);
  border-radius: 50%;
  margin: 0 auto 34px; z-index: 2;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}
.station:hover .station-node {
  background: var(--ink-light);
  transform: scale(1.25);
  box-shadow: 0 0 24px rgba(107, 155, 210, 0.55);
}
.station-num {
  position: absolute; top: -64px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--display); font-weight: 700;
  font-size: 58px; line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 111, 165, 0.35);
  z-index: 1;
}
.station-label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 12px;
}
.station-title {
  font-family: var(--display); font-weight: 500;
  font-size: 19px; text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 10px;
}
.station-note { font-size: 11.5px; color: var(--paper-dim); line-height: 1.55; }
.station-note .accent { color: var(--ink-bright); }

/* ────────── CASES — editorial rows, no numbers ────────── */
.case-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: center;
  padding: 84px 0;
  border-top: 1px solid var(--ink-faint);
}
.case-row:last-child { border-bottom: 1px solid var(--ink-faint); }
.case-row.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
.case-row.flip .case-art-wrap { order: -1; }
.case-ghost-num {
  position: absolute; top: 28px; right: 0;
  font-family: var(--display); font-weight: 700;
  font-size: clamp(80px, 11vw, 180px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 111, 165, 0.22);
  pointer-events: none;
  z-index: 0;
}
.case-row.flip .case-ghost-num { right: auto; left: 0; }
.case-info { position: relative; z-index: 1; }
.case-tag {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light);
  border: 1px solid var(--ink-faint);
  padding: 8px 16px;
  margin-bottom: 30px;
}
.case-niche {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.06; text-transform: uppercase; letter-spacing: 0.01em;
  margin-bottom: 22px;
}
.case-niche em {
  font-style: normal; color: var(--ink-bright);
}
.case-desc { font-size: 13.5px; line-height: 1.7; color: var(--paper-dim); max-width: 44ch; margin-bottom: 34px; }
.case-outcome {
  display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--ink-faint);
}
.case-outcome div {
  display: flex; align-items: baseline; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--ink-faint);
  font-size: 13px;
}
.case-outcome .k {
  flex: 0 0 110px;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--paper-dim);
}
.case-outcome .v { font-size: 14px; font-weight: 700; color: var(--paper); }
.case-outcome .v.hi { color: var(--ink-bright); }

.case-art-wrap { position: relative; z-index: 1; }
.case-art {
  position: relative;
  border: 1px solid var(--ink-faint);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
}
.case-art img {
  width: 100%; height: 118%;
  object-fit: cover; display: block;
  will-change: transform;
  transition: filter 0.5s;
}
.case-art:hover img { filter: brightness(1.15); }
.case-art-tag {
  position: absolute; top: 14px; left: 16px;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light); background: rgba(4, 5, 10, 0.85);
  padding: 5px 12px; border: 1px solid var(--ink-faint);
}
.case-art-coords {
  position: absolute; bottom: 14px; right: 16px;
  font-size: 9px; letter-spacing: 0.22em; color: var(--ink);
}
.case-art-corner {
  position: absolute; width: 22px; height: 22px; pointer-events: none;
}
.case-art-corner.tl { top: -1px; left: -1px; border-top: 2px solid var(--ink-light); border-left: 2px solid var(--ink-light); }
.case-art-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--ink-light); border-right: 2px solid var(--ink-light); }

/* — пруфы: видеоотзыв + примеры работ — */
.case-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  border-top: 1px solid var(--ink-faint);
  padding-top: 56px;
}
.case-link {
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 40px 70px 36px 36px;
  border: 1px solid var(--ink-faint);
  background: rgba(4, 5, 10, 0.5);
  text-decoration: none; color: var(--paper);
  overflow: hidden;
  transition: border-color 0.3s, background 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-link::before {
  content: "";
  position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--ink-light);
  transition: height 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.case-link:hover { transform: translateY(-6px); border-color: var(--ink); background: rgba(74, 111, 165, 0.05); }
.case-link:hover::before { height: 100%; }
.case-link-tag { font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-light); }
.case-link-title {
  font-family: var(--display); font-weight: 500;
  font-size: 21px; line-height: 1.25;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.case-link-desc { font-size: 12.5px; line-height: 1.65; color: var(--paper-dim); max-width: 44ch; }
.case-link-arrow {
  position: absolute; top: 32px; right: 30px;
  font-size: 22px; line-height: 1; color: var(--ink-light);
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1), color 0.3s;
}
.case-link:hover .case-link-arrow { transform: translate(4px, -4px); color: var(--ink-bright); }

/* ────────── PRICING ────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  position: relative;
  border: 1px solid var(--ink-faint);
  padding: 44px 34px 38px;
  display: flex; flex-direction: column;
  background: rgba(4, 5, 10, 0.5);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.tier:hover { transform: translateY(-8px); }
.tier::before {
  content: "";
  position: absolute; left: 0; top: 0; width: 3px; height: 0;
  background: var(--ink-light);
  transition: height 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.tier:hover::before { height: 100%; }
.tier.featured { border-color: var(--ink); background: rgba(74, 111, 165, 0.045); }
.tier-mark {
  display: flex; justify-content: space-between;
  font-size: 10px; letter-spacing: 0.22em; color: var(--paper-dim); text-transform: uppercase;
  margin-bottom: 30px;
}
.tier-mark .badge { color: var(--amber); }
.tier-name {
  font-family: var(--display); font-weight: 500;
  font-size: 30px; text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.tier.featured .tier-name { color: var(--ink-bright); }
.tier-sub { font-size: 12px; color: var(--paper-dim); margin-bottom: 36px; line-height: 1.6; }
.tier-list { list-style: none; margin-bottom: 38px; flex: 1; }
.tier-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--ink-faint);
  font-size: 13px; line-height: 1.5;
}
.tier-list li::before { content: "+"; color: var(--ink-light); flex-shrink: 0; }
.tier-list li.minus::before { content: "—"; color: var(--paper-dim); opacity: 0.4; }
.tier-list li.minus { color: var(--paper-dim); opacity: 0.5; }

/* гарантия-строка под тарифами */
.price-guarantee {
  position: relative;
  margin-top: 24px;
  padding: clamp(20px, 4vw, 26px) clamp(20px, 5vw, 32px);
  border: 1px solid var(--ink-faint);
  background: rgba(74, 111, 165, 0.045);
  display: flex; align-items: baseline; gap: 10px 22px; flex-wrap: wrap;
}
.price-guarantee .pg-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-light); white-space: nowrap;
}
.price-guarantee .pg-text {
  margin: 0; max-width: 78ch;
  font-size: 13px; line-height: 1.65; color: var(--paper-dim);
}
.price-guarantee .pg-text b { color: var(--ink-bright); font-weight: 500; }

/* ────────── CONTACT ────────── */
.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.form-aside { position: sticky; top: 100px; }
.form-aside-title {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.18; text-transform: uppercase;
  margin-bottom: 28px; text-wrap: balance;
}
.form-aside-title em {
  font-style: normal; color: var(--ink-bright);
}
.form-aside-body { font-size: 13px; line-height: 1.7; color: var(--paper-dim); margin-bottom: 36px; max-width: 38ch; }
.form-meta {
  border-top: 1px solid var(--ink-faint); padding-top: 24px;
  font-size: 11px; letter-spacing: 0.15em; color: var(--paper-dim); text-transform: uppercase;
}
.form-meta div { padding: 9px 0; border-bottom: 1px dashed var(--ink-faint); display: flex; justify-content: space-between; }
.form-meta div:last-child { border-bottom: none; }
.form-meta .v { color: var(--ink-bright); }
.form-meta .v.lc { text-transform: none; letter-spacing: 0.04em; }

form { display: flex; flex-direction: column; gap: 30px; }
.field { position: relative; border-bottom: 1px solid var(--ink-faint); padding-bottom: 4px; transition: border-color 0.3s; }
.field:focus-within { border-color: var(--ink-light); }
.field label {
  display: block;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--paper-dim); margin-bottom: 12px;
}
.field label .req { color: var(--red); margin-left: 4px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: none; outline: none;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 18px;
  padding: 6px 0 12px;
  caret-color: var(--ink-light);
}
.field input::placeholder { color: var(--paper-faint); }
.radio-group { display: flex; gap: 12px; flex-wrap: wrap; padding: 4px 0 12px; }
.radio-pill { position: relative; cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--ink-faint);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  transition: all 0.25s;
}
.radio-pill span::before {
  content: ""; width: 8px; height: 8px;
  border: 1px solid var(--ink-light); border-radius: 50%;
  transition: background 0.25s;
}
.radio-pill input:checked + span { border-color: var(--ink-light); color: var(--ink-bright); background: rgba(74, 111, 165, 0.07); }
.radio-pill input:checked + span::before { background: var(--ink-light); }
.radio-pill:hover span { border-color: var(--ink); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 24px; flex-wrap: wrap; }
.form-fine { font-size: 10px; letter-spacing: 0.1em; color: var(--paper-dim); text-transform: uppercase; max-width: 32ch; line-height: 1.5; }
.form-success { border: 1px solid var(--ink); padding: 64px 40px; text-align: center; }
.form-success h3 { font-family: var(--display); font-weight: 500; font-size: 30px; text-transform: uppercase; margin-bottom: 14px; }
.form-success p { font-size: 13px; color: var(--paper-dim); }

/* ────────── FOOTER ────────── */
footer { position: relative; padding: 0 0 40px; }
.foot-horizon {
  position: relative; height: 220px; overflow: hidden;
  border-top: 1px solid var(--ink-faint);
  margin-bottom: 80px;
}
#footCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.foot-horizon::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 35%, transparent 75%, rgba(4, 5, 10, 0.7) 100%);
}
.foot-inner { padding: 0 6vw; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 80px; }
.foot-logo { max-width: 360px; }
.foot-logo img { width: 100%; height: auto; mix-blend-mode: screen; display: block; }
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 24px; font-weight: 400;
}
.foot-col a, .foot-col p {
  display: block;
  font-size: 13px; color: var(--paper);
  text-decoration: none; padding: 6px 0;
  transition: color 0.25s, padding-left 0.25s;
}
.foot-col a:hover { color: var(--ink-bright); padding-left: 8px; }
.foot-slogan {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 5.4vw, 88px);
  line-height: 1.1; letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: center; margin: 30px 0 70px;
  text-wrap: balance;
}
.foot-slogan .of {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink-light);
  font-style: normal;
}
.foot-bottom {
  border-top: 1px solid var(--ink-faint); padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--paper-dim); flex-wrap: wrap; gap: 20px;
}
.foot-bottom .pulse { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .pulse::before {
  content: ""; width: 6px; height: 6px;
  background: var(--ink-light); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ────────── ECON — зачем сайт ────────── */
.econ-note {
  margin: -40px 0 72px;
  font-size: 12px; color: var(--paper-dim);
  letter-spacing: 0.08em; line-height: 1.7;
  max-width: 62ch;
}
.econ-note b { color: var(--ink-light); font-weight: 400; }

/* — смета потерь — */
.leak-sheet {
  position: relative;
  border: 1px solid var(--ink-faint);
  background: rgba(4, 5, 10, 0.5);
  margin-bottom: 96px;
}
.leak-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--ink-faint);
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light);
  flex-wrap: wrap;
}
.leak-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 0.85fr) minmax(0, 1.3fr) 150px;
  gap: 28px; align-items: baseline;
  padding: 24px 28px;
  border-bottom: 1px dashed var(--ink-faint);
  transition: background 0.3s;
}
.leak-row:hover { background: rgba(74, 111, 165, 0.05); }
.leak-code { font-size: 10px; letter-spacing: 0.22em; color: var(--ink); }
.leak-title {
  font-family: var(--display); font-weight: 500;
  font-size: 16px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.02em;
}
.leak-desc { font-size: 12.5px; line-height: 1.65; color: var(--paper-dim); }
.leak-sum {
  display: inline-flex; align-items: center; gap: 8px;
  justify-self: end;
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--red); white-space: nowrap;
}
.redact {
  display: inline-block;
  width: 54px; height: 10px;
  background: repeating-linear-gradient(45deg, rgba(214, 69, 69, 0.55) 0 3px, rgba(214, 69, 69, 0.12) 3px 6px);
}
.redact.lg { width: 150px; height: 0.62em; }
.leak-total {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 30px 28px;
  background: rgba(214, 69, 69, 0.04);
  flex-wrap: wrap;
}
.leak-total-label {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(15px, 1.7vw, 22px);
  text-transform: uppercase; letter-spacing: 0.02em;
}
.leak-total-sum {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(20px, 2.3vw, 34px);
  color: var(--red);
}
.leak-foot {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 16px 28px 18px;
  border-top: 1px solid var(--ink-faint);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--paper-dim);
  flex-wrap: wrap;
}
.leak-foot span:last-child { color: var(--ink-light); }
.leak-sheet .case-art-corner.tl { top: -1px; left: -1px; }
.leak-sheet .case-art-corner.br { bottom: -1px; right: -1px; }

/* — калькулятор окупаемости — */
.calc {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  border: 1px solid var(--ink);
  background: rgba(74, 111, 165, 0.04);
}
.calc-in { padding: 50px 44px; border-right: 1px solid var(--ink-faint); }
.calc-sheet-tag {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 26px;
}
.calc-title {
  font-family: var(--display); font-weight: 500;
  font-size: 22px; text-transform: uppercase; letter-spacing: 0.02em;
  margin-bottom: 48px;
}
.calc-field { margin-bottom: 46px; }
.calc-field:last-of-type { margin-bottom: 8px; }
.calc-field-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 20px;
}
.calc-field-head label {
  font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--paper-dim);
}
.calc-field-head output {
  font-size: 15px; font-weight: 700;
  color: var(--ink-bright); white-space: nowrap;
}
.calc-field input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--ink-light) 0%, rgba(74, 111, 165, 0.22) 0%);
  outline: none; cursor: pointer;
}
.calc-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px;
  background: var(--bg);
  border: 2px solid var(--ink-light);
  border-radius: 0;
  transform: rotate(45deg);
  transition: background 0.25s, box-shadow 0.25s;
}
.calc-field input[type="range"]:hover::-webkit-slider-thumb,
.calc-field input[type="range"]:active::-webkit-slider-thumb {
  background: var(--ink-light);
  box-shadow: 0 0 18px rgba(107, 155, 210, 0.5);
}
.calc-field input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px;
  background: var(--bg);
  border: 2px solid var(--ink-light);
  border-radius: 0;
  transform: rotate(45deg);
  transition: background 0.25s;
}
.calc-field input[type="range"]:hover::-moz-range-thumb { background: var(--ink-light); }
.calc-out { padding: 50px 44px; display: flex; flex-direction: column; }
.calc-stat { padding: 4px 0 26px; border-bottom: 1px dashed var(--ink-faint); }
.calc-stat + .calc-stat { padding-top: 24px; }
.calc-stat-label {
  display: block;
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--paper-dim); margin-bottom: 14px;
}
.calc-big {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3vw, 50px);
  line-height: 1.05; letter-spacing: 0.01em;
  text-transform: uppercase;
}
.calc-stat.hi .calc-big { color: var(--ink-bright); }
.calc-minor {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  padding: 26px 0;
  border-bottom: 1px dashed var(--ink-faint);
}
.calc-minor .k {
  display: block;
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--paper-dim); margin-bottom: 10px;
}
.calc-minor .v {
  font-family: var(--display); font-weight: 500;
  font-size: 20px; letter-spacing: 0.01em;
}
.calc-fine {
  margin-top: auto; padding-top: 26px;
  font-size: 10px; line-height: 1.7; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--paper-dim);
}
.calc .case-art-corner.tl { top: -1px; left: -1px; }
.calc .case-art-corner.br { bottom: -1px; right: -1px; }

/* — гигантская строка-разделитель — */
.econ-strip { margin: 110px -6vw; overflow: clip; }
.econ-line { font-size: clamp(54px, 8vw, 150px); font-weight: 700; }

/* — ниши — */
.econ-sub {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(24px, 3vw, 44px);
  line-height: 1.15; text-transform: uppercase; letter-spacing: 0.01em;
  margin-bottom: 54px; max-width: 26ch; text-wrap: balance;
}
.econ-sub em { font-style: normal; color: var(--ink-bright); }
.niche { border-top: 1px solid var(--ink-faint); }
.niche:last-child { border-bottom: 1px solid var(--ink-faint); }
.niche-head {
  width: 100%;
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  gap: 28px; align-items: center;
  padding: 26px 0;
  background: none; border: none; color: inherit;
  font-family: inherit; text-align: left;
}
.niche-code { font-size: 10px; letter-spacing: 0.22em; color: var(--ink); }
.niche-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 22px; }
.niche-name {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(17px, 1.5vw, 23px);
  line-height: 1.18; text-transform: uppercase; letter-spacing: 0.01em;
  transition: color 0.3s;
}
.niche-name { color: var(--ink-bright); }
.niche-ex {
  font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--paper-dim);
}
.niche-panel {
  display: grid; grid-template-rows: 1fr;
}
.niche-panel-inner {
  overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0 36px;
  padding: 0 38px 0 84px;
}
.niche-cell { padding: 4px 0 36px; }
.niche-cell p { font-size: 12.5px; line-height: 1.65; color: var(--paper-dim); }
.niche-cell.money p { font-size: 13px; font-weight: 700; color: var(--ink-bright); }
.cell-label {
  display: block;
  font-size: 9px; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--ink-light); margin-bottom: 10px;
}
.calc-cta { margin-top: 28px; align-self: flex-start; }

/* — летающая кнопка записи — */
.fly-cta {
  position: fixed; right: 28px; bottom: 28px; z-index: 80;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 26px;
  background: var(--ink); color: #02030a;
  border: 1px solid var(--ink-light);
  font-family: var(--mono);
  font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(107, 155, 210, 0.2);
  opacity: 0; pointer-events: none;
  transform: translateY(80px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.fly-cta.show {
  opacity: 1; pointer-events: auto; transform: none;
  animation: fly-bob 4.5s ease-in-out 0.6s infinite;
}
.fly-cta:hover { background: var(--paper); animation-play-state: paused; }
.fly-cta .arrow { transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1); }
.fly-cta:hover .arrow { transform: translateX(5px); }
.fly-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  animation: beacon 2.4s ease-in-out infinite;
}
@keyframes fly-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@media (prefers-reduced-motion: reduce) {
  .fly-cta.show { animation: none; }
}
.econ-after {
  margin-top: 56px;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-light);
  text-align: right;
}

/* ────────── REVEALS ────────── */
.reveal, .reveal-stagger > * { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(46px); transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 0; transform: translateY(36px); transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
  .reveal-stagger.in > * { opacity: 1; transform: none; }
  .reveal-stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
  .reveal-stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
  .reveal-stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
  .reveal-stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
}
@media (prefers-reduced-motion: reduce) {
  .grain, .hero-h1 .row > span { animation: none !important; }
  .hero-h1 .row > span { transform: none; }
  .ticker-track { animation-duration: 240s; }
}

/* ────────── INTRO ────────── */
.intro {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.intro::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--bg);
  transition: opacity 0.9s ease 0.15s;
}
.intro.handoff::before { opacity: 0; }
.intro-inner {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 7vh; width: 100%;
}
.intro-logo-svg {
  width: min(72vw, 620px); height: auto;
  overflow: visible;
  transform-origin: 50% 50%;
  transition: transform 0.95s cubic-bezier(0.7, 0, 0.2, 1);
  will-change: transform;
}
.intro-word {
  font-family: var(--display); font-weight: 600;
  font-size: 60px; letter-spacing: 0.14em; text-transform: uppercase;
  fill: transparent;
  stroke: var(--ink-bright); stroke-width: 1.1;
  stroke-dasharray: 430; stroke-dashoffset: 430;
  transition: fill 0.5s ease 0.2s, stroke 0.5s ease 0.2s;
}
.intro.go .intro-word { animation: intro-draw 1.7s cubic-bezier(0.45, 0, 0.2, 1) 0.1s forwards; }
@keyframes intro-draw { to { stroke-dashoffset: 0; } }
.intro.handoff .intro-word { fill: var(--paper); stroke: rgba(143, 184, 232, 0); }
.intro.handoff .intro-word .i { fill: var(--ink-light); }
.intro-skyline {
  width: min(78vw, 880px); height: auto;
  overflow: visible;
  transition: transform 1s cubic-bezier(0.6, 0, 0.3, 1), opacity 0.85s ease 0.1s;
  will-change: transform, opacity;
}
.intro.handoff .intro-skyline { transform: translateY(30vh) scale(1.5); opacity: 0; }
.intro-coords {
  position: absolute; bottom: 5vh; left: 0; right: 0;
  text-align: center;
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-light);
  opacity: 0;
  transition: opacity 0.6s ease 0.9s;
}
.intro.go .intro-coords { opacity: 0.8; }
.intro.handoff .intro-coords { opacity: 0; transition: opacity 0.3s; }
.intro.bye { opacity: 0; transition: opacity 0.45s; pointer-events: none; }

/* пока играет интро — герой и логотип в рейле ждут */
body.has-intro .rail-mark { opacity: 0; }
body.has-intro.intro-done .rail-mark { opacity: 1; transition: opacity 0.35s ease 0.05s; }
body.has-intro .hero-h1 .row > span { animation-play-state: paused; }
body.has-intro.intro-done .hero-h1 .row > span { animation-play-state: running; }

/* ────────── TOC / выезжающее оглавление ────────── */
.toc-toggle {
  position: fixed; top: 13px; right: 26px; z-index: 115;
  display: flex; align-items: center; gap: 13px;
  padding: 11px 16px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--paper);
  background: rgba(7, 10, 18, 0.66);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
  border: 1px solid var(--ink-faint);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background 0.3s, opacity 0.4s;
}
.toc-toggle:hover { border-color: var(--ink-light); color: var(--ink-bright); }
.toc-toggle-label { line-height: 1; }
.toc-burger { position: relative; width: 18px; height: 11px; flex: 0 0 18px; }
.toc-burger i {
  position: absolute; left: 0; right: 0; height: 1.5px;
  background: currentColor;
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1), opacity 0.2s;
}
.toc-burger i:nth-child(1) { top: 0; }
.toc-burger i:nth-child(2) { top: 50%; transform: translateY(-50%); }
.toc-burger i:nth-child(3) { bottom: 0; }
body.toc-open .toc-burger i:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
body.toc-open .toc-burger i:nth-child(2) { opacity: 0; }
body.toc-open .toc-burger i:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
body.has-intro:not(.intro-done) .toc-toggle { opacity: 0; pointer-events: none; }

.toc-backdrop {
  position: fixed; inset: 0; z-index: 112;
  background: rgba(2, 3, 8, 0.62);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.4s ease;
}
.toc-backdrop:not([hidden]) { opacity: 1; }

.toc {
  position: fixed; top: 0; right: 0; z-index: 114;
  width: min(390px, 88vw); height: 100%;
  display: flex; flex-direction: column;
  padding: 30px 34px 30px;
  background:
    linear-gradient(180deg, rgba(7, 10, 18, 0.99), rgba(4, 5, 10, 0.99));
  border-left: 1px solid var(--ink-faint);
  box-shadow: -40px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
  overflow-y: auto;
}
.toc::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--ink-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-grid) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.6;
}
body.toc-open .toc { transform: translateX(0); }
.toc > * { position: relative; }

.toc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 18px; margin-bottom: 22px;
  border-bottom: 1px solid var(--ink-faint);
}
.toc-head-code {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ink-light);
}
.toc-close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--ink-faint);
  color: var(--paper-dim); font-size: 13px; cursor: pointer;
  transition: color 0.3s, border-color 0.3s, transform 0.3s;
}
.toc-close:hover { color: var(--ink-bright); border-color: var(--ink-light); transform: rotate(90deg); }

.toc-title {
  font-family: var(--display); font-weight: 500;
  font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--paper);
  margin-bottom: 26px;
}

.toc-list { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.toc-link {
  position: relative;
  display: grid; grid-template-columns: 30px 1fr 14px; align-items: center;
  gap: 16px;
  padding: 15px 14px 15px 16px;
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  transition: background 0.3s;
}
.toc-link::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--ink-light);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.35s cubic-bezier(0.65, 0.05, 0.36, 1);
}
.toc-link:hover { background: rgba(74, 111, 165, 0.06); }
.toc-link:hover::before, .toc-link.active::before { transform: scaleY(1); }
.toc-num {
  font-family: var(--display); font-weight: 300;
  font-size: 12px; letter-spacing: 0.18em;
  color: var(--ink-light);
}
.toc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.toc-name {
  font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--paper-dim);
  transition: color 0.3s;
}
.toc-desc {
  font-size: 10.5px; letter-spacing: 0.04em;
  color: var(--paper-faint);
}
.toc-tick {
  width: 7px; height: 7px;
  border-right: 1px solid var(--ink); border-top: 1px solid var(--ink);
  transform: rotate(45deg);
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.toc-link:hover .toc-name, .toc-link.active .toc-name { color: var(--paper); }
.toc-link.active .toc-name { color: var(--ink-bright); }
.toc-link:hover .toc-tick, .toc-link.active .toc-tick { opacity: 1; transform: rotate(45deg) translate(1px, -1px); }
.toc-link.active .toc-num { color: var(--ink-bright); }

.toc-cta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 20px; margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: #02030a; text-decoration: none;
  background: var(--ink); border: 1px solid var(--ink);
  transition: background 0.3s, gap 0.3s;
}
.toc-cta:hover { background: var(--ink-bright); gap: 18px; }
.toc-foot {
  font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--ink-light); text-align: center;
}

/* ────────── RESPONSIVE ────────── */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .leak-row { grid-template-columns: 48px minmax(0, 1fr); gap: 12px 20px; }
  .leak-desc { grid-column: 2; }
  .leak-sum { grid-column: 2; justify-self: start; }
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: none; border-bottom: 1px solid var(--ink-faint); }
  .niches-head-row { display: none; }
  .niche-panel-inner { grid-template-columns: 1fr; gap: 0; padding: 0 0 0 84px; }
  .niche-cell { padding-bottom: 26px; }
  .case-row, .case-row.flip { grid-template-columns: 1fr; gap: 36px; padding: 64px 0; }
  .case-row.flip .case-art-wrap { order: 0; }
  .case-links { grid-template-columns: 1fr; padding-top: 48px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .process-stations { grid-template-columns: repeat(2, 1fr); gap: 56px; }
  .process-track { display: none; }
  .station-num { top: -58px; }
  .form-wrap { grid-template-columns: 1fr; gap: 48px; }
  .form-aside { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .rail-coords { display: none; }
}
@media (max-width: 620px) {
  /* — каркас — */
  body { font-size: 14px; }
  section { padding: 72px 6vw; }
  .section-head { margin-bottom: 40px; }
  .section-id { margin-bottom: 16px; font-size: 10px; }
  .section-title { font-size: clamp(23px, 6.2vw, 27px); line-height: 1.18; }
  .rail { padding: 14px 70px 14px 18px; }
  .rail-elev { display: none; }
  .toc-toggle { top: 11px; right: 16px; padding: 9px 13px; }
  .toc-toggle-label { display: none; }
  .toc { padding: 26px 24px; }
  .toc-title { font-size: 23px; margin-bottom: 22px; }
  .toc-link { padding: 14px 10px 14px 14px; gap: 13px; }

  /* — интро — */
  .intro-inner { gap: 5vh; }
  .intro-logo-svg { width: 84vw; }
  .intro-skyline { width: 94vw; }

  /* — херо — */
  .hero-content { padding: 15vh 6vw 11vh; }
  .hero-eyebrow { margin-bottom: 3.5vh; gap: 10px; letter-spacing: 0.22em; }
  .hero-h1 .row { font-size: clamp(26px, 8.4vw, 40px); }
  .hero-h1 .shift { padding-left: 10vw; }
  .hero-h1 .outline { -webkit-text-stroke-width: 1px; }
  .hero-sub { font-size: 13px; margin-bottom: 4vh; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-cta-row .btn { justify-content: center; }
  .hero-cta-row .btn-ghost { text-align: center; padding-bottom: 8px; }
  .drag-hint { display: none; }
  .ticker { padding: 13px 0; }
  .ticker-track { font-size: 11px; gap: 48px; padding-left: 48px; }
  .ticker-track span { gap: 48px; }

  /* — гигантские строки — */
  .ekb-strip { padding: 56px 0 26px; }
  .ekb-line { font-size: 16vw; -webkit-text-stroke-width: 1px; }
  .ekb-meta { position: static; flex-direction: column; gap: 8px; padding: 28px 6vw 0; }
  .econ-strip { margin: 64px -6vw; }
  .econ-line { font-size: 13vw; }

  /* — манифест — */
  .manifesto { padding-top: 84px; padding-bottom: 84px; }
  .manifesto-sig { margin-top: 36px; }

  /* — почему мы — */
  .why-grid { grid-template-columns: 1fr; }
  .why-card { min-height: 0; padding: 32px 22px; }
  .why-num { margin-bottom: 22px; }
  .why-title { font-size: 18px; margin-bottom: 12px; }
  .why-ghost { font-size: 70px; }

  /* — процесс: вертикальная ветка — */
  .process-note { margin: -28px 0 44px; }
  .process-map { padding: 16px 0 0; }
  .process-stations { grid-template-columns: 1fr; gap: 44px; }
  .station { text-align: left; padding: 0 0 0 46px; }
  .station-node { position: absolute; left: 0; top: 1px; margin: 0; }
  .station::before {
    content: ""; position: absolute;
    left: 9px; top: 28px; bottom: -44px; width: 2px;
    background: var(--ink-faint);
  }
  .station:last-child::before { display: none; }
  .station-num {
    left: auto; right: 0; top: -14px;
    transform: none; font-size: 44px;
  }
  .station-label { margin-bottom: 8px; }
  .station-note { max-width: 40ch; }

  /* — смета потерь / калькулятор — */
  .econ-note { margin: -24px 0 52px; }
  .leak-sheet { margin-bottom: 72px; }
  .leak-head, .leak-row, .leak-total, .leak-foot { padding-left: 18px; padding-right: 18px; }
  .leak-row { padding-top: 20px; padding-bottom: 20px; }
  .calc-in, .calc-out { padding: 34px 20px; }
  .calc-title { margin-bottom: 34px; font-size: 20px; }
  .calc-field { margin-bottom: 38px; }
  .calc-big { font-size: clamp(26px, 6.8vw, 32px); }
  .calc-minor { grid-template-columns: 1fr; gap: 18px; }
  .calc-cta { align-self: stretch; justify-content: center; }

  /* — ниши — */
  .econ-sub { margin-bottom: 38px; }
  .niche-head { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
  .niche-head .niche-code { display: none; }
  .niche-who { gap: 6px 14px; }
  .niche-panel-inner { padding-left: 0; }

  /* — кейсы — */
  .case-row, .case-row.flip { gap: 26px; padding: 48px 0; }
  .case-ghost-num { font-size: 58px; top: 16px; }
  .case-tag { margin-bottom: 20px; padding: 7px 12px; font-size: 9px; }
  .case-niche { font-size: clamp(26px, 7vw, 32px); margin-bottom: 16px; }
  .case-desc { margin-bottom: 24px; }
  .case-outcome .k { flex: 0 0 72px; }
  .case-outcome .v { font-size: 13px; }
  .case-links { gap: 14px; }
  .case-link { padding: 26px 52px 24px 20px; gap: 11px; }
  .case-link-title { font-size: 17px; }
  .case-link-arrow { top: 22px; right: 18px; font-size: 18px; }

  /* — тарифы — */
  .tier { padding: 34px 22px 30px; }
  .tier-name { font-size: 23px; }
  .tier-sub { margin-bottom: 28px; }
  .tier .btn { justify-content: center; }

  /* — форма — */
  .form-aside-body { margin-bottom: 28px; }
  .field input, .field textarea { font-size: 16px; }
  .radio-group { gap: 10px; }
  .radio-pill span { padding: 12px 16px; }
  .form-submit-row { flex-direction: column; align-items: stretch; gap: 18px; }
  .form-submit-row .btn { justify-content: center; }
  .form-fine { max-width: none; text-align: center; }

  /* — футер — */
  .foot-horizon { height: 130px; margin-bottom: 56px; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; margin-bottom: 56px; }
  .foot-logo { max-width: 230px; }
  .foot-slogan { margin: 14px 0 48px; font-size: clamp(26px, 8.5vw, 40px); }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 22px; }

  /* — прочее — */
  .fly-cta { right: 14px; bottom: 14px; padding: 15px 20px; font-size: 10px; }
  .cursor-dot, .cursor-ring { display: none; }
  body::before { background-size: 56px 56px; }
}
