/* =====================================================================
   PERFORMANTE AI — KOST DESIGN SYSTEM  (kost-agency.ru 1:1 clone)
   Light bg + red accent + giant AlumniSans display. Sharp corners.
   Scoped for kost.html only. Depends on shared /assets/js/main.js hooks.
   ZERO text-stroke anywhere — headings are solid fills.
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --bg:        #F1F0EC;
  --bg-2:      #F7F7F7;
  --ink:       #242424;
  --ink-soft:  #4A4A4A;
  --muted:     #8A8A85;
  --red:       #E02F1D;
  --red-dark:  #C21F0F;
  --white:     #FFFFFF;
  --line:      rgba(36,36,36,0.14);
  --line-soft: rgba(36,36,36,0.08);

  --container: 1400px;
  --gutter:    clamp(20px, 4vw, 56px);

  --font-display: 'Alumni Sans', 'Arial Narrow', sans-serif;
  --font-body:    'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* hide the native cursor everywhere once the custom cursor is live
   (JS adds .cursor-ready only on hover-capable, non-reduced-motion pointers) */
.cursor-ready,
.cursor-ready *,
.cursor-ready a,
.cursor-ready button,
.cursor-ready input,
.cursor-ready textarea,
.cursor-ready select,
.cursor-ready [data-magnetic] { cursor: none !important; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ---------- LAYOUT ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 130px); }
.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- DISPLAY TYPE ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.85;
  letter-spacing: -0.01em;
  color: var(--red);
}
.display--ink { color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.eyebrow--red { color: var(--red); }

/* ---------- SECTION LABEL (● УСЛУГИ ... [01]) ---------- */
.sec-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 80px);
}
.sec-label__name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.sec-label__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--red);
}
.sec-label__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* =====================================================================
   HEADER — bracket nav / centered wordmark / socials
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: transparent;
  transition: background .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(241,240,236,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-block: 20px;
}
.nav-brackets { display: flex; gap: 22px; }
.nav-brackets a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.nav-brackets a:hover { color: var(--red); }
.wordmark {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1;
}
.header-socials {
  justify-self: end;
  display: flex;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-socials a:hover { color: var(--red); }
.header-cta {
  justify-self: end;
  display: none;
}

/* burger (mobile) */
.burger {
  display: none;
  width: 42px; height: 42px;
  background: none; border: 1px solid var(--line);
  flex-direction: column; gap: 5px;
  align-items: center; justify-content: center;
}
.burger span { width: 20px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 22px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.nav-mobile.is-open { opacity: 1; visibility: visible; }
.nav-mobile a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-mobile a:hover { color: var(--red); }

/* ---------- SCROLL PROGRESS + CURSOR ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 100%;
  background: var(--red);
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 100;
}
/* ---- CUSTOM CURSOR — single big inverting ring, hover deformations ----
   Only rendered on hover-capable pointers (see media query below).
   The system cursor is hidden globally via `body.cursor-ready`. */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9990;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  will-change: transform;
}
.cursor-ready .cursor-dot,
.cursor-ready .cursor-ring { opacity: 1; }

/* centre dot — tiny anchor, part of the "single" read */
.cursor-dot {
  width: 6px; height: 6px; margin: -3px;
  background: #fff;
  transition: opacity .25s var(--ease), transform .2s var(--ease);
}

/* the ring is the star — big, lerp-followed, deforms on hover */
.cursor-ring {
  width: 38px; height: 38px; margin: -19px;
  border: 1.5px solid #fff;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  transition:
    width  .28s var(--ease),
    height .28s var(--ease),
    margin .28s var(--ease),
    border-radius .28s var(--ease),
    background .28s var(--ease),
    opacity .25s var(--ease);
}
/* label inside the ring (shown only in "view" morph) */
.cursor-ring__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity .2s var(--ease), transform .28s var(--ease);
  line-height: 1;
  pointer-events: none;
}

