/* ==========================================================================
   kartashov.online — style.css
   Дизайн-система: .autopilot/…/reference.md (§3 палитра, §4 типографика, §5 сетка, §6 компоненты)
   ========================================================================== */

/* ---------- 0. Шрифты (свои, без fonts.googleapis.com) ----------
   Собраны tools/mkfonts.py: вариативные woff2 Google Fonts, по одному файлу
   на семейство+подмножество; unicode-range качает только нужное. */
/* Inter 400 — cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 400 — cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 400 — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 400 — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 500 — cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 500 — cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 500 — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 500 — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter 600 — cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Inter 600 — cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter 600 — latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter 600 — latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* JetBrains Mono 500 — cyrillic-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* JetBrains Mono 500 — cyrillic */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* JetBrains Mono 500 — latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono 500 — latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrainsmono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 700 — cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Unbounded 700 — cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 700 — latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Unbounded 700 — latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Unbounded 800 — cyrillic-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Unbounded 800 — cyrillic */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Unbounded 800 — latin-ext */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Unbounded 800 — latin */
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/assets/fonts/unbounded-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Токены ---------- */
:root {
  /* Основа */
  --bg:            #F3F4F2;   /* тёплый светло-серый, реф 1/2 */
  --bg-elevated:   #FFFFFF;   /* карточки */
  --bg-dark:       #0F1419;   /* hero, футер, CTA — реф 3 */
  --bg-dark-2:     #1A2027;   /* карточки на тёмном */

  /* Текст */
  --ink:           #111827;   /* основной */
  --ink-2:         #4B5563;   /* вторичный */
  --ink-3:         #9CA3AF;   /* лейблы, подписи */
  --ink-on-dark:   #F3F4F2;
  --ink-on-dark-2: #9AA3AD;

  /* Акцент */
  --accent:        #FF5A2D;   /* коралл, реф 1 */
  --accent-hover:  #E64A20;
  --accent-soft:   #FFE8E0;   /* фон бейджей */

  /* Второй оттенок — только на тёмном hero */
  --gold:          #C9A96A;   /* реф 3, для одного слова/цифр на тёмном */

  /* Линии */
  --line:          #D9DBD7;
  --line-dark:     #2A323B;

  /* Шрифты */
  --font-display: "Unbounded", "Manrope", "Arial Black", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Шкала §4 */
  --fs-display: clamp(64px, 9vw, 144px);
  --fs-h1:      clamp(40px, 5vw, 72px);
  --fs-h2:      clamp(32px, 3.5vw, 48px);
  --fs-h3:      24px;
  --fs-stat:    clamp(40px, 4vw, 56px);
  --fs-lead:    20px;
  --fs-body:    17px;
  --fs-small:   15px;
  --fs-eyebrow: 12px;
  --fs-num:     14px;

  /* Шаг отступов §5 */
  --s-4: 4px;  --s-8: 8px;  --s-12: 12px; --s-16: 16px; --s-24: 24px; --s-32: 32px;
  --s-48: 48px; --s-64: 64px; --s-96: 96px; --s-128: 128px; --s-160: 160px;

  /* Сетка */
  --container: 1280px;
  --gutter: 24px;
  --page-pad: 24px;
  --section-pad: var(--s-64);

  /* Радиусы */
  --r-card: 16px;
  --r-img: 12px;
  --r-pill: 999px;

  /* Движение */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-hover: 0 12px 32px rgba(17, 24, 39, .08);

  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --page-pad: 40px; --section-pad: var(--s-96); }
}
@media (min-width: 1280px) {
  :root { --page-pad: 64px; --section-pad: var(--s-128); }
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd, blockquote, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; }
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.01em; }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--accent-soft); color: var(--ink); }
::placeholder { color: var(--ink-2); opacity: 1; }
input, textarea { caret-color: var(--accent); }
html { scrollbar-color: var(--ink-3) var(--bg); }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  font-weight: 600;
}
.skip-link:focus-visible { top: 16px; outline-color: #fff; }

.container {
  width: min(100% - var(--page-pad) * 2, var(--container));
  margin-inline: auto;
}

/* ---------- 3. Компоненты ---------- */

/* Eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: var(--s-12);
}
.eyebrow__num { color: var(--accent); }
.section--dark .eyebrow, .hero .eyebrow { color: var(--ink-on-dark-2); }

/* Моно-номера 01, 02 */
.num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-num);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
  line-height: 1;
}

