﻿/* ==========================================================================
   Softfabric — автоматизация автобизнеса
   Реализация макета Claude Design «Автобизнес - лендинг.dc.html».
   Инлайновые стили макета вынесены в токены и классы.
   ========================================================================== */

/* --- Токены ------------------------------------------------------------- */

:root {
  /* Настраивается из app.js (свойства макета «Фон» / «Контент»). */
  --acc: #3ED07A;                                        /* акцент на тёмном */
  --acc-ink: color-mix(in oklab, var(--acc), #06210F 45%); /* акцент на светлом */
  --carop: .6;                                           /* прозрачность контуров авто */

  --ink: #0C1116;        /* тёмный фон секций */
  --ink-panel: #131A21;  /* карточка на тёмном */
  --ink-solid: #12181D;  /* сплошная тёмная плашка на светлом */
  --paper: #F3F4F2;      /* светлый фон секций */
  --white: #FFFFFF;

  --on-dark: #E7ECF1;
  --on-dark-hi: #F2F5F8;
  --on-dark-1: #DCE3E9;
  --on-dark-2: #D4DCE3;
  --on-dark-3: #C9D3DB;
  --on-dark-4: #B6C1CB;
  --on-dark-mut: #9FAAB4;
  --on-dark-mut-2: #8A949E;
  --on-dark-mut-3: #79848F;
  --on-dark-mut-4: #7C8894;
  --on-dark-mut-5: #66717C;

  --on-light: #12181D;
  --on-light-1: #2A333B;
  --on-light-2: #4A555F;
  --on-light-3: #5A6670;
  --on-light-mut: #6B7681;
  --on-light-mut-2: #98A2AC;

  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(18, 24, 29, .1);

  --shell: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 16px;

  --sans: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* --- База --------------------------------------------------------------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--on-light);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
input, textarea, select { font: inherit; }

a { color: var(--acc-ink); text-decoration: none; }
a:hover { color: color-mix(in oklab, var(--acc-ink), #000 22%); }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes dashflow { to { stroke-dashoffset: -200; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* --- Каркас секций ------------------------------------------------------ */

.wrap {
  position: relative;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.sec {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 124px) 0;
}

.sec--dark { background: var(--ink); color: var(--on-dark); }
.sec--paper { background: var(--paper); }
.sec--tight-top { padding-top: 0; }

/* Фоновый паттерн с контурами авто. Смещение задаётся через --bgpos. */
.sec__bg {
  position: absolute;
  inset: 0;
  background-position: var(--bgpos, 0 0);
  background-size: 1400px 600px;
  background-repeat: repeat;
  opacity: var(--carop);
  pointer-events: none;
}

.sec--dark .sec__bg { background-image: url("./assets/car-lines-light.svg"); }
.sec--paper .sec__bg { background-image: url("./assets/car-lines-dark.svg"); }

/* --- Типографика -------------------------------------------------------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-light-mut);
}
.eyebrow--acc { color: var(--acc); }
.eyebrow--dark { color: var(--on-dark-mut-3); }

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-light-mut);
}
.label--acc { color: var(--acc); }
.label--acc-ink { color: var(--acc-ink); }
.label--dark { color: var(--on-dark-mut-3); }

.h1 {
  font-size: clamp(38px, 5.6vw, 80px);
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 800;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.08;
  letter-spacing: -.02em;
  font-weight: 800;
}

.lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--on-dark-mut);
}
.sec--paper .lead { color: var(--on-light-3); }

/* Крупное утверждение, закрывающее секцию. */
.kicker {
  margin-top: clamp(40px, 5vw, 64px);
  font-size: clamp(24px, 2.9vw, 40px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 800;
}
.kicker__mut { color: var(--on-light-mut); }
.kicker__acc { color: var(--acc-ink); }
.sec--dark .kicker__acc { color: var(--acc); }

.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-26 { margin-top: 26px; }

/* --- Кнопки и ссылки-кнопки --------------------------------------------- */

.btn {
  display: inline-block;
  border: none;
  border-radius: 10px;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: background .16s, color .16s, border-color .16s;
}

.btn--acc { background: var(--acc); color: var(--ink); }
.btn--acc:hover { background: color-mix(in oklab, var(--acc), #FFF 16%); color: var(--ink); }

.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--on-dark);
  font-weight: 600;
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, .45); color: var(--on-dark-hi); }

.btn--sm { padding: 10px 16px; border-radius: 8px; font-size: 13.5px; white-space: nowrap; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { width: 100%; padding: 16px 24px; font-size: 16px; }

/* --- Шапка -------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 17, 22, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.nav__inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 11px var(--gutter);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px 28px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.brand__name { color: var(--on-dark-hi); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.brand__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-mut-4);
  white-space: nowrap;
}

/* Подпись бренда набрана в одну строку и не сжимается, поэтому ниже ~960px
   она выходит из своего флекс-контейнера и наезжает на ссылки. Там, где на неё
   не хватает места, убираем её: тот же текст есть в подвале. */
@media (max-width: 959px) {
  .brand__tag { display: none; }
}

.nav__links {
  display: flex;
  gap: 12px 22px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav__link { color: var(--on-dark-4); font-size: 13.5px; font-weight: 500; }
.nav__link:hover { color: var(--on-dark-hi); }

/* На узких экранах ссылки переносятся в несколько строк и шапка вырастает
   до ~130px. Липкой она там быть не должна — иначе съедает шестую часть экрана. */
@media (max-width: 719px) {
  .nav { position: static; }
}

/* --- Первый экран ------------------------------------------------------- */

.hero { padding: clamp(64px, 7vw, 104px) 0 clamp(56px, 6vw, 84px); }

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 420px at 18% 0%, rgba(255, 255, 255, .05), transparent 70%);
  pointer-events: none;
}

.hero__eyebrow { margin-bottom: 26px; }
.hero__title--a { max-width: 17ch; }
.hero__title--b { max-width: 19ch; }
.hero__title-acc { color: var(--acc); }
.hero__lead { margin-top: 28px; max-width: 62ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Цепочка «поставщик → … → маржа» под первым экраном. */
.chain { margin-top: clamp(48px, 6vw, 80px); position: relative; }

.chain__cap {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
  position: relative;
}

.chain__cap-label {
  position: absolute;
  left: 50%;
  top: -9px;
  transform: translateX(-50%);
  background: var(--ink);
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acc);
  white-space: nowrap;
}

.chain__rail { position: relative; border-top: 1px solid rgba(255, 255, 255, .14); }

/* Бегущий пунктир поверх линии. */
.flowline {
  position: absolute;
  left: 0;
  top: -1.5px;
  width: 100%;
  height: 3px;
  overflow: visible;
}
.flowline line {
  stroke: var(--acc);
  stroke-width: 2.5;
  stroke-dasharray: 70 160;
  animation: dashflow 3.4s linear infinite;
}

.chain__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(126px, 1fr)); }
.chain__item { padding: 22px 14px 4px 0; }
/* Маркер, номер и название — span'ы: без display:block ромб схлопывается
   по ширине в ноль, а номер с названием встают в одну строку. */
.chain__dot {
  display: block;
  width: 7px; height: 7px;
  background: var(--acc);
  transform: rotate(45deg);
  margin: -25px 0 18px;
}
.chain__num { display: block; font-family: var(--mono); font-size: 10px; color: var(--on-dark-mut-5); letter-spacing: .1em; }
.chain__name { display: block; font-size: 13.5px; font-weight: 600; color: var(--on-dark-1); margin-top: 5px; }
.chain__note { margin-top: 18px; font-size: 14px; color: var(--on-dark-mut-3); max-width: 70ch; }

/* --- «Один обычный рабочий день» ---------------------------------------- */

.daygrid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1px;
  background: rgba(18, 24, 29, .12);
}