/* STATE A — hover interactive (a/button/.btn/[data-magnetic]) → EXPAND + fill */
.cursor-hover .cursor-ring {
  width: 76px; height: 76px; margin: -38px;
  background: #fff;
  border-color: #fff;
}
.cursor-hover .cursor-dot { opacity: 0; }

/* STATE B — hover media/visual ([data-cursor="view"]) → big morph + arrow label */
.cursor-view .cursor-ring {
  width: 96px; height: 96px; margin: -48px;
  background: rgba(255,255,255,0.9);
  border-color: #fff;
}
.cursor-view .cursor-ring__label { opacity: 1; transform: scale(1); }
.cursor-view .cursor-dot { opacity: 0; }

/* STATE C — hover text/headings ([data-cursor="text"]) → SHRINK to caret bar */
.cursor-text .cursor-ring {
  width: 5px; height: 44px; margin: -22px -2.5px;
  border-radius: 3px;
  background: #fff;
  border-color: #fff;
}
.cursor-text .cursor-dot { opacity: 0; }

/* Touch / no-hover devices: restore the system cursor, kill the custom one */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  html, body, * { cursor: auto; }
}

/* =====================================================================
   BUTTONS — sharp corners, uppercase AlumniSans
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 19px 40px;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  line-height: 1;
}
.btn--primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--sm { padding: 13px 26px; font-size: 15px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: 128px; text-align: center; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 30px;
  margin-bottom: clamp(14px, 2vw, 24px);
}
.hero-tags span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--red);
}
.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--red);
  line-height: 0.82;
  letter-spacing: -0.015em;
  font-size: clamp(52px, 13.5vw, 220px);
  overflow: hidden;
}
/* split-word wrappers from main.js */
.hero-h1 .split-line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hero-h1 .split-word { display: inline-block; }
.tfill-mint { color: var(--red); } /* keep everything red — no mint on this design */

.hero-plus {
  font-size: 40px;
  color: var(--ink);
  margin: clamp(28px, 4vw, 48px) 0 clamp(24px, 3vw, 38px);
  font-weight: 300;
  line-height: 1;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 18px;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto clamp(30px, 4vw, 44px);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* trust row */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(30px, 6vw, 90px);
  margin-top: clamp(56px, 8vw, 100px);
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.trust-item { text-align: center; }
.trust-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 5vw, 66px);
  color: var(--red);
  line-height: 1;
}
.trust-cap {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* =====================================================================
   BRACKET LABEL (for cards / placeholders)
   ===================================================================== */
.bracket-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.bracket-label::before { content: '[ '; }
.bracket-label::after  { content: ' ]'; }

/* =====================================================================
   PLACEHOLDER (visual → Vertex)
   ===================================================================== */
.ph {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(-45deg,
      transparent, transparent 11px,
      rgba(224,47,29,0.045) 11px, rgba(224,47,29,0.045) 12px);
}
.ph__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.ph__tag::before { content: '[ '; }
.ph__tag::after  { content: ' ]'; }
.ph__desc {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  max-width: 260px;
}
.ph--wide  { aspect-ratio: 16 / 7; }
.ph--card  { aspect-ratio: 4 / 3; }
.ph--tall  { aspect-ratio: 3 / 4; }
.ph--square{ aspect-ratio: 1 / 1; }

/* =====================================================================
   DATA PANEL (data-driven before/after — заменяет ph-визуалы)
   ===================================================================== */
.data-panel {
  border: 1px solid var(--line);
  background: var(--bg-2);
  padding: clamp(28px, 3vw, 48px);
}
.data-panel__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: clamp(22px, 2.4vw, 34px);
}
.ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(16px, 2vw, 34px);
}
.ba-cell__k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.ba-cell__v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 54px);
  line-height: 0.9;
  color: var(--ink);
}
.ba-cell--after .ba-cell__v { color: var(--red); }
.ba-arrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 40px);
  color: var(--red);
  line-height: 1;
}
.data-panel__foot {
  margin-top: clamp(22px, 2.4vw, 32px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: clamp(24px, 3vw, 48px);
  flex-wrap: wrap;
}
.data-panel__stat { line-height: 1; }
.data-panel__stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--red);
}
.data-panel__stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* =====================================================================
   PROBLEM (Знакомо?) — 4 cards
   ===================================================================== */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.prob-card {
  padding: 34px 28px 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: relative;
  transition: background .35s var(--ease);
}
.prob-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 0; height: 3px; background: var(--red);
  transition: width .4s var(--ease);
}
.prob-card:hover { background: var(--bg-2); }
.prob-card:hover::before { width: 100%; }
.prob-card__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  color: var(--red);
  line-height: 1;
  margin-bottom: 20px;
}
.prob-card p { font-size: 15px; line-height: 1.55; color: var(--ink-soft); }