/* Кнопки-пилюли */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn__arrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  transition: transform .2s var(--ease);
}
.btn:hover .btn__arrow { transform: translate(2px, -2px); }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; }
.btn--secondary {
  height: 44px;
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--secondary:hover { border-color: var(--ink); }

.section--dark .btn--primary, .hero .btn--primary, .site-header .btn--primary, .plan--featured .btn--primary {
  background: var(--accent);
  color: var(--ink); /* #111827 на коралле — 6.6:1; белый давал 3.1:1 */
}
.section--dark .btn--primary:hover, .hero .btn--primary:hover, .site-header .btn--primary:hover, .plan--featured .btn--primary:hover {
  background: var(--accent-hover);
}
.hero .btn--secondary, .section--dark .btn--secondary, .plan--featured .btn--secondary {
  color: var(--ink-on-dark);
  border-color: var(--line-dark);
}
.hero .btn--secondary:hover, .section--dark .btn--secondary:hover { border-color: var(--ink-on-dark-2); }

/* Ghost-ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color .2s var(--ease), color .2s var(--ease);
}
.link-arrow > span { transition: transform .2s var(--ease); }
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow:hover > span { transform: translateX(2px); }
.link-arrow--back { color: var(--ink-2); }
.link-arrow--back:hover > span { transform: translateX(-2px); }

/* Карточка */
.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-32);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.card__link { margin-top: auto; }
.card__link:hover, .case:hover .link-arrow { color: var(--accent); }

/* Пилюли-теги */
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.pill--active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Счётчик */
.stat { padding: var(--s-24) 0; }
.stat__num {
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-on-dark-2);
  margin-bottom: var(--s-12);
}

/* Аккордеон */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__trigger {
  display: flex;
  align-items: center;
  gap: var(--s-24);
  width: 100%;
  padding: var(--s-24) 0;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  transition: color .2s var(--ease);
}
.accordion__trigger:hover { color: var(--accent); }
.accordion__trigger .num { flex: 0 0 40px; }
.accordion__title { flex: 1 1 auto; }
.accordion__icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: transform .3s var(--ease), border-color .2s var(--ease), background-color .2s var(--ease);
}
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger:hover .accordion__icon { border-color: var(--accent); }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.accordion__panel { display: none; padding: 0 0 var(--s-24); color: var(--ink-2); max-width: 64ch; }
.accordion--numbered .accordion__panel { padding-left: 64px; }
.accordion__item.is-open .accordion__panel { display: block; }
.accordion--numbered .accordion__trigger { font-family: var(--font-display); font-weight: 700; font-size: 22px; padding: 18px 0; }

/* Секции */
.section { padding: var(--section-pad) 0; }
.section--dark { background: var(--bg-dark); color: var(--ink-on-dark); }

.section-head { margin-bottom: var(--s-48); max-width: 760px; }
.section-head__text { margin-top: var(--s-24); color: var(--ink-2); max-width: 60ch; }
.section-head__row { display: flex; align-items: center; gap: var(--s-24); }
.section-head__row h2 { flex: 0 1 auto; }
.section-head__line { flex: 1 1 40px; height: 1px; background: var(--line); }
.section-head__row .link-arrow { flex: 0 0 auto; }
@media (max-width: 767.98px) {
  .section-head__row { flex-wrap: wrap; gap: var(--s-16); }
  .section-head__row h2 { flex-basis: 100%; }
  .section-head__line { display: none; }
}
.section-head--aside { margin-bottom: 0; }