.daycard { background: var(--white); padding: 28px 26px 30px; }
.daycard__time {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 500;
  color: var(--acc-ink);
  letter-spacing: -.02em;
}
.daycard__p { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--on-light-1); }
.daycard__p--strong { margin-top: 10px; font-weight: 700; color: var(--on-light); }

/* --- «Какая у вас конфигурация» vs «как проходит заказ» ----------------- */

.compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.compare__col { border-left: 2px solid rgba(255, 255, 255, .14); padding-left: 24px; }
.compare__col--acc { border-left-color: var(--acc); }

.compare__q {
  margin-top: 18px;
  font-size: clamp(21px, 2.3vw, 32px);
  line-height: 1.2;
  font-weight: 600;
  color: var(--on-dark-mut-2);
}
.compare__col--acc .compare__q { font-weight: 700; color: var(--on-dark-hi); }

/* --- Теги предметной области -------------------------------------------- */

.chips { margin-top: clamp(36px, 4vw, 56px); display: flex; flex-wrap: wrap; gap: 10px; }

.chip {
  border: 1px solid rgba(18, 24, 29, .16);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  background: rgba(255, 255, 255, .6);
}

.quote-card {
  margin-top: clamp(44px, 5vw, 72px);
  background: var(--ink-solid);
  color: var(--on-dark-hi);
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 54px);
}
.quote-card__p {
  font-size: clamp(24px, 2.9vw, 42px);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 800;
  max-width: 28ch;
}

