/* ==========================================================================
   КРЕАМЕТРИКА — агентство роста в e-commerce
   Дизайн-система сайта. Один файл, без препроцессоров и сборки.
   Порядок: токены -> база -> типографика -> компоненты -> секции -> адаптив.
   ========================================================================== */

/* --------------------------------------------------------------- 1. Токены */
:root {
  /* Цвет */
  --ink: #0E0E0E;
  --ink-soft: #33302C;
  --ink-line: #35322E;
  --paper: #F4F2EE;
  --white: #FFFFFF;
  --accent: #F8211F;      /* из векторов бренда, brand/logo */
  --accent-dark: #D01A18;
  --accent-text: #D81A18;  /* красный под мелкий текст и под белые подписи: проходит WCAG AA */
  --muted: #6B6762;
  --dim: #8C8880;
  --dim-2: #B5B0AA;
  --line: #DCD8D1;

  /* Типографика */
  --font-display: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-text: 'Golos Text', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Ритм */
  --wrap: 1280px;
  --gutter: 28px;
  --section-gap: 96px;
  --header-h: 76px;

  /* Прочее */
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t: .25s var(--ease);

  /* Движение: длинное затухание без «пружины» — под характер бренда */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.25, 1, .5, 1);
  --dur: .85s;
  --dur-slow: 1.05s;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Позиция сохраняется в JS: иначе iOS Safari продолжает скроллить фон */
body.is-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-text); }

img,
svg,
video { display: block; max-width: 100%; }
button,
input,
textarea,
select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Скип-линк для клавиатуры и скринридеров */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
}
.skip-link:focus { left: 0; color: #fff; }

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

/* ---------------------------------------------------------- 3. Типографика */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
  margin: 0 0 16px;
}
.eyebrow--light { color: var(--dim); }
.eyebrow--flag { display: flex; align-items: center; gap: 10px; }
.eyebrow--flag::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--accent);
  flex: none;
}

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.mono--xs { font-size: 10px; letter-spacing: .12em; }

.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}
/* Потолок 72px: длинное «МАРКЕТПЛЕЙСАХ» должно помещаться в колонку героя,
   которая перестаёт расти после 1280px. Короткие заголовки страниц —
   крупнее, см. .page-head .h1 ниже. */
.h1 { font-size: clamp(38px, 5vw, 72px); line-height: .94; }
.h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1; letter-spacing: -.03em; }
.h3 { font-size: clamp(24px, 3vw, 38px); line-height: 1.05; letter-spacing: -.03em; }
.accent { color: var(--accent); }

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 520px;
  margin: 0 0 32px;
}
.lead--light { color: var(--dim-2); }

.section { padding-top: var(--section-gap); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.section-head > p {
  max-width: 380px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}

/* Тёмные полосы на всю ширину */
.band {
  background: var(--ink);
  color: #fff;
  padding: 88px 0;
  margin-top: var(--section-gap);
}
.band a { color: #fff; }
.band a:hover { color: var(--accent-text); }

/* ------------------------------------------------------------- 4. Логотип */
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1;
  padding: 4px 0;
}
/* Высота подобрана так, чтобы липкая шапка осталась прежней высоты:
   лакап со знаком выше, чем набранное шрифтом название. Ширина — от
   пропорций файла (1322.6 x 200). */
.logo__lockup { height: 30px; width: auto; }
.logo__lockup--footer { height: 40px; }
.logo__tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--muted);
}
.logo:hover { color: inherit; opacity: .82; transition: opacity var(--t); }

/* -------------------------------------------------------------- 5. Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: var(--radius);
  padding: 17px 32px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-align: center;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
}
.btn:active { transform: translateY(1px); }

.btn--accent { background: var(--accent-text); color: #fff; }
.btn--accent:hover { background: var(--ink); color: #fff; }

.btn--ink { background: var(--ink); color: #fff; border-radius: 999px; padding: 13px 24px; font-size: 14px; }
.btn--ink:hover { background: var(--accent-text); color: #fff; }

.btn--outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn--outline:hover { background: var(--ink); color: #fff; }

.btn--light { background: var(--accent-text); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

.link-mono {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

/* Заглушки нарисованы монохромными — обесцвечивать их нечего, а фильтр на
   два десятка картинок браузер пересчитывает при каждой перерисовке.
   Реальные фото (jpg/webp/png) фильтр получат как и раньше. */
.media img[src$=".svg"] { filter: none; }

/* --------------------------------------------------------------- 6. Шапка */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.header.is-scrolled { box-shadow: 0 6px 24px rgba(14, 14, 14, .06); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav {
  display: flex;
  gap: 26px;
  align-items: center;
  margin-left: auto;
  font-size: 14px;
  font-weight: 500;
}
.nav a { position: relative; padding: 11px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 7px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width var(--t);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--accent-text); }

.header__cta { flex: none; }

/* Бургер */
.burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  width: 20px; height: 2px;
  background: var(--ink);
  transition: transform var(--t), opacity var(--t);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Мобильное меню */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--ink);
  color: #fff;
  padding: calc(var(--header-h) + 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-100%);
  visibility: hidden;
  overflow-y: auto;
  /* При закрытии видимость гаснет после выезда, при открытии — сразу:
     иначе в ещё невидимое меню нельзя поставить фокус */
  transition: transform .45s var(--ease), visibility 0s linear .45s;
}
.drawer.is-open { transform: translateY(0); visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.drawer a {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 8vw, 40px);
  text-transform: uppercase;
  letter-spacing: -.03em;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-line);
  color: #fff;
}
.drawer a:hover,
.drawer a[aria-current="page"] { color: var(--accent); }
/* Последний пункт шторки — целевое действие, а не ещё одна ссылка */
.drawer .drawer__cta {
  margin-top: 26px;
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border-bottom: 0;
  border-radius: var(--radius);
  text-align: center;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: background var(--t), color var(--t);
}
.drawer .drawer__cta:hover { background: #fff; color: var(--ink); }

.drawer__foot {
  margin-top: auto;
  padding-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  line-height: 2.2;
  color: var(--dim-2);
}

/* ---------------------------------------------------------------- 7. Герой */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

/* Три утверждения о методе — вместо прежней строки с цифрами */
.method {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  max-width: 520px;
}
.method li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.method__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--accent);
  flex: none;
}