/* Сетки */
.grid { display: grid; gap: var(--gutter); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. Шапка ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--ink-on-dark);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-scrolled {
  position: fixed;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--line-dark);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--s-24);
}
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--fs-small); }
.logo__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink-on-dark);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
}
.logo__mark i {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.site-nav { display: flex; align-items: center; gap: var(--s-32); }
.site-nav__list { display: flex; gap: var(--s-24); }
.site-nav__list a, .site-nav__extra a {
  display: inline-block;
  padding: 10px 0;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-on-dark-2);
  transition: color .2s var(--ease);
}
.site-nav__list a:hover, .site-nav__extra a:hover { color: var(--ink-on-dark); }
.site-nav__extra { display: none; }
.site-header .btn { height: 44px; padding: 0 22px; }

.nav-toggle {
  display: none;
  position: relative;
  z-index: 60;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
}
.nav-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1279.98px) { .logo__name { display: none; } }
@media (max-width: 1023.98px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--s-32);
    padding: 96px var(--page-pad) var(--s-48);
    background: var(--bg-dark);
    overflow-y: auto;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__list { flex-direction: column; gap: var(--s-12); }
  .site-nav__list a { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--ink-on-dark); }
  .site-nav__extra { display: flex; flex-direction: column; gap: var(--s-8); }
  .site-header .btn { height: 52px; padding: 0 28px; }
  .site-nav__cta { align-self: stretch; width: 100%; height: 52px; min-height: 52px; justify-content: center; }
}

/* ---------- 5. Hero ---------- */
.hero {
  --photo-h: clamp(420px, 40vw, 600px);
  position: relative;
  min-height: min(100vh, 900px);
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  overflow: hidden;
  display: flex;
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  padding-top: 112px;
}
.hero__word {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(var(--photo-h) * .72);
  z-index: 0;
  margin: 0;
  text-align: center;
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.03em;
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
}
.hero__word-line { display: block; }
.hero__word-line--gold { color: var(--gold); }
.hero__word-line--grad {
  background: linear-gradient(180deg, #fff 0%, #9AA3AD 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.hero__bottom {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 0 var(--s-32);
}
.hero__text { padding-bottom: var(--s-48); max-width: 460px; }
.hero__who {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-on-dark-2);
  margin-bottom: var(--s-16);
}
.hero__slash { color: var(--accent); margin: 0 4px; }
.hero__title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: var(--s-16);
  text-wrap: balance;
}
.hero__lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-on-dark-2); margin-bottom: var(--s-24); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: var(--s-24); }
.hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--ink-on-dark-2);
}
.hero__dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.hero__photo { width: calc(var(--photo-h) * .861); }
.hero__photo picture, .hero__photo img { width: 100%; height: auto; }

.hero__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  justify-self: end;
  width: 100%;
  max-width: 440px;
  margin-bottom: var(--s-48);
}
.hero__stats .stat { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-16) var(--s-16) var(--s-16) 20px; border-left: 1px solid var(--line-dark); }
.hero__stats .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
.hero__stats .stat:nth-child(-n+2) { padding-top: 0; }
.hero__stats .stat:nth-child(n+3) { padding-bottom: 0; }
.hero__stats .stat__label { margin: 0 0 var(--s-8); }
.hero__stats .stat__num { color: var(--ink-on-dark); font-size: 40px; }

