/* Neiman Group — сайт компании. Тёмный «отчёт собственнику»: цифры светятся оранжевым.
   Намеренно не похож на сайты студий: тёмная основа, крупный плотный шрифт, прямые углы, своя шапка и кнопки. */

:root {
  /* Бренд — из черновика «тёплая палитра» (neimangroup-warm) */
  --accent: #E95A2B;      /* оранжевый знака */
  --sand: #F5F1EC;        /* светлый фон черновика — здесь основной цвет текста */
  --beige: #C9B29E;       /* беж волны */
  --brown: #4A352E;       /* тёмный край волны */
  /* Тёмная основа — свои значения в тёплой гамме бренда */
  --bg: #120E0D;
  --card: #1B1514;
  --raised: #251E1C;
  --ink: #F5F1EC;         /* основной текст */
  --ink-2: #CBBFB5;       /* вторичный текст */
  --mute: #998A80;        /* мета, ≈5:1 на --bg */
  --accent-ink: #F27A4E;  /* оранжевый для мелкого текста на тёмном (контраст 6:1) */
  --on-accent: #120E0D;   /* текст на оранжевом: 5.9:1 */
  --line: rgba(245, 241, 236, .1);
  --line-strong: rgba(245, 241, 236, .2);

  --font: "Onest", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 56px);
  --sec: clamp(88px, 11vw, 160px);
  --r: 4px;               /* прямые углы — у студий скругления 10–16 */
  --r-lg: 6px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --hdr-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.7 var(--font); -webkit-font-smoothing: antialiased;
  overflow-x: clip; overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums lining-nums; }
.mono { font-family: var(--mono); }

/* ---------- Типографика ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--ink-2);
}
.eyebrow svg { width: 14px; height: 15px; color: var(--accent); }
.h1 { font-size: clamp(44px, 7vw, 104px); font-weight: 800; line-height: .94; letter-spacing: -.045em; text-wrap: balance; }
.h2 { font-size: clamp(36px, 5.2vw, 76px); font-weight: 700; line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.h3 { font-size: clamp(22px, 2.1vw, 30px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.h4 { font-size: 19px; font-weight: 600; line-height: 1.35; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-2); max-width: 40em; text-wrap: pretty; }
.accent { color: var(--accent); }
.muted { color: var(--mute); }
.sec { padding-block: var(--sec); }
.sec-head { display: grid; gap: 24px; margin-bottom: clamp(48px, 6vw, 96px); max-width: 980px; }
.hair { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Список со штрихом из знака */
.ticks { display: grid; gap: 12px; align-content: start; }
.ticks li { position: relative; padding-left: 26px; line-height: 1.55; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 4px; border-radius: 4px;
  background: var(--accent); transform: rotate(45deg);
}