/* Демо-прогон в первом экране */
.hero__demo { position: relative; }
.hero__demo km-demo { display: block; }

/* Медиа-блок с фирменными плашками */
.media { position: relative; background: var(--ink); overflow: visible; }
.media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }

.media__sq { position: absolute; background: var(--accent); z-index: 2; }

.media__sq--lg-bl { bottom: -24px; left: -24px; width: 120px; height: 120px; }

/* ------------------------------------------------------------- 8. Бегущая */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
  margin-top: 20px;
}
/* Лента из одинаковых групп. Сдвиг — ровно на ширину одной группы
   (--marquee-shift), поэтому стык незаметен. Отступы — через padding,
   а не gap: gap не входит в ширину группы, и сдвиг промахивался бы
   на один промежуток — отсюда был рывок. Сколько групп нужно, чтобы
   закрыть любой экран, считает JS. */
.marquee__track {
  display: flex;
  will-change: transform;
  width: max-content;
  animation: marquee var(--marquee-dur, 34s) linear infinite;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .18em;
}
.marquee__group { display: flex; flex: none; }
.marquee__group span { white-space: nowrap; padding-right: 56px; }
.marquee__track .x { color: var(--accent); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); }
}
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* --------------------------------------------------------------- 9. Услуги */
.grid-hair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  background: var(--paper);
  padding: 36px 30px 40px;
  transition: background var(--t);
  display: flex;
  flex-direction: column;
}
.service:hover { background: var(--white); }
.service__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: 56px;
}
.service__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.service p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0 0 18px; }
.service__list {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 2;
  color: var(--ink-soft);
  list-style: none;
  padding: 0;
  margin: auto 0 0;
}
.service--dark { background: var(--ink); color: #fff; }
.service--dark:hover { background: var(--ink); }
.service--dark p { color: var(--dim-2); }
.service--dark .service__list { color: #fff; }

/* ------------------------------------------------------------- 10. Цифры */

/* ------------------------------------------------------------- 11. Кейсы */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.case {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.case:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 14, 14, .08);
}
.case:hover .case__title { color: var(--accent); }

.case__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.case__tag { margin-bottom: 12px; }
.case__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-transform: uppercase;
  transition: color var(--t);
}

/* Крупный кейс на странице кейсов */

/* Фильтр */

.chip {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.case[hidden] { display: none; }
.cases-empty { padding: 60px 0; color: var(--muted); }

/* ----------------------------------------------------------- 12. Процесс */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 34px;
}
.step { border-top: 2px solid var(--line); padding-top: 22px; }
.step--first { border-top-color: var(--ink); }
.step__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 16px;
}
.step--first .step__num { color: var(--accent); }
.step h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.step p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------ 13. Тарифы */

.plan {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 34px 30px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 14, 14, .07); }
.plan h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.plan .btn { margin-top: auto; }

/* ------------------------------------------------------------ 14. Отзывы */

/* ----------------------------------------------------------- 15. Команда */

/* --------------------------------------------------------------- 16. FAQ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.faq { border-top: 1px solid var(--ink); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__btn {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 18px);
  transition: color var(--t);
}
.faq__btn:hover { color: var(--accent-text); }
.faq__sign {
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
  flex: none;
  transition: transform var(--t);
}
.faq__btn[aria-expanded="true"] .faq__sign { transform: rotate(45deg); }
.faq__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq__btn[aria-expanded="true"] + .faq__panel { grid-template-rows: 1fr; }
.faq__panel > div { overflow: hidden; }
.faq__panel p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 24px;
  max-width: 560px;
}

/* ------------------------------------------------------------- 17. Форма */
.form-band { margin-top: var(--section-gap); background: var(--ink); color: #fff; }
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding-top: 88px;
  padding-bottom: 88px;
}

/* Строка контакта — полноценная цель для пальца, а не 14 пикселей текста */

.form { display: grid; gap: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--dim);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-line);
  color: #fff;
  padding: 12px 0;
  font-size: 16px;
  outline: none;
  border-radius: 0;
  transition: border-color var(--t);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input::placeholder,