/* --- Этапы процесса (табы) ---------------------------------------------- */

.stages { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-dark); padding-top: 22px; }

.stages__flow { display: block; width: 100%; height: 2px; margin: -23px 0 21px; overflow: visible; }

.stages__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 8px; }

.stage-btn {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  cursor: pointer;
  padding: 12px 12px 14px;
  border-radius: 10px;
  min-width: 0;
  text-align: left;
  transition: background .18s, color .18s, border-color .18s;
  border: 1px solid var(--line-dark);
  background: rgba(255, 255, 255, .03);
  color: var(--on-dark-3);
}
.stage-btn:hover { border-color: rgba(255, 255, 255, .3); color: var(--on-dark-hi); }
.stage-btn[aria-selected="true"] {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--ink);
}
.stage-btn__num { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; opacity: .75; }
/* «Ценообразование» и «Финрезультат» шире колонки. Рвать их посреди слова без
   знака переноса нечитаемо, поэтому переносим по слогам с дефисом. */
.stage-btn__name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  /* Кнопка — флекс-колонка с align-items:flex-start, поэтому название
     сжимается по контенту и «Ценообразование» вылезает на соседнюю кнопку.
     Растягиваем на ширину кнопки и переносим по слогам. */
  align-self: stretch;
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

.stage-panel {
  margin-top: 26px;
  background: var(--ink-panel);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius);
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.stage-panel__title { margin-top: 12px; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.1; letter-spacing: -.02em; font-weight: 800; }
.stage-panel__lead { margin-top: 16px; font-size: 15.5px; line-height: 1.55; color: var(--on-dark-mut); max-width: 44ch; }

.bullets {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 9px 18px;
}
.bullets li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--on-dark-2);
}
.bullets li::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--acc);
  transform: rotate(45deg);
  margin-top: 7px;
  flex: none;
}

.effect { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 18px; }
.effect__p { margin-top: 10px; font-size: 17px; line-height: 1.4; font-weight: 700; color: var(--on-dark-hi); max-width: 40ch; }

/* --- Таблица поставщиков ------------------------------------------------ */

.toggle {
  margin-top: 28px;
  display: inline-flex;
  flex-wrap: wrap;           /* два длинных заголовка не помещаются в строку на узких экранах */
  max-width: 100%;
  background: rgba(18, 24, 29, .07);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

.toggle__btn {
  border: none;
  border-radius: 8px;
  padding: 11px 18px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  color: var(--on-light-3);
  transition: background .16s, color .16s;
}
.toggle__btn[aria-pressed="true"] { background: var(--ink-solid); color: var(--on-dark-hi); }

.table-card {
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.ptable { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 680px; }
.ptable thead tr { background: rgba(18, 24, 29, .04); }
.ptable th {
  text-align: left;
  padding: 14px 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--on-light-mut);
  font-weight: 500;
}
.ptable th:first-child, .ptable td:first-child { padding-left: 20px; }
.ptable th:last-child, .ptable td:last-child { padding-right: 20px; }
.ptable td { padding: 16px 12px; }
.ptable tbody tr { border-top: 1px solid rgba(18, 24, 29, .08); transition: background .18s, opacity .18s; }

/* Суммы и проценты не переносим: «1 240» и «₴» на разных строках читаются
   как ошибка. Если ширины не хватает, таблица прокручивается в .table-scroll. */
.num { text-align: right; font-family: var(--mono); white-space: nowrap; }
.ptable th.num { text-align: right; }

.ptable__name { font-weight: 700; }
.ptable__tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--on-light-mut);
  margin-top: 4px;
  min-height: 1em;
}