/* =====================================================================
   SOLUTION — 3 cols
   ===================================================================== */
.lead-block {
  max-width: 900px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 5vw, 66px);
  line-height: 0.92;
  color: var(--ink);
  margin-bottom: clamp(40px, 5vw, 70px);
}
.lead-block .accent { color: var(--red); }

.tri-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.tri-card {
  padding: 40px 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .35s var(--ease);
}
.tri-card:not(:last-child) { border-right: 1px solid var(--line); }
.tri-card::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 0; height: 3px; background: var(--red);
  transition: width .4s var(--ease);
}
.tri-card:hover { background: var(--bg-2); }
.tri-card:hover::before { width: 100%; }
.tri-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--ink);
}
.tri-card p { font-size: 15px; color: var(--ink-soft); }
.tri-card__idx {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 20px;
}

/* =====================================================================
   HSCROLL — «как устроена работа» · разнородная лента с параллаксом
   Панели РАЗНЫЕ: цитата → 4 шага (разный масштаб/высота) → стат.
   Внутренние слои [data-hx-speed] едут на своём множителе (parallax),
   [data-hx-in] — entrance по мере входа в вьюпорт (JS: containerAnimation).
   ===================================================================== */
.hscroll { position: relative; overflow: hidden; background: var(--bg); }
.hscroll__track {
  display: flex;
  gap: 0;
  width: max-content;
  height: 100vh;
  will-change: transform;
}

/* базовая панель ленты */
.hx-panel {
  position: relative;
  height: 100vh;
  flex: 0 0 auto;
  border-right: 1px solid var(--line);
  padding: clamp(60px, 8vh, 120px) clamp(34px, 4vw, 80px);
  display: flex;
  overflow: hidden;
}

/* --- вводная панель-цитата --- */
.hx-panel--quote {
  width: clamp(520px, 58vw, 900px);
  flex-direction: column;
  justify-content: center;
  background: var(--bg-2);
}
.hx-quote {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.86;
  color: var(--red);
  font-size: clamp(56px, 8vw, 128px);
}
.hx-quote span { display: block; }
.hx-quote__mark {
  position: absolute;
  top: -0.34em; left: -0.14em;
  font-size: 1.7em;
  color: rgba(224,47,29,0.16);
  will-change: transform;
}
.hx-quote__l2 { padding-left: 0.9em; }
.hx-quote__l3 { color: var(--ink); }
.hx-quote__sub {
  margin-top: clamp(24px, 3vh, 46px);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  max-width: 30ch;
}

/* --- панель-шаг --- */
.hx-panel--step {
  width: clamp(420px, 40vw, 620px);
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(28px, 4vh, 60px);
}
.hx-panel--wide { width: clamp(520px, 52vw, 760px); }

.hx-step { max-width: 460px; will-change: transform; }
.hx-step--top    { align-self: flex-start; }
.hx-step--bottom { align-self: flex-start; margin-top: auto; }
.hx-step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(96px, 11vw, 180px);
  color: var(--red);
  line-height: 0.78;
  margin-bottom: 18px;
  will-change: transform;
}
.hx-step__num--xl { font-size: clamp(130px, 16vw, 280px); color: var(--ink); }
.hx-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3vw, 50px);
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  color: var(--ink);
}
.hx-step p { font-size: 16px; line-height: 1.55; color: var(--ink-soft); max-width: 420px; }