.field textarea::placeholder { color: #6E6A64; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--accent); }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-bottom-color: var(--accent); }
.field__error {
  display: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-top: 8px;
  text-transform: uppercase;
}
.field.has-error .field__error { display: block; }

.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice {
  position: relative;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  color: #fff;
  cursor: pointer;
  transition: background var(--t), border-color var(--t);
}
.choice:hover { border-color: var(--accent); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.is-checked { background: var(--accent-text); border-color: var(--accent-text); }
.choice:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__status {
  display: none;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  background: rgba(248, 33, 31, .1);
  font-size: 14px;
  line-height: 1.5;
}
.form__status.is-visible { display: block; }

/* ----------------------------------------------------- 18. Страница кейса */
.case-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-top: 32px;
}
.case-hero .media { aspect-ratio: 16 / 10; }
.case-block {
  display: grid;
  grid-template-columns: minmax(0, .32fr) minmax(0, .68fr);
  gap: 56px;
  padding-top: 64px;
}
.case-block__label { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
.case-block p { font-size: 17px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 18px; max-width: 640px; }
.case-block p:last-child { margin-bottom: 0; }

.timeline {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 720px;
}
.timeline__row { background: var(--paper); padding: 22px 24px; transition: background var(--t); }
.timeline__row:hover { background: var(--white); }
.timeline__when {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.timeline__what { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.timeline__note { font-size: 14px; line-height: 1.6; color: var(--muted); }

.next-case {
  display: block;
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.next-case__inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.next-case__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3vw, 40px);
  letter-spacing: -.03em;
  text-transform: uppercase;
  transition: color var(--t);
}
.next-case:hover .next-case__title { color: var(--accent); }
.next-case__arrow { color: var(--accent); font-family: var(--font-display); font-weight: 800; font-size: 28px; }

/* ---------------------------------------------------------- 19. Контакты */
.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-top: 72px;
}
.info {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  max-width: 520px;
}
.info__row { background: var(--paper); padding: 22px 24px; }

.form-card { background: var(--ink); color: #fff; padding: 44px 40px; }

/* ------------------------------------------------------------ 20. Подвал */
.footer { margin-top: var(--section-gap); border-top: 1px solid var(--line); background: var(--paper); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.footer__col { display: grid; gap: 12px; font-size: 14px; align-content: start; }
.footer__col .mono { margin-bottom: 4px; }
.footer__bars { display: flex; gap: 6px; margin-top: 26px; }
.footer__bars span { width: 44px; height: 12px; background: var(--ink); display: block; }
.footer__bars span:nth-child(2) { background: var(--accent); }
.footer__bottom { border-top: 1px solid var(--line); }
.footer__bottom .wrap {
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ 21. Прочее */
.page-head { padding-top: 72px; }
/* На внутренних страницах заголовок занимает всю ширину — можно крупнее */
.page-head .h1 { font-size: clamp(44px, 6vw, 90px); }
.crumb { display: inline-flex; align-items: center; min-height: 44px; padding-top: 40px; }

.error-page {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  padding-bottom: 80px;
}
.error-page .code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(90px, 20vw, 220px);
  line-height: .85;
  letter-spacing: -.05em;
  color: var(--accent);
}

.doc { max-width: 760px; padding-top: 72px; }
.doc h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  margin: 40px 0 12px;
}
.doc p,
.doc li { font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.doc ul { padding-left: 20px; }

/* ------------------------------------------------ 21b. Блоки макета v2 */

.section-head__note {
  max-width: 380px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.band .section-head__note { color: var(--dim-2); }

/* --- Воронка потерь --- */
.band--funnel { margin-top: 0; }
.funnel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: start;
}
.funnel__steps { display: grid; gap: 10px; }
.fstep {
  position: relative;
  display: block;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-height: 52px;
}
.fstep__bar {
  display: block;
  width: var(--w);
  height: 52px;
  background: var(--ink-line);
  transition: background var(--t);
}

.fstep__label {
  position: absolute;
  left: 16px;
  top: 0;
  height: 52px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
}
.fstep:hover .fstep__bar { background: #46423D; }

.fstep[aria-selected="true"] .fstep__bar {
  background: var(--accent);
  border-style: solid;
  border-color: var(--accent);
}

.funnel__panels { border-top: 1px solid var(--ink-line); }
.fpanel { padding-top: 24px; }
.fpanel[hidden] { display: none; }
.fpanel__row { margin-bottom: 22px; }
.fpanel__row p {
  font-size: 17px;
  line-height: 1.5;
  margin: 8px 0 0;
  color: #fff;
}
.fpanel__row .mono { color: var(--dim); }

/* --- Услуги: карточка-ссылка --- */
.service { color: inherit; }
.service__title { transition: color var(--t); }
.service__more {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 22px;
  transition: transform var(--t);
}
.service:hover .service__more { transform: translateX(4px); }
.service:hover .service__title { color: var(--accent); }

.service--dark .service__more { color: #fff; }

/* --- Процесс: метки фиксации показателей --- */

/* --- Образец отчёта --- */
.report {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 28px;
}
.sheet { margin: 0; }
.sheet__paper {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px 22px 26px;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.sheet:hover .sheet__paper {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(14, 14, 14, .08);
}
.sheet__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.sheet__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin-top: 18px;
}
.sheet__title--sm { font-size: 19px; }

.sheet__label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 20px;
}

.sheet__text { font-size: 13px; line-height: 1.5; color: var(--ink-soft); margin: 8px 0 0; }
.sheet__bars { display: grid; gap: 7px; margin-top: 16px; }
.sheet__bars span {
  position: relative;
  display: block;
  width: var(--w);
  height: 22px;
  background: #E4E0DA;
}
.sheet__bars span.hot { background: var(--accent-text); }
.sheet__bars i {
  position: absolute;
  left: 8px;
  top: 0;
  height: 22px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--ink);
}
.sheet__bars span.hot i { color: #fff; }
.sheet__table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 12px; }
.sheet__table th {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  font-weight: 400;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.sheet__table td {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  vertical-align: top;
}
.sheet__table td:last-child {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.sheet__stamp {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet figcaption {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sheet__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  flex: none;
}

.metrics {
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 44px;
  padding-top: 20px;
}
.metrics ul {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.metrics li {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 7px 12px;
}

/* --- Карточка до и после --- */
.ba-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}
.ba {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--ink);
  overflow: hidden;
  --split: 50%;
}
.ba__before,
.ba__after { position: absolute; inset: 0; }
.ba__before { background: #1C1B19; }
.ba__after { background: var(--paper); clip-path: inset(0 0 0 var(--split)); }
.ba__tag {
  position: absolute;
  top: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  z-index: 2;
}
.ba__before .ba__tag { left: 12px; color: #F4F2EE; }
.ba__after .ba__tag { right: 12px; color: var(--ink); }
.ba__ph { position: absolute; display: block; }
.ba__before .ba__ph { background: #2A2826; }
.ba__after .ba__ph { background: var(--ink); }
.ba__ph--a { left: 12%; right: 12%; top: 22%; height: 34%; }
.ba__ph--b { left: 12%; width: 46%; top: 62%; height: 7%; }
.ba__ph--c { left: 12%; width: 30%; top: 73%; height: 7%; }
.ba__after .ba__ph--a { top: 16%; height: 38%; }
.ba__after .ba__ph--b { left: 12%; width: 62%; top: 60%; height: 8%; }
.ba__after .ba__ph--c { left: 12%; width: 40%; top: 72%; height: 6%; background: var(--accent); }
.ba__ph--d { left: 12%; width: 52%; top: 82%; height: 6%; }
.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split);
  width: 1px;
  background: #F4F2EE;
  z-index: 3;
  pointer-events: none;
}
.ba__handle span {
  position: absolute;
  top: 50%;
  left: -15px;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  background: var(--ink);
  border: 1px solid #F4F2EE;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
}
/* Раньше невидимый ползунок накрывал весь блок, и на телефоне свайп по нему
   двигал ползунок вместо прокрутки страницы. Теперь перетаскивание ловит сам
   блок через pointer-события, а touch-action: pan-y отдаёт вертикальный свайп
   странице. Ползунок остался только для клавиатуры и скринридеров. */
.ba {
  touch-action: pan-y;
  cursor: ew-resize;
  user-select: none;
  -webkit-user-select: none;
}
.ba__range {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.ba:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.ba__note {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  color: var(--dim);
}
.ba-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ba-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.ba-list li:first-child { border-top: 0; padding-top: 0; }
.ba-list__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  grid-row: span 2;
  padding-top: 4px;
}
.ba-list h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0;
}
.ba-list p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }

/* --- Лид-магнит --- */
.magnet {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 48px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 44px 44px 48px;
}
.magnet__form { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field--inline { flex: 1 1 260px; }
.field--inline label { color: var(--muted); }
.field--inline input { color: var(--ink); border-bottom-color: var(--line); }
.field--inline input::placeholder { color: var(--muted); }
.magnet__form .form__status { flex: 1 1 100%; }
.magnet__meta {
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  align-self: start;
}
.magnet__meta > div { background: var(--white); padding: 16px 18px; }
.magnet__meta dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.magnet__meta dd { margin: 0; font-size: 14px; line-height: 1.5; }
.magnet__meta a { border-bottom: 1px solid var(--accent); }

/* --- Что будет после заявки --- */
.after-lead {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--ink-line);
}
.after-lead li {
  background: var(--ink);
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 4px 12px;
  padding: 18px 0;
}
.after-lead__n {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
  grid-row: span 2;
  padding-top: 3px;
}
.after-lead h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
}
.after-lead p { font-size: 14px; line-height: 1.55; color: var(--dim-2); margin: 0; }

/* --- Страница услуги --- */
.svc-hero { padding-top: 40px; }
.svc-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}
.svc-col { background: var(--paper); padding: 30px 26px 34px; }
.svc-col h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 18px;
}
.svc-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.svc-col li {
  font-size: 15px;
  line-height: 1.5;
  padding-left: 18px;
  position: relative;
}
.svc-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 8px;
  height: 2px;
  background: var(--accent);
}
.svc-col p { font-size: 15px; line-height: 1.6; margin: 0; }
.svc-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --- Кейсы: обезличенный формат --- */
.nda {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  border-left: 3px solid var(--accent);
  background: var(--white);
  padding: 24px 26px;
  max-width: 720px;
  margin-bottom: 44px;
}
.nda p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.case__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
}
.case__facts div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: baseline; }
.case__facts dt {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.case__facts dd { margin: 0; font-size: 14px; line-height: 1.5; }
.case__soon {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ 22. Утилиты */
/* Якоря не должны прятаться под липкой шапкой */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

.logo__tag { display: block; }
.section-title { margin-bottom: 48px; }

.h2--lead { font-size: clamp(34px, 4.4vw, 62px); margin-bottom: 24px; }
.lead--narrow { max-width: 420px; margin-bottom: 40px; }

.h1 + .lead,
.h2 + .lead { margin-top: 24px; }
.lead--top { margin-top: 28px; }
.lead--case { max-width: 480px; margin-bottom: 0; }

.h3--gap { margin-bottom: 28px; }

.doc__date { margin-top: 40px; }
.error-title { margin: 24px 0 16px; }
.fieldset { border: 0; padding: 0; margin: 0; }
.fieldset legend { padding: 0; margin-bottom: 10px; color: var(--dim); }

/* ------------------------------------------------------------ 23. Движение */
/* Все состояния «до появления» ставит CSS, класс .is-visible вешает JS.
   Если JS не выполнился, страница остаётся полностью видимой — см. .no-js ниже. */

/* Базовые варианты появления. Задержку внутри группы задаёт --delay. */
[data-reveal] {
  --delay: 0ms;
  transition:
    opacity var(--dur) var(--ease-out) var(--delay),
    transform var(--dur) var(--ease-out) var(--delay),
    clip-path var(--dur-slow) var(--ease-out) var(--delay);
}
.js [data-reveal="up"] { opacity: 0; transform: translateY(34px); }
.js [data-reveal="fade"] { opacity: 0; }
.js [data-reveal="right"] { opacity: 0; transform: translateX(-28px); }
.js [data-reveal="clip"] { opacity: 0; clip-path: inset(0 0 100% 0); }
.js [data-reveal="scale"] { opacity: 0; transform: scale(.96); }

[data-reveal].is-visible { opacity: 1; transform: none; }
/* clip-path только у своего варианта: на остальных секциях он превратился бы
   в невидимую обрезку и срезал красные плашки, торчащие за край блока. */
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0); }

