/* ============================================================
   PEAK — редизайн 2026
   Сдержанная база, работа держится на типографике и воздухе.
   Onest (дисплей) + Golos Text (текст).
   ============================================================ */

:root {
  /* бело-синяя гамма по образцу adsea.ru */
  --paper: #F4F6F9;
  --surface: #FFFFFF;
  --surface-sunk: #E7EDF4;
  --deep: #0A4A9A;          /* тёмные секции — кобальт, а не графит */

  /* текст */
  --ink: #15243A;
  --ink-soft: #4F5D6E;
  --ink-mute: #8C99A8;
  --on-deep: #FFFFFF;
  --on-deep-mute: rgba(255, 255, 255, 0.76);

  /* акцент: кобальт держит плоскости и кнопки, яркий синий — детали */
  --accent: #0A4A9A;
  --accent-deep: #083C7E;
  --accent-bright: #177CE8;
  --accent-wash: #DCEAFB;

  --line: rgba(21, 36, 58, 0.10);
  --line-strong: rgba(21, 36, 58, 0.18);

  --font-display: "Onest", "Golos Text", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, -apple-system, sans-serif;

  /* типографическая шкала, 1.25 с ручной правкой верха */
  --t-hero: clamp(2.2rem, 4vw, 3.5rem);   /* колонка хиро узкая: крупнее — рвётся на 5 строк */
  --t-h2: clamp(1.9rem, 3.4vw, 3rem);
  --t-h3: clamp(1.15rem, 1.5vw, 1.4rem);
  --t-lead: clamp(1.02rem, 1.25vw, 1.18rem);
  --t-body: 16px;
  --t-small: 14.5px;
  --t-label: 12px;

  /* отступы — шаг 4, секции на отдельной шкале */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;
  --section-y: clamp(52px, 6vw, 88px);   /* было до 128 px: между блоками выходило 256 px пустоты */

  --r-sm: 10px;
  --r-pill: 999px;          /* кнопки и поля у adsea — таблетки */
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 30px;            /* крупные плоскости хиро */

  --shadow-card: 0 1px 2px rgba(20, 24, 26, 0.04), 0 8px 24px rgba(20, 24, 26, 0.05);
  --shadow-lift: 0 2px 4px rgba(20, 24, 26, 0.05), 0 18px 44px rgba(20, 24, 26, 0.10);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.5s;

  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* видимый фокус — обязателен, им пользуются с клавиатуры */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* контент идёт во всю ширину окна: по бокам только отступ от края, без полей */
.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(18px, 2.6vw, 44px);
}

/* длинные строки нечитаемы на широком экране, поэтому текст внутри держим по ширине */
.section__head p, .hero__lead { max-width: 60ch; }

.section { padding: var(--section-y) 0; }

/* служебный заголовок секции */
.eyebrow {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 var(--s-4);
}

.section__head { max-width: 680px; margin-bottom: clamp(28px, 3.2vw, 44px); }
.section__head--row {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--s-5); flex-wrap: wrap;
}
.section__head h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.section__head p { color: var(--ink-soft); font-size: var(--t-lead); }

/* цифры везде табличные, чтобы не плясали */
.num { font-variant-numeric: tabular-nums; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--s-2);
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

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

.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }

.btn--on-deep { background: var(--on-deep); color: var(--deep); }
.btn--on-deep:hover { background: #fff; }

.btn:active { transform: translateY(1px); }

/* текстовая ссылка со стрелкой */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  font-size: var(--t-small);
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- появление при скролле ---------- */

.rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }
.rv[data-delay="1"] { transition-delay: 0.07s; }
.rv[data-delay="2"] { transition-delay: 0.14s; }
.rv[data-delay="3"] { transition-delay: 0.21s; }

@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- шапка ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(243, 244, 242, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}

.header.is-scrolled { border-bottom-color: var(--line); }

.header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  width: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.logo span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; display: inline-block; }

.nav { display: flex; align-items: center; gap: var(--s-6); }
.nav > a { font-size: var(--t-small); color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav > a:hover { color: var(--ink); }

/* услуги: раскрывается наведением, с клавиатуры — фокусом, на телефоне — тапом */
.menu { position: relative; }
.menu__btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: var(--t-small); color: var(--ink-soft);
  background: none; border: none; padding: 0; cursor: pointer;
  transition: color 0.2s var(--ease);
}
.menu__btn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform 0.25s var(--ease);
}
.menu:hover .menu__btn, .menu.is-open .menu__btn { color: var(--ink); }
.menu.is-open .menu__btn::after { transform: rotate(-135deg) translate(-2px, -2px); }

.menu__panel {
  position: absolute; top: calc(100% + 14px); left: -18px;
  min-width: 268px; padding: var(--s-3);
  background: var(--surface);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
/* мостик, чтобы меню не схлопывалось в зазоре между кнопкой и панелью */
.menu__panel::before { content: ""; position: absolute; inset: -14px 0 100% 0; }

.menu:hover .menu__panel,
.menu:focus-within .menu__panel,
.menu.is-open .menu__panel { opacity: 1; visibility: visible; transform: none; }

.menu__panel a {
  display: flex; align-items: baseline; gap: var(--s-3);
  padding: 10px 12px; border-radius: var(--r-sm);
  font-size: var(--t-small); color: var(--ink);
  transition: background-color 0.2s var(--ease);
}
.menu__panel a:hover { background: var(--surface-sunk); }
.menu__panel a small { margin-left: auto; font-size: 12.5px; color: var(--ink-mute); white-space: nowrap; }

.header__cta { padding: 11px 20px; font-size: 14.5px; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); cursor: pointer;
}
.nav-toggle span { position: relative; width: 17px; height: 1.5px; background: var(--ink); display: block; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: var(--ink);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

/* ============================================================
   хиро: две крупные плоскости — слово слева, доказательство справа.
   Доказательство — не рендер, а наши реальные сайты в перспективе.
   ============================================================ */

.hero { padding: calc(var(--header-h) + var(--s-5)) 0 var(--s-7); }

.hero__split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: var(--s-5);
  align-items: stretch;
}

/* левая колонка без плашки: текст лежит прямо на фоне страницы,
   вся «карточность» хиро остаётся за цветной сценой справа */
.hero__word {
  padding: clamp(10px, 1.6vw, 24px) var(--s-5) clamp(10px, 1.6vw, 24px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__kicker {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: var(--s-6);
}
.hero__kicker i { width: 26px; height: 2px; background: var(--accent); display: block; border-radius: 2px; }

.hero h1 {
  font-size: var(--t-hero);
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin-bottom: var(--s-5);
}
.hero h1 em { font-style: normal; color: var(--accent); }

/* ротация слова в хиро: слова лежат в одной ячейке грида,
   поэтому блок сам встаёт по самому длинному и ничего не прыгает */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.rotate { display: inline-grid; vertical-align: top; }
.rotate__item {
  grid-area: 1 / 1;
  color: var(--accent);
  opacity: 0;
  transform: translateY(0.22em);
  transition: none;
}
.rotate__item.is-on {
  opacity: 1;
  transform: none;
  /* входит только после того, как предыдущее слово ушло: иначе два слова
     накладываются и строка читается как смазанная */
  transition: opacity .32s cubic-bezier(.16, 1, .3, 1) .17s,
              transform .34s cubic-bezier(.16, 1, .3, 1) .17s;
}
.rotate__item.is-out {
  opacity: 0;
  transform: translateY(-0.22em);
  transition: opacity .16s cubic-bezier(.55, 0, .85, 0),
              transform .16s cubic-bezier(.55, 0, .85, 0);
}
@media (prefers-reduced-motion: reduce) {
  .rotate__item { transition: none !important; }
  .rotate__item.is-on { opacity: 1; transform: none; }
}

.hero__lead {
  font-size: var(--t-lead);
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: var(--s-6);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-7); }

/* плашки больше нет — цифры не прижимаем к низу, а ставим после кнопок */
.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.hero__proof div b {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 600; letter-spacing: -0.02em;
  display: block; margin-bottom: 2px;
}
.hero__proof div span { font-size: 13px; color: var(--ink-mute); }

/* правая плоскость: цветная сцена с работами */
.hero__stage {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3vw, 38px);
  background:
    radial-gradient(120% 90% at 85% 0%, var(--accent-bright) 0%, transparent 55%),
    linear-gradient(160deg, var(--accent) 0%, var(--accent-deep) 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

/* якорная навигация — карта страницы сразу в первом экране */
.hero__jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); position: relative; z-index: 2; }
.hero__jump a {
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 500;
  color: #fff;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.hero__jump a:hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.7); }

/* ============================================================
   Сцена: ноутбук и телефон с живой прокруткой наших сайтов.
   Кадры сняты страницами целиком, поэтому «прокрутка» — сдвиг
   картинки внутри экрана, а сайты сменяют друг друга по кругу.
   ============================================================ */

.stage-devices {
  position: relative;
  flex: 1;
  min-height: 330px;
  display: flex;
  align-items: center;
  perspective: 1600px;
  /* айфон свисает ниже ноутбука: отступ снизу поднимает всю группу,
     и телефон больше не лежит на краю плашки */
  padding-bottom: clamp(28px, 4vw, 56px);
}

/* MacBook: алюминиевый корпус, тонкая чёрная рамка, подставка шире крышки */
.mac {
  width: 86%;
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
  filter: drop-shadow(0 36px 46px rgba(6, 26, 56, 0.38));
}

/* внешний алюминиевый кант крышки */
.mac__lid {
  padding: 3px;
  border-radius: 15px 15px 5px 5px;
  background: linear-gradient(142deg, #E3E6EA 0%, #B6BBC2 34%, #8E949C 62%, #C2C7CD 100%);
  box-shadow: 0 0 0 0.5px rgba(30, 44, 66, 0.28);
}

/* чёрная рамка экрана: снизу шире — подбородок, как у MacBook Pro */
.mac__bezel {
  position: relative;
  padding: 9px 9px 19px;
  border-radius: 13px 13px 3px 3px;
  background: #0B0D10;
}

.mac__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
}

/* блик по стеклу — без него экран читается как плоская картинка */
.mac__screen::after {
  content: "";
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(116deg,
    rgba(255, 255, 255, 0.055) 0%,
    rgba(255, 255, 255, 0.018) 9%,
    rgba(255, 255, 255, 0) 17%);
}

/* подставка: шире крышки, с петлёй сверху и выемкой под палец */
.mac__base {
  position: relative;
  height: 13px;
  margin: 0 -3.4%;
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, #E7EAEE 0%, #C3C8CF 22%, #9299A2 62%, #767D86 100%);
}
.mac__base::before {
  content: "";
  position: absolute; left: 3.2%; right: 3.2%; top: 0; height: 2px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.30), rgba(0, 0, 0, 0.62) 50%, rgba(0, 0, 0, 0.30));
}
.mac__base i {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 12%; height: 5px;
  border-radius: 0 0 7px 7px;
  background: linear-gradient(180deg, rgba(20, 28, 40, 0.42), rgba(20, 28, 40, 0.12));
}