/* Подсветка строк включается только в автоматизированном сценарии. */
.ptable tbody tr.is-fast { background: color-mix(in srgb, var(--acc) 10%, transparent); }
.ptable tbody tr.is-best { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.ptable tbody tr.is-dim { opacity: .45; }

.table-note {
  border-top: 1px solid rgba(18, 24, 29, .08);
  padding: 20px;
  background: rgba(18, 24, 29, .03);
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--on-light-1);
}

/* --- Магазин / СТО ------------------------------------------------------ */

.dual {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 42px);
}

.card__title { margin-top: 16px; max-width: 22ch; }
.card__p { margin-top: 26px; font-size: 16px; line-height: 1.5; color: var(--on-light-1); max-width: 46ch; }

.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--mono);
  font-size: 12.5px;
  background: rgba(18, 24, 29, .05);
  border-radius: 6px;
  padding: 7px 11px;
}

.flowlist { margin-top: 24px; display: grid; }
.flowlist li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid rgba(18, 24, 29, .07);
}
.flowlist li:last-child { border-bottom: none; }
.flowlist__num { font-family: var(--mono); font-size: 10.5px; color: var(--on-light-mut-2); width: 22px; flex: none; }
.flowlist li.is-acc .flowlist__num { color: var(--acc-ink); }
.flowlist__name { font-size: 15px; font-weight: 600; }

.card__closer { margin-top: 26px; font-size: 19px; line-height: 1.35; font-weight: 800; max-width: 30ch; }

/* --- Маркетинг ---------------------------------------------------------- */

.mkt-grid {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px;
}

.mkt-card { border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; padding: 28px; }
.mkt-card--acc { border-color: var(--acc); background: rgba(255, 255, 255, .03); }
.mkt-card__h { margin-top: 16px; font-size: 22px; line-height: 1.25; font-weight: 700; color: var(--on-dark-mut-2); }
.mkt-card--acc .mkt-card__h { color: var(--on-dark-hi); }
.mkt-card__p { margin-top: 12px; font-size: 14.5px; line-height: 1.5; color: var(--on-dark-mut-3); }
.mkt-card--acc .mkt-card__p { color: var(--on-dark-mut); }

.subsec {
  margin-top: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(40px, 5vw, 64px);
}
.subsec__h { font-size: clamp(24px, 2.8vw, 40px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800; max-width: 26ch; }

.reuse-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.reuse-cell { background: var(--ink); padding: 24px 22px; }
.reuse-cell__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc); }
.reuse-cell__p { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--on-dark-2); }

.note-strong { margin-top: 24px; font-size: 17px; line-height: 1.45; font-weight: 700; color: var(--on-dark-hi); }

/* --- До / после --------------------------------------------------------- */

.beforeafter {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}

.ba-card { background: rgba(18, 24, 29, .04); border-radius: var(--radius); padding: clamp(28px, 3vw, 40px); }
.ba-card--dark { background: var(--ink-solid); color: var(--on-dark-hi); }

.ba-card__role { margin-top: 24px; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; color: var(--on-light-1); }
.ba-card--dark .ba-card__role { color: var(--on-dark-mut); }

.ba-card__verbs {
  margin-top: 10px;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.35;
  font-weight: 600;
  color: var(--on-light-2);
}
.ba-card--dark .ba-card__verbs { color: var(--on-dark-hi); }

.ba-card__outcomes { margin-top: 28px; display: flex; gap: 32px; flex-wrap: wrap; }
.ba-card__outcome-role { font-size: 14.5px; font-weight: 700; color: var(--on-dark-mut); }
.ba-card__outcome { margin-top: 6px; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; }

/* --- Кейсы -------------------------------------------------------------- */

.cases {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 20px;
}

.case {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case__num { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--on-light-mut-2); }
.case__title { font-size: 20px; line-height: 1.2; font-weight: 800; }
.case__label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-light-mut-2); }
.case__p { margin-top: 7px; font-size: 15px; line-height: 1.45; color: var(--on-light-1); }
.case__result { margin-top: auto; border-top: 1px solid rgba(18, 24, 29, .09); padding-top: 16px; }
.case__result .case__label { color: var(--acc-ink); }
.case__value {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--on-light-mut);
  border: 1px dashed rgba(18, 24, 29, .25);
  border-radius: 7px;
  padding: 9px 11px;
}