/* Каскад внутри сетки: карточки выезжают по очереди */
.js [data-stagger] > * { opacity: 0; transform: translateY(28px); }
[data-stagger] > * {
  transition: opacity var(--dur) var(--ease-out) var(--delay),
              transform var(--dur) var(--ease-out) var(--delay);
}
[data-stagger].is-visible > * { opacity: 1; transform: none; }

/* Заголовок выезжает построчно из-под маски */
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform var(--dur-slow) var(--ease-out) var(--delay);
}
.is-visible .line > span,
.is-intro .line > span { transform: none; }

/* Медиа: снимок «проявляется» снизу вверх и одновременно успокаивает зум */

/* Первый экран: разворачивается сразу после загрузки, без ожидания скролла */
.js .intro > * { opacity: 0; transform: translateY(26px); }
.is-intro .intro > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease-out) var(--delay),
              transform var(--dur) var(--ease-out) var(--delay);
}
.js .intro > .h1 { opacity: 1; transform: none; }
.intro > *:nth-child(1) { --delay: 60ms; }
.intro > *:nth-child(2) { --delay: 140ms; }
.intro > *:nth-child(3) { --delay: 240ms; }
.intro > *:nth-child(4) { --delay: 330ms; }
.intro > *:nth-child(5) { --delay: 410ms; }