/* iPhone поверх ноутбука */
.phone {
  position: absolute;
  right: -1%;
  bottom: calc(clamp(28px, 4vw, 56px) * 0.5);
  width: 20.5%;
  transform: rotateY(-7deg) rotateX(3deg);
  filter: drop-shadow(0 26px 34px rgba(6, 26, 56, 0.44));
}
.phone__bezel {
  position: relative;
  padding: 3px;
  /* Скругление в долях, а не в пикселях: на мобильном мокап сжимается до ~80 px,
     и фиксированные 30 px превращали корпус в капсулу. Два радиуса (по ширине /
     по высоте) держат угол круглым на высоком элементе — ~15% ширины, как у айфона. */
  border-radius: 15% / 7.1%;
  background: linear-gradient(142deg, #DCDFE4 0%, #A6ACB4 38%, #858B93 66%, #C9CED4 100%);
}
.phone__screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  overflow: hidden;
  border-radius: 13% / 6%;
  background: #fff;
  box-shadow: 0 0 0 2.5px #0B0D10;
}
/* «динамический остров» вместо выреза-чёлки */
.phone__island {
  position: absolute; left: 50%; top: 2.6%; z-index: 5;
  width: 30%; aspect-ratio: 3.6 / 1; transform: translateX(-50%);
  background: #0B0D10; border-radius: 999px;
}

/* слои сайтов внутри экрана.
   Смена — стопкой: новый кадр проявляется ПОВЕРХ старого, который до конца
   держит непрозрачность. Перекрёстное затухание двух разных сайтов давало
   двойную экспозицию и молочную муть на экране. */
.screen__layer {
  position: absolute; inset: 0;
  opacity: 0;
  z-index: 1;
  transition: opacity .55s ease;
}
.screen__layer.is-on   { opacity: 1; z-index: 3; }
.screen__layer.is-prev { opacity: 1; z-index: 2; transition: none; }

.screen__layer img {
  width: 100%; height: auto; display: block;
  transform: translateY(0);
  transition: none;
}
/* пока кадр активен — страница едет сверху вниз; is-prev держит конечное
   положение, чтобы возврат к нулю прошёл под уже непрозрачным слоем */
.screen__layer.is-on img {
  transform: translateY(var(--scroll, -48%));
  transition: transform 6s cubic-bezier(0.36, 0, 0.26, 1) .4s;
}
.screen__layer.is-prev img { transform: translateY(var(--scroll, -48%)); }

.phone__screen .screen__layer { --scroll: -50%; }

.hero__stage:hover .screen__layer.is-on img { transition-duration: 0s; }

@media (max-width: 560px) {
  .mac { width: 94%; }
  .phone { width: 24%; right: -3%; }
}
}

/* стопка реальных экранов в перспективе */
.deck {
  position: relative;
  flex: 1;
  perspective: 1500px;
  perspective-origin: 60% 40%;
  min-height: 300px;
}
.deck__item {
  position: absolute;
  width: 72%;
  aspect-ratio: 8 / 5;          /* окно мокапа */
  border-radius: 12px;
  overflow: hidden;              /* длинный кадр прокручивается внутри */
  background: #fff;
  box-shadow: 0 28px 60px rgba(4, 30, 24, 0.38);
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease), opacity 0.9s var(--ease);
  will-change: transform;
}

/* кадр снят целой страницей (760×1477), поэтому сдвиг задаётся в процентах
   от собственной высоты картинки и не зависит от ширины блока */
.deck__item img {
  width: 100%;
  height: auto;
  display: block;
  animation: deckScroll 22s cubic-bezier(0.55, 0, 0.45, 1) infinite;
}
.deck__item--2 img { animation-duration: 26s; animation-delay: -6s; }
.deck__item--3 img { animation-duration: 30s; animation-delay: -13s; }

/* до самого низа не уводим: там у страниц подвалы и пустые зоны */
@keyframes deckScroll {
  0%, 8%    { transform: translateY(0); }
  48%, 60%  { transform: translateY(-52%); }
  96%, 100% { transform: translateY(0); }
}

/* курсор на сцене — страницы замирают, чтобы можно было рассмотреть */
.hero__stage:hover .deck__item img { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .deck__item img { animation: none; }
}

/* три плана: ближний, средний, дальний */
.deck__item--1 { left: 2%;  top: 26%; z-index: 3; transform: translateZ(60px)  rotateY(-16deg) rotateX(5deg); }
.deck__item--2 { left: 22%; top: 6%;  z-index: 2; transform: translateZ(-30px) rotateY(-16deg) rotateX(5deg); opacity: 0.94; }
.deck__item--3 { left: 40%; top: 44%; z-index: 1; transform: translateZ(-120px) rotateY(-16deg) rotateX(5deg); opacity: 0.84; }

/* подпись: на что смотрит человек */
.deck__cap {
  position: relative; z-index: 4; margin-top: auto; padding-top: var(--s-5);
  font-size: 13px; color: rgba(255, 255, 255, 0.82);
  display: flex; align-items: center; gap: var(--s-2);
}
.deck__cap b { font-weight: 600; color: #fff; white-space: nowrap; }

/* ---------- страница услуги ---------- */

.hero--service { padding-bottom: var(--s-8); }

.crumbs {
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--t-small); color: var(--ink-mute);
  margin-bottom: var(--s-6);
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--line-strong); }

/* цена и срок вместо четырёх цифр на главной */
/* на страницах услуг значения длиннее («5–10 рабочих дней»), и на крупном кегле
   они рвались посреди числа — кегль и зазор подогнаны под строку без переносов */
.hero__proof--pair { grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(20px, 2.4vw, 44px); }
.hero__proof--pair div b { font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.2; }

.inc__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
.inc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.inc h3 { font-size: 16.5px; margin-bottom: var(--s-2); }
.inc p { font-size: var(--t-small); color: var(--ink-soft); }

.cases__grid--three { grid-template-columns: repeat(3, 1fr); }
.cases__grid--three .case__body h3 { font-size: 1.1rem; }