@media (max-width: 1279.98px) {
  .hero { --photo-h: clamp(380px, 43vw, 560px); }
  .hero__word { text-align: right; bottom: calc(var(--photo-h) * .86); }
  .hero__bottom { grid-template-columns: minmax(0, 1.3fr) auto minmax(0, .9fr); }
  .hero__text { max-width: 360px; }
  .hero__lead { font-size: 16px; }
  .hero__stats { max-width: 220px; grid-template-columns: 1fr; margin-bottom: 40px; }
  .hero__stats .stat, .hero__stats .stat:nth-child(odd), .hero__stats .stat:nth-child(-n+2), .hero__stats .stat:nth-child(n+3) { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--line-dark); }
  .hero__stats .stat:first-child { border-top: 1px solid var(--line-dark); }
  .hero__stats .stat__num { font-size: 32px; }
}
@media (max-width: 1023.98px) {
  .hero { min-height: 0; }
  .hero__inner { padding-top: 120px; }
  .hero__word { position: relative; bottom: auto; text-align: left; }
  .hero__bottom {
    grid-template-columns: 1fr;
    padding-top: 0;
    margin-top: calc(var(--fs-display) * -1.7);
  }
  .hero__photo { --photo-h: clamp(320px, 72vw, 600px); justify-self: end; margin-right: calc(var(--page-pad) * -1); }
  .hero__lead { font-size: 17px; }
  .hero__text { order: 1; max-width: 560px; padding: var(--s-32) 0 var(--s-32); border-top: 1px solid var(--line-dark); }
  .hero__stats {
    order: 2;
    max-width: none;
    grid-template-columns: repeat(4, 1fr);
    justify-self: stretch;
    margin-bottom: var(--s-32);
  }
  .hero__stats .stat, .hero__stats .stat:nth-child(odd), .hero__stats .stat:nth-child(-n+2), .hero__stats .stat:nth-child(n+3) { padding: 0 var(--s-16); border: 0; border-left: 1px solid var(--line-dark); }
  .hero__stats .stat:first-child { padding-left: 0; border-left: 0; }
  .hero__stats .stat__num { font-size: 32px; }
}
@media (max-width: 767.98px) {
  /* §7: фото под словом — касается низа «& CRM», буквы «БИТРИКС» не закрывает */
  .hero__bottom { margin-top: calc(var(--fs-display) * -.25); }
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-24); }
  .hero__stats .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 479.98px) {
  /* 64px по §7; ниже 457px «БИТРИКС» в Unbounded 800 шире экрана, поэтому ужимаем до 14vw, чтобы слово не обрезалось */
  :root { --fs-display: min(64px, 14vw); }
  .hero__inner { padding-top: 104px; }
  .hero__word { font-size: min(64px, 14vw); }
  .hero__photo { --photo-h: 78vw; }
  .hero__title { font-size: 20px; }
  .hero__stats { grid-template-columns: 1fr; row-gap: 0; }
  .hero__stats .stat, .hero__stats .stat:nth-child(odd), .hero__stats .stat:nth-child(3), .hero__stats .stat:nth-child(-n+2), .hero__stats .stat:nth-child(n+3) { padding: var(--s-16) 0; border: 0; border-bottom: 1px solid var(--line-dark); }
  .hero__stats .stat:first-child { border-top: 1px solid var(--line-dark); }
  .hero__stats .stat__num { font-size: 36px; }
  .hero .btn { width: 100%; }
}

/* ---------- 6. Бегущая строка ---------- */
.marquee {
  background: var(--bg-dark);
  color: var(--ink-on-dark-2);
  border-top: 1px solid var(--line-dark);
  overflow: hidden;
  padding: 18px 0;
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; flex: 0 0 auto; }
.marquee__list li {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 20px;
}
.marquee__list li::after { content: "·"; color: var(--gold); padding-left: 20px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 7. Услуги ---------- */
.service { display: flex; flex-direction: column; min-height: 100%; }
.service .num { margin-bottom: var(--s-24); }
.service h3 { font-size: 20px; margin-bottom: var(--s-12); }
.service__desc { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-24); }
.service__list { font-size: var(--fs-small); border-top: 1px solid var(--line); margin-bottom: var(--s-24); }
.service__list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.service__list li::before { content: "—"; color: var(--accent); flex: 0 0 auto; }
.service__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-2); margin-bottom: var(--s-24); }
@media (min-width: 1280px) { .service h3 { min-height: 2.4em; } }

/* ---------- 8. Компетенции ---------- */
.skills { display: grid; gap: var(--s-48); }
.skills .pills { margin-top: var(--s-32); }
@media (min-width: 1024px) {
  .skills { grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
  .skills .section-head { padding-right: var(--s-24); }
}
@media (min-width: 1280px) {
  .skills .accordion { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s-48); align-items: start; }
  .accordion--numbered .accordion__trigger { font-size: 20px; }
  .accordion--numbered .accordion__panel { padding-left: 56px; }
}