/* ---------- Кнопки: прямые углы, стрелка в своей ячейке, заливка проезжает слева ---------- */
.btn {
  --fill: var(--sand); --fill-ink: var(--on-accent);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; height: 60px; padding: 0; border-radius: 2px;
  font-size: 16px; font-weight: 600; line-height: 1.2; white-space: nowrap; letter-spacing: -.005em;
  border: 1px solid transparent;
  background-image: linear-gradient(var(--fill), var(--fill)); background-repeat: no-repeat;
  background-size: 0% 100%; background-position: left center;
  transition: background-size .55s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .25s var(--ease);
}
/* Поля слева и справа — псевдоэлементы; ячейка со стрелкой встаёт вплотную к правому краю */
.btn::before, .btn::after { content: ""; width: 26px; flex: none; }
.btn > svg.i {
  box-sizing: content-box; height: 100%; width: 20px; padding: 0 20px; margin: 0 -26px 0 26px;
  border-left: 1px solid currentColor; border-left-color: color-mix(in srgb, currentColor 30%, transparent);
  transition: transform .5s var(--ease);
}
.btn:hover { background-size: 100% 100%; }
.btn:hover > svg.i { transform: translateX(2px); }
.btn:active { transform: scale(.98); }
.btn-primary { background-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { color: var(--on-accent); }
.btn-ghost { background-color: transparent; color: var(--ink); border-color: var(--line-strong); --fill: var(--sand); }
.btn-ghost:hover { color: var(--on-accent); border-color: var(--sand); }
.btn-dark { background-color: var(--on-accent); color: var(--sand); --fill: var(--accent); }
.btn-dark:hover { color: var(--on-accent); }
.btn-light { background-color: var(--sand); color: var(--on-accent); --fill: var(--accent); }
.btn-sm { height: 44px; font-size: 15px; }
.btn-sm::before, .btn-sm::after { width: 18px; }
.btn-sm > svg.i { padding: 0 14px; margin: 0 -18px 0 18px; width: 16px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Текстовая ссылка со стрелкой */
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600;
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left bottom / 100% 1px; padding-bottom: 4px;
  transition: color .3s var(--ease), background-size .5s var(--ease);
}
.link svg.i { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link:hover { color: var(--accent-ink); background-size: 100% 2px; }
.link:hover svg.i { transform: translateX(2px); }

/* ---------- Шапка: прозрачная, статус работы, кнопка «Меню» с полноэкранным меню ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr-h);
  transition: transform .45s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-solid { background: rgba(18, 14, 13, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: var(--line); }
/* Прячем вниз-прокрутку только через transform — высота не меняется */
.hdr.is-hidden { transform: translateY(-100%); }
.hdr-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand svg { width: 30px; height: 34px; color: var(--accent); transition: transform .6s var(--ease); }
.brand:hover svg { transform: translateX(2px); }
.brand b { font-size: 19px; font-weight: 800; line-height: .94; letter-spacing: -.03em; }
.hdr-status { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.hdr-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.hdr-status.is-open i { background: #4CC38A; }
.hdr-phone { font-weight: 600; font-size: 16px; white-space: nowrap; transition: color .3s var(--ease); }
.hdr-phone:hover { color: var(--accent-ink); }
.menu-btn {
  display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 6px 0 18px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; font-weight: 600; font-size: 15px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.menu-btn:hover { border-color: var(--sand); }
/* Иконка — три штриха знака; при открытии собираются в крест (только transform, без смены размеров) */
.menu-icon { position: relative; width: 32px; height: 32px; flex: none; color: var(--accent); }
.menu-icon i {
  position: absolute; left: 0; top: 0; width: 24px; height: 4px; border-radius: 4px; background: currentColor;
  transition: transform .55s var(--ease), opacity .35s var(--ease);
}
.menu-icon i:nth-child(1) { transform: translate(1px, 11px) rotate(45deg) scaleX(1.02); }
.menu-icon i:nth-child(2) { transform: translate(10px, 6.5px) rotate(45deg) scaleX(.6); }
.menu-icon i:nth-child(3) { transform: translate(-4px, 22px) rotate(45deg) scaleX(.46); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(1) { transform: translate(4px, 14px) rotate(45deg) scaleX(1); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(2) { transform: translate(4px, 14px) rotate(135deg) scaleX(1); }
.menu-btn[aria-expanded="true"] .menu-icon i:nth-child(3) { transform: translate(4px, 14px) rotate(45deg) scaleX(0); opacity: 0; }
/* Подпись: оба слова в одной ячейке — ширина кнопки не меняется, слова сменяют друг друга по вертикали */
.menu-label { display: grid; overflow: hidden; height: 1.3em; line-height: 1.3; }
.menu-label > span { grid-area: 1 / 1; transition: transform .5s var(--ease), opacity .35s var(--ease); }
.menu-label > span:last-child { transform: translateY(100%); opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-label > span:first-child { transform: translateY(-100%); opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-label > span:last-child { transform: none; opacity: 1; }
.menu-btn { transition: border-color .3s var(--ease), background-color .45s var(--ease), color .45s var(--ease); }
.menu-btn[aria-expanded="true"] { background: var(--sand); color: var(--on-accent); border-color: var(--sand); }

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); overflow-y: auto;
  padding: calc(var(--hdr-h) + clamp(24px, 5vh, 64px)) 0 40px;
  clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; visibility: hidden;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease), visibility 0s; }
.menu-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 120px); }
.menu nav { display: grid; border-top: 1px solid var(--line); }
.menu nav a {
  display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(20px, 1.8vw, 26px); font-weight: 600; line-height: 1.25; letter-spacing: -.02em;
  transition: color .6s var(--ease);
}
.menu nav a span { font-family: var(--mono); font-size: 13px; font-weight: 400; line-height: 1; letter-spacing: 0; color: var(--mute); min-width: 28px; }
.menu nav a:hover { color: var(--accent); }
.menu-side { display: grid; gap: 28px; align-content: start; }
.menu-side dl { display: grid; gap: 20px; }
.menu-side dt { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.menu-side dd { font-size: 17px; font-weight: 500; line-height: 1.45; }
.menu-side dd a { transition: color .3s var(--ease); }
.menu-side dd a:hover { color: var(--accent-ink); }
body.menu-open { overflow: hidden; }

.socials { display: flex; gap: 6px; }
.socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--ink);
  background: linear-gradient(var(--accent), var(--accent)) no-repeat left / 0% 100%;
  transition: background-size .45s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.socials a:hover { background-size: 100% 100%; color: var(--on-accent); border-color: var(--accent); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Первый экран главной ---------- */
.x-hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; padding: calc(var(--hdr-h) + clamp(24px, 4vw, 56px)) 0 0; display: flex; flex-direction: column; }
.x-hero > .wrap { flex: 1; display: flex; flex-direction: column; }
.x-hero-top { display: flex; justify-content: space-between; gap: 24px; align-items: center; position: relative; z-index: 3; }
.x-hero-body { position: relative; flex: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end; gap: 0; }
.x-title { position: relative; z-index: 3; padding: clamp(24px, 3vw, 40px) 0 clamp(32px, 3vw, 48px); }
.x-title h1 { font-size: clamp(48px, 7.6vw, 116px); font-weight: 800; line-height: .88; letter-spacing: -.055em; white-space: nowrap; }
.x-title h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.x-title h1 .ln > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease); }
.x-title h1 .ln:nth-child(2) > span { transition-delay: .08s; }
.x-title h1 .ln:nth-child(3) > span { transition-delay: .16s; }
.is-ready .x-title h1 .ln > span { transform: none; }
.x-title h1 .accent { color: var(--accent); }
.x-title .lead { margin-top: clamp(24px, 3vw, 40px); max-width: 34em; }
.x-title .btns { margin-top: 32px; }
.x-visual { position: relative; align-self: stretch; min-height: 560px; z-index: 1; }
.x-blob { position: absolute; right: calc(var(--gutter) * -1); left: 4%; bottom: 0; height: 96%; }
.x-blob svg { width: 100%; height: 100%; }
.x-photo {
  position: absolute; right: -8%; bottom: 0; width: 130%; max-width: none;
  /* фото отзеркалено: Иван смотрит в кадр; стол слева гасим, чтобы не было жёсткого края */
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent, #000 14%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, #000 80%, transparent 100%), linear-gradient(to right, transparent, #000 14%);
  mask-composite: intersect;
  opacity: 0; transform: translateY(24px); transition: opacity 1.2s var(--ease) .25s, transform 1.2s var(--ease) .25s;
}
.is-ready .x-photo { opacity: 1; transform: none; }
.x-name {
  position: absolute; left: -6%; bottom: 22%; z-index: 2; padding: 12px 18px; background: var(--bg); border-left: 3px solid var(--accent);
  font-size: 14px; line-height: 1.35; color: var(--ink-2);
}
.x-name b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
/* Бейдж-печать со знаком: медленно вращается */
.x-badge { position: absolute; top: 0; right: 0; width: 168px; height: 168px; z-index: 2; color: var(--ink); }
.x-badge svg.ring { width: 100%; height: 100%; animation: spin 24s linear infinite; }
.x-badge text { font-family: var(--mono); font-size: 10.4px; letter-spacing: .18em; fill: currentColor; }
.x-badge .core { position: absolute; inset: 30%; display: grid; place-items: center; background: var(--accent); border-radius: 50%; color: var(--on-accent); }
.x-badge .core svg { width: 40%; height: 40%; }
@keyframes spin { to { transform: rotate(360deg); } }

.x-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); background: var(--bg); }
.x-stats > div { padding: 24px 24px 28px 0; display: grid; gap: 8px; align-content: start; }
.x-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.x-stats b { font-size: clamp(40px, 4.4vw, 68px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.x-stats > div:first-child b { color: var(--accent); }
.x-stats span { font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 22em; }

/* ---------- Бегущие ленты ---------- */
.tickers { position: relative; height: clamp(150px, 16vw, 220px); overflow: hidden; margin-block: clamp(24px, 4vw, 48px); }
.ticker { position: absolute; left: -5%; width: 110%; top: 50%; overflow: hidden; padding: 18px 0; }
.ticker.t1 { background: var(--accent); color: var(--on-accent); transform: translateY(-30%) rotate(-1.6deg); z-index: 2; }
.ticker.t2 { background: var(--sand); color: var(--on-accent); transform: translateY(-110%) rotate(1.4deg); }
.ticker-row { display: flex; width: max-content; animation: tick 48s linear infinite; }
.ticker.t2 .ticker-row { animation-direction: reverse; animation-duration: 60s; }
.ticker-row ul { display: flex; align-items: center; flex: none; }
.ticker-row li { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-size: clamp(20px, 2.2vw, 32px); font-weight: 800; letter-spacing: -.03em; white-space: nowrap; line-height: 1; }
.ticker-row li svg { width: 22px; height: 24px; }
.ticker.t1 li svg { color: var(--on-accent); }
.ticker.t2 li svg { color: var(--accent); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Кейсы: карточки стопкой ---------- */
.cases-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 5vw, 72px); }
.cases-head .h2 { font-size: clamp(56px, 10vw, 168px); line-height: .85; letter-spacing: -.06em; }
.cases-head .h2 sup { font-family: var(--mono); font-size: 14px; font-weight: 400; letter-spacing: 0; vertical-align: top; color: var(--accent); margin-left: 8px; position: relative; top: .8em; }
.cases { display: grid; gap: 24px; }
.case {
  position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(32px, 4vw, 64px);
  padding: clamp(24px, 3.4vw, 48px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.case::before { content: ""; position: absolute; left: 0; top: 0; width: 64px; height: 3px; background: var(--accent); }
.case-info { display: grid; gap: 20px; align-content: start; }
.case-kind { font-family: var(--mono); font-size: 13px; color: var(--mute); }
.case-kind b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.case-info > p { color: var(--ink-2); }
.case-big { display: flex; gap: clamp(24px, 3vw, 48px); flex-wrap: wrap; padding: 8px 0 4px; }
.case-big div { display: grid; gap: 6px; }
.case-big b { font-size: clamp(48px, 5.4vw, 84px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.case-big div:first-child b { color: var(--accent); }
.case-big span { font-size: 14px; color: var(--ink-2); max-width: 14em; line-height: 1.4; }
.ba { display: grid; gap: 0; }
.ba-row { padding: 16px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ba-row h4 { font-size: 16px; font-weight: 600; }
.ba-row dl { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ba-row dt { color: var(--mute); font-family: var(--mono); font-size: 13px; padding-top: 2px; }
.ba-row dd .ticks { gap: 6px; }
.ba-row dd .ticks li { padding-left: 22px; }
.ba-row dd .ticks li::before { width: 10px; height: 3px; }
.ba-row .when { grid-column: 2; font-size: 13px; color: var(--mute); }
.case .btns { margin-top: 8px; }
.case-facts { display: grid; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.fact dt { font-size: 15px; color: var(--ink-2); }
.fact dd { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1; text-align: right; }
.fact small { grid-column: 1 / -1; font-size: 14px; color: var(--mute); }
/* Стопка при прокрутке: следующий кейс наезжает на предыдущий */
@media (min-width: 1101px) and (min-height: 760px) {
  .cases { gap: 32px; }
  .case { position: sticky; top: calc(var(--hdr-h) + 16px); box-shadow: 0 -24px 48px rgba(0, 0, 0, .35); }
  .case:nth-child(2) { top: calc(var(--hdr-h) + 32px); }
  .case:nth-child(3) { top: calc(var(--hdr-h) + 48px); }
  .case:nth-child(4) { top: calc(var(--hdr-h) + 64px); }
}

/* Рамка окна браузера вокруг скриншотов */
.gal { display: grid; gap: 16px; align-content: start; min-width: 0; }
.browser { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: var(--raised); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.browser-bar i:first-child { background: var(--accent); }
.browser-bar span { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 54px; }
.gal-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track figure {
  scroll-snap-align: start; aspect-ratio: 16 / 11; background: #F2EEEA;
  display: grid; place-items: center; overflow: hidden; padding: clamp(8px, 1.4vw, 16px);
}
.gal-track img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.gal-track figure.cover { padding: 0; background: #000; }
.gal-track figure.cover img { width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.gal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gal-count { font-family: var(--mono); font-size: 14px; color: var(--mute); }
.arrows { display: flex; gap: 0; }
.arrow {
  width: 52px; height: 44px; border: 1px solid var(--line-strong); background: transparent; display: grid; place-items: center; border-radius: 2px;
  background-image: linear-gradient(var(--sand), var(--sand)); background-repeat: no-repeat; background-size: 0% 100%;
  transition: background-size .45s var(--ease), color .3s var(--ease);
}
.arrow + .arrow { border-left: 0; }
.arrow svg.i { width: 18px; height: 18px; }
.arrow:hover { background-size: 100% 100%; color: var(--on-accent); }
.arrow:disabled { opacity: .3; cursor: default; }
.arrow:disabled:hover { background-size: 0% 100%; color: inherit; }
.cases-more { display: flex; justify-content: center; margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Три направления ---------- */
.dirs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.dir { position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 20px; padding: 32px 32px 40px 0; }
.dirs .dir + .dir { padding-left: 32px; border-left: 1px solid var(--line); }
.dir-n { font-size: clamp(64px, 7vw, 112px); font-weight: 800; line-height: .8; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.dir-img { height: 220px; display: grid; place-items: center; background: #fff; overflow: hidden; }
.dir-img img { max-height: 200px; width: auto; }
.dir-img.cover img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.dir .ticks { font-size: 16px; color: var(--ink-2); }

/* ---------- Состав работ: огромные строки ---------- */
.rows { border-top: 1px solid var(--line-strong); }
.row { display: grid; grid-template-columns: 120px minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; padding: clamp(24px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: center; }
.row .idx { font-size: clamp(40px, 4vw, 64px); font-weight: 800; line-height: 1; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.row .h3 { font-size: clamp(26px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.row p { color: var(--ink-2); }

/* ---------- Как работаем: плитки ---------- */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: grid; grid-template-rows: auto 1fr; gap: 24px; padding: clamp(24px, 2.6vw, 36px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tile.w3 { grid-column: span 3; }
.tile.w2 { grid-column: span 2; }
.tile.w4 { grid-column: span 4; }
.tile-txt { display: grid; gap: 12px; align-content: start; }
.tile-txt p { color: var(--ink-2); }
.tile-img { align-self: end; display: grid; place-items: center; background: #fff; margin: 0 calc(clamp(24px, 2.6vw, 36px) * -1) calc(clamp(24px, 2.6vw, 36px) * -1); min-height: 220px; padding: 20px; }
.tile-img img { max-height: 300px; width: auto; }
.tile-img.cover { padding: 0; }
.tile-img.cover img { width: 100%; max-height: 300px; height: 100%; object-fit: cover; }
.tile.hot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tile.hot .tile-txt p { color: rgba(18, 14, 13, .78); }
.tile.hot .big { font-size: clamp(72px, 8vw, 128px); font-weight: 800; letter-spacing: -.06em; line-height: .85; }

/* ---------- Оранжевый блок «Заменим отдел маркетинга» (класс .dark — для совместимости внутренних страниц) ---------- */
.dark { background: var(--accent); color: var(--on-accent); }
.dark .lead, .dark p { color: rgba(18, 14, 13, .8); }
.dark .muted { color: rgba(18, 14, 13, .65); }
.dark .ticks li::before { background: var(--on-accent); }
.dark .btn-light { background-color: var(--on-accent); color: var(--sand); --fill: var(--sand); }
.dark .btn-light:hover { color: var(--on-accent); }
.offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.offer-copy { display: grid; gap: 28px; justify-items: start; }
.price { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.price b { font-size: clamp(56px, 7.4vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .85; }
.price span { font-size: 20px; font-weight: 600; }
.offer .ticks { font-size: 18px; }
.offer .ticks li { color: var(--on-accent); }
.duo { display: grid; gap: 24px; justify-items: start; }
.duo-people { display: flex; gap: 20px; flex-wrap: wrap; }
.person { display: grid; gap: 12px; justify-items: start; }
.person img { width: 156px; height: 196px; object-fit: cover; filter: grayscale(1) contrast(1.05); border-radius: 2px; }
.person b { font-size: 18px; font-weight: 700; line-height: 1.2; }
.person span { font-size: 14px; color: var(--mute); }
.dark .person span { color: rgba(18, 14, 13, .65); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 12px; border-radius: 2px; border: 1px solid currentColor; font-size: 14px; font-weight: 500; }
.dark .chip { border-color: rgba(18, 14, 13, .35); }

/* ---------- Команда ---------- */
.team-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line-strong); }
.team-facts > div { padding: 24px 24px 0 0; display: grid; gap: 10px; }
.team-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.team-facts b { font-size: clamp(44px, 4.6vw, 72px); font-weight: 800; letter-spacing: -.05em; line-height: .9; }
.team-facts > div:first-child b { color: var(--accent); }
.team-facts span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.team { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.team .person { justify-items: stretch; align-content: start; }
.team .person span { display: inline-block; line-height: 1.4; }
.team .person img { width: 100%; height: auto; aspect-ratio: 4 / 5; }

/* ---------- Вопросы ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 24px 0; font-size: 20px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-ink); }
.faq summary .plus {
  width: 44px; height: 44px; flex: none; border: 1px solid var(--line-strong); display: grid; place-items: center; border-radius: 2px;
  transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.faq summary:hover .plus { border-color: var(--accent); }
.faq summary .plus svg.i { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.faq details.is-open summary .plus { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq details.is-open summary .plus svg.i { transform: rotate(45deg); }
.faq .answer { overflow: hidden; padding: 0 64px 28px 0; color: var(--ink-2); display: grid; gap: 12px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.contacts-info { display: grid; gap: 32px; align-content: start; }
.contact-list { display: grid; border-top: 1px solid var(--line-strong); }
.contact-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--mute); font-family: var(--mono); font-size: 13px; padding-top: 4px; }
.contact-list dd { font-size: 18px; font-weight: 500; line-height: 1.55; }
.contact-list a { transition: color .3s var(--ease); }
.contact-list a:hover { color: var(--accent-ink); }
.map { position: relative; overflow: hidden; min-height: 400px; background: var(--card); border-radius: var(--r-lg); }
.map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) invert(.9) contrast(.85) brightness(.85); }
.map-pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); width: 44px; height: 54px; color: var(--accent); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .5)); }
.map-label {
  position: absolute; left: 16px; top: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 12px 12px 18px; background: var(--bg); border: 1px solid var(--line); font-size: 15px;
}
.map-label > span { line-height: 1.4; }

/* ---------- Подвал: огромный логотип ---------- */
.ftr { border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 112px) 0 32px; font-size: 15px; color: var(--ink-2); overflow: hidden; }
.ftr-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr .brand { color: var(--ink); }
.ftr h4 { font-family: var(--mono); font-size: 13px; font-weight: 400; color: var(--mute); margin-bottom: 16px; }
.ftr nav, .ftr-col { display: grid; gap: 10px; align-content: start; }
.ftr a { transition: color .3s var(--ease); }
.ftr nav a:hover, .ftr-col a:hover { color: var(--accent-ink); }
.ftr-about { display: grid; gap: 20px; align-content: start; }
.ftr-about p { max-width: 30em; line-height: 1.6; }
.ftr-word {
  margin-top: clamp(56px, 7vw, 96px); font-size: min(9.4vw, 176px); font-weight: 800; letter-spacing: -.065em; line-height: .78;
  color: var(--ink); white-space: nowrap; display: flex; align-items: flex-end; gap: .06em;
}
.ftr-word svg { width: .42em; height: .46em; color: var(--accent); flex: none; margin-bottom: .04em; }
.ftr-word span { color: var(--accent); }
.ftr-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 13px; color: var(--mute); }
.ftr-bottom a:hover { color: var(--ink); }

/* ---------- Внутренние страницы ---------- */
.page-hero { padding: calc(var(--hdr-h) + clamp(32px, 5vw, 80px)) 0 clamp(56px, 7vw, 104px); }
.crumbs { display: flex; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--mute); margin-bottom: 28px; flex-wrap: wrap; }
.crumbs a { transition: color .3s var(--ease); }
.crumbs a:hover { color: var(--accent-ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.page-hero-copy { display: grid; gap: 24px; justify-items: start; }
.page-hero-copy .h1 { font-size: clamp(36px, 4.4vw, 64px) !important; }
.page-hero-img { border: 1px solid var(--line-strong); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.page-hero-img img { width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.kpis > div { padding: 24px 24px 0 0; display: grid; gap: 8px; }
.kpis > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.kpis b { font-size: clamp(44px, 5vw, 80px); font-weight: 800; letter-spacing: -.055em; line-height: .9; }
.kpis span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.prose-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose-grid > .h2, .prose-grid > .side { position: sticky; top: calc(var(--hdr-h) + 32px); }
.prose { display: grid; gap: 18px; color: var(--ink-2); max-width: 700px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { color: var(--ink); margin-top: 16px; }
.quote { position: relative; padding: clamp(28px, 4vw, 56px); background: var(--accent); color: var(--on-accent); border-radius: var(--r-lg); display: grid; gap: 12px; }
.quote .eyebrow { color: var(--on-accent); }
.quote p { font-size: clamp(24px, 2.6vw, 38px); line-height: 1.15; font-weight: 700; letter-spacing: -.03em; }

.problems { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.problem { display: grid; gap: 14px; padding-top: 24px; border-top: 2px solid var(--accent); align-content: start; }
.problem p { color: var(--ink-2); }

.steps { display: grid; border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: clamp(28px, 3vw, 44px) 0; border-bottom: 1px solid var(--line); }
.step-n { font-size: clamp(36px, 3.6vw, 56px); font-weight: 800; letter-spacing: .02em; line-height: .85; color: transparent; -webkit-text-stroke: 1px var(--accent); }
.step-body { display: grid; gap: 12px; color: var(--ink-2); max-width: 800px; }
.step-body .h3 { color: var(--ink); }

/* Воронка кейса */
.funnel { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 16px; }
.funnel-bars { padding: clamp(24px, 3vw, 44px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 24px; align-content: center; }
.bar { display: grid; gap: 10px; }
.bar-head { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.bar-head span { color: var(--ink-2); font-size: 16px; }
.bar-head b { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.04em; }
.bar-track { height: 14px; background: var(--raised); overflow: hidden; }
.bar-fill { height: 100%; width: var(--w); background: var(--beige); transform-origin: left; transform: scaleX(0); transition: transform 1.4s var(--ease); }
.is-in .bar-fill { transform: scaleX(1); }
.bar:nth-child(2) .bar-fill { transition-delay: .12s; }
.bar:nth-child(3) .bar-fill { transition-delay: .24s; }
.bar:nth-child(4) .bar-fill { transition-delay: .36s; background: var(--accent); }
.bar.lead-bar .bar-fill { background: var(--brown); }
.money { display: grid; gap: 16px; }
.money > div { padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 6px; align-content: center; }
.money b { font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.money span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.money .romi { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.money .romi b { font-size: clamp(56px, 6vw, 96px); letter-spacing: -.06em; }
.money .romi span { color: var(--on-accent); font-weight: 600; }
.money .romi i { font-style: normal; font-family: var(--mono); font-size: 12px; color: rgba(18, 14, 13, .7); }

.range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.range > div { padding: clamp(28px, 3.6vw, 56px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 12px; }
.range > div:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.range > div:first-child span { color: rgba(18, 14, 13, .78); }
.range b { font-size: clamp(56px, 7vw, 112px); font-weight: 800; letter-spacing: -.06em; line-height: .9; }
.range span { color: var(--ink-2); }

.cta-band { position: relative; overflow: hidden; padding: clamp(40px, 5vw, 72px); background: var(--accent); color: var(--on-accent); border-radius: var(--r-lg); display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band .h3 { max-width: 700px; font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.cta-band .btn-light { background-color: var(--on-accent); color: var(--sand); --fill: var(--sand); }
.cta-band .btn-light:hover { color: var(--on-accent); }
.cta-band .btn-ghost { color: var(--on-accent) !important; border-color: rgba(18, 14, 13, .35) !important; --fill: var(--on-accent); }
.cta-band .btn-ghost:hover { color: var(--sand) !important; }

.icons-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.icons-list li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; align-items: start; color: var(--ink-2); font-size: 18px; }
.icons-list .ic { width: 48px; height: 48px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--accent); }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trio figure { background: #231F20; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 16px; }
.trio img { max-height: 100%; width: auto; object-fit: contain; }

.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pair-txt { display: grid; gap: 16px; max-width: 560px; }
.pair-txt p { color: var(--ink-2); }
.pair-img { display: grid; place-items: center; padding: clamp(24px, 4vw, 48px); background: #fff; border-radius: var(--r-lg); min-height: 320px; overflow: hidden; }
.pair-img img { max-height: 380px; width: auto; }
.pair-img.cover { padding: 0; }
.pair-img.cover img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }

/* Найм */
.stage { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(40px, 5vw, 72px) 0; border-top: 1px solid var(--line-strong); }
.stage-head { display: grid; gap: 16px; align-content: start; }
.stage-n { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.stage-term { display: grid; gap: 4px; padding: 16px 20px; background: var(--card); border-left: 3px solid var(--accent); font-size: 15px; color: var(--ink-2); }
.stage-term b { color: var(--ink); font-weight: 600; font-size: 14px; }
.stage-intro { display: grid; gap: 12px; color: var(--ink-2); }
.stage .faq summary { font-size: 17px; }
.price-table { display: grid; border-top: 1px solid var(--line-strong); }
.pt-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pt-row .stage-n { color: var(--mute); }
.pt-row b { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -.04em; white-space: nowrap; }
.pt-row small { display: block; color: var(--mute); font-size: 14px; margin-top: 4px; }
.pt-total { background: var(--accent); color: var(--on-accent); padding: 28px 32px; margin-top: 24px; grid-template-columns: minmax(0, 1fr) auto; border: 0; border-radius: var(--r-lg); }
.pt-total b { font-size: clamp(36px, 4vw, 60px); }
.addons { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-2); font-size: 15px; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.compare th, .compare td { padding: 22px 24px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 18px; font-weight: 700; background: var(--raised); }
.compare thead th:last-child { background: var(--accent); color: var(--on-accent); }
.compare thead th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 15%; }
.compare tbody td:first-child { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.compare tbody td:first-child p + p { margin-top: 8px; }
.compare tfoot td { border-bottom: 0; vertical-align: middle; }
.compare tfoot b { font-size: 28px; font-weight: 800; letter-spacing: -.035em; }
.yes, .no { display: inline-grid; place-items: center; width: 32px; height: 32px; }
.yes { background: var(--accent); color: var(--on-accent); }
.no { border: 1px solid var(--line-strong); color: var(--mute); }
.yes svg.i, .no svg.i { width: 16px; height: 16px; }
.tiers-m { display: none; }
.tiers-m .dir { background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: var(--r-lg); }
.page-hero .dir { background: var(--card); border: 1px solid var(--line); padding: 32px; border-radius: var(--r-lg); }

/* Политика */
.legal { max-width: 860px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.legal section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.legal h2 { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.legal p { color: var(--ink-2); font-size: 16px; line-height: 1.7; }

/* ---------- Лендинг для стоматологий (/stomat) ---------- */
.sm-hero .page-hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.sm-chair { position: relative; isolation: isolate; }
.sm-chair::before { content: ""; position: absolute; inset: 14% 0 0 10%; z-index: -1; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 70%, var(--accent), var(--brown) 70%); opacity: .9; }
.sm-chair img { width: 100%; }
.sm-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-strong); }
.sm-points li { display: grid; gap: 12px; padding: 24px 32px 0 0; color: var(--ink-2); }
.sm-points li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.sm-points strong { color: var(--ink); font-weight: 600; }
.sm-points .step-n { font-size: 40px; }
.sm-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.sm-cards > div { padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 8px; align-content: start; }
.sm-cards > div:first-child { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.sm-cards > div:first-child span { color: rgba(18, 14, 13, .78); }
.sm-cards > div::before { content: ""; width: 14px; height: 4px; border-radius: 4px; background: currentColor; transform: rotate(45deg); margin: 4px 0 12px; color: var(--accent); }
.sm-cards > div:first-child::before { color: var(--on-accent); }
.sm-cards b { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.sm-cards span { color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.sm-roi { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.sm-ratio { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: end; padding: clamp(28px, 3vw, 44px); background: var(--on-accent); color: var(--sand); }
.sm-ratio > div { display: grid; gap: 4px; }
.sm-ratio .muted { color: var(--mute) !important; }
.sm-ratio b { font-size: clamp(64px, 8vw, 120px); font-weight: 800; letter-spacing: -.06em; line-height: .9; color: var(--sand); }
.sm-ratio b.accent-light { color: var(--accent); }
.sm-ratio svg.i { width: 40px; height: 40px; color: var(--mute); margin-bottom: 20px; }
.sm-ratio p { grid-column: 1 / -1; font-size: 14px; }
.journey { display: grid; margin-top: 16px; border-top: 1px solid var(--line-strong); }
.journey li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 19px; line-height: 1.4; align-items: baseline; }
.journey .step-n { font-size: 28px; }
.journey li:last-child { color: var(--accent); font-weight: 700; }
.sm-quote { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(24px, 3vw, 44px); background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.sm-quote img { width: 120px; height: 120px; object-fit: cover; object-position: 40% 30%; filter: grayscale(1); }
.sm-quote p { font-size: clamp(20px, 1.9vw, 26px); line-height: 1.4; }
.sm-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sm-case { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.sm-case-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sm-case-body { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 20px; align-content: start; }
.sm-city { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: center; }
.sm-city img { width: 40px; height: auto; }
.sm-city .h4 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sm-city b { display: block; font-weight: 600; font-size: 16px; margin-top: 2px; }
.sm-case .ticks { font-size: 15px; color: var(--ink-2); gap: 10px; }
.sm-case .ticks strong { color: var(--ink); font-weight: 600; }
.sm-note { font-size: 15px; font-weight: 600; color: var(--accent-ink); }
.vs { display: grid; gap: 20px; margin-top: 16px; }
.vs li { display: grid; grid-template-columns: 32px 1fr; gap: 16px; align-items: start; color: var(--ink-2); }
.vs strong { color: var(--ink); font-weight: 600; }
.sm-leads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); margin-bottom: 24px; }
.sm-leads > div { padding: 24px 24px 24px 0; display: grid; gap: 8px; }
.sm-leads > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.sm-leads b { font-size: clamp(36px, 3.6vw, 56px); font-weight: 800; letter-spacing: -.05em; line-height: .95; }
.sm-leads > div:first-child b { color: var(--accent); }
.sm-leads span { color: var(--ink-2); font-size: 15px; line-height: 1.45; }
.sm-final { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(28px, 4vw, 64px); background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.sm-final-side { display: grid; gap: 28px; align-content: start; justify-items: start; }
.sm-final .ticks { color: var(--ink-2); }
.sm-final .ticks strong { color: var(--ink); }

/* ---------- Появление ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .x-photo, .x-title h1 .ln > span { opacity: 1; transform: none; transition: none; }
  .bar-fill { transform: none; transition: none; }
  .ticker-row, .x-badge svg.ring { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1320px) {
  .team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hdr-status { display: none; }
  .hdr-in { justify-content: space-between; }
  .brand { margin-right: auto; }
  .x-hero { min-height: 0; }
  .x-hero-body { grid-template-columns: minmax(0, 1fr); }
  .x-title { padding-bottom: 0; }
  .x-visual { min-height: 0; aspect-ratio: 1.1; margin-inline: calc(var(--gutter) * -1); }
  .x-photo { width: 112%; left: auto; right: -4%; }
  .x-name { left: var(--gutter); }
  .x-blob { right: -10%; width: 120%; }
  .x-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .x-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .case { grid-template-columns: minmax(0, 1fr); }
  .dirs { grid-template-columns: minmax(0, 1fr); }
  .dirs .dir, .dirs .dir + .dir { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile.w3, .tile.w2, .tile.w4 { grid-column: span 1; }
  .tile.hot { grid-column: span 2; }
  .offer, .faq-grid, .contacts, .page-hero-grid, .prose-grid, .stage, .funnel, .menu-grid, .sm-hero .page-hero-grid, .sm-roi, .sm-final { grid-template-columns: minmax(0, 1fr); }
  .prose-grid > .h2, .prose-grid > .side { position: static; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .sm-cards, .sm-leads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-leads > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .hdr-phone { display: none; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 72px minmax(0, 1fr); align-items: first baseline; row-gap: 12px; }
  .row p { grid-column: 2; }
  .team-facts, .kpis, .sm-points { grid-template-columns: minmax(0, 1fr); }
  .team-facts > div, .team-facts > div + div, .kpis > div, .kpis > div + div, .sm-points li, .sm-points li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .problems, .range, .icons-list, .sm-case-grid { grid-template-columns: minmax(0, 1fr); }
  .compare { display: none; }
  .tiers-m { display: grid; gap: 16px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .sm-quote { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .x-badge { width: 120px; height: 120px; }
  .x-badge text { font-size: 10.4px; }
}
@media (max-width: 650px) {
  :root { --hdr-h: 68px; }
  body { font-size: 16px; }
  .hdr .btn { display: none; }
  .brand b { font-size: 17px; }
  .menu nav a { font-size: 20px; padding: 14px 0; }
  .x-title h1 { font-size: clamp(32px, 10.6vw, 72px); }
  .x-stats { grid-template-columns: minmax(0, 1fr); }
  .x-stats > div, .x-stats > div + div, .x-stats > div:nth-child(3) { padding: 20px 0; border-left: 0; border-top: 1px solid var(--line); }
  .x-stats b { font-size: 48px; }
  .x-name { bottom: 18%; left: var(--gutter); }
  .x-name b { font-size: 18px; }
  .x-badge { top: 2%; right: 4%; width: 104px; height: 104px; }
  .btns .btn { flex: 1 1 auto; justify-content: space-between; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile.hot { grid-column: span 1; }
  .person img { width: 128px; height: 160px; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team .person img { width: 100%; height: auto; }
  .faq summary { font-size: 17px; }
  .faq .answer { padding-right: 0; }
  .contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .map { min-height: 320px; }
  .map-label { flex-direction: column; align-items: stretch; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fact dd { font-size: 30px; }
  .ba-row dl { grid-template-columns: minmax(0, 1fr); }
  .ba-row .when { grid-column: 1; }
  .pt-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pt-row .stage-n { grid-column: 1 / -1; }
  .pt-row b { white-space: normal; text-align: right; }
  .cta-band .btn { width: 100%; }
  .trio, .sm-cards, .sm-leads { grid-template-columns: minmax(0, 1fr); }
  .sm-leads > div, .sm-leads > div + div { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .sm-ratio svg.i { width: 28px; height: 28px; margin-bottom: 12px; }
  .journey li { font-size: 17px; grid-template-columns: 48px 1fr; }
  .sm-quote .btn { width: 100%; }
  .case-big b { font-size: 56px; }
}
@media (max-width: 400px) {
  .h1 { font-size: 34px !important; }
  .page-hero-copy .h1 { font-size: 28px !important; }
  .h2 { font-size: 29px; }
  .team { gap: 12px; }
}

/* Узкие экраны: текст кнопки переносится, ячейка со стрелкой фиксированной высоты */
@media (max-width: 420px) {
  .btn { height: auto; min-height: 56px; max-width: 100%; white-space: normal; text-align: left; }
  .btn > svg.i { height: 56px; align-self: stretch; }
  .btn::before, .btn::after { width: 18px; }
  .btn > svg.i { margin: 0 -18px 0 16px; padding: 0 16px; }
  .case { padding: 20px 16px; }
}