.related { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.related .link-arrow { display: flex; margin-bottom: var(--s-3); }

@media (max-width: 1000px) {
  .inc__grid { grid-template-columns: repeat(2, 1fr); }
  .cases__grid--three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .inc__grid { grid-template-columns: 1fr; }
  .cases__grid--three { grid-template-columns: 1fr; }
  .hero__proof--pair { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* ---------- полоса клиентов ---------- */

.clients { padding: clamp(26px, 3vw, 40px) 0; border-block: 1px solid var(--line); background: var(--surface); }
.clients__head {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: var(--s-5);
}
.clients__row {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-7);
}
.clients__row a {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.clients__row a:hover { color: var(--accent); }
.clients__row a small {
  font-family: var(--font-body); font-size: 12px; font-weight: 500;
  color: var(--ink-mute); letter-spacing: 0;
}

/* ---------- услуги: плитка крупных блоков ---------- */

.services__band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
/* «что входит» на странице услуги: шесть равных блоков */
.services__band--six { grid-template-columns: repeat(3, 1fr); }
.services__band--six .svc { min-height: 0; }
.services__band--six .svc h3 { font-size: 17px; }
.services__band + .services__band { margin-top: var(--s-4); }

.svc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 196px;
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* сама полоса не анимируется — работает только появление блоков внутри */
.services__band.rv { opacity: 1; transform: none; }

/* блоки въезжают по очереди, когда полоса попадает в кадр */
.services__band .svc {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), box-shadow 0.4s var(--ease);
}
.services__band.is-in .svc { opacity: 1; transform: none; }
.services__band.is-in .svc:nth-child(2) { transition-delay: 0.09s; }
.services__band.is-in .svc:nth-child(3) { transition-delay: 0.18s; }
.services__band.is-in .svc:nth-child(4) { transition-delay: 0.27s; }

/* внутренности карточки подтягиваются следом за ней */
.svc > * { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease) 0.12s, transform 0.5s var(--ease) 0.12s; }
.services__band.is-in .svc > * { opacity: 1; transform: none; }

/* тонкая линия акцента проявляется на наведении */
.svc::after {
  content: ""; position: absolute; left: var(--s-5); right: var(--s-5); bottom: 0; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; opacity: 0.0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.svc:hover::after { transform: scaleX(1); opacity: 1; }
.svc--accent::after { background: #fff; }

@media (prefers-reduced-motion: reduce) {
  .services__band .svc, .svc > * { opacity: 1; transform: none; transition: none; }
}

.svc--wide { grid-column: span 2; }

.svc__meta {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-4);
}
.svc h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.svc p { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: var(--s-5); }
.svc .link-arrow { margin-top: auto; }
.svc__price {
  margin-top: auto; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
}

/* акцентный блок задаёт ритм плитке. Идёт после базовых правил: у
   `.svc--accent p` и `.svc p` одинаковая специфичность, решает порядок */
.svc--accent {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}
.svc--accent h3 { color: #fff; }
.svc--accent .svc__meta { color: rgba(255, 255, 255, 0.78); }
.svc--accent p { color: rgba(255, 255, 255, 0.88); }
.svc--accent .link-arrow, .svc--accent .svc__price { color: #fff; }

/* ---------- кейсы ---------- */

.cases__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
  align-items: start;   /* иначе короткая карточка растягивается и внутри зияет пустота */
}

/* первая работа крупнее остальных — ритм вместо ровной таблицы */
.cases__grid--lead { grid-template-columns: repeat(6, 1fr); }
.cases__grid--lead .case:first-child { grid-column: span 4; }
.cases__grid--lead .case:nth-child(2) { grid-column: span 2; }
.cases__grid--lead .case:nth-child(n+3) { grid-column: span 2; }
.cases__grid--lead .case:first-child .case__body h3 { font-size: 1.5rem; }

/* страница работ: ровная сетка по три */
.cases__grid--all { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cases__grid--all { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .cases__grid--all { grid-template-columns: 1fr; } }

.case {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }

.case__shot { display: block; overflow: hidden; background: var(--surface-sunk); }
.case__shot img {
  width: 100%;
  height: auto;              /* без этого атрибут height из разметки побеждает aspect-ratio */
  aspect-ratio: 8 / 5;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.case:hover .case__shot img { transform: scale(1.03); }

.case__body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.case__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: var(--s-3);
}
.case__body h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.case__body > p { color: var(--ink-soft); font-size: var(--t-small); margin-bottom: var(--s-4); }
.case__tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }
.case__tags span {
  font-size: 12.5px; color: var(--ink-soft);
  background: var(--surface-sunk); border-radius: var(--r-sm); padding: 5px 10px;
}
.case__body .link-arrow { margin-top: var(--s-2); }

/* ---------- процесс ----------
   Светлая плоскость: следом идёт кобальтовый блок расчёта, и два цветных
   массива подряд читались как одна плита со швом. Кобальт на странице один. */

.process {
  background: linear-gradient(168deg, var(--accent-wash) 0%, #EFF5FD 55%, var(--surface) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  margin: 0 clamp(18px, 2.6vw, 44px);
}
.process > .container { padding-inline: clamp(24px, 3vw, 56px); }

/* на главной пять шагов, на страницах услуг четыре: жёсткие пять колонок
   оставляли пустую пятую клетку справа */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: var(--s-5);
}
.step {
  position: relative;
  padding: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
/* короткая засечка вместо нумерации: порядок читается по сетке */
.step::before {
  content: "";
  position: absolute; left: var(--s-5); top: 0;
  width: 26px; height: 2px;
  background: var(--accent-bright);
  border-radius: 0 0 2px 2px;
}
.step:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(10, 44, 90, 0.10); }
.step b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.step p { font-size: var(--t-small); color: var(--ink-soft); }

/* ---------- команда ---------- */

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5) var(--s-6);
}
.mate { padding: var(--s-5) 0; border-top: 1px solid var(--line); }
.mate b { display: block; font-family: var(--font-display); font-size: 16.5px; margin-bottom: 4px; }
.mate span { font-size: var(--t-small); color: var(--ink-mute); }

/* ---------- тарифы ---------- */

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: start; }

.plan {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* средний тариф — цветная плоскость, как акцентный блок в услугах */
.plan--featured {
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}
.plan--featured .plan__mark, .plan--featured .plan__badge { color: rgba(255, 255, 255, 0.86); }
.plan--featured .plan__price span, .plan--featured li { color: rgba(255, 255, 255, 0.88); }
.plan--featured li::before { border-color: #fff; }
.plan--featured .plan__more .link-arrow { color: #fff; }
.plan--featured .btn--primary { background: #fff; color: var(--accent-deep); }
.plan--featured .btn--primary:hover { background: var(--paper); }

.plan__top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-3); margin-bottom: var(--s-4);
}
.plan__mark {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent); white-space: nowrap;
}
.plan__badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); white-space: nowrap;
}
.plan h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.plan__price { margin-bottom: var(--s-5); }
.plan__price b {
  font-family: var(--font-display); font-size: 1.85rem; font-weight: 600;
  letter-spacing: -0.02em; display: block;
}
.plan__price span { font-size: var(--t-small); color: var(--ink-mute); }

.plan ul { list-style: none; margin: 0 0 var(--s-6); padding: 0; display: grid; gap: var(--s-3); }
.plan li {
  position: relative; padding-left: 24px; font-size: var(--t-small); color: var(--ink-soft);
}
.plan li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 11px; height: 7px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.plan .btn { margin-top: auto; width: 100%; }
.plan__more { margin-top: var(--s-4); text-align: center; }

.plans__note {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--line);
  font-size: var(--t-small); color: var(--ink-soft);
}
.plans__note a { color: var(--accent); font-weight: 600; }

/* ---------- расчёт стоимости: главная точка захвата ---------- */

.calc {
  border-radius: var(--r-xl);
  margin: 0 clamp(18px, 2.6vw, 44px);
  padding: clamp(32px, 4vw, 64px) clamp(24px, 3vw, 56px);
  background:
    radial-gradient(85% 120% at 88% 5%, var(--accent-bright) 0%, transparent 58%),
    linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
}

.calc__grid {
  display: grid;
  grid-template-columns: 1fr minmax(0, 480px);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.calc__side h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); color: #fff; }
.calc__side > p { color: rgba(255, 255, 255, 0.86); font-size: var(--t-lead); margin-bottom: var(--s-6); max-width: 46ch; }
.calc .eyebrow { color: rgba(255, 255, 255, 0.72); }

/* ориентир по деньгам остаётся на главной, хоть тарифов и нет */
.calc__rates { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.calc__rates div {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4);
  padding-bottom: var(--s-3); border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.calc__rates span { font-size: var(--t-small); color: rgba(255, 255, 255, 0.82); }
.calc__rates b { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; white-space: nowrap; }

.calc__note { font-size: 13.5px; color: rgba(255, 255, 255, 0.72); }

/* карточка формы поверх цветной плоскости */
.calc__card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow-lift);
  color: var(--ink);        /* иначе белый текст секции делает заголовок невидимым */
}
.calc__card h3 { font-size: var(--t-h3); margin-bottom: var(--s-2); }
.calc__card > p { font-size: var(--t-small); color: var(--ink-mute); margin-bottom: var(--s-5); }

@media (max-width: 1000px) {
  .calc__grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

/* вопросы занимали левую половину, правая оставалась пустой:
   заголовок уходит в колонку и держится при прокрутке списка */
#faq > .container {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.45fr;
  gap: var(--s-6) clamp(40px, 6vw, 110px);
  align-items: start;
}
#faq .section__head { margin-bottom: 0; position: sticky; top: 108px; }
.faq { max-width: none; }

@media (max-width: 900px) {
  #faq > .container { grid-template-columns: 1fr; }
  #faq .section__head { position: static; margin-bottom: var(--s-5); }
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0;
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto;
  width: 11px; height: 11px;
  border-right: 1.5px solid var(--ink-mute); border-bottom: 1.5px solid var(--ink-mute);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { padding: 0 0 var(--s-5); color: var(--ink-soft); font-size: var(--t-small); max-width: 70ch; }

/* ---------- контакты и форма ---------- */

.contact { background: var(--surface); border-top: 1px solid var(--line); }
.contact__grid {
  display: grid; grid-template-columns: 0.85fr 1fr; gap: var(--s-9);
  align-items: start;
}
.contact__side h2 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.contact__side > p { color: var(--ink-soft); font-size: var(--t-lead); margin-bottom: var(--s-6); }
.contact__links { display: grid; gap: var(--s-3); }
.contact__links a {
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: var(--s-2); width: fit-content;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 2px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.contact__links a:hover { color: var(--accent); border-color: var(--accent); }

.form { display: grid; gap: var(--s-4); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: var(--t-small); font-weight: 500; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  font-family: var(--font-body); font-size: 15.5px; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-wash);
}
.field ::placeholder { color: #A2AAA6; }

.consent { display: flex; align-items: flex-start; gap: var(--s-3); }
.consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); flex-shrink: 0; cursor: pointer; }
/* согласие на обработку ПД — обязательный текст, его нельзя прятать в серый шум */
.consent span { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.consent a { color: var(--ink-soft); text-decoration: underline; }
.consent.is-invalid span { color: #A4352A; }
.consent.is-invalid input { outline: 2px solid #A4352A; outline-offset: 2px; }

.form__ok { color: var(--accent); font-weight: 600; font-size: var(--t-small); }
.form__err { color: #A4352A; font-weight: 600; font-size: var(--t-small); }
.form__err a { text-decoration: underline; }

/* ---------- подвал ---------- */

.footer { background: var(--deep); color: var(--on-deep); padding: clamp(36px, 4vw, 56px) 0 var(--s-5); }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-7);
  padding-bottom: var(--s-7); border-bottom: 1px solid rgba(238, 241, 238, 0.15);
}
.footer .logo { color: var(--on-deep); margin-bottom: var(--s-4); }
.footer__about { color: var(--on-deep-mute); font-size: var(--t-small); max-width: 42ch; }
.footer__col b {
  display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--on-deep-mute); margin-bottom: var(--s-4);
}
.footer__col a { display: block; font-size: var(--t-small); color: var(--on-deep); margin-bottom: var(--s-3); opacity: 0.85; }
.footer__col a:hover { opacity: 1; }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6);
  justify-content: space-between; padding-top: var(--s-5);
  font-size: 13px; color: var(--on-deep-mute);
}
.footer__bottom a { color: var(--on-deep-mute); text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Блог и политика конфиденциальности.
   Их разметка осталась от прошлой версии сайта, поэтому классы
   здесь старые — но перекрашены в новую систему, чтобы разделы
   не выпадали из общего вида.
   ============================================================ */

.logo__mark, .camp svg { display: none; }           /* горный знак убран вместе с метафорой */
.camp {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.mono { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }

/* старая шапка блога: выпадающий список услуг */
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  list-style: none; cursor: pointer; font-size: var(--t-small);
  color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::after {
  content: ""; width: 7px; height: 7px; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px);
}
.nav-dropdown[open] > summary { color: var(--ink); }
.nav-dropdown__panel {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 20;
  min-width: 232px; display: grid; gap: 2px; padding: var(--s-3);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-lift);
}
.nav-dropdown__panel a { font-size: var(--t-small); padding: 8px 10px; border-radius: var(--r-sm); }
.nav-dropdown__panel a:hover { background: var(--surface-sunk); color: var(--ink); }