/* ---------- 9. Почему я ---------- */
.why { padding: 0; display: grid; overflow: hidden; }
.why:hover { transform: none; box-shadow: none; }
.why__thesis { padding: var(--s-48) var(--s-32); }
.why__name { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.why__role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); margin: 4px 0 var(--s-32); }
.why__quote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: var(--s-24);
  text-wrap: balance;
}
.why__text { color: var(--ink-2); font-size: 16px; margin-bottom: var(--s-32); }
.compare { display: grid; border-top: 1px solid var(--line); }
.compare__col { padding: var(--s-32); border-top: 1px solid var(--line); }
.compare__col:first-child { border-top: 0; }
.compare__title { font-size: 17px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-16); }
.compare__list { font-size: var(--fs-small); color: var(--ink-2); display: grid; gap: 10px; }
.compare__list li { display: flex; gap: 10px; }
.compare__list li::before { content: "—"; flex: 0 0 auto; color: var(--ink-3); }
.compare__col--me { background: var(--bg-dark); color: var(--ink-on-dark); }
.compare__col--me .compare__title { color: var(--ink-on-dark); }
.compare__col--me .compare__list { color: var(--ink-on-dark); }
.compare__col--me .compare__list li::before { content: "✓"; color: var(--accent); }
@media (min-width: 768px) {
  .compare { grid-template-columns: repeat(3, 1fr); }
  .compare__col { border-top: 0; border-left: 1px solid var(--line); }
  .compare__col:first-child { border-left: 0; }
  .why__thesis { padding: var(--s-48); }
}
@media (min-width: 1280px) {
  .why { grid-template-columns: 5fr 7fr; }
  .compare { border-top: 0; border-left: 1px solid var(--line); }
  .compare__col { border-left: 1px solid var(--line); }
  .why__thesis { padding: var(--s-48) var(--s-48) var(--s-48) var(--s-48); }
}

/* ---------- 10. Процесс ---------- */
.steps { display: grid; gap: var(--s-32); counter-reset: step; }
.step { position: relative; padding-top: var(--s-24); border-top: 1px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.step__num { margin-bottom: var(--s-24); }
.step h3 { font-size: 20px; margin-bottom: var(--s-12); }
.step p { font-size: var(--fs-small); color: var(--ink-2); max-width: 30ch; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-48) var(--gutter); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* ---------- 11. Кейсы ---------- */
#cases .section-head { max-width: none; }
#cases .section-head__text { margin-top: var(--s-16); }
.case { display: flex; flex-direction: column; padding: var(--s-16); color: var(--ink); }
.case .num { position: absolute; top: var(--s-24); left: var(--s-24); z-index: 1; color: var(--ink); background: var(--bg-elevated); padding: 6px 10px; border-radius: var(--r-pill); }
.case__media {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-img);
  overflow: hidden;
  background: var(--bg);
}
.case__media picture, .case__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.case:hover .case__media img { transform: scale(1.03); }
.case__media--dark { background: var(--bg-dark-2); display: grid; place-items: center; padding: 20%; }
.case__media--contain { background: var(--media-bg, var(--bg)); }
.case__media--contain img { object-fit: contain; }
.case__media--dark picture { height: auto; }
.case__media--dark img { object-fit: contain; }
.case__body { display: grid; gap: 6px; padding: var(--s-24) var(--s-16) var(--s-8); }
.case__tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-2); }
.case__title { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.case__body .link-arrow { margin-top: var(--s-12); }

/* ---------- 12. Тарифы ---------- */
.plan { display: flex; flex-direction: column; }
.plan__name { font-size: 20px; }
.plan__kind { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 4px 0 var(--s-24); }
.plan__desc { font-size: var(--fs-lead); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; margin-bottom: var(--s-12); }
.plan__meta { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-2); padding-bottom: var(--s-24); border-bottom: 1px solid var(--line); margin-bottom: var(--s-24); }
.plan__list { font-size: var(--fs-small); display: grid; gap: 10px; margin-bottom: var(--s-32); }
.plan__list li { display: flex; gap: 12px; }
.plan__list li::before { content: "✓"; color: var(--accent); flex: 0 0 auto; font-weight: 600; }
.plan__btn { margin-top: auto; width: 100%; }
.plan--featured { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--ink-on-dark); }
.plan--featured .plan__kind, .plan--featured .plan__meta { color: var(--ink-on-dark-2); }
.plan--featured .plan__meta { border-color: var(--line-dark); }
.plan__badge {
  align-self: flex-start;
  margin-bottom: var(--s-16);
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--bg-elevated);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
}
@media (min-width: 1024px) { .plan--featured { margin-top: calc(var(--s-24) * -1); margin-bottom: calc(var(--s-24) * -1); } }