/* --- visual-плейсхолдеры разного размера/высоты --- */
.hx-visual { will-change: transform; }
.hx-visual--big  { width: 100%;  height: 64%; }
.hx-visual--mid  { width: 82%;   height: 58%; }
.hx-visual--sm   { width: 74%;   height: 52%; }
.hx-visual--tall { width: 74%;   height: 78%; }
.hx-visual--low    { align-self: flex-end; }
.hx-visual--raised { align-self: flex-start; margin-top: -3%; }

/* --- сгенерированная иллюстрация в слоте (Vertex/Nano Banana) --- */
.hx-illus {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hx-illus img {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.hx-illus figcaption {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.25;
  color: var(--ink-soft);
}
.hx-illus figcaption b { color: var(--red); font-size: 1.35em; letter-spacing: -0.01em; }

/* --- illustration-band: крупная фирменная иллюстрация в обычной секции --- */
.ill-band {
  margin: clamp(36px, 5vw, 72px) 0 0;
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
}
.ill-band img { width: 100%; height: auto; display: block; }
.ill-band figcaption {
  padding: 16px clamp(18px, 2vw, 28px);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(12px, 1vw, 15px);
  color: var(--ink-soft);
}
.ill-band figcaption b { color: var(--red); }

/* --- data-metric card (заменяет визуал-плейсхолдеры) --- */
.hx-metric {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: clamp(24px, 2.4vw, 40px);
  border: 1px solid var(--line);
  background: var(--bg-2);
}
.hx-metric__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 5vw, 96px);
  line-height: 0.82;
  color: var(--red);
  letter-spacing: -0.01em;
}
.hx-metric__big .u { color: var(--ink); font-size: 0.42em; }
.hx-metric__cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
  max-width: 26ch;
}
.hx-metric__row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink);
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1;
}
.hx-metric__row .was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); }
.hx-metric__row .arr { color: var(--red); }

/* --- закрывающая панель-стат --- */
.hx-panel--stat {
  width: clamp(560px, 62vw, 940px);
  align-items: center;
  gap: clamp(30px, 4vw, 80px);
}
.hx-stat { flex: 1 1 auto; will-change: transform; }
.hx-stat__big {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(180px, 26vw, 460px);
  line-height: 0.76;
  color: var(--ink);
  letter-spacing: -0.02em;
  will-change: transform;
}
.hx-stat__x { color: var(--red); }
.hx-stat__cap {
  margin-top: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: clamp(14px, 1.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  line-height: 1.4;
}
.hx-stat__ph { color: var(--red); }
.hx-stat__side {
  flex: 0 0 clamp(200px, 24vw, 360px);
  height: 62%;
  align-self: center;
  will-change: transform;
}

/* --- reduced-motion / mobile: вертикальный стек --- */
.hscroll.is-stacked { overflow: visible; }
.hscroll.is-stacked .hscroll__track {
  flex-direction: column;
  width: 100%;
  height: auto;
}
.hscroll.is-stacked .hx-panel {
  width: 100% !important;
  height: auto;
  min-height: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  padding-block: 56px;
  gap: 34px;
}
.hscroll.is-stacked .hx-panel--quote { align-items: flex-start; }
.hscroll.is-stacked .hx-visual { width: 100%; height: auto; aspect-ratio: 16/9; align-self: auto; margin-top: 0; }
.hscroll.is-stacked .hx-stat__side { width: 100%; height: auto; aspect-ratio: 4/3; }
.hscroll.is-stacked .hx-stat__big { font-size: clamp(120px, 34vw, 260px); }

.hscroll__intro {
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  left: var(--gutter);
  z-index: 3;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* =====================================================================
   COMPARISON TABLE
   ===================================================================== */
.cmp {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}
.cmp th, .cmp td {
  padding: 20px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: middle;
}
.cmp thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.cmp thead th.cmp-us { color: var(--red); }
.cmp td.cmp-row-label {
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cmp td.cmp-us {
  background: var(--red);
  color: #fff;
  font-weight: 600;
}
.cmp td { color: var(--ink-soft); }

/* =====================================================================
   CLIENTS — 3D rotating drum of client-niche plates (articul-style)
   Left: giant «КЛИЕНТЫ» + «12+». Right: cylinder of plates in perspective,
   spinning continuously around the Y axis. Plate depth via opacity/scale.
   ===================================================================== */
.clients {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(40px, 6vw, 80px);
}
.clients__inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}
.clients__head { position: relative; z-index: 2; }
.clients__eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--red); margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.clients__eyebrow::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--red);
}
.clients__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(38px, 5vw, 78px);
  line-height: 0.86;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 15ch;
}
.clients__count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  color: var(--red);
  line-height: 1;
  margin-top: 8px;
  padding-left: 4px;
  border-left: 3px solid var(--red);
  padding-left: 16px;
}
.clients__note {
  margin-top: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); max-width: 22ch;
}