/* старый подвал */
.footer__brand .footer__logo {
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
  color: var(--on-deep); display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s-4);
}
.footer__brand p { color: var(--on-deep-mute); font-size: var(--t-small); max-width: 42ch; }
.footer__legal { font-size: 13px; color: var(--on-deep-mute); text-decoration: underline; text-underline-offset: 2px; }

/* список статей */
.bloglist { padding: calc(var(--header-h) + var(--s-8)) 0 var(--section-y); }
.bloglist__head { max-width: 680px; margin-bottom: var(--s-8); }
.bloglist__head h1 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.bloglist__head p { color: var(--ink-soft); font-size: var(--t-lead); }
.bloglist__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.bloglist__item {
  display: block; padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.bloglist__item:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.bloglist__num {
  display: block; font-size: var(--t-label); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: var(--s-3);
}
.bloglist__title { font-family: var(--font-display); font-size: var(--t-h3); margin-bottom: var(--s-3); }
.bloglist__excerpt { font-size: var(--t-small); color: var(--ink-soft); }

/* статья */
.article { padding: calc(var(--header-h) + var(--s-8)) 0 var(--section-y); }
.article__container { max-width: 760px; margin: 0 auto; padding: 0 clamp(18px, 2.6vw, 44px); }
.article__crumb { font-size: var(--t-small); color: var(--ink-mute); margin-bottom: var(--s-5); }
.article__crumb a { color: var(--ink-soft); }
.article__crumb a:hover { color: var(--accent); }
.article__tag { color: var(--accent); }
.article h1 { font-size: var(--t-h2); margin-bottom: var(--s-4); }
.article__lead { font-size: var(--t-lead); color: var(--ink-soft); margin-bottom: var(--s-4); }
.article__meta { font-size: 13px; color: var(--ink-mute); margin-bottom: var(--s-7); }
.article__body { font-size: 16.5px; line-height: 1.72; }
.article__body h2 { font-size: 1.4rem; margin: var(--s-7) 0 var(--s-4); }
.article__body p { margin-bottom: var(--s-4); }
.article__body ul, .article__body ol { margin: 0 0 var(--s-4) 22px; padding: 0; }
.article__body li { margin-bottom: var(--s-2); }
.article__body b { font-weight: 600; }
.article__callout {
  background: var(--accent-wash); border-radius: var(--r-md);
  padding: var(--s-5); margin: var(--s-6) 0;
}
.article__callout p { margin: 0; font-size: var(--t-small); }
.article__stat {
  margin: var(--s-6) 0; padding: var(--s-5) 0;
  border-block: 1px solid var(--line); text-align: center;
}
.article__stat b {
  display: block; font-family: var(--font-display); font-size: 2.4rem;
  font-weight: 600; letter-spacing: -0.02em; color: var(--accent); margin-bottom: var(--s-2);
}
.article__stat span { font-size: var(--t-small); color: var(--ink-soft); }
.article__cta {
  margin-top: var(--s-8); padding: var(--s-6);
  background: var(--deep); color: var(--on-deep); border-radius: var(--r-lg);
}
.article__cta .mono { color: var(--on-deep-mute); display: block; margin-bottom: var(--s-3); }
.article__cta h3 { font-size: var(--t-h3); margin-bottom: var(--s-3); }
.article__cta p { color: var(--on-deep-mute); font-size: var(--t-small); margin-bottom: var(--s-5); }
.article__more { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.article__more h3 { font-size: 16.5px; margin-bottom: var(--s-4); }
.article__more-list { display: grid; gap: var(--s-3); }
.article__more-list a { font-size: var(--t-small); color: var(--accent); font-weight: 600; }

/* политика конфиденциальности */
.legal { padding: calc(var(--header-h) + var(--s-8)) 0 var(--section-y); }
.legal h1 { font-size: var(--t-h2); margin-bottom: var(--s-3); }
.legal__updated { color: var(--ink-mute); font-size: var(--t-small); margin-bottom: var(--s-7); }
.legal h2 { font-size: 1.25rem; margin: var(--s-7) 0 var(--s-4); }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.legal p { margin-bottom: var(--s-3); }
.legal ul { margin: 0 0 var(--s-3) 22px; }
.legal__meta {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--s-5); margin: var(--s-5) 0;
}
.legal__meta dt { font-size: 12.5px; color: var(--ink-mute); margin-top: var(--s-3); }
.legal__meta dt:first-child { margin-top: 0; }
.legal__meta dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }

@media (max-width: 780px) {
  .bloglist__grid { grid-template-columns: 1fr; }
  .nav-dropdown__panel {
    position: static; box-shadow: none; border: none; padding: 0 0 var(--s-3);
    background: transparent; min-width: 0;
  }
}

/* ---------- cookie ---------- */

.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 500;
  width: min(360px, calc(100vw - 40px));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 32px -12px rgba(6, 26, 56, 0.28);
  padding: 14px 16px;
  transform: translateY(12px); opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.cookie-banner.is-visible { transform: none; opacity: 1; }
.cookie-banner__text { font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin-bottom: 10px; }
.cookie-banner__text a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; gap: var(--s-2); }
.cookie-banner__btn {
  flex: 1 1 0; height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.cookie-banner__btn--accept { background: var(--accent); color: #fff; }
.cookie-banner__btn--accept:hover { background: var(--accent-deep); }
.cookie-banner__btn--decline { border-color: var(--line-strong); color: var(--ink-soft); background: #fff; }
.cookie-banner__btn--decline:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================
   адаптив
   ============================================================ */

/* пять шагов в ряд читаются только на широком экране */
@media (max-width: 1180px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-5); }
}

@media (max-width: 1000px) {
  .service { grid-template-columns: 1fr; row-gap: var(--s-3); }
  .service__go { justify-self: start; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1000px) {
  .hero__split { grid-template-columns: 1fr; }
  .hero__stage { min-height: 400px; }
  .hero__proof { grid-template-columns: repeat(2, 1fr); justify-content: start; gap: var(--s-5) var(--s-4); }
}

@media (max-width: 1000px) {
  .services__band { grid-template-columns: repeat(2, 1fr); }
  .svc--wide { grid-column: span 2; }
  .cases__grid, .cases__grid--lead { grid-template-columns: 1fr; }
  .cases__grid--lead .case:first-child,
  .cases__grid--lead .case:nth-child(2),
  .cases__grid--lead .case:nth-child(n+3) { grid-column: auto; }
}

@media (max-width: 780px) {
  /* выпадающее меню внутри раскрытого мобильного списка */
  .menu { width: 100%; }
  .menu__btn { width: 100%; justify-content: space-between; padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .menu__panel {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; background: transparent; padding: var(--s-2) 0 var(--s-3) var(--s-4);
    display: none; min-width: 0;
  }
  .menu.is-open .menu__panel { display: grid; }
  .menu:hover .menu__panel { display: none; }
  .menu.is-open:hover .menu__panel { display: grid; }
  .menu__panel a { padding: 9px 0; }
  .menu__panel a small { display: none; }

  .services__band { grid-template-columns: 1fr; }
  .svc--wide { grid-column: auto; }

  .deck__item { width: 80%; }
  .deck__item--1 { left: 0; top: 30%; }
  .deck__item--2 { left: 16%; top: 4%; }
  .deck__item--3 { display: none; }   /* третий план съедает высоту на телефоне */
  .hero__stage { min-height: 340px; }

  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: var(--s-3) 24px var(--s-5);
    transform: translateY(-120%); transition: transform 0.35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 13px 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: none; }
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }

  .hero__proof { grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4); }
  .cases__grid { grid-template-columns: 1fr; }
  .case__shot img { aspect-ratio: 16 / 10; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 12px 14px; }
}

/* ---------- сцена «Яндекс.Директ»: отчёт по кампании ----------
   На этой странице мокапы чужих сайтов не к месту — услуга про рекламу,
   а не про вёрстку. Вместо них панель кабинета с кривой заявок
   и превью объявления в поисковой выдаче. */