/* ---------- 13. Отзывы ---------- */
.reviews { display: grid; gap: var(--gutter); }
.review { display: flex; flex-direction: column; padding-top: 60px; }
.review__quote {
  position: absolute;
  top: var(--s-16);
  left: var(--s-24);
  font-family: var(--font-mono);
  font-size: 64px;
  line-height: 1;
  color: var(--accent-soft);
  pointer-events: none;
}
.review__text { font-size: 16px; line-height: 1.6; margin-bottom: var(--s-32); }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__author > span:last-child { display: grid; }
.review__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.review__name { font-size: var(--fs-small); font-weight: 600; }
.review__company { font-size: 13px; color: var(--ink-2); }
@media (min-width: 1024px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1023.98px) {
  .reviews {
    grid-auto-flow: column;
    grid-auto-columns: min(78vw, 400px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--s-16);
    margin-inline: calc(var(--page-pad) * -1);
    padding-inline: var(--page-pad);
    scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { scroll-snap-align: start; }
}

/* ---------- 14. Гарантии ---------- */
.guarantees { display: grid; gap: var(--s-48); }
.guarantee-list { border-top: 1px solid var(--line); }
.guarantee {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 0 var(--s-24);
  padding: var(--s-32) 0;
  border-bottom: 1px solid var(--line);
}
.guarantee .num { grid-row: 1 / span 2; padding-top: 6px; color: var(--accent); }
.guarantee h3 { font-size: 20px; margin-bottom: var(--s-8); }
.guarantee p { color: var(--ink-2); max-width: 52ch; }
@media (min-width: 1024px) {
  .guarantees { grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }
  .guarantee { grid-template-columns: 64px 1fr 1.4fr; align-items: baseline; }
  .guarantee .num { grid-row: auto; }
  .guarantee h3 { margin-bottom: 0; }
}

/* ---------- 15. FAQ ---------- */
.faq { display: grid; gap: var(--s-48); }
.faq__aside { margin-top: var(--s-32); padding-top: var(--s-32); border-top: 1px solid var(--line); }
.faq__aside-title { font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: var(--s-16); }
.faq__aside-note { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--ink-2); margin-top: var(--s-12); }
@media (min-width: 1024px) {
  .faq { grid-template-columns: 4fr 8fr; gap: var(--gutter); align-items: start; }
  .faq .section-head { position: sticky; top: 112px; padding-right: var(--s-48); }
}

/* ---------- 16. Контакт ---------- */
.contact { display: grid; gap: var(--s-48); }
.contact__title { font-size: var(--fs-h1); font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.contact__lead { font-size: var(--fs-lead); color: var(--ink-on-dark-2); margin-top: var(--s-24); }
.contacts { margin-top: var(--s-48); }
.contacts__title { font-family: var(--font-mono); font-size: var(--fs-eyebrow); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-on-dark-2); margin-bottom: var(--s-8); }
.contacts__list { border-top: 1px solid var(--line-dark); }
.contacts__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-24);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-dark);
}
.contacts__label { font-size: var(--fs-small); color: var(--ink-on-dark-2); }
.contacts__list a { font-weight: 600; transition: color .2s var(--ease); }
.contacts__list a:hover { color: var(--accent); }