/* X-stage — два фиксированных SVG-эллипса крестом; бежит только текст */
.clients__stage {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: clamp(340px, 42vw, 600px);
}
.clients-x {
  width: 100%;
  height: clamp(360px, 44vw, 620px);
  max-width: 640px;
  overflow: visible;
  display: block;
}
.cx-hairline {
  fill: none;
  stroke: rgba(36,36,36,0.26);
  stroke-width: 1.4;
}
.cx-run {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  fill: var(--ink);
}
.cx-run .cx-red { fill: var(--red); }

@media (max-width: 860px) {
  .cx-run { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-x animate { display: none; }
}

/* =====================================================================
   SERVICE / CASE CARDS  (kost bracket-label card)
   ===================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.svc-card {
  border: 1px solid var(--ink);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
/* thin red accent line that grows on hover */
.svc-card::after {
  content: ''; position: absolute; left: 0; bottom: -1px;
  height: 3px; width: 0; background: var(--red);
  transition: width .45s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(36,36,36,0.10);
}
.svc-card:hover::after { width: 100%; }
.svc-card__media {
  position: relative;
  aspect-ratio: 5 / 3;
  border-bottom: 1px solid var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 22px 22px;
  background: var(--bg-2);
}
.svc-card__delta {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.85;
  font-size: clamp(40px, 4.6vw, 68px);
  letter-spacing: -0.02em;
  color: var(--red);
}
.svc-card__delta span { font-size: 0.32em; color: var(--ink-soft); display: block; letter-spacing: 0.1em; margin-top: 6px; }
.svc-card__cpl {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  font-size: clamp(16px, 1.7vw, 22px);
  color: var(--ink-soft);
}
.svc-card__cpl .was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--red); }
.svc-card__cpl .arr { color: var(--ink); font-size: 0.8em; }
.svc-card__cpl-k {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.svc-card__body {
  padding: 26px 24px 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.svc-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  text-transform: uppercase;
  line-height: 0.95;
  color: var(--ink);
}
.svc-card__desc { font-size: 14px; color: var(--ink-soft); }
.svc-card__rule { width: 60px; height: 1px; background: var(--line); }
.svc-card__foot { margin-top: auto; padding-top: 8px; }

/* =====================================================================
   DEMO / product story / sprint blocks (editorial split)
   ===================================================================== */
.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}
.split-2--top { align-items: start; }
.big-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(36px, 5.5vw, 82px);
  line-height: 0.88;
  color: var(--ink);
}
.big-h2 .accent { color: var(--red); }
.body-copy { font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.body-copy + .body-copy { margin-top: 16px; }

/* section heading — sits between sec-label and content */
.sec-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 74px);
  line-height: 0.9;
  color: var(--ink);
  max-width: 16ch;
  margin-bottom: clamp(34px, 4.5vw, 60px);
}
.sec-h2 .accent { color: var(--red); }