.report {
  position: relative;
  flex: 1;
  min-height: 330px;
  display: flex;
  align-items: center;
  padding-bottom: 52px;
}

.report__panel {
  width: 100%;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(18px, 1.9vw, 26px);
  box-shadow: 0 26px 48px rgba(4, 24, 54, 0.26);
}

.report__cap {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-mute); margin-bottom: var(--s-4);
}

.report__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.report__label { font-size: var(--t-small); color: var(--ink-soft); }
.report__big { display: flex; align-items: baseline; gap: var(--s-3); margin-top: 2px; }
.report__big b {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.9vw, 2.6rem);
  font-weight: 600; letter-spacing: -0.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.report__big i {
  font-style: normal; font-size: var(--t-small); font-weight: 600;
  color: var(--accent-bright);
}
.direct__src { font-size: 12px; color: var(--ink-mute); white-space: nowrap; }

/* ---- график ---- */
.report__chart { display: block; width: 100%; height: clamp(124px, 13.5vw, 176px); margin: var(--s-4) 0 0; }
.report__grid line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.report__line {
  fill: none; stroke: var(--accent-bright); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
.report__area { opacity: 0; }
.report__dots circle {
  fill: var(--surface); stroke: var(--accent-bright); stroke-width: 2;
  vector-effect: non-scaling-stroke;
  opacity: 0; transform-box: fill-box; transform-origin: center;
  transform: scale(0.2);
}
.report__dots circle.is-last { fill: var(--accent-bright); stroke: var(--surface); stroke-width: 3; }

/* проигрывание: линия чертится, за ней заливка и точки по очереди */
.report.is-playing .report__line {
  transition: stroke-dashoffset 1.5s cubic-bezier(0.37, 0, 0.26, 1);
  stroke-dashoffset: 0;
}
.report.is-playing .report__area { transition: opacity 0.9s ease 0.5s; opacity: 1; }
.report.is-playing .report__dots circle {
  transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 1.3, 0.4, 1);
  transition-delay: calc(0.42s + var(--i) * 0.095s);
  opacity: 1; transform: scale(1);
}

/* ---- цифры кампании ---- */
/* цифры стоят НАД графиком: у растущей кривой пустой правый низ —
   туда ложится карточка объявления и ничего не перекрывает */
.report__stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--line);
}
.report__stats div { opacity: 0; transform: translateY(8px); }
.report.is-playing .report__stats div {
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(0.9s + var(--n, 0) * 0.08s);
  opacity: 1; transform: none;
}
.report__stats div:nth-child(2) { --n: 1; }
.report__stats div:nth-child(3) { --n: 2; }
.report__stats div:nth-child(4) { --n: 3; }
.report__stats b {
  display: block;
  font-family: var(--font-display); font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.report__stats span { font-size: 12px; color: var(--ink-mute); }

/* ---- превью объявления в выдаче ---- */
.direct__ad {
  position: absolute; right: -2%; bottom: 0;
  width: min(58%, 320px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  box-shadow: 0 20px 36px rgba(4, 24, 54, 0.26);
  opacity: 0; transform: translateY(14px);
}
.report.is-playing .direct__ad {
  transition: opacity 0.6s var(--ease) 1.15s, transform 0.6s var(--ease) 1.15s;
  opacity: 1; transform: none;
}
.direct__adhead {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-mute); margin-bottom: 6px;
}
.direct__adhead span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink-mute); border: 1px solid var(--line-strong);
  border-radius: 3px; padding: 1px 5px;
}
.direct__adtitle {
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 600;
  color: var(--accent); line-height: 1.25; margin-bottom: 5px;
}
.direct__adtext { font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.direct__adlinks { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.direct__adlinks span { font-size: 12px; color: var(--accent-bright); }

@media (max-width: 760px) {
  .report { padding-bottom: 0; flex-direction: column; align-items: stretch; }
  .direct__ad { position: static; width: 100%; margin-top: var(--s-4); }
}
@media (max-width: 480px) {
  .report__top { flex-wrap: wrap; row-gap: var(--s-2); }
  .report__big i, .report__stats b { white-space: nowrap; }
  .report__stats { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  .report__line { stroke-dashoffset: 0; }
  .report__area { opacity: 1; }
  .report__dots circle { opacity: 1; transform: none; }
  .report__stats div, .direct__ad { opacity: 1; transform: none; }
  .report.is-playing .report__line,
  .report.is-playing .report__area,
  .report.is-playing .report__dots circle,
  .report.is-playing .report__stats div,
  .report.is-playing .direct__ad { transition: none; }
}

/* ---------- сцена SEO: трафик из поиска, Яндекс и Google ---------- */

.seo__legend { display: flex; gap: var(--s-4); white-space: nowrap; }
.seo__key {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--ink-soft);
}
.seo__key::before,
i.seo__key--ya, i.seo__key--go {
  content: ""; display: inline-block;
  width: 14px; height: 3px; border-radius: 2px;
}
.seo__key--ya::before, i.seo__key--ya { background: var(--accent-bright); }
.seo__key--go::before, i.seo__key--go { background: var(--deep); }
i.seo__key--ya, i.seo__key--go { margin-right: 8px; vertical-align: middle; }

/* вторая кривая темнее первой: различаем значением, а не новым цветом в палитре */
.report__line--go { stroke: var(--deep); stroke-width: 2.1; }
.report__dots circle.is-go { fill: var(--deep); stroke: var(--surface); stroke-width: 3; }

.seo__table {
  width: 100%;
  margin-top: var(--s-4);
  border-collapse: collapse;
  font-size: 12px;
}
.seo__table th, .seo__table td { padding: 7px 0; text-align: right; }
.seo__table th:first-child, .seo__table tbody th { text-align: left; font-weight: 500; }
.seo__table thead th {
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-mute); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.seo__table tbody th { color: var(--ink); font-weight: 600; }
.seo__table tbody td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.seo__table tbody td:last-child { color: var(--accent-bright); font-weight: 600; }
.seo__table tbody tr + tr th, .seo__table tbody tr + tr td { border-top: 1px solid var(--line); }

.seo__table tbody tr { opacity: 0; transform: translateY(6px); }
.report.is-playing .seo__table tbody tr {
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(1s + var(--n, 0) * 0.1s);
  opacity: 1; transform: none;
}
.seo__table tbody tr:nth-child(2) { --n: 1; }

/* карточка стоит рядом с таблицей, а не поверх неё: плавающая накрывала
   строку Google и половину цифр */
.seo__bottom { display: flex; align-items: flex-end; gap: var(--s-5); margin-top: var(--s-4); }
.seo__bottom .seo__table { flex: 1; margin-top: 0; }

.seo__card {
  flex: 0 0 auto;
  align-self: stretch;
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--accent-wash);
  border-radius: var(--r-md);
  padding: var(--s-4);
  opacity: 0; transform: translateY(10px);
}
.report.is-playing .seo__card {
  transition: opacity .6s var(--ease) 1.2s, transform .6s var(--ease) 1.2s;
  opacity: 1; transform: none;
}
.seo__card p { font-size: 12px; color: var(--ink-mute); }
.seo__card b {
  display: block; margin: 2px 0;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums;
}
.seo__card span { font-size: 12px; font-weight: 600; color: var(--accent-bright); }

@media (max-width: 760px) {
  .seo__bottom { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .seo__table tbody tr, .seo__card { opacity: 1; transform: none; }
  .report.is-playing .seo__table tbody tr,
  .report.is-playing .seo__card { transition: none; }
}

/* ---------- карусель работ ---------- */

.rail__nav { display: flex; align-items: center; gap: var(--s-3); }
.rail__arrow {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.rail__arrow svg { width: 20px; height: 20px; }
.rail__arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.rail__arrow:disabled { opacity: .35; pointer-events: none; }

.cases__rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--s-5) * 2) / 3);
  gap: var(--s-5);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  /* тень карточек не должна срезаться краем прокрутки */
  padding: 6px 6px 14px;
  margin: -6px -6px -14px;
  scrollbar-width: none;
}
.cases__rail::-webkit-scrollbar { display: none; }
.cases__rail > .case { scroll-snap-align: start; }

@media (max-width: 1100px) { .cases__rail { grid-auto-columns: calc((100% - var(--s-5)) / 2); } }
@media (max-width: 680px)  { .cases__rail { grid-auto-columns: 86%; } }
@media (max-width: 560px)  { .rail__nav .rail__arrow { display: none; } }

/* ---------- сцена Авито: значки по кругу и карточки объявлений ---------- */

.avito {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--s-5);
}
.avito__cap {
  text-align: center; color: var(--on-deep);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.3;
}
.avito__cap span {
  display: block; margin-top: 5px;
  font-family: var(--font-body); font-weight: 400;
  font-size: 12px; color: var(--on-deep-mute);
}

.avito__orbit { position: relative; width: min(100%, 372px); aspect-ratio: 1; }

/* кольцо крутится, значок внутри крутится обратно — так он остаётся прямым */
.avito__ring { position: absolute; inset: 0; animation: avitoSpin 46s linear infinite; }
.avito__slot {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0;
  transform: rotate(var(--a)) translateY(calc(var(--r, 174px) * -1));
}
.avito__icon {
  position: absolute; top: 0; left: 0; margin: -23px;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.19);
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--on-deep);
  animation: avitoSpinBack 46s linear infinite;
}
.avito__icon svg { width: 21px; height: 21px; }