.card--form { padding: var(--s-24); color: var(--ink); }
.card--form:hover { transform: none; box-shadow: none; }
.form-step { display: none; }
.form-step.is-active { display: block; }
html:not(.js) .form-step { display: block; }
html:not(.js) .form-step + .form-step { margin-top: var(--s-32); padding-top: var(--s-32); border-top: 1px solid var(--line); }
.form-step__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: var(--s-8); }
.form-step__title { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; line-height: 1.2; margin-bottom: var(--s-8); float: left; width: 100%; }
.form-step__hint { clear: both; font-size: var(--fs-small); color: var(--ink-2); margin-bottom: var(--s-24); }
.choices { display: grid; gap: 10px; margin-bottom: var(--s-24); clear: both; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-16);
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-size: var(--fs-small);
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice__check { font-style: normal; color: var(--ink-3); opacity: 0; transition: opacity .2s var(--ease); }
.choice:has(input:checked) { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice:has(input:checked) .choice__check { opacity: 1; color: var(--accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.fields { display: grid; gap: var(--s-16); margin-bottom: var(--s-24); clear: both; }
.field { display: grid; gap: 6px; }
.field__label { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field__input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  transition: border-color .2s var(--ease);
}
.field__input:focus-visible { outline: none; border-color: var(--ink); }
.field__input--area { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field__error { display: none; font-size: 13px; color: #C93A12; }
.field.is-error .field__error { display: block; }
.field.is-error .field__input { border-color: var(--accent); }
.field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.form-step__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-16) var(--s-24); }
.form-step__actions .btn { flex: 0 0 auto; }
.form-step__actions .link-arrow { min-height: 44px; }
.form-status { display: none; margin-top: var(--s-16); font-size: var(--fs-small); }
.form-status.is-error { display: block; color: #C93A12; }
.form-status.is-sent { display: block; color: var(--ink); font-weight: 600; }
.lead-form.is-sent .form-step { display: none; }
@media (min-width: 640px) {
  .card--form { padding: var(--s-32); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:nth-child(n+3), .fields .consent { grid-column: 1 / -1; }
  .fields .field:nth-child(3) { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .contact { grid-template-columns: 5fr 7fr; gap: var(--s-64); align-items: start; }
  .card--form { padding: var(--s-48); }
}
@media (max-width: 479.98px) {
  .form-step__actions .btn { width: 100%; }
}

/* ---------- 17. Футер ---------- */
.site-footer { background: var(--bg-dark); color: var(--ink-on-dark-2); border-top: 1px solid var(--line-dark); padding: var(--s-24) 0; font-size: 13px; }
.site-footer__line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-12) var(--s-24); }
.site-footer .logo { color: var(--ink-on-dark); }
.site-footer .logo__name { display: inline; }
.site-footer__tagline { flex-basis: 100%; margin-top: calc(var(--s-12) * -1); color: var(--ink-on-dark-2); }
.site-footer .logo__mark { width: 36px; height: 36px; font-size: 16px; }
.site-footer .logo__mark i { width: 6px; height: 6px; right: 5px; bottom: 6px; }
.site-footer a { transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--ink-on-dark); }
.site-footer__line > a:not(.logo):not(.site-footer__privacy) { color: var(--ink-on-dark); }
.site-footer__privacy { margin-left: auto; }
@media (min-width: 1024px) {
  .site-footer__line > a:not(.logo):not(.site-footer__privacy)::before { content: "·"; margin-right: var(--s-24); color: var(--ink-on-dark-2); }
}

/* ---------- 18. Страница кейса ---------- */
/* На подстраницах шапка не висит поверх контента, а стоит в потоке и липнет к верху:
   тёмная всегда, поэтому стыкуется с тёмным hero без шва. */
.subpage .site-header,
.subpage .site-header.is-scrolled {
  position: sticky;
  top: 0;
  background: var(--bg-dark);
  border-bottom: 1px solid transparent;
}
.subpage .site-header.is-scrolled { border-bottom-color: var(--line-dark); }

.case-hero {
  background: var(--bg-dark);
  color: var(--ink-on-dark);
  padding: var(--s-64) 0;
}
.case-hero .eyebrow { color: var(--ink-on-dark-2); }
.case-hero__back { color: var(--ink-on-dark-2); margin-bottom: var(--s-48); }
.case-hero__back:hover { color: var(--ink-on-dark); }
.case-hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1;
  letter-spacing: -.02em;
  margin-top: var(--s-16);
  text-wrap: balance;
}
.case-hero__lead {
  margin-top: var(--s-24);
  max-width: 44ch;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-on-dark-2);
}

.case-body { padding-bottom: 0; }
.case-text { display: grid; gap: var(--s-24); max-width: 68ch; color: var(--ink-2); }
.case-text > p:first-child { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); }