/* Полоса прогресса чтения под шапкой */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 70;
  pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress {
    animation: progress-grow linear;
    animation-timeline: scroll(root);
  }
  @keyframes progress-grow { to { transform: scaleX(1); } }
}

/* Высоту шапки при скролле не меняем: sticky остаётся в потоке, и вместе с
   ней уезжал бы весь контент под шапкой. Состояние показывает только тень. */

/* Стрелка в ссылке-указателе уезжает вправо */
.link-mono,
.next-case__arrow { transition: transform var(--t), border-color var(--t), color var(--t); }
.link-mono:hover { transform: translateX(4px); }
.next-case:hover .next-case__arrow { transform: translateX(10px); }

/* Красный угол на карточке подрастает при наведении */

/* Уважаем системную настройку: движение выключается целиком */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
[data-stagger] > *,
[data-reveal="up"],
[data-reveal="fade"],
[data-reveal="right"],
[data-reveal="clip"],
[data-reveal="scale"],
.intro > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }
  .line > span { transform: none !important; transition: none !important; }
  
  .progress { display: none; }
  
}

/* ------------------------------------------------------------ 24. Адаптив */
/* Точки перелома: 1100 — герой и двухколонники складываются;
   900 — меню уходит в бургер; 640 — телефон; 380 — узкий телефон. */

@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  
  /* Колонка перестала быть половинной — заголовок может дышать свободнее */
  .h1 { font-size: clamp(32px, 8vw, 76px); }
  .case-hero { grid-template-columns: 1fr; gap: 32px; align-items: start; }
  .faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .contacts-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  
  
}