@keyframes avitoSpin { to { transform: rotate(360deg); } }
/* значок гасит и вращение кольца, и собственный угол позиции (--a),
   иначе каждый висит наклонённым на свои 60/120/180 градусов */
@keyframes avitoSpinBack {
  from { transform: rotate(calc(var(--a) * -1)); }
  to   { transform: rotate(calc(var(--a) * -1 - 360deg)); }
}

/* карточки лежат в одной ячейке грида: блок встаёт по самой высокой */
.avito__deck {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  /* уже кольца: при 68% верхний и нижний значки уходили под карточку */
  width: 61%;
  display: grid;
}
.avito__ad {
  grid-area: 1 / 1;
  background: var(--surface);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 22px 40px rgba(4, 24, 54, 0.34);
  opacity: 0; z-index: 1;
  transition: opacity .55s ease;
}
.avito__ad.is-on   { opacity: 1; z-index: 3; }
.avito__ad.is-prev { opacity: 1; z-index: 2; transition: none; }

.avito__ad img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.avito__body { padding: 11px 13px 13px; }
.avito__price {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1;
}
.avito__title { font-size: 12.5px; line-height: 1.35; margin: 5px 0 4px; }
.avito__meta { font-size: 11px; color: var(--ink-mute); }
.avito__stat {
  margin-top: 9px; padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--ink-mute);
}
.avito__stat b { color: var(--ink); font-weight: 600; }

@media (max-width: 560px) {
  .avito__orbit { width: min(100%, 300px); }
  .avito__slot { --r: 140px; }
  .avito__icon { width: 38px; height: 38px; margin: -19px; }
  .avito__icon svg { width: 18px; height: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .avito__ring, .avito__icon { animation: none; }
}

/* центральный значок: сменяется с доворотом — «крутится и меняется» */
.avito__core {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 124px; height: 124px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 22px 44px rgba(4, 24, 54, 0.34);
}
.avito__face {
  grid-area: 1 / 1;
  display: grid; place-items: center;
  opacity: 0;
  transform: rotate(-38deg) scale(.68);
  transition: none;
}
.avito__face svg { width: 52px; height: 52px; }
.avito__face.is-on {
  opacity: 1; transform: none;
  transition: opacity .4s ease .22s,
              transform .55s cubic-bezier(.18, 1, .3, 1) .22s;
}
.avito__face.is-out {
  opacity: 0; transform: rotate(38deg) scale(.68);
  transition: opacity .26s ease, transform .4s cubic-bezier(.5, 0, .8, .2);
}
@media (max-width: 560px) {
  .avito__core { width: 100px; height: 100px; }
  .avito__face svg { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  .avito__face { transition: none !important; }
  .avito__face.is-on { opacity: 1; transform: none; }
}

/* ---------- телефон в шапке ---------- */
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.95rem; letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}
.header__phone svg { width: 17px; height: 17px; color: var(--accent); }
.header__phone:hover { color: var(--accent); }

@media (max-width: 1180px) { .header__phone svg { display: none; } }
@media (max-width: 920px)  { .header__phone { display: none; } }

/* ---------- плитка услуги кликается целиком ----------
   Раньше ссылкой была только строка с ценой внизу. Растянуть её слоем
   не вышло: правило появления ставит transform на каждого потомка плитки,
   а это делает его контейнером для абсолютного позиционирования —
   слой схлопывался до размеров самой строки. Поэтому вся плитка — <a>. */
a.svc { cursor: pointer; }

/* подъём при наведении перебивался правилом появления полосы —
   оно специфичнее, поэтому дублируем ховер на том же уровне */
.services__band.is-in .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.services__band.is-in .svc:hover .link-arrow svg { transform: translateX(3px); }

/* ---------- текстовый блок «Подход» ----------
   Та же раскладка, что у вопросов: заголовок в колонке слева и держится
   при прокрутке, текст справа — иначе абзацы занимают половину экрана. */
#approach > .container {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) 1.45fr;
  gap: var(--s-6) clamp(40px, 6vw, 110px);
  align-items: start;
}
#approach .section__head { margin-bottom: 0; position: sticky; top: 108px; }

.prose { max-width: 70ch; }
.prose p {
  font-size: clamp(0.98rem, 1.08vw, 1.08rem);
  line-height: 1.68;
  color: var(--ink-soft);
}
.prose p + p { margin-top: var(--s-4); }
/* первый абзац крупнее — он задаёт тон и читается как вводка */
.prose p:first-child {
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink);
}

@media (max-width: 900px) {
  #approach > .container { grid-template-columns: 1fr; }
  #approach .section__head { position: static; margin-bottom: var(--s-5); }
}

/* ============================================================
   БЛОГ И ПРАВОВЫЕ СТРАНИЦЫ
   Своя вёрстка досталась от старого сайта — переносим её
   на эту же систему, не трогая содержимое статей.
   ============================================================ */

.mono {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}

/* ---------- список статей ---------- */

.bloglist { padding: calc(var(--header-h) + clamp(28px, 3.5vw, 52px)) 0 var(--section-y); }
.bloglist__head {
  max-width: 44ch;
  margin: 0 auto var(--s-7);
  padding: 0 clamp(18px, 2.6vw, 44px);
  text-align: center;
}
.bloglist__head h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.035em; line-height: 1.05;
  margin-bottom: var(--s-4);
}
.bloglist__head > p:last-child { color: var(--ink-soft); font-size: var(--t-lead); }

.camp {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
}
.camp svg { width: 16px; height: 16px; }

.bloglist__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  width: 100%;
  padding: 0 clamp(18px, 2.6vw, 44px);
}
.bloglist__item {
  display: flex; flex-direction: column;
  padding: var(--s-5);
  background: var(--surface);
  border-radius: var(--r-lg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.bloglist__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.bloglist__num { margin-bottom: var(--s-4); }
.bloglist__title {
  font-size: 1.22rem; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.25; margin-bottom: var(--s-3);
}
.bloglist__excerpt { font-size: var(--t-small); color: var(--ink-soft); line-height: 1.6; }

@media (max-width: 1000px) { .bloglist__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px)  { .bloglist__grid { grid-template-columns: 1fr; } }

/* ---------- статья ---------- */

.article { padding: calc(var(--header-h) + clamp(16px, 2vw, 32px)) 0 var(--section-y); }
.article__container {
  width: 100%;
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(28px, 3.4vw, 56px) clamp(20px, 3vw, 54px);
  background: var(--surface);
  border-radius: var(--r-xl);
}
@media (max-width: 860px) {
  .article { padding: calc(var(--header-h) + var(--s-3)) clamp(14px, 3vw, 22px) var(--s-7); }
  .article__container { border-radius: var(--r-lg); }
}

.article__crumb { font-size: var(--t-small); color: var(--ink-mute); margin-bottom: var(--s-5); }
.article__crumb a { color: var(--ink-soft); }
.article__crumb a:hover { color: var(--accent); }
.article__tag { color: var(--accent); font-weight: 600; }

.article h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.035em; line-height: 1.08;
  margin-bottom: var(--s-4);
}
.article__lead {
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.55; color: var(--ink);
  margin-bottom: var(--s-4);
}
.article__meta {
  font-size: 13px; color: var(--ink-mute);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-6);
}

.article__body { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); }
.article__body > p { margin-bottom: var(--s-4); }
.article__body b, .article__body strong { color: var(--ink); font-weight: 600; }
.article__body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 600; letter-spacing: -0.025em; line-height: 1.2;
  color: var(--ink);
  margin: var(--s-7) 0 var(--s-4);
}
.article__body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
  margin: var(--s-5) 0 var(--s-3);
}
.article__body ul, .article__body ol { margin: 0 0 var(--s-4); padding-left: 0; list-style: none; }
.article__body ol { counter-reset: n; }
.article__body li { position: relative; padding-left: 26px; margin-bottom: var(--s-3); }
/* маркер — короткая засечка, а не точка: она же работает в шагах процесса */
.article__body ul > li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--accent-bright);
}
.article__body ol > li::before {
  counter-increment: n; content: counter(n) ".";
  position: absolute; left: 0; top: 0;
  font-weight: 600; color: var(--accent);
}

.article__callout {
  margin: var(--s-6) 0;
  padding: var(--s-5);
  background: var(--accent-wash);
  border-radius: var(--r-md);
}
.article__callout p { margin: 0; color: var(--ink-soft); }
.article__callout p + p { margin-top: var(--s-3); }

.article__stat {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: var(--s-4);
  margin: var(--s-6) 0;
  padding: var(--s-5) 0;
  border-block: 1px solid var(--line);
}

/* ---------- блок действия и «читайте также» ---------- */