/* --- Цифры и стек ------------------------------------------------------- */

.stats {
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .1);
}
.stat { background: var(--ink); padding: 26px 22px; }
.stat__num {
  font-family: var(--mono);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 500;
  letter-spacing: -.03em;
  color: var(--acc);
}
.stat__label { margin-top: 10px; font-size: 14px; line-height: 1.35; color: var(--on-dark-mut); }
.stat__label--strong { color: var(--on-dark-hi); font-weight: 700; }

.stats__note { margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--on-dark-mut-5); }

.stack-grid {
  margin-top: clamp(56px, 6vw, 88px);
  border-top: 1px solid var(--line-dark);
  padding-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
}
.stack-item__p { margin-top: 10px; font-size: 15.5px; line-height: 1.45; color: var(--on-dark-2); }

.stack-closer { margin-top: 32px; font-size: clamp(20px, 2.2vw, 30px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }

/* --- Шаги и форма ------------------------------------------------------- */

.steps {
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: rgba(18, 24, 29, .12);
}
.step { background: var(--paper); padding: 26px 24px 30px; }
.step:first-child { padding-left: 0; }
.step__num { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--acc-ink); }
.step__p { margin-top: 12px; font-size: 16.5px; line-height: 1.4; font-weight: 600; }

.form-card {
  margin-top: clamp(48px, 5vw, 72px);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 18px;
  padding: clamp(28px, 3.5vw, 52px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.form-card__h { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.06; letter-spacing: -.02em; font-weight: 800; max-width: 18ch; }
.form-card__p { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--on-light-3); max-width: 40ch; }
.form-card__fine { margin-top: 24px; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--on-light-mut); }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-light-mut); }

.input, .textarea {
  border: 1px solid rgba(18, 24, 29, .18);
  border-radius: 9px;
  padding: 13px 14px;
  font-size: 15px;
  background: var(--white);
  color: var(--on-light);
}
.textarea { resize: vertical; }
.input:focus-visible, .textarea:focus-visible { outline-offset: 1px; border-color: var(--acc-ink); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #C0392B; }

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--on-light-mut);
}
.consent__check {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--acc-ink);
}
.consent__check[aria-invalid="true"] { outline: 2px solid #C0392B; outline-offset: 2px; }
.consent a { color: var(--on-light-1); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--acc-ink); }

.type-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.type-chip {
  border-radius: 100px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .16s, color .16s, border-color .16s;
  border: 1px solid rgba(18, 24, 29, .18);
  background: var(--white);
  color: var(--on-light-1);
}
.type-chip:hover { border-color: rgba(18, 24, 29, .4); }
.type-chip[aria-checked="true"] { border-color: var(--acc); background: var(--acc); color: var(--ink); }

.form__error { font-size: 14px; line-height: 1.4; color: #C0392B; }

.sent {
  border: 1px solid var(--acc-ink);
  border-radius: 12px;
  padding: 28px;
  background: rgba(18, 24, 29, .03);
}
.sent__h { font-size: 19px; line-height: 1.35; font-weight: 800; }
.sent__p { margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--on-light-3); }

/* --- Финал и подвал ----------------------------------------------------- */

.final { padding: clamp(80px, 10vw, 140px) 0 0; }
.final__h { font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -.03em; font-weight: 800; max-width: 20ch; text-wrap: balance; }
.final__acc { color: var(--acc); }
.final__p { margin-top: 26px; max-width: 60ch; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: var(--on-dark-mut); }
.final__cta { margin-top: 34px; }

.footer-bar {
  margin-top: clamp(64px, 8vw, 110px);
  border-top: 1px solid var(--line-dark);
  padding: 26px 0 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: baseline;
}
.footer-bar__name { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.footer-bar__tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; color: var(--on-dark-mut-5); flex: 1; min-width: 200px; }
.footer-bar__chain { font-family: var(--mono); font-size: 11.5px; color: var(--on-dark-mut-5); }

/* --- Утилиты состояния -------------------------------------------------- */

[hidden] { display: none !important; }

.noscript-note {
  margin-top: 26px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 22px;
  color: var(--on-dark-2);
  font-size: 15px;
  line-height: 1.6;
}