@media (max-width: 900px) {
  :root { --section-gap: 72px; }
  .nav,
.header__cta { display: none; }
  .burger { display: block; }
  .case-block { grid-template-columns: 1fr; gap: 20px; }
  .case-block__label { position: static; }
  
  .band { padding: 64px 0; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; --section-gap: 64px; --header-h: 68px; }
  body { font-size: 15px; }

  /* Шапка: логотип не должен спорить с бургером */
  .header__inner { gap: 16px; }
  .logo { gap: 4px; padding: 9px 0; }
  .logo__lockup { height: 26px; }
  .logo__lockup--footer { height: 34px; }
  .logo__tag { font-size: 9px; letter-spacing: .1em; }

  /* Первый экран */
  .hero { padding-top: 40px; padding-bottom: 28px; gap: 34px; }
  .hero__actions { gap: 10px; margin-bottom: 34px; }
  .hero .btn { flex: 1 1 100%; }
  
  
  
  
  
  
  

  /* Бегущая строка — короче шаг, чтобы не пролетала мимо */
  .marquee { padding: 11px 0; }
  .marquee__track { font-size: 11px; }
  .marquee__group span { padding-right: 36px; }

  /* Секции и карточки */
  .section-head { margin-bottom: 28px; gap: 20px; }
  .section-head > p { font-size: 14px; }
  .grid-hair { grid-template-columns: 1fr; }
  .service,
.plan { padding: 26px 20px 30px; }
  .service__num { margin-bottom: 26px; }
  .service__title { font-size: 20px; }
  
  
  
  .cards { gap: 18px; }
  .case__body { padding: 22px 20px 24px; }
  .case__title { font-size: 18px; margin-bottom: 16px; }
  
  
  
  .steps { gap: 26px; }
  .step__num { font-size: 34px; margin-bottom: 12px; }
  
  
  
  
  
  
  

  /* Фильтр кейсов: пальцем должно быть удобно */
  
  .chip { padding: 12px 18px; font-size: 13px; }
  

  /* Формы и контакты */
  .form-card { padding: 30px 22px; }
  .form-layout { gap: 34px; padding-top: 56px; padding-bottom: 56px; }
  
  .info__row { padding: 18px 20px; }
  
  
  .choice { padding: 11px 18px; }
  

  /* Страница кейса */
  .case-hero { padding-top: 24px; }
  .case-block { padding-top: 44px; }
  .timeline__row { padding: 18px 20px; }
  .timeline__what { font-size: 15px; }
  
  
  .crumb { padding-top: 28px; }

  /* Подвал: строки-ссылки вырастают до комфортной высоты нажатия */
  .footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .footer__col { gap: 0; }
  .footer__col .mono { margin-bottom: 6px; }
  .footer__col a,
.footer__col span:not(.mono) { display: flex; align-items: center; min-height: 44px; }
  .footer__bottom .wrap { flex-direction: column; gap: 4px; align-items: flex-start; }
  .footer__bottom a { display: flex; align-items: center; min-height: 44px; }

  /* Шторка меню */
  .drawer { padding-top: calc(var(--header-h) + 24px); }
  .drawer a { font-size: clamp(26px, 8.5vw, 38px); padding: 14px 0; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .logo__tag { display: none; }
  .logo__lockup { height: 26px; }
  
  
  
  
  .btn { padding: 15px 24px; font-size: 14px; }
}

/* --- Блоки макета v2 на планшете --- */
@media (max-width: 1100px) {
  .funnel { grid-template-columns: 1fr; gap: 28px; }
  .ba-layout { grid-template-columns: 1fr; gap: 32px; }
  .ba { max-width: 460px; }
  .magnet { grid-template-columns: 1fr; gap: 32px; padding: 34px 30px 38px; }
}

/* --- Блоки макета v2 на телефоне --- */
@media (max-width: 640px) {
  .method { padding-top: 18px; gap: 11px; }
  .method li { font-size: 14px; }

  .funnel { gap: 22px; }
  .fstep,
.fstep__bar,
.fstep__label { min-height: 46px; height: 46px; }
  .fstep__label { font-size: 10px; left: 12px; }
  .fpanel__row p { font-size: 15px; }
  .fpanel__row { margin-bottom: 18px; }
  

  .report { gap: 22px; }
  .sheet__paper { padding: 18px 18px 22px; }
  .sheet__title { font-size: 20px; }
  .sheet__title--sm { font-size: 17px; }
  .sheet figcaption { font-size: 13px; }
  .metrics { margin-top: 32px; gap: 14px; }

  .ba { max-width: none; }
  .ba-list li { padding: 18px 0; grid-template-columns: 28px 1fr; }
  .ba-list h3 { font-size: 16px; }

  .magnet { padding: 28px 22px 32px; gap: 26px; }
  .magnet__form .btn { width: 100%; }
  .magnet__meta > div { padding: 14px 16px; }

  .after-lead { margin-top: 30px; }
  .after-lead li { grid-template-columns: 28px 1fr; padding: 15px 0; }
  .after-lead h3 { font-size: 15px; }

  .svc-col { padding: 24px 20px 28px; }
  .nda { padding: 20px 20px; margin-bottom: 32px; }
  .case__facts div { grid-template-columns: 84px 1fr; gap: 10px; }
}

/* Телефон в альбомной ориентации: не растягиваем герой на весь экран */

/* На устройствах без мыши убираем ховер-эффекты — они «залипают» после тапа */
@media (hover: none) {
  .case:hover { transform: none; box-shadow: none; }
  
  
  .plan:hover { transform: none; box-shadow: none; }
  
  .link-mono:hover { transform: none; }
  .marquee:hover .marquee__track { animation-play-state: running; }
}

/* --- Правки 27.09 --- */

/* Тёмная карточка услуги: карточка стала ссылкой, и общее правило
   .service { color: inherit } перебивало белый текст — заголовок
   сливался с чёрным фоном. */
.service--dark,
.service--dark .service__title { color: #fff; }
.service--dark:hover .service__title { color: var(--accent); }

/* Два пути: конкретная задача или диагностика */
.paths {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 24px;
}
.path {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 34px 38px;
  min-height: 300px;
}
.path--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.path__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 26px;
}
.path__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.path p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 440px;
}
.path--dark p { color: var(--dim-2); }
.path .btn { margin-top: auto; }

.rule {
  list-style: none;
  margin: 32px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
}
.rule li { display: flex; gap: 10px; align-items: baseline; font-size: 14px; color: var(--ink-soft); }
.rule span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
}