.article__cta {
  margin-top: var(--s-7);
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 130% at 12% 0%, rgba(23, 124, 232, 0.45) 0%, transparent 62%),
    var(--deep);
  color: var(--on-deep);
}
.article__cta .mono { color: var(--on-deep-mute); }
.article__cta h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.9vw, 1.6rem);
  font-weight: 600; letter-spacing: -0.025em;
  margin: var(--s-3) 0 var(--s-3);
}
.article__cta p { color: var(--on-deep-mute); margin-bottom: var(--s-5); max-width: 52ch; }
.article__cta .btn--primary { background: var(--on-deep); color: var(--deep); }
.article__cta .btn--primary:hover { background: #fff; }

.article__more { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.article__more h3 {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: var(--s-4);
}
.article__more-list { display: grid; gap: var(--s-3); }
.article__more-list a {
  display: block;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-weight: 600; color: var(--ink);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.article__more-list a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- политика конфиденциальности ---------- */

.legal { padding: calc(var(--header-h) + clamp(16px, 2vw, 32px)) 0 var(--section-y); }
.legal .container {
  padding: clamp(28px, 3.4vw, 56px) clamp(20px, 3vw, 54px);
  background: var(--surface);
  border-radius: var(--r-xl);
  font-size: 1rem; line-height: 1.7; color: var(--ink-soft);
}
@media (max-width: 860px) {
  .legal { padding-left: clamp(14px, 3vw, 22px); padding-right: clamp(14px, 3vw, 22px); }
  .legal .container { border-radius: var(--r-lg); }
}
.legal h1 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.03em; line-height: 1.12; margin-bottom: var(--s-3);
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 1.18rem; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink);
  margin: var(--s-6) 0 var(--s-3);
}
.legal p { margin-bottom: var(--s-4); }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal ul { margin: 0 0 var(--s-4); padding-left: 0; list-style: none; }
.legal li { position: relative; padding-left: 26px; margin-bottom: var(--s-2); }
.legal li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--accent-bright);
}
.legal__updated {
  font-size: 13px; color: var(--ink-mute);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
}
.legal__meta {
  display: grid; grid-template-columns: minmax(130px, auto) 1fr;
  gap: var(--s-3) var(--s-5);
  margin: var(--s-4) 0 var(--s-5);
  padding: var(--s-5);
  background: var(--paper);
  border-radius: var(--r-md);
}
.legal__meta dt { font-size: 13px; color: var(--ink-mute); }
.legal__meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.legal__meta dt { margin-top: 0; padding-top: 2px; }
@media (max-width: 560px) {
  .legal__meta { grid-template-columns: 1fr; gap: 2px var(--s-4); }
  .legal__meta dt { padding-top: 0; margin-top: var(--s-3); }
  .legal__meta dt:first-child { margin-top: 0; }
}

/* ---------- появление хиро при загрузке ----------
   Первый экран виден сразу, поэтому ждать скролла нечего: строки
   въезжают по очереди, сцена справа подхватывает следом. */
.hero__word > *,
.hero__stage {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.hero__stage { transform: translateY(26px) scale(0.985); }

.hero.is-ready .hero__word > * {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) var(--d, 0s);
}
.hero__word > *:nth-child(2) { --d: 0.09s; }
.hero__word > *:nth-child(3) { --d: 0.18s; }
.hero__word > *:nth-child(4) { --d: 0.27s; }
.hero__word > *:nth-child(5) { --d: 0.36s; }

.hero.is-ready .hero__stage {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
/* анимация отыграла — снимаем подсказку браузеру, она держит слой в памяти */
.hero.is-done .hero__word > *,
.hero.is-done .hero__stage { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  .hero__word > *, .hero__stage { opacity: 1; transform: none; }
  .hero.is-ready .hero__word > *, .hero.is-ready .hero__stage { transition: none; }
}

/* ---------- лента логотипов клиентов ----------
   Текстовый список переносился на две строки; логотипы идут одним рядом
   и едут сами. Дорожка содержит два одинаковых набора, сдвиг ровно на
   половину — поэтому цикл замыкается без рывка. */
.marquee {
  position: relative;
  overflow: hidden;
  padding: var(--s-2) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeRun 46s linear infinite;
}
/* зазор отдан элементам: при gap на дорожке её половина короче набора
   ровно на один зазор, и цикл дёргался на стыке */
.marquee__item { padding-inline: clamp(20px, 2.75vw, 44px); }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }

.marquee__item { display: block; flex: 0 0 auto; }
.marquee__item img {
  display: block;
  height: calc(var(--k, 1) * clamp(21px, 2.1vw, 29px));
  width: auto;
  opacity: 0.46;
  transition: opacity 0.3s var(--ease);
}
.marquee__item:hover img,
.marquee__item:focus-visible img { opacity: 1; }

@keyframes marqueeRun { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
}

/* ============================================================
   ЗАКРЕПЛЁННЫЕ КЕЙСЫ
   Каждый кейс прилипает к верху и остаётся, пока следующий
   не наедет сверху листом. Пока кейс закреплён, сайт клиента
   прокручивается внутри макбука — ровно на тот же путь.
   ============================================================ */

.pins { position: relative; }

.pin {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--s-7) 0;
  background: var(--paper);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -22px 50px rgba(6, 26, 56, 0.12);
  overflow: hidden;
}
/* чередуем плоскости — иначе девять одинаковых экранов читаются как один */
.pin:nth-child(even) { background: var(--surface); }

.pin__inner {
  width: 100%;
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(32px, 4vw, 72px);
  padding: 0 clamp(18px, 2.6vw, 44px);
}
/* зеркалим через ряд: девять кейсов подряд в одну сторону утомляют */
.pin--alt .pin__inner { grid-template-columns: 1.08fr 0.92fr; }
.pin--alt .pin__text { order: 2; }
.pin--alt .pin__device { order: 1; }

.pin__text h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.9rem);
  letter-spacing: -0.035em; line-height: 1.04;
  margin: var(--s-3) 0 var(--s-5);
}

.pin__facts { display: grid; gap: var(--s-4); margin-bottom: var(--s-5); }
.pin__facts dt {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  margin-bottom: 5px;
}
.pin__facts dd {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 54ch;
}
.pin__facts div:last-child dd { color: var(--ink); font-weight: 500; }

/* ---- макбук и кадр внутри ---- */
.pin__device { display: flex; justify-content: center; }

/* Накрытый лист не рисуем. Липкие кейсы не исчезают, а остаются под следующим —
   к девятому кейсу под экраном лежало девять полноэкранных слоёв, видеопамяти
   не хватало, и браузер бросал недорисованные прямоугольники. */
.pin.is-covered { visibility: hidden; }

/* В кейсах макбук плоский и без filter: drop-shadow. Фильтр поверх движущегося
   кадра пересчитывается каждый кадр, объёмный поворот заводит ещё один слой.
   Тень та же по виду, но обычная — её рисуют один раз. */