.case-shots { padding: var(--section-pad) 0; }
.case-shots__grid { display: grid; gap: var(--s-24); }
.shot img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-img);
  background: var(--bg-elevated);
}

/* Плитка всех кейсов — по две карточки в ряд, превью одного формата */
.cases-index { padding-top: var(--s-64); }
.cases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gutter);
  max-width: 1080px;
}
@media (min-width: 700px) { .cases-grid { grid-template-columns: repeat(2, 1fr); } }
.cases-grid .case__media { aspect-ratio: 16 / 10; }

/* Переход между кейсами */
.case-nav { border-top: 1px solid var(--line); padding: var(--s-48) 0 var(--s-64); }
.case-nav__pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); }
.case-nav__item {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  min-width: 0;
  padding: var(--s-24);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.case-nav__item:hover { background: var(--bg-elevated); border-color: var(--ink-3); }
.case-nav__item--next { justify-content: flex-end; text-align: right; }
.case-nav__arrow {
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.case-nav__item:hover .case-nav__arrow { background: var(--ink); border-color: var(--ink); color: #fff; }
.case-nav__item--prev:hover .case-nav__arrow { transform: translateX(-3px); }
.case-nav__item--next:hover .case-nav__arrow { transform: translateX(3px); }
.case-nav__text { display: grid; gap: 4px; min-width: 0; }
.case-nav__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-nav__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -.01em;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s var(--ease);
}
.case-nav__item:hover .case-nav__title { color: var(--accent); }
.case-nav__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-12);
  margin-top: var(--s-24);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.case-nav__count b { font-weight: 500; color: var(--ink); }
.case-nav__all::before,
.case-nav__all::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--line);
}
.case-nav__all-label {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
.case-nav__all:hover .case-nav__all-label { color: var(--accent); text-decoration-color: currentColor; }

.case-cta__inner { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-32); }
.case-cta__text { max-width: 44ch; }
.case-cta__text h2 { margin-top: var(--s-12); }
.case-cta__note { margin-top: var(--s-12); color: var(--ink-on-dark-2); }

@media (max-width: 767.98px) {
  .case-hero { padding: var(--s-48) 0; }
  .case-hero__back { margin-bottom: var(--s-32); }
  .case-nav { padding: var(--s-32) 0 var(--s-48); }
  .case-nav__pair { grid-template-columns: 1fr; gap: var(--s-12); }
  .case-nav__item { padding: var(--s-16); }
  .case-nav__item--next { justify-content: space-between; }
  .case-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- 19. Появление (§9) ---------- */
/* Без JS всё видимо; JS вешает класс `js` на <html> и добавляет .is-visible при входе в viewport */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}


/* Политика конфиденциальности */
.legal-page .case-hero__title {
  font-size: clamp(32px, 8vw, 72px);
  hyphens: manual;
  -webkit-hyphens: manual;
}
.legal { padding-top: var(--s-64); padding-bottom: var(--s-96); }
.legal__body {
  max-width: 72ch;
  color: var(--ink-2);
  font-size: var(--fs-body);
  line-height: 1.65;
}
.legal__body h2 {
  text-wrap: wrap;
  hyphens: auto;
  -webkit-hyphens: auto;
  font-size: var(--fs-h3);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: var(--s-48) 0 var(--s-16);
}
.legal__body > h2:first-child { margin-top: 0; }
.legal__body p { margin-bottom: var(--s-16); }
.legal__body a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}
.legal__body a:hover { color: var(--accent); }
.legal__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s-24);
  font-size: var(--fs-small);
}
.legal__table th,
.legal__table td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.legal__table th { width: 38%; color: var(--ink); font-weight: 600; }
@media (max-width: 767.98px) {
  .legal { padding-top: var(--s-48); }
  .legal__table,
  .legal__table tbody,
  .legal__table tr,
  .legal__table th,
  .legal__table td { display: block; width: 100%; }
  .legal__table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal__table th,
  .legal__table td { border-bottom: 0; padding: 4px 0; }
  .legal__table th { padding-bottom: 2px; }
}