/* product story timeline */
.story-list { border-top: 1px solid var(--line); }
.story-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.story-item__n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 54px;
  color: var(--red);
  line-height: 0.9;
}
.story-item h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.story-item p { font-size: 15px; color: var(--ink-soft); }

/* sprint / format */
.sprint-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--ink);
}
.sprint-cell { padding: 40px 34px; }
.sprint-cell:first-child { border-right: 1px solid var(--ink); }
.sprint-cell h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 38px);
  text-transform: uppercase;
  color: var(--ink);
  line-height: 0.95;
  margin-bottom: 14px;
}
.sprint-cell h3 .accent { color: var(--red); }
.sprint-cell p { font-size: 15px; color: var(--ink-soft); }

/* =====================================================================
   FAQ ACCORDION
   ===================================================================== */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
  width: 100%;
  background: none; border: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 28px 4px;
  text-align: left;
}
.accordion__q {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 34px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--ink);
}
.accordion__item.is-open .accordion__q { color: var(--red); }
.accordion__icon {
  position: relative; width: 22px; height: 22px; flex-shrink: 0;
}
.accordion__icon::before, .accordion__icon::after {
  content: ''; position: absolute; background: var(--ink);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.accordion__icon::before { top: 10px; left: 0; width: 22px; height: 2px; }
.accordion__icon::after  { left: 10px; top: 0; width: 2px; height: 22px; }
.accordion__item.is-open .accordion__icon::after { transform: scaleY(0); }
.accordion__item.is-open .accordion__icon::before { background: var(--red); }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.accordion__body-inner { padding: 0 4px 30px; max-width: 720px; font-size: 16px; color: var(--ink-soft); }

/* =====================================================================
   FINAL CTA + FORM
   ===================================================================== */
.cta-final { background: var(--ink); color: var(--bg); }
.cta-final .big-h2 { color: var(--bg); }
.cta-final .big-h2 .accent { color: var(--red); }
.cta-final .body-copy { color: rgba(241,240,236,0.7); }

.form {
  display: grid;
  gap: 14px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 7px;
}
.field input, .field select {
  width: 100%;
  padding: 15px 16px;
  border-radius: 0;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
}
.cta-final .field input, .cta-final .field select {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--bg);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-actions { margin-top: 6px; }
.form.is-sent { display: none; }
.form-success {
  display: none;
  padding: 30px;
  border: 1px solid var(--red);
  text-align: center;
}
.form-success.is-visible { display: block; }
.form-success h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 32px;
  text-transform: uppercase; color: var(--red); margin-bottom: 8px;
}

/* =====================================================================
   POPUP
   ===================================================================== */