/* Образец отчёта: таблица-сводка и воронка с числами */
.sheet__table--grid { font-size: 11px; }
.sheet__table--grid th,
.sheet__table--grid td { padding-right: 6px; white-space: nowrap; }
.sheet__table--grid td {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--ink-soft);
}
.sheet__table--grid td:first-child { color: var(--muted); }
.sheet__table--grid td:last-child { font-size: 10px; letter-spacing: .02em; }
.sheet__table td.warn { color: var(--accent); font-weight: 500; }
.sheet__text--note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.warn-dot { width: 8px; height: 8px; background: var(--accent); flex: none; }
.sheet__bars--vals span { height: 24px; min-width: 96px; }
.sheet__bars--vals i { height: 24px; }
.sheet__bars--vals b {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  height: 24px;
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.sheet__bars--vals span[style*="100%"] b { left: auto; right: 8px; }
.sheet__bars--vals span.hot b { color: var(--accent); }

/* До / после: результат цифрами */

@media (max-width: 640px) {
  .path { padding: 28px 22px 30px; min-height: 0; }
  .path__tag { margin-bottom: 18px; }
  .path .btn { width: 100%; }
  .rule { flex-direction: column; gap: 10px; }
  
}

/* Колонка с номером приоритета не слипается с действием */
.sheet__table th:first-child,
.sheet__table td:first-child { width: 26px; padding-right: 8px; }
.sheet__table--grid th:first-child,
.sheet__table--grid td:first-child { width: auto; }

/* Согласие под формой чек-листа: светлый фон, нужен тёмный текст */

/* --- Ревью 30.09: контраст и мелочи --- */
.faq__sign { color: var(--accent-text); }
.fstep[aria-selected="true"] .fstep__bar { background: var(--accent-text); border-color: var(--accent-text); }
.drawer .drawer__cta { background: var(--accent-text); }
/* Мелкий красный текст на светлом фоне */
.method__num,
.service__num,
.service__more,
.path__tag,
.rule span,
.sheet__n,
.ba-list__n,
.timeline__when,
.sheet__table td.warn,
.sheet__bars--vals span.hot b { color: var(--accent-text); }
/* На чёрном фоне фирменный красный и так читается (4.8) — оставляем его */
.service--dark .service__num,
.path--dark .path__tag,
.band a:hover,
.form-band a:hover,
.form-card a:hover,
.path--dark a:hover { color: var(--accent); }

/* Политика: «КОНФИДЕНЦИАЛЬНОСТИ» — длинное слово, на телефоне шире экрана */
.doc .h1 { font-size: clamp(22px, 6.9vw, 56px); }

/* Сенсорные экраны любой ширины (планшеты тоже): ссылки подвала и строки
   контактов — полноценные цели для пальца, как на телефоне */
@media (pointer: coarse) {
  .footer__col { gap: 0; }
  .footer__col .mono { margin-bottom: 6px; }
  .footer__col a,
.footer__col span:not(.mono) { display: flex; align-items: center; min-height: 44px; }
  .footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* --- Дебриф 03.10 --- */

/* Телефон в шапке */
.header__phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  line-height: 1.2;
  white-space: nowrap;
}
.header__phone-num { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.header__phone-note {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .08em;
  color: var(--muted);
  margin-top: 3px;
}
.header__phone:hover .header__phone-note { color: var(--muted); }
.nav { margin-left: auto; }

/* Шторка: телефон внизу */
.drawer .drawer__phone {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
}
.drawer__foot span { display: block; }

/* Подвал и блок заявки */
.footer__hours { color: var(--muted); font-size: 13px; }
.lead-phone {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  min-height: 44px;
}
.lead-phone .mono { color: var(--dim); }
.form-band .lead-phone:hover { color: var(--accent); }

/* Услуги: ограничения объёма и строка о внедрении */
.service__scope {
  display: block;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.service--dark .service__scope { border-top-color: var(--ink-line); color: var(--dim-2); }
.services__after {
  max-width: 820px;
  margin: 28px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--accent);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Опыт и специализация, «Кому мы не подойдём» */
.xp {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: 48px;
  align-items: start;
}
.xp__cats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 24px;
  padding: 0;
}
.xp__cats li {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.xp__note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.notfit { background: var(--ink); color: #fff; padding: 32px 30px 34px; }
.notfit__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin: 0 0 18px;
}
.notfit__list { list-style: none; margin: 0; padding: 0; display: grid; }
.notfit__list li {
  position: relative;
  padding: 12px 0 12px 26px;
  border-top: 1px solid var(--ink-line);
  font-size: 15px;
  line-height: 1.5;
  color: #E9E6E0;
}
.notfit__list li::before {
  content: "×";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1.2;
}

/* Форма: списки, «другое», согласие */
.field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink-line);
  border-radius: 0;
  color: #fff;
  padding: 12px 28px 12px 0;
  font-size: 16px;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #B5B0AA 50%), linear-gradient(135deg, #B5B0AA 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  transition: border-color var(--t);
}
.field select:focus { border-bottom-color: var(--accent); }
.field select option { color: var(--ink); background: #fff; }
.field select.is-empty { color: #8C8880; }
.field[hidden] { display: none; }

.field .consent {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-family: var(--font-text);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
  color: var(--dim-2);
  min-height: 44px;
  margin: 0;
  padding-top: 4px;
}
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.consent__box {
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #6E6A64;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: background var(--t), border-color var(--t);
}
.consent__box::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
  opacity: 0;
}
.consent input:checked + .consent__box { background: var(--accent-text); border-color: var(--accent-text); }
.consent input:checked + .consent__box::after { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.consent a { color: inherit; text-decoration: underline; }
.field.has-error .consent__box { border-color: var(--accent); }
.field--consent-light { flex: 1 1 100%; }
.field--consent-light .consent { color: var(--muted); }
.field--consent-light .consent__box { border-color: var(--muted); }

/* Контакты: значение строки */
.info__value {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
}

/* Страница диагностики */
.dfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 40px 0 32px;
}
.dfacts > div { background: var(--paper); padding: 22px 24px 24px; }
.dfacts dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.dfacts dd { margin: 0; font-size: 16px; line-height: 1.5; }
.dfacts > .dfacts__price { background: var(--ink); color: #fff; }
.dfacts__price dt { color: var(--dim); }
.dfacts__price b {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  letter-spacing: -.02em;
}
.dfacts__price span { display: block; margin-top: 6px; font-size: 13px; color: var(--dim-2); }
.look .service__num { margin-bottom: 28px; }
.svc-cols--two { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); margin-top: 0; }
.svc-note a { border-bottom: 1px solid var(--accent); }

@media (max-width: 1240px) {
  .header__phone-note { display: none; }
}
@media (max-width: 1100px) {
  .header__phone { display: none; }
  .xp { grid-template-columns: 1fr; gap: 32px; }
  .dfacts { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .xp__cats li { font-size: 13px; padding: 7px 13px; }
  .notfit { padding: 26px 22px 28px; }
  .services__after { font-size: 15px; }
  .dfacts { margin: 30px 0 24px; }
  .dfacts__price b { font-size: 26px; }
  .lead-phone { font-size: 20px; }
}

/* ------------------------------------------------------------- 25. Печать */
@media print {
  .header,
.drawer,
.burger,
.marquee,
.form-band,
.footer__bars,
.progress { display: none !important; }
  body { background: #fff; }
  [data-reveal],
.intro > * { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .line > span { transform: none !important; }
}

/* Direct contacts while lead processing is on hold. */
.contact-options { display: grid; align-content: start; gap: 20px; }
.contact-options h3 { font-family: var(--font-display, Manrope, sans-serif); font-size: clamp(24px, 3vw, 36px); line-height: 1.15; }
.contact-options .btn--outline { border-color: currentColor; color: inherit; }
.contact-options .lead-phone { margin-top: 0; }

/* Local review: product scope, honest result cards and direct contacts. */
.contact-arrow { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.contact-options { min-width: 0; gap: 18px; }
.contact-options h3 { margin: 0; font-size: clamp(24px, 2.6vw, 34px); }
.contact-options p { margin: 0; line-height: 1.65; }
.contact-options .btn { width: 100%; min-height: 48px; justify-content: space-between; gap: 12px; }
.contact-options .btn--light:hover { background: var(--paper); color: var(--ink); }
.contact-options .btn--outline:hover { color: var(--white); background: #ffffff12; border-color: currentColor; }
.contact-options .contact-options__note { font-size: 13px; color: var(--dim-2); }
.contact-options .lead-phone { min-height: 44px; display: flex; align-items: center; }
.experience-compact .h2 { font-size: clamp(30px, 4vw, 48px); }
.experience-compact .lead { font-size: 18px; margin-top: 18px; }
.experience-compact .xp__note { margin-top: 15px; }
.format-guide { border-top: 3px solid var(--accent); padding: 24px 0 0; }
.format-guide h3 { margin: 0 0 16px; font-family: var(--font-display); font-size: 20px; }
.format-guide ul { list-style: none; margin: 0; padding: 0; }
.format-guide li { padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; color: var(--ink-soft); }
#report .sheet__paper { aspect-ratio: auto; min-height: 260px; gap: 12px; }
#report .sheet__text { margin-top: 0; line-height: 1.7; }
.info__value { overflow-wrap: anywhere; }
@media (max-width: 600px) { .contact-options { gap: 17px; } .contact-options .btn { font-size: 12px; padding: 15px 16px; } #report .sheet__paper { min-height: 220px; } }

/* Local editorial case review. */
.page-head .editorial-title { max-width: 1050px; font-size: clamp(32px, 4.5vw, 64px); line-height: 1.08; overflow-wrap: break-word; }
.draft-notice { margin: 28px 0; padding: 22px 24px; border-left: 3px solid var(--accent); background: #fff; }
.draft-notice p + p { margin-top: 10px; }
.editorial-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; background: var(--line, #d8d4ce); border: 1px solid var(--line, #d8d4ce); }
.editorial-cards .case { background: var(--paper, #f4f2ee); }
.case-metric { font-size: clamp(17px, 2vw, 24px); font-weight: 600; margin: 6px 0 22px; }
.editorial-secondary { margin-top: 28px; }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.compare-metric { padding: 24px; background: #fff; }
.compare-metric h3 { font-size: 20px; margin-bottom: 24px; }
.compare-metric p { display: flex; justify-content: space-between; margin: 14px 0 6px; }
.compare-metric strong { font-size: 24px; }
.compare-track { height: 14px; background: #e7e3dd; }
.compare-track span { display: block; height: 100%; background: #55514b; }
.compare-track--after span { background: var(--accent); }
.case-table-wrap { overflow-x: auto; margin-top: 36px; border: 1px solid #d4cec6; }
.case-table { width: 100%; border-collapse: collapse; text-align: left; background: #fff; font-variant-numeric: tabular-nums; }
.case-table caption { text-align: left; padding: 18px; font-weight: 600; }
.case-table th, .case-table td { padding: 16px 18px; border-top: 1px solid #d4cec6; }
.case-table thead { background: var(--ink); color: #fff; }
.case-table tbody th { font-weight: 500; }
.case-table td { white-space: nowrap; }
.case-limit { padding: 30px; background: #fff; border-left: 3px solid var(--accent); }
.case-limit p { margin-top: 18px; }
.paths--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.paths--three .path { display: flex; flex-direction: column; }
.paths--three .btn { margin-top: auto; align-self: flex-start; }
.measurement-flow { padding: 0; list-style: none; counter-reset: method; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; background: #d4cec6; margin: 30px 0; }
.measurement-flow li { counter-increment: method; padding: 24px; background: #fff; font-weight: 500; }
.measurement-flow li::before { content: '0' counter(method); display: block; font: 12px var(--font-mono,monospace); color: var(--accent); margin-bottom: 18px; }
@media (max-width: 1000px) { .paths--three { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .editorial-cards,.compare-grid,.measurement-flow { grid-template-columns: 1fr; } .draft-notice,.case-limit { padding: 20px; } .case-table th,.case-table td { padding: 12px 10px; font-size: 13px; } .case-table { min-width: 480px; } }

.case-table-hint { display: none; }
@media (max-width: 600px) { .case-table-hint { display: block; font-size: 13px; color: var(--muted); margin-top: 12px; } }

/* Contact clarity and readable conditions, October 2026. */
.hero .hero__actions { margin-bottom: 16px; }
.first-meeting { margin: 0 0 32px; max-width: 540px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.demo-caption { margin: 14px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
#services .service__num { margin-bottom: 14px; }
#services .service__guide { font-size: 14px; line-height: 1.5; color: var(--accent-text); font-weight: 600; margin-bottom: 18px; }
#services .service--dark .service__guide { color: var(--paper); }
.svc-note { font-family: var(--font-text); font-size: 14px; line-height: 1.65; letter-spacing: normal; text-transform: none; color: var(--muted); }
.draft-notice .mono { font-family: var(--font-text); font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--ink-soft); letter-spacing: normal; text-transform: none; }
.draft-notice p { font-size: 15px; line-height: 1.65; }
.contact-options .contact-options__note { color: #d1ccc5; font-size: 14px; line-height: 1.65; }
.service__scope { font-size: 14px; line-height: 1.6; }
.dfacts__price span { font-size: 14px; line-height: 1.6; }

#services .service__list { font-family: var(--font-text); font-size: 13px; line-height: 1.65; }
#services .service__list li + li { margin-top: 7px; }
#services .service__more { font-size: 12px; }
@media (min-width: 901px) { #services .service__guide { min-height: 42px; } }