.pin .mac {
  transform: none;
  transform-style: flat;
  filter: none;
}
.pin .mac__lid {
  box-shadow: 0 0 0 0.5px rgba(30, 44, 66, 0.28),
              0 34px 60px -24px rgba(6, 26, 56, 0.42);
}
.pin .mac__base { box-shadow: 0 22px 32px -14px rgba(6, 26, 56, 0.34); }
.pin .mac__screen::after { display: none; }
.pin__device .mac { width: 100%; max-width: 760px; }
.pin .mac__screen > .pin__shot {
  position: absolute; top: 0; left: 0;
  width: 100%; height: auto;
  display: block;
  will-change: transform;
  /* пока полный кадр не пришёл, видно размытое превью тех же цветов */
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: top center;
}
.pin .mac__screen { background: #1b2230; }

/* появление листа: текст и макбук въезжают один раз, когда кейс доходит до экрана */
.pins-anim .pin__text > *,
.pins-anim .pin__device {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.pins-anim .pin__device { transform: translateY(30px) scale(0.985); }
.pins-anim .pin.is-in .pin__text > *,
.pins-anim .pin.is-in .pin__device { opacity: 1; transform: none; }
.pins-anim .pin.is-in .pin__text > *:nth-child(2) { transition-delay: 0.06s; }
.pins-anim .pin.is-in .pin__text > *:nth-child(3) { transition-delay: 0.12s; }
.pins-anim .pin.is-in .pin__text > *:nth-child(4) { transition-delay: 0.18s; }
.pins-anim .pin.is-in .pin__text > *:nth-child(5) { transition-delay: 0.24s; }
.pins-anim .pin.is-in .pin__device { transition-delay: 0.1s; }

@media (max-width: 980px) {
  /* на узком экране закрепление мешает: кейсы идут обычной лентой */
  .pin {
    position: static;
    min-height: 0;
    padding: var(--s-7) 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .pin__inner { grid-template-columns: 1fr; gap: var(--s-6); }
  .pin--alt .pin__inner { grid-template-columns: 1fr; }
  .pin--alt .pin__text { order: 1; }
  .pin--alt .pin__device { order: 2; }
  /* экран остаётся 16:10, а кадр сайта сам медленно листается внутри,
     когда кейс доехал до экрана: кадр 900×1575, ход = 1 − 0,625 · 900/1575 */
  .pin .mac__screen > .pin__shot {
    animation: pinPeek 16s ease-in-out infinite alternate paused;
  }
  .pin.is-in .mac__screen > .pin__shot { animation-play-state: running; }
}
@keyframes pinPeek {
  0%, 10% { transform: translate3d(0, 0, 0); }
  90%, 100% { transform: translate3d(0, -64.3%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .pin { position: static; min-height: 0; }
  .pin .mac__screen > .pin__shot { transform: none !important; }
}

/* откуда идут обращения — показываем только там, где это правда */
.pin__channel {
  display: grid; gap: 9px;
  margin: 0 0 var(--s-5);
  padding: var(--s-4);
  background: var(--accent-wash);
  border-radius: var(--r-md);
  list-style: none;
  max-width: 50ch;
}
.pin__channel li { display: flex; align-items: center; gap: var(--s-3); }
.pin__channel svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent); }
.pin__channel span { font-size: var(--t-small); color: var(--ink); font-weight: 500; line-height: 1.45; }


/* ---------- плотность на телефоне (03.11) ----------
   Плитки и сцена держали минимальную высоту под компьютер: на узком экране
   внутри оставались пустые полосы между текстом и ценой, над и под мокапами. */
@media (max-width: 1000px) {
  .hero__stage { min-height: 0; }
  .stage-devices { min-height: 0; flex: none; padding-top: var(--s-4); }
}
@media (max-width: 680px) {
  .svc { min-height: 0; }
  .svc .link-arrow, .svc > :last-child { margin-top: var(--s-4); }
  .hero__jump { margin-bottom: var(--s-3); }
}


/* ---------- подвал (03.11): одна строка вместо четырёх колонок ----------
   Быстрые ссылки дублировали шапку и разбрасывали подвал на пол-экрана.
   Осталось нужное: кто мы, как связаться, отправить заявку, политика. */
.footer__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5) clamp(28px, 5vw, 80px);
  padding-bottom: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.footer__info .logo { margin-bottom: var(--s-3); }
.footer__reach { display: grid; gap: 6px; justify-items: start; }
.footer__reach a {
  font-size: var(--t-small); color: var(--on-deep); opacity: 0.85;
  transition: opacity 0.2s var(--ease);
}
.footer__reach a:hover { opacity: 1; }
.footer__reach .footer__phone {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: -0.01em; opacity: 1;
}
.footer__cta { white-space: nowrap; }
.footer .footer__bottom { padding-top: var(--s-4); }

@media (max-width: 860px) {
  .footer__row { grid-template-columns: 1fr; align-items: start; gap: var(--s-5); }
}
@media (max-width: 560px) {
  .footer__cta { width: 100%; justify-content: center; }
  .footer .footer__bottom { flex-direction: column; gap: var(--s-2); }
}

/* ---------- форма в первом экране (03.11) ----------
   Вместо кнопки «рассчитать» — сама заявка: имя, контакт и действие.
   Поле в 16 px — иначе iOS увеличивает страницу при фокусе. */
.hero-form { max-width: 640px; margin-top: var(--s-2); }
.hero-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
  gap: 8px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(10, 44, 90, 0.08);
}
.hero-form__field input {
  width: 100%; height: 52px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: var(--paper);
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.hero-form__field input::placeholder { color: var(--ink-mute); }
.hero-form__field input:focus { outline: none; border-color: var(--accent-bright); background: var(--surface); }
.hero-form__row .btn { height: 52px; padding: 0 26px; border-radius: 13px; white-space: nowrap; }
.hero-form .consent { margin-top: 12px; }
.hero-form .form__ok, .hero-form .form__err { margin-top: 10px; font-size: var(--t-small); }
.hero-form__note { margin-top: 8px; font-size: var(--t-small); color: var(--ink-mute); }
.hero-form__note a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* незаполненное обязательное поле — подсвечиваем до отправки */
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select,
.hero-form__field.is-invalid input {
  border-color: #C0392B;
  background: #FFF6F5;
}

@media (max-width: 1240px) {
  .hero-form__row { grid-template-columns: 1fr 1fr; }
  .hero-form__row .btn { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hero-form__row { grid-template-columns: 1fr; padding: 6px; border-radius: 18px; }
}

/* на узком экране колонка хиро во всю ширину: правый отступ остался от раскладки в две колонки */
@media (max-width: 1000px) { .hero__word { padding-right: 0; } }

/* ============================================================
   расширение сайта 08.11.2026: меню на три колонки, цены, кейсы
   ============================================================ */

/* меню услуг: три колонки по группам и ссылка на все цены */
.menu__panel--mega {
  grid-template-columns: repeat(3, minmax(208px, 1fr));
  gap: 2px var(--s-3);
  min-width: 660px;
  padding: var(--s-4);
}
.menu__col { display: grid; gap: 2px; align-content: start; }
/* цена под названием: в три колонки рядом с ценой название переносилось и наезжало на соседнюю */
.menu__panel--mega .menu__col a { flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; }
.menu__panel--mega .menu__col a small { margin-left: 0; }
.menu__group {
  padding: 4px 12px 6px;
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute);
}
.menu__panel a.menu__all {
  grid-column: 1 / -1;
  margin-top: var(--s-2); padding-top: 12px;
  border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm);
  color: var(--accent); font-weight: 600;
}
@media (max-width: 1100px) {
  .menu__panel--mega { min-width: 620px; grid-template-columns: repeat(3, minmax(180px, 1fr)); }
}
@media (max-width: 780px) {
  .menu__panel--mega { grid-template-columns: 1fr; min-width: 0; gap: 0; padding: var(--s-2) 0 var(--s-3) var(--s-4); }
  .menu__group { padding: var(--s-3) 0 2px; }
  .menu__panel a.menu__all { margin-top: var(--s-3); padding: 12px 0; border-radius: 0; }
  /* пунктов стало много: раскрытое меню прокручивается внутри экрана */
  .nav { max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; }
}

/* строка ссылок «смотрите также» в тексте и под услугами на главной */
.related-links, .svc-more p {
  margin-top: var(--s-5);
  font-size: var(--t-small); line-height: 1.8; color: var(--ink-soft);
}
.prose p.related-links { font-size: var(--t-small); color: var(--ink-soft); }
.related-links span, .svc-more span { color: var(--ink-mute); margin-right: 4px; }
.related-links a, .svc-more a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(10, 74, 154, 0.3); text-underline-offset: 3px; }
.related-links a:hover, .svc-more a:hover { text-decoration-color: currentColor; }
.svc-more { margin-top: var(--s-5); }
.svc-more p { margin-top: var(--s-2); }

/* заголовок кейса в карточке — ссылка на страницу кейса */
.case__body h3 a { color: inherit; }
.case__body h3 a:hover { color: var(--accent); }
.svc h3 a { color: inherit; }
.svc h3 a:hover { color: var(--accent); }

/* ссылка «как делали» у закреплённого кейса */
.pin__more {
  display: inline-block; margin-left: var(--s-5);
  font-size: var(--t-small); font-weight: 600; color: var(--ink-soft);
}
.pin__more:hover { color: var(--accent); }

/* списки внутри текстовых блоков */
.prose ul.ticks { list-style: none; padding: 0; display: grid; gap: var(--s-3); }
.prose ul.ticks li {
  position: relative; padding-left: 28px;
  font-size: clamp(0.98rem, 1.08vw, 1.06rem); line-height: 1.6; color: var(--ink-soft);
}
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 0.55em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.prose .pin__channel { margin-top: var(--s-5); }

/* экраны кейса: компьютер и телефон рядом */
.shots { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.shots figure { margin: 0; }
.shots img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(6, 26, 56, 0.35);
  background: var(--surface-sunk);
}
.shots figcaption { margin-top: var(--s-3); font-size: var(--t-small); color: var(--ink-mute); }
.shots__mob { max-width: 300px; justify-self: center; width: 100%; }
.shots__live { margin-top: var(--s-6); }
@media (max-width: 680px) {
  .shots { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-4); }
}

/* страница цен */
.prices { background: var(--surface); border-radius: var(--r-lg); overflow: hidden; }
.prices__row {
  display: grid; grid-template-columns: minmax(0, 1fr) 170px 170px; gap: var(--s-4);
  align-items: center; padding: 20px 26px;
  color: inherit; transition: background-color 0.2s var(--ease);
}
.prices__row + .prices__row { border-top: 1px solid var(--line); }
.prices__row:hover { background: var(--surface-sunk); }
.prices__name b { display: block; font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.prices__name small { display: block; margin-top: 3px; font-size: var(--t-small); color: var(--ink-soft); }
.prices__term { font-size: var(--t-small); color: var(--ink-mute); }
.prices__cost { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--accent); text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .prices__row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px var(--s-4); padding: 16px 18px; }
  .prices__term { grid-column: 1; grid-row: 2; }
  .prices__cost { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}

/* контакты и реквизиты */
.contact__big { display: block; margin: 2px 0 var(--s-3); font-family: var(--font-display); font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 600; color: var(--ink); word-break: break-word; }
.contact__big:hover { color: var(--accent); }
.reqs { margin-top: var(--s-4); }
.reqs a { color: var(--accent); }

/* шесть пунктов в шапке: без переносов, на узких экранах — плотнее */
.nav > a, .menu__btn { white-space: nowrap; }
@media (max-width: 960px) and (min-width: 781px) {
  .nav { gap: var(--s-4); }
  .header__cta { padding: 10px 16px; }
}

/* страница кейса: задача и итог слева, решение карточкой справа */
.story {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 3.4vw, 52px) clamp(32px, 5vw, 80px);
  align-items: start;
}
.story__card {
  grid-column: 2; grid-row: 1 / span 2;
  padding: clamp(24px, 2.8vw, 40px);
  background: var(--surface); border-radius: var(--r-lg);
}
.story h2 { margin-bottom: var(--s-4); }
.story [id], .story__block, .story__card { scroll-margin-top: calc(var(--header-h) + 20px); }
.story .prose p:first-child { font-size: clamp(0.98rem, 1.08vw, 1.08rem); line-height: 1.65; color: var(--ink-soft); }
@media (max-width: 900px) {
  .story { grid-template-columns: minmax(0, 1fr); }
  .story__card { grid-column: auto; grid-row: auto; }
}

/* реквизиты — как «Подход»: заголовок слева, текст справа */
#details > .container {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5vw, 80px); align-items: start;
}
#details .section__head { margin-bottom: 0; }
@media (max-width: 900px) {
  #details > .container { grid-template-columns: minmax(0, 1fr); }
  #details .section__head { margin-bottom: var(--s-5); }
}

/* хлебные крошки с длинными названиями переносятся целиком, а не сжимаются в столбики */
.crumbs { flex-wrap: wrap; row-gap: 2px; }
.crumbs > * { flex: 0 0 auto; max-width: 100%; }

/* синий блок заявки последним на странице: между ним и подвалом нужен такой же воздух, как между секциями */
main > .calc:last-child { margin-bottom: var(--section-y); }