.popup-backdrop {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(36,36,36,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.popup-backdrop.is-open { opacity: 1; visibility: visible; }
.popup-card {
  position: relative;
  width: 100%; max-width: 520px;
  background: var(--white);
  border-radius: 0;
  padding: clamp(30px, 4vw, 48px);
}
.popup-card__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: none; border: 1px solid var(--line);
  font-size: 16px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.popup-card__close:hover { border-color: var(--red); color: var(--red); }
.popup-card h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  text-transform: uppercase; color: var(--red);
  line-height: 0.9; margin-bottom: 10px;
}
.popup-card .popup-sub {
  font-size: 14px; color: var(--ink-soft); margin-bottom: 22px;
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding-block: 60px 40px;
}
.footer-top {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.footer-brand .wordmark { justify-self: start; }
.footer-slogan { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 280px; }
.footer-cols { display: flex; gap: clamp(40px, 8vw, 100px); flex-wrap: wrap; }
.footer-col h5 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.footer-col a, .footer-col span {
  display: block; font-size: 14px; color: var(--ink-soft); margin-bottom: 8px;
}
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px;
  font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .prob-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header-inner { grid-template-columns: auto auto; }
  .nav-brackets, .header-socials { display: none; }
  .burger { display: flex; }
  .wordmark { justify-self: start; }
  .tri-grid { grid-template-columns: 1fr; }
  .tri-card:not(:last-child) { border-right: 0; }
  .split-2 { grid-template-columns: 1fr; }
  .sprint-grid { grid-template-columns: 1fr; }
  .sprint-cell:first-child { border-right: 0; border-bottom: 1px solid var(--ink); }
  .story-item { grid-template-columns: 60px 1fr; gap: 16px; }
  .cmp thead th { font-size: 15px; }
  .cmp th, .cmp td { padding: 14px 10px; font-size: 13px; }
}
@media (max-width: 860px) {
  .clients__inner { grid-template-columns: 1fr; text-align: left; }
  .clients__stage { height: clamp(280px, 60vw, 380px); }
}
@media (max-width: 640px) {
  /* flat grid mode is applied by JS; keep plates compact + contained */
  .clients--flat .clients__ring { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .clients--flat .clients__plate { height: 60px; font-size: 15px; }
}
@media (max-width: 640px) {
  .prob-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero-tags { justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}

/* =====================================================================
   BROWSER / DEVICE MOCKUP — рамка для реальных скринов кабинета
   ===================================================================== */
.mockup {
  border: 1px solid var(--ink);
  background: #fff;
  box-shadow: 0 22px 50px rgba(36,36,36,0.14);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.mockup__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.mockup__dot:nth-child(1) { background: var(--red); }
.mockup__url {
  margin-left: 12px; flex: 1;
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted); text-transform: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mockup__shot { display: block; width: 100%; height: auto; }
.mockup--clip .mockup__shot { max-height: 460px; object-fit: cover; object-position: top; }

/* ---- PRODUCT GALLERY: сетка реальных экранов кабинета ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}
.gallery__item { display: flex; flex-direction: column; gap: 16px; }
.gallery__item--wide { grid-column: 1 / -1; }
/* единая высота всех обычных карточек галереи — в сетку, без разнобоя */
.gallery__item:not(.gallery__item--wide) .mockup__shot {
  height: clamp(210px, 24vw, 320px);
  object-fit: cover;
  object-position: top center;
}
.gallery__cap {
  display: flex; align-items: baseline; gap: 12px;
}
.gallery__cap-n {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--red); line-height: 1;
}
.gallery__cap-t {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 1.7vw, 24px);
  text-transform: uppercase; color: var(--ink); line-height: 1;
}
.gallery__cap-d {
  font-family: var(--font-body); font-size: 13px; color: var(--muted);
}
.gallery__wide-inner { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: clamp(20px,3vw,40px); align-items: center; }
.gallery__wide-copy .big-h2 { font-size: clamp(30px, 3.4vw, 50px); }
.gallery__wide-copy p { margin-top: 18px; }

@media (max-width: 860px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__wide-inner { grid-template-columns: 1fr; }
}

/* =====================================================================
   SVG-СХЕМЫ (kost-эстетика: острые формы, красный + тёмный)
   ===================================================================== */
.scheme { width: 100%; height: auto; display: block; overflow: visible; }
.scheme-wrap { margin-top: clamp(34px, 4.5vw, 56px); }

/* поток данных → деньги */
.dataflow { max-width: 100%; }
.df-node { fill: #fff; stroke: var(--ink); stroke-width: 1.4; }
.df-node--red { fill: var(--red); stroke: var(--red); }
.df-node--ink { fill: var(--ink); stroke: var(--ink); }
.df-label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; fill: var(--ink); font-size: 15px; }
.df-label--on { fill: #fff; }
.df-sub { font-family: var(--font-body); font-size: 10px; fill: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.df-arrow { stroke: var(--ink); stroke-width: 1.6; marker-end: url(#df-head); }
.df-arrow--red { stroke: var(--red); }
.df-stagelabel { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; fill: var(--red); font-size: 12px; letter-spacing: 0.12em; }

/* процесс 4 шага */
.flow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--ink); margin-top: clamp(34px, 4.5vw, 56px);
}
.flow-step { position: relative; padding: clamp(24px,2.6vw,36px) clamp(20px,2vw,28px); border-right: 1px solid var(--line); overflow: hidden; }
.flow-step:last-child { border-right: 0; }
.flow-step__svg { width: 44px; height: 44px; margin-bottom: 20px; }
.flow-step__ic { fill: none; stroke: var(--red); stroke-width: 2; }
.flow-step__n {
  position: absolute; top: 10px; right: 16px;
  font-family: var(--font-display); font-weight: 700; font-size: 58px;
  color: rgba(36,36,36,0.06); line-height: 1;
}
.flow-step h4 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(20px,1.8vw,26px);
  text-transform: uppercase; color: var(--ink); line-height: 0.95; margin-bottom: 12px;
}
.flow-step p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.flow-step__arrow {
  position: absolute; right: -9px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; z-index: 2; color: var(--red);
}
.flow-step:last-child .flow-step__arrow { display: none; }
@media (max-width: 860px) {
  .flow-grid { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(2) { border-right: 0; }
  .flow-step:nth-child(1), .flow-step:nth-child(2) { border-bottom: 1px solid var(--line); }
  .flow-step__arrow { display: none; }
}
@media (max-width: 520px) {
  .flow-grid { grid-template-columns: 1fr; }
  .flow-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .flow-step:last-child { border-bottom: 0; }
}

/* before/after CPL — визуальные столбики */
.cpl-bars {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: end;
  gap: clamp(24px, 4vw, 60px);
  border: 1px solid var(--ink); padding: clamp(30px,4vw,52px) clamp(24px,4vw,56px);
  margin-top: clamp(34px, 4.5vw, 56px);
}
.cpl-col { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.cpl-col__k { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.cpl-bar {
  width: clamp(90px, 16vw, 190px);
  background: var(--ink);
}
.cpl-bar--after { background: var(--red); }
.cpl-bar__v {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(26px,3vw,44px);
  white-space: nowrap; color: var(--ink); line-height: 1;
}
.cpl-bar__v--after { color: var(--red); }
.cpl-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 24px; }
.cpl-mid__arr { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px,4vw,56px); color: var(--red); line-height: 1; }
.cpl-mid__delta { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,2vw,26px); color: var(--red); }
.cpl-mid__cap { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 640px) {
  .cpl-bars { padding: 40px 20px 28px; gap: 14px; }
  .cpl-bar__v { font-size: 22px; top: -28px; }
}

/* comparison matrix — визуальная, акцент на нашу колонку */
.matrix {
  border: 1px solid var(--ink); margin-top: clamp(34px, 4.5vw, 56px);
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
}
.mx-cell { padding: 18px 20px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; }
.mx-cell:nth-child(4n) { border-right: 0; }
.matrix > .mx-cell:nth-last-child(-n+4) { border-bottom: 0; }
.mx-head { font-family: var(--font-display); font-weight: 700; font-size: clamp(18px,1.8vw,26px); text-transform: uppercase; color: var(--ink); background: var(--bg-2); }
.mx-row-label { font-family: var(--font-body); font-weight: 600; color: var(--ink); font-size: 14px; }
.mx-us { background: rgba(224,47,29,0.05); border-right: 1px solid var(--red); color: var(--ink); font-weight: 600; }
.mx-head.mx-us { color: var(--red); background: rgba(224,47,29,0.09); }
.matrix > .mx-us:nth-child(4n) { border-right: 1px solid var(--red); }
.mx-us::first-line { font-weight: 600; }
.mx-dash { color: var(--muted); }
@media (max-width: 720px) {
  .matrix { grid-template-columns: 1fr; }
  .mx-cell { border-right: 0 !important; }
  .matrix .mx-head:not(.mx-row-label) { display: none; }
  .mx-cell::before {
    content: attr(data-col); display: inline-block; min-width: 108px;
    font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
    color: var(--muted); font-size: 12px; margin-right: 10px;
  }
  .mx-row-label { background: var(--ink); color: var(--bg); font-family: var(--font-display); text-transform: uppercase; }
  .mx-row-label::before { content: none; }
}
