/*
  KNS Development — главный сайт. Стили: точная конверсия одобренного макета
  из Claude Design (тёмный изумруд + «стекло» + Playfair Display).
  Все style-hover/style-focus прототипа переведены в обычные :hover/:focus.
*/

/* ── Шрифты ──
   Правила @font-face живут ЗДЕСЬ, а не только в assets/fonts/fonts.css (11.09.2026):
   отдельный fonts.css был ещё одним запросом, блокирующим отрисовку, — Lighthouse
   оценивал его в ~360 мс на мобильном. Страницы основного сайта (index, privacy,
   consent, 404, spasibo) fonts.css больше не подключают.
   ДУБЛЬ: те же правила остаются в assets/fonts/fonts.css — его подключают демо
   remont и bistro, у которых нет main.css. МЕНЯЯ ШРИФТЫ, ПРАВИТЬ ОБА ФАЙЛА.
   Подробности про урезанный latin-ext и убранный Playfair latin-ext — в fonts.css. */
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/playfair-display-cyrillic-wght-normal.5WvUvBgz.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Playfair Display'; font-style: normal; font-weight: 400 900; font-display: swap;
  src: url('../assets/fonts/playfair-display-latin-wght-normal.BOwq7MWX.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-cyrillic-wght-normal.DqGufNeO.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-latin-wght-normal.Dx4kXJAl.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../assets/fonts/inter-latin-ext-kns.woff2') format('woff2');
  unicode-range: U+20BD;
}

/* ── Токены ── */
:root {
  --bg: hsl(158, 64%, 5%);
  --ink: hsl(150, 30%, 98%);
  --muted: hsl(152, 12%, 62%);
  --faint: hsl(152, 12%, 56%);
  --line: hsl(152, 20%, 18%);
  --accent: hsl(150, 82%, 55%);
  --accent-strong: hsl(150, 70%, 45%);
  --glass-bg: hsla(156, 45%, 20%, 0.14);
  /* Заливка «стекла» без размытия — для больших панелей и карточек.
     backdrop-filter пересчитывается каждый кадр, пока элемент едет по фону:
     на крупных площадях это и была просадка кадров при скролле.
     Настоящий blur оставлен только мелким элементам (шапка, кнопки, баннеры). */
  --glass-fill: linear-gradient(160deg, hsla(156, 45%, 23%, 0.20), hsla(156, 45%, 18%, 0.09));
  --glass-bg-cta: hsla(156, 45%, 20%, 0.18);
  --glass-bg-btn: hsla(156, 45%, 20%, 0.24);
  --glass-bg-scrolled: hsla(156, 45%, 16%, 0.30);
  --glass-border: hsla(150, 80%, 80%, 0.10);
  --glass-border-cta: hsla(150, 80%, 80%, 0.12);
  --glass-border-lit: hsla(150, 80%, 80%, 0.20);
  --glass-highlight: inset 0 1px 1px hsla(150, 90%, 85%, 0.14);
  --glass-highlight-strong: inset 0 1px 1px hsla(150, 90%, 85%, 0.16);
  --glass-shadow: 0 10px 40px hsla(158, 64%, 3%, 0.45);
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}

/* ── База ── */
* { box-sizing: border-box; }
/* Мобильные браузеры подсвечивают нажатие голубым ПРЯМОУГОЛЬНИКОМ, который
   не повторяет скруглённую форму кнопок и читается как артефакт. Гасим его,
   а отклик на касание даём сами (см. :active в блоке ниже) — иначе нажатие
   станет «немым» и интерфейс будет казаться подвисшим. */
* { -webkit-tap-highlight-color: transparent; }
/* Только для сенсорных: на мыши для этого есть :hover */
@media (hover: none) {
  a:active, button:active, .calc-type:active, .calc-opt:active, .form-check:active {
    opacity: 0.7;
  }
}
html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scrollbar-width: thin;
  scrollbar-color: hsla(152, 25%, 30%, 0.6) transparent;
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: hsla(152, 25%, 30%, 0.55); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: hsla(152, 30%, 40%, 0.7); }
::selection { background: hsla(150, 82%, 55%, 0.28); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
input::placeholder, textarea::placeholder { color: var(--faint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; }

/* ── Анимации ── */
@keyframes mesh-drift {
  /* Дрейф через transform: его браузер отдаёт видеокарте и НЕ перерисовывает
     экран каждый кадр. Раньше здесь была background-position — она требует
     перерисовки всего слоя, отсюда просадка кадров при скролле. */
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(2.5%, 2%, 0) scale(1.05); }
}
@keyframes fade-rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes cue-float {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(8px); opacity: 1; }
}

/* Появление блоков при скролле — как в макете: через scroll-driven animations.
   В браузерах без поддержки блоки просто видимы сразу (прогрессивное улучшение). */
@supports (animation-timeline: view()) {
  [data-reveal] {
    animation: fade-rise 1s ease-out both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }
}

/* ── Фон: mesh + виньетка + шум ── */
/* Фон разделён на два слоя, и оба двигаются только через transform —
   так браузер обходится без перерисовки экрана и скролл остаётся плавным.
   Внешний слой: параллакс (курсор + скролл). Запас по краям нужен, чтобы
   при сдвиге не открывался край слоя («полоска» на фоне). */
.bg-mesh {
  position: fixed; inset: -30% -5%; z-index: -10;
  background-color: var(--bg);
  transform: translate3d(calc(var(--mx, 0) * -18px), calc(var(--sy, 0) * -0.06px), 0) scale(1.12);
  will-change: transform;
}
/* Внутренний слой: сами градиенты и медленный дрейф. Свой запас по краям —
   под сдвиг анимации, чтобы не обнажались углы. */
.bg-mesh::before {
  content: ''; position: absolute; inset: -6%;
  /* Насыщенность вшита прямо в цвета. Раньше здесь стоял filter: saturate(115%),
     и видеокарте приходилось прогонять через фильтр весь этот огромный слой
     на каждом кадре прокрутки — это стоило около 10 кадров в секунду. */
  background-image:
    radial-gradient(45% 45% at 20% 25%, hsla(152, 80%, 40%, 0.35), transparent 60%),
    radial-gradient(40% 40% at 80% 20%, hsla(168, 86%, 35%, 0.30), transparent 60%),
    radial-gradient(50% 50% at 65% 80%, hsla(140, 92%, 45%, 0.28), transparent 60%),
    radial-gradient(35% 35% at 15% 85%, hsla(160, 80%, 30%, 0.30), transparent 60%);
  animation: mesh-drift 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* translateZ(0) отдаёт оба слоя видеокарте как готовые текстуры.
   Без него браузер перерисовывал их поверх едущего контента каждый кадр. */
/* Запас снизу (-25%) обязателен. На телефоне при прокрутке сворачивается адресная
   строка, видимая область становится выше, а fixed-слой с inset:0 остаётся прежней
   высоты — и внизу открывается его край. Виньетка там резко заканчивается, фон под
   ней светлее, и через весь экран проходит горизонтальный шов. У .bg-mesh запас
   уже есть (-30%), поэтому шов был виден только на этих двух слоях. */
.bg-vignette {
  position: fixed; inset: 0 0 -25%; z-index: -9; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 40%, hsla(158, 64%, 4%, 0.65) 100%);
  transform: translateZ(0);
}
.bg-noise {
  position: fixed; inset: 0 0 -25%; z-index: -8; pointer-events: none; opacity: 0.05;
  transform: translateZ(0);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="160" height="160"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2"/></filter><rect width="160" height="160" filter="url(%23n)"/></svg>');
}

/* ── Стеклянная карточка (базовый класс) ── */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: 16px;
}

/* ── Навигация ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 16px 16px 0; }
.nav-pill {
  max-width: 1152px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 24px; border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: background .4s ease;
}
.nav-pill.is-scrolled {
  background: var(--glass-bg-scrolled);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.nav-logo { display: flex; align-items: baseline; gap: 10px; color: var(--ink); }
.nav-logo:hover { color: var(--ink); }
.nav-logo .mark { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.5px; }
.nav-logo sup { font-size: 11px; vertical-align: top; color: var(--accent); }
.nav-logo .word { font-size: 12px; color: var(--muted); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-cta {
  display: inline-block; padding: 10px 20px; border-radius: 999px; font-size: 14px;
  color: var(--ink); cursor: pointer; transition: transform .2s ease;
  background: var(--glass-bg-cta);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-cta);
  box-shadow: var(--glass-highlight);
}
.nav-cta:hover { transform: scale(1.03); color: var(--ink); }
.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; padding: 0;
}
.burger .icon-close { display: none; }
.burger.is-open .icon-open { display: none; }
.burger.is-open .icon-close { display: block; }
.mobile-menu {
  display: none;
  max-width: 1152px; margin: 12px auto 0; border-radius: 20px; padding: 12px;
  flex-direction: column;
  background: hsla(156, 45%, 16%, 0.55);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.mobile-menu.is-open { display: flex; }
.mobile-menu a { padding: 14px 16px; font-size: 16px; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .menu-cta {
  margin-top: 8px; padding: 14px 16px; border-radius: 999px; text-align: center;
  font-size: 15px; color: var(--ink);
  background: hsla(156, 45%, 20%, 0.30);
  border: 1px solid hsla(150, 80%, 80%, 0.14);
  box-shadow: var(--glass-highlight-strong);
}

/* ── Hero ── */
.hero {
  /* 100svh — высота экрана БЕЗ адресной строки: на телефоне при 100vh первый
     экран получается выше видимой области и кнопки уезжают под панель браузера.
     Строка с vh оставлена запасной для браузеров, не знающих svh. */
  position: relative; z-index: 10; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 160px 24px 128px;
  transform: translate3d(calc(var(--mx, 0) * 6px), calc(var(--sy, 0) * 0.06px + var(--my, 0) * 4px), 0);
}
.hero-glow {
  position: absolute; top: 30%; left: 50%;
  width: min(700px, 80vw); height: 340px;
  transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, hsla(150, 82%, 55%, 0.10), transparent 70%);
  filter: blur(20px);
}
.hero-badge {
  animation: fade-rise 0.8s ease-out both;
  display: inline-block; padding: 6px 16px; border-radius: 999px;
  font-size: 12px; color: var(--muted);
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
}
.hero h1 {
  animation: fade-rise 0.8s ease-out both;
  /* Нижняя граница 38px, а не 42: на 360px «Сайты под ключ —» помещается
     в одну строку и заголовок укладывается в три, а не в четыре */
  font-size: clamp(38px, 7.5vw, 88px); line-height: 1.0; letter-spacing: -1.5px;
  max-width: 1024px; margin: 32px 0 0;
}
.hero h1 em {
  font-style: normal; color: var(--accent);
  text-shadow: 0 0 48px hsla(150, 82%, 55%, 0.35);
}
.hero-sub {
  animation: fade-rise 0.8s ease-out 0.2s both;
  color: var(--muted); font-size: clamp(16px, 2vw, 18px);
  max-width: 640px; margin: 32px 0 0; line-height: 1.7;
}
.hero-btns {
  animation: fade-rise 0.8s ease-out 0.4s both;
  margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: center;
  /* 44px, а не 16: магнитная кнопка при максимальном притяжении уезжает
     вправо на 26px (14px сдвиг + 12px упругое растяжение) и при прежнем
     зазоре наезжала на «Смотреть кейсы» на 9px. Плюс её невидимая зона
     захвата (18px) заходила на соседа и перехватывала наведение.
     Считано замером, а не на глаз: 26 + 18 запаса. */
  gap: 44px;
}
/* ── Главный CTA: магнитная «тянучка» ───────────────────────────
   Кнопка притягивается к курсору и упруго тянется в его сторону (js/main.js).
   Вся анимация — только transform: считает GPU, раскладка не пересчитывается.
   inline-flex вместо inline-block: убирает влияние переносов строк
   в разметке на центровку надписи. */
.magnetic { display: inline-block; padding: 18px; margin: -18px; }
.btn-primary {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 48px; border-radius: 999px; font-size: 16px;
  color: var(--ink); cursor: pointer; transition: transform .2s ease;
  background: var(--glass-bg-cta);
  backdrop-filter: blur(var(--cta-blur, 16px)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--cta-blur, 16px)) saturate(140%);
  border: 1px solid var(--glass-border-cta);
  box-shadow: var(--glass-highlight-strong), var(--glass-shadow);
}
/* Запасной ховер: работает без JS и на тач-устройствах.
   При активном эффекте перекрывается inline-стилем от скрипта. */
.btn-primary:hover { transform: scale(1.03); color: var(--ink); }
.btn-primary:active { transform: scale(0.97); }
.btn-label { position: relative; z-index: 2; }

/* Курсор рядом: стекло чуть светлее и глубже тень — кнопка «оживает» */
.btn-primary.is-live {
  /* Блюр слабее только на время движения: backdrop-filter пересчитывается
     каждый кадр, пока кнопка едет. Визуально разница незаметна. */
  --cta-blur: 10px;
  border-color: hsla(150, 80%, 80%, 0.22);
  box-shadow: var(--glass-highlight-strong), 0 18px 50px hsla(158, 64%, 3%, 0.55);
}

/* Блик под курсором: мягкое световое пятно, скользит по стеклу */
.btn-sheen {
  position: absolute; top: 50%; left: 50%; width: 190px; height: 190px;
  margin: -95px 0 0 -95px; border-radius: 50%;
  pointer-events: none; z-index: 1; opacity: 0;
  background: radial-gradient(circle, hsla(150, 90%, 82%, 0.28), hsla(150, 90%, 82%, 0.07) 42%, transparent 70%);
  transition: opacity .3s ease;
}
.btn-primary.is-live .btn-sheen { opacity: 1; }

/* Редкий проблеск по стеклу, пока кнопку не трогают: притягивает взгляд,
   не мозоля глаз. Класс is-idle ставится скриптом только когда кнопка в кадре. */
.btn-shine {
  position: absolute; top: -60%; left: -45%; width: 38%; height: 220%;
  pointer-events: none; z-index: 1; opacity: 0;
  background: linear-gradient(90deg, transparent, hsla(150, 90%, 88%, 0.16), transparent);
  transform: rotate(14deg);
}
.btn-primary.is-idle .btn-shine { animation: cta-shine 7s ease-in-out 1.8s infinite; }
@keyframes cta-shine {
  0%   { opacity: 0; transform: translateX(0) rotate(14deg); }
  4%   { opacity: 1; }
  17%  { opacity: 0; transform: translateX(430%) rotate(14deg); }
  100% { opacity: 0; transform: translateX(430%) rotate(14deg); }
}
.btn-secondary {
  display: inline-block; padding: 20px 32px; border-radius: 999px; font-size: 16px;
  color: var(--muted); border: 1px solid var(--line); transition: color .2s ease;
}
.btn-secondary:hover { color: var(--ink); }
.hero-trust {
  animation: fade-rise 0.8s ease-out 0.5s both;
  margin-top: 32px; font-size: 12px; color: var(--muted);
}
.hero-cue {
  position: absolute; bottom: 36px; left: 50%; margin-left: -11px;
  color: var(--muted); animation: cue-float 2.4s ease-in-out infinite;
}
/* За пределами экрана анимацию останавливаем совсем (класс ставит скрипт).
   Бесконечная анимация даже невидимого элемента заставляет браузер собирать
   кадр каждые 16 мс — на десктопе это 4.8 % процессора вечно, ни за что. */
.hero-cue.is-paused { animation-play-state: paused; }
.hero-cue:hover { color: var(--ink); }

/* ── Секции (общее) ── */
/* --head-gap — единый отступ от шапки секции (плашка + h2 + подзаголовок)
   до её содержимого. Держим его в одном месте, чтобы ритм не расползался. */
.section {
  position: relative; z-index: 10; padding: 96px 24px; --head-gap: 56px;
  /* Браузер пропускает отрисовку секций за пределами экрана: на длинной
     странице это самая большая экономия кадров при прокрутке. Размер
     запоминается после первой отрисовки, поэтому полоса прокрутки не скачет.
     Важно: сюда нельзя класть position:fixed-потомков — секция становится
     для них точкой отсчёта (плавающая панель калькулятора вынесена в body). */
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}
.container { max-width: 1152px; margin: 0 auto; }
.container-narrow { max-width: 896px; margin: 0 auto; }
.kicker {
  display: flex; align-items: center; gap: 12px;
  color: var(--accent); font-size: 14px; letter-spacing: 3px; text-transform: uppercase;
}
.kicker::before { content: ''; display: inline-block; width: 32px; height: 1px; background: var(--accent); opacity: 0.6; }
.section h2 { font-size: clamp(32px, 5vw, 48px); margin: 14px 0 0; }
.section-sub { color: var(--muted); max-width: 576px; margin: 20px 0 0; line-height: 1.6; }
/* Браузер по умолчанию набивает первую строку под завязку, а на последнюю
   роняет пару слов. balance раскладывает строки поровну. Старые браузеры
   свойство игнорируют и переносят как раньше — ломаться нечему. */
.section-sub, .hero-sub, .hero-trust, .section h2, .hero h1 { text-wrap: balance; }
/* Для того, что нельзя рвать переносом: диапазоны сроков, цены */
.nb { white-space: nowrap; }

/* ── Кейсы ── */
.cases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px; margin-top: var(--head-gap);
}
.case-card {
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  transition: transform .25s ease, border-color .25s ease;
  color: var(--ink);
}
.case-card:hover { transform: translateY(-3px); border-color: var(--glass-border-lit); color: var(--ink); }
/* Превью кейса: скриншот сайта в рамке-«браузере» под стеклянную тему */
.case-shot {
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  overflow: hidden;
  margin-bottom: 20px;
  background: hsla(158, 64%, 4%, 0.5);
}
.case-shot-bar {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 12px;
  background: hsla(158, 40%, 8%, 0.85);
  border-bottom: 1px solid var(--glass-border);
}
.case-shot-bar i {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsla(150, 30%, 98%, 0.16);
}
.case-shot-bar i:first-child { background: hsla(150, 82%, 55%, 0.55); }
.case-shot-bar .url {
  margin-left: 8px; font-size: 10px; letter-spacing: 0.5px;
  color: var(--faint); font-variant-numeric: tabular-nums;
}
.case-shot img {
  /* height:auto обязателен: иначе атрибут height="900" перебивает aspect-ratio */
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center;
  transition: transform .5s ease;
}
.case-card:hover .case-shot img { transform: scale(1.04); }

.case-cat { font-size: 12px; color: var(--accent); letter-spacing: 1.5px; text-transform: uppercase; }
.case-title { font-family: var(--font-display); font-size: 22px; margin-top: 12px; }
.case-teaser { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.6; flex: 1; }
/* Что показывает демо — вместо прежних «целевых» процентов, которые читались как результат */
.case-shows { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); line-height: 1.55; }
.case-shows span { display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
/* Карточки стоят в ряд: у всех одинаковая высота блока, иначе разделитель в карточке
   с одной строкой текста опускается ниже соседних. В одну колонку не нужно. */
@media (min-width: 900px) { .case-shows { min-height: 78px; } }
.case-link { margin-top: 16px; font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.case-card:hover .case-link { color: var(--ink); }

/* «Этот сайт — реальный проект»: единственное проверяемое доказательство в портфолио.
   Рамка чуть ярче, чем у карточек демо, — это другой по статусу объект. */
.proof {
  margin-top: 16px; border-radius: 16px; padding: clamp(22px, 3vw, 32px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center;
  background: var(--glass-fill);
  border: 1px solid hsla(150, 82%, 55%, 0.28);
  box-shadow: var(--glass-highlight);
}
.proof h3 { font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 24px); font-weight: 500; }
.proof p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; max-width: 560px; }
.proof-links { display: flex; flex-wrap: wrap; gap: 10px; }
.proof-link {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; border-radius: 12px;
  font-size: 15px; color: var(--ink);
  background: hsla(158, 64%, 4%, 0.35); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.proof-link span { font-size: 12px; color: var(--muted); }
.proof-link:hover { color: var(--ink); border-color: var(--glass-border-lit); transform: translateY(-2px); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .proof-links { display: grid; grid-template-columns: 1fr; } }

/* ── Что входит ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: var(--head-gap);
}
.svc-card {
  border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  transition: transform .25s ease, border-color .25s ease;
}
.svc-card:hover { transform: translateY(-3px); border-color: var(--glass-border-lit); }
.svc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: hsla(150, 82%, 55%, 0.12); color: var(--accent);
}
.svc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.svc-title { font-family: var(--font-display); font-size: 20px; }
.chip-core {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--accent); border: 1px solid hsla(150, 82%, 55%, 0.4);
  border-radius: 4px; padding: 2px 6px;
}
.svc-desc { font-size: 14px; color: var(--muted); line-height: 1.6; flex: 1; }
/* Отсылка к развёрнутой секции — чтобы карточка не пересказывала её целиком */
.svc-link {
  margin-top: -2px; font-size: 14px; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
}
.svc-link svg { transition: transform .25s ease; }
.svc-link:hover svg { transform: translateX(3px); }

/* ── Процесс ── */
.process-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: var(--head-gap);
}
.step-card { border-radius: 16px; padding: 24px; }
.step-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.step-num { font-family: var(--font-display); font-size: 15px; color: var(--accent); }
.step-time {
  font-size: 11px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.step-title { font-family: var(--font-display); font-size: 19px; margin-top: 12px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 8px; }

/* ── Цены ── */
/* Почему дешевле студий + что закреплено в договоре — стоит над пакетами */
.price-why { margin-top: var(--head-gap); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pw-col {
  border-radius: 16px; padding: 24px;
  background: var(--glass-fill); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight);
}
.pw-col h3 { font-family: var(--font-display); font-size: 19px; font-weight: 500; }
.pw-col p { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }
.pw-col ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pw-col li { position: relative; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.pw-col li::before {
  content: ''; position: absolute; left: 2px; top: .6em;
  width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .75;
}
@media (max-width: 760px) { .price-why { grid-template-columns: 1fr; } }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-top: var(--head-gap); align-items: start;
}
/* После блока «почему дешевле» полный отступ заголовка секции лишний */
.price-why + .pricing-grid { margin-top: 32px; }
.plan-card {
  position: relative; border-radius: 16px; padding: 28px;
  display: flex; flex-direction: column;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  transition: transform .25s ease;
}
.plan-card:hover { transform: translateY(-3px); }
.plan-card.is-popular { border-color: hsla(150, 82%, 55%, 0.35); }
.plan-badge {
  position: absolute; top: -11px; left: 28px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
  color: hsl(158, 64%, 8%); background: var(--accent);
  border-radius: 999px; padding: 4px 12px;
}
.plan-title { font-family: var(--font-display); font-size: 24px; }
.plan-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.plan-price { font-family: var(--font-display); font-size: 36px; margin-top: 20px; font-variant-numeric: tabular-nums; }
.plan-feats { display: grid; gap: 12px; margin-top: 24px; flex: 1; }
.plan-feat { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.plan-feat svg { flex-shrink: 0; margin-top: 2px; }
.plan-btn {
  display: block; text-align: center; margin-top: 28px; padding: 14px;
  border-radius: 999px; font-size: 15px; color: var(--ink); cursor: pointer;
  transition: transform .2s ease;
  background: var(--glass-bg-btn);
  border: 1px solid hsla(150, 80%, 80%, 0.14);
  box-shadow: var(--glass-highlight-strong);
}
.plan-btn:hover { transform: scale(1.02); color: var(--ink); }
.pricing-note { text-align: center; font-size: 14px; color: var(--muted); margin: 32px 0 0; }
.pricing-legal { display: inline-block; margin-top: 8px; font-size: 12px; color: var(--faint, hsl(152, 10%, 45%)); }

/* ── Конструктор цены ── */
.calc {
  margin-top: 48px; border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
/* Конструктор свёрнут за кнопку (11.09.2026). Шапку .calc-head заменил сам <summary> */
.calc-fold { margin-top: 32px; }
.fold-sum {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; border-radius: 16px;
  background: var(--glass-fill); border: 1px solid var(--glass-border); box-shadow: var(--glass-highlight);
  transition: border-color .2s ease;
}
.fold-sum::-webkit-details-marker { display: none; }
.fold-sum:hover { border-color: var(--glass-border-lit); }
.fold-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.fold-title { font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 22px); }
.fold-sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.fold-chev {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; color: var(--accent);
  border: 1px solid hsla(150, 82%, 55%, 0.3); transition: transform .25s ease;
}
.calc-fold[open] .fold-chev { transform: rotate(180deg); }
.calc-fold .calc { margin-top: 12px; }
.calc-fold .calc-presets { margin-top: 0; }
.calc-body {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(24px, 4vw, 48px); margin-top: 32px; align-items: start;
}
.calc-group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.calc-group:last-child { margin-bottom: 0; }
.calc-group legend {
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px; padding: 0; width: 100%;
}
.cg-num { color: var(--accent); margin-right: 4px; }
.cg-hint {
  display: block; margin-top: 4px;
  text-transform: none; letter-spacing: 0; font-size: 12px;
  color: hsl(152, 10%, 48%);
}

/* Готовые наборы: снимают паралич выбора одним кликом */
.calc-presets { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.cp-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.cp-chip {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; color: var(--ink);
  background: var(--glass-bg-btn); border: 1px solid hsla(150, 80%, 80%, 0.14);
  box-shadow: var(--glass-highlight); transition: transform .15s ease, border-color .2s ease, background .2s ease;
}
.cp-chip:hover { transform: scale(1.03); }
.cp-chip i { font-style: normal; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-chip.is-featured { border-color: hsla(150, 82%, 55%, 0.35); }
.cp-chip.is-active { border-color: hsla(150, 82%, 55%, 0.55); background: hsla(150, 82%, 55%, 0.10); }
.cp-hint { font-size: 13px; color: var(--muted); }

/* Выбор основы: радио-карточки 2×2 */
.calc-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.calc-type {
  position: relative; cursor: pointer; border-radius: 14px; padding: 16px;
  display: flex; flex-direction: column; gap: 2px;
  background: hsla(158, 64%, 4%, 0.35); border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.calc-type:hover { border-color: var(--glass-border-lit); }
.calc-type input { position: absolute; opacity: 0; pointer-events: none; }
.calc-type:has(input:checked) { border-color: hsla(150, 82%, 55%, 0.45); background: hsla(150, 82%, 55%, 0.07); }
.calc-type:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.ct-name { font-size: 15px; font-weight: 500; }
.ct-sub { font-size: 12px; color: var(--muted); line-height: 1.5; }
.ct-badge {
  position: absolute; top: -10px; right: 12px;
  font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
  color: hsl(158, 64%, 8%); background: var(--accent);
  border-radius: 999px; padding: 3px 10px;
}
.ct-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 10px; }
.ct-price { font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.ct-days { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Опции-чекбоксы: две колонки на десктопе */
.calc-opts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); align-items: stretch; }
.calc-opt {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-radius: 12px; cursor: pointer;
  background: hsla(158, 64%, 4%, 0.3); border: 1px solid var(--line);
  transition: border-color .2s ease, background .2s ease;
}
.calc-opt:hover { border-color: var(--glass-border-lit); }
.calc-opt input { position: absolute; opacity: 0; pointer-events: none; }
.calc-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.co-box {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid hsla(150, 80%, 80%, 0.22);
  transition: background .2s ease, border-color .2s ease;
}
.co-box svg { opacity: 0; transition: opacity .15s ease; }
.calc-opt:has(input:checked) { border-color: hsla(150, 82%, 55%, 0.4); background: hsla(150, 82%, 55%, 0.06); }
.calc-opt:has(input:checked) .co-box { background: var(--accent); border-color: var(--accent); }
.calc-opt:has(input:checked) .co-box svg { opacity: 1; }
.co-text { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.co-name { font-size: 14px; }
.co-desc { font-size: 12px; color: var(--muted); line-height: 1.5; }
.co-price { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc-opt:has(input:checked) .co-price { color: var(--accent); }
.co-incl {
  display: none; font-size: 11px; letter-spacing: 0.5px; white-space: nowrap;
  color: var(--accent); border: 1px solid hsla(150, 82%, 55%, 0.3);
  border-radius: 999px; padding: 3px 10px;
}
/* Опция уже входит в выбранную основу: не считается и не кликается.
   Правила с :has(input:checked) ниже перекрывают «выбранный» вид,
   чтобы ранее отмеченные опции выглядели как остальные «Включено» */
.calc-opt.is-included,
.calc-opt.is-included:has(input:checked) { cursor: default; background: hsla(150, 82%, 55%, 0.04); border-color: var(--line); }
.calc-opt.is-included .co-price { display: none; }
.calc-opt.is-included .co-incl { display: inline-block; }
.calc-opt.is-included .co-box,
.calc-opt.is-included:has(input:checked) .co-box { background: hsla(150, 82%, 55%, 0.25); border-color: transparent; }
.calc-opt.is-included .co-box svg { opacity: 0.9; }

/* Счётчик страниц */
.calc-counter { cursor: default; }
.cnt { display: flex; align-items: center; gap: 4px; }
.cnt-btn {
  width: 38px; height: 38px; border-radius: 10px; font-size: 18px; line-height: 1;
  color: var(--ink); cursor: pointer; font-family: var(--font-body);
  background: var(--glass-bg-btn); border: 1px solid hsla(150, 80%, 80%, 0.14);
  box-shadow: var(--glass-highlight); transition: transform .15s ease;
}
.cnt-btn:hover { transform: scale(1.06); }
.cnt-btn:active { transform: scale(0.96); }
.cnt-val { min-width: 28px; text-align: center; font-size: 15px; font-variant-numeric: tabular-nums; }
@media (pointer: coarse) { .cnt-btn { width: 44px; height: 44px; } }

/* Итог */
.calc-summary {
  position: sticky; top: 96px; border-radius: 16px; padding: 24px;
  background: hsla(158, 64%, 4%, 0.45); border: 1px solid var(--glass-border);
}
.cs-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.cs-price { font-family: var(--font-display); font-size: 34px; margin-top: 6px; font-variant-numeric: tabular-nums; }
.cs-list { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cs-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cs-list li .val { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-note { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 16px; }
.cs-btn { margin-top: 20px; width: 100%; font-family: var(--font-body); }
.cs-reset {
  /* padding, а не голый текст: без него кнопка была 74×18 px — мимо такой цели
     на телефоне промахиваются. Внешние отступы ужаты на ту же величину,
     чтобы расстояние до соседних элементов осталось прежним. */
  display: block; margin: 4px auto -8px; padding: 8px 12px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; font-family: var(--font-body);
  text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px;
}
.cs-reset:hover { color: var(--ink); }
.cs-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; color: var(--muted); margin-top: 10px;
}
.cs-meta .val { color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cs-help { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 16px; text-align: center; }

/* Метка «Популярно» у востребованных опций */
.co-pop {
  display: inline-block; vertical-align: 1px; margin-left: 8px;
  font-size: 10px; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--accent); background: hsla(150, 82%, 55%, 0.12);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap;
}
.calc-opt.is-included .co-pop { display: none; }

/* Что бесплатно в любом варианте — снимает страх скрытых доплат */
.calc-free {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line);
}
.cf-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.cf-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cf-item svg { flex-shrink: 0; }

/* Мобильная плавающая панель с ценой */
.calc-bar {
  position: fixed; left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 60; display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px 10px 18px; border-radius: 16px;
  background: var(--glass-bg-scrolled);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-lit);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.calc-bar.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cb-txt { display: flex; flex-direction: column; min-width: 0; }
.cb-label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.cb-price { font-family: var(--font-display); font-size: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cb-btn {
  flex-shrink: 0; padding: 12px 20px; border-radius: 999px;
  font-family: var(--font-body); font-size: 14px; color: var(--ink); cursor: pointer;
  background: var(--glass-bg-btn); border: 1px solid hsla(150, 80%, 80%, 0.18);
  box-shadow: var(--glass-highlight-strong); transition: transform .15s ease;
}
.cb-btn:active { transform: scale(0.97); }

@media (max-width: 900px) {
  .calc-body { grid-template-columns: 1fr; }
  .calc-summary { position: static; margin-bottom: 8px; }
  .calc-types { grid-template-columns: 1fr; }
  .calc { padding-bottom: 96px; }
  .calc-bar { display: flex; }
}

/* ── FAQ ── */
/* Раньше секция жила в .container-narrow и была уже остальных на 128px с каждой
   стороны — её левый край не совпадал с сеткой страницы. Теперь обычный
   .container и две колонки: шапка слева по сетке, гармошка справа. */
.faq-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--head-gap); align-items: start;
}
.faq-head .section-sub { max-width: none; }
.faq-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 14px 24px; border-radius: 999px; font-size: 15px;
  color: var(--muted); border: 1px solid var(--line);
  transition: color .2s ease, border-color .2s ease;
}
.faq-cta:hover { color: var(--ink); border-color: var(--glass-border-lit); }
.faq-cta svg { transition: transform .25s ease; }
.faq-cta:hover svg { transform: translateX(3px); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border-radius: 16px; padding: 18px 24px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
}
.faq-q {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  cursor: pointer; width: 100%; background: none; border: none; padding: 0;
  color: var(--ink); font-family: var(--font-body); text-align: left;
}
.faq-q .q-text { font-size: 16px; font-weight: 500; }
.faq-q svg { flex-shrink: 0; transition: transform .3s ease; }
.faq-item.is-open .faq-q svg { transform: rotate(45deg); }
.faq-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0;
  transition: grid-template-rows .35s ease, opacity .35s ease;
}
.faq-item.is-open .faq-panel { grid-template-rows: 1fr; opacity: 1; }
.faq-panel > div { overflow: hidden; }
.faq-a { font-size: 14px; color: var(--muted); line-height: 1.7; padding-top: 12px; }

/* ── Контакты / форма ── */
/* Финальный блок. Раньше это была карточка 576px по центру — она не совпадала
   ни с сеткой страницы, ни с ритмом секций. Теперь панель во всю ширину
   контейнера: слева шапка с контактами, справа форма.
   Без backdrop-filter намеренно: панель большая, а размытие пересчитывается
   каждый кадр из-за дрейфа фона. Полупрозрачная заливка выглядит так же. */
.contact-panel {
  border-radius: 28px; padding: clamp(28px, 4vw, 56px);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border-lit);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "intro form" "list form";
  column-gap: clamp(32px, 4vw, 56px);
}
.contact-intro { grid-area: intro; }
.contact-form-col { grid-area: form; }
/* Контакты прижаты к низу колонки — так низ панели читается ровным,
   а не обрывается пустотой под левым столбцом. */
.contact-list { grid-area: list; align-self: end; }
.contact-panel h2 { font-size: clamp(28px, 4vw, 40px); margin: 14px 0 0; }
.contact-panel .lead { color: var(--muted); margin: 16px 0 0; line-height: 1.6; text-wrap: balance; }
.contact-list {
  list-style: none; margin: 0; padding: 28px 0 0;
  border-top: 1px solid var(--line); display: grid; gap: 16px;
}
.contact-list li { display: grid; gap: 3px; }
.cl-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--faint); }
.contact-list a, .contact-list button {
  background: none; border: none; padding: 0;
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  justify-self: start; text-align: left; cursor: pointer;
}
.contact-list a:hover, .contact-list button:hover { color: var(--accent); }
.form { display: grid; gap: 16px; margin-top: 32px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; font-size: 15px;
  font-family: var(--font-body); color: var(--ink);
  background: hsla(158, 64%, 4%, 0.4); border: 1px solid var(--line); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-strong); }
/* appearance:none убирает системную стрелку, поэтому рисуем свою фоном
   (data-URI разрешён в CSP через img-src 'self' data:). Без неё поле бюджета
   выглядит как обычная строка ввода, и неочевидно, что по нему надо кликнуть. */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2379e0ad' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
/* Выпадающий список рисует система, а не страница: полупрозрачный фон поля
   в нём смешивается со СВЕТЛОЙ подложкой окна, и светлый текст пунктов
   становится почти нечитаемым. Поэтому у пунктов фон задан непрозрачным. */
.field select option {
  background-color: hsl(158, 50%, 8%);
  color: var(--ink);
}
/* Пока бюджет не выбран, пункт-приглашение показываем тоном подсказки,
   чтобы он не читался как уже сделанный выбор. */
.field select:invalid, .field select.is-empty { color: var(--faint); }
/* resize: none — поле подстраивается под текст само (js/main.js), тянуть
   его мышью незачем. max-height не даёт форме уехать на два экрана:
   после предела появляется внутренняя прокрутка. */
.field textarea {
  resize: none; overflow-y: auto;
  min-height: 116px; max-height: 320px;
  transition: none;
}
.field-count {
  font-size: 11px; color: var(--faint); text-align: right;
  font-variant-numeric: tabular-nums;
  visibility: hidden;
}
.field-count.is-on { visibility: visible; }
.field-count.is-max { color: hsl(4, 78%, 70%); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-submit {
  width: 100%; padding: 16px; border-radius: 999px; font-size: 16px;
  font-family: var(--font-body); color: var(--ink); cursor: pointer;
  transition: transform .2s ease;
  background: var(--glass-bg-btn);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid hsla(150, 80%, 80%, 0.14);
  box-shadow: var(--glass-highlight-strong);
}
.form-submit:hover { transform: scale(1.01); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-success {
  display: none; width: 100%; padding: 16px; border-radius: 999px; text-align: center;
  font-size: 15px; color: var(--accent);
  background: hsla(150, 82%, 55%, 0.08); border: 1px solid hsla(150, 82%, 55%, 0.25);
}
.form-error {
  display: none; width: 100%; padding: 12px 16px; border-radius: 12px; text-align: center;
  font-size: 14px; color: hsl(4, 78%, 70%);
  background: hsla(4, 78%, 50%, 0.10); border: 1px solid hsla(4, 78%, 60%, 0.30);
}
.form.is-sent .form-submit { display: none; }
.form.is-sent .form-success { display: block; }
.form.is-error .form-error { display: block; }

/* Согласие на обработку ПДн */
/* Согласие обязано быть видимым и по умолчанию не отмеченным (152-ФЗ),
   но кричать акцентным зелёным ему незачем: ссылки — обычным текстом
   с пунктирным подчёркиванием. Контраст остаётся выше нормы AA. */
.form-check {
  display: flex; align-items: flex-start; gap: 10px; cursor: pointer;
  font-size: 12px; color: var(--faint); line-height: 1.55; text-align: left;
}
.form-check input { position: absolute; opacity: 0; pointer-events: none; }
.fc-box {
  width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  border: 1px solid hsla(150, 80%, 80%, 0.25); background: hsla(158, 64%, 4%, 0.4);
  transition: background .2s ease, border-color .2s ease;
}
.fc-box svg { opacity: 0; transition: opacity .15s ease; }
.form-check:has(input:checked) .fc-box { background: var(--accent); border-color: var(--accent); }
.form-check:has(input:checked) .fc-box svg { opacity: 1; }
.form-check:has(input:focus-visible) .fc-box { outline: 2px solid var(--accent); outline-offset: 3px; }
.form-check a {
  color: var(--muted); text-decoration: underline;
  text-decoration-style: dotted; text-underline-offset: 3px;
}
.form-check a:hover { color: var(--ink); }
.form-check.is-invalid .fc-box { border-color: hsl(4, 78%, 60%); }
.fc-error {
  display: none; font-size: 13px; color: hsl(4, 78%, 70%);
  padding: 10px 14px; border-radius: 10px;
  background: hsla(4, 78%, 50%, 0.10); border: 1px solid hsla(4, 78%, 60%, 0.30);
}
.fc-error.is-on { display: block; }

/* ── Футер ── */
.footer { position: relative; z-index: 10; padding: 0 16px; }
.footer-inner {
  max-width: 1152px; margin: 0 auto; border-radius: 24px 24px 0 0; padding: 40px 32px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border); border-bottom: none;
  box-shadow: var(--glass-highlight);
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand .mark { font-family: var(--font-display); font-size: 22px; }
.footer-brand sup { font-size: 10px; vertical-align: top; color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--muted); margin: 8px 0 0; max-width: 280px; line-height: 1.6; }
.footer-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 12px; align-items: center; }
.social-btn {
  width: 38px; height: 38px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--muted);
  background: none; cursor: pointer; padding: 0;
}
.social-btn:hover { color: var(--ink); border-color: var(--accent-strong); }
.footer-legal {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
  display: grid; gap: 6px;
}
.footer-legal p { margin: 0; font-size: 12px; color: var(--faint); line-height: 1.6; }
.footer-legal a { color: var(--muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.footer-legal a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--faint);
}
/* Ссылки на документы — тем же тоном, что и копирайт: нужны, но не зовут кликнуть */
.footer-bottom a { color: var(--faint); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--ink); }
.footer-docs { display: flex; gap: 8px; flex-wrap: wrap; }
/* Цель касания не меньше 24px (Lighthouse target-size, 12.09.2026): строка текста
   12px давала ссылкам высоту 14px, и на телефоне они стояли вплотную. Отступ
   по вертикали увеличивает зону нажатия, не меняя вид строки. */
.footer-docs a { display: inline-block; padding: 5px 0; }

/* ── Уведомление о cookie ──
   ВИДНО СРАЗУ, в исходной вёрстке (11.09.2026). Раньше его показывал main.js после
   загрузки, а на телефоне абзац баннера по площади больше заголовка h1 — Chrome
   считал LCP именно по нему, и LCP уезжал на 1,5–2 с позже остальной страницы
   (PageSpeed мобильный: LCP 3,8 с). Тем, кто уже нажал «Понятно», баннер прячет
   скрипт в <head> классом html.ck-seen ещё до первой отрисовки — без мигания. */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80; width: min(680px, calc(100vw - 32px));
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px 20px; flex-wrap: wrap;
  padding: 16px 20px; border-radius: 16px;
  background: var(--glass-bg-scrolled);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-lit);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  transition: opacity .3s ease, transform .3s ease;
}
/* Уход по «Понятно» — плавный; появление — без анимации, иначе снова задержка LCP */
.cookie-bar.is-off { opacity: 0; transform: translateX(-50%) translateY(20px); pointer-events: none; }
.ck-seen .cookie-bar { display: none; }
.ck-text { flex: 1 1 300px; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.ck-text a { color: var(--muted); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.ck-text a:hover { color: var(--ink); }
.ck-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ck-accept {
  padding: 10px 18px; border-radius: 999px; font-family: var(--font-body); font-size: 14px;
  cursor: pointer; transition: transform .15s ease, border-color .2s ease, color .2s ease;
}
.ck-accept { color: hsl(158, 64%, 8%); background: var(--accent); border: 1px solid var(--accent); font-weight: 500; }
.ck-accept:hover { transform: scale(1.03); }
@media (max-width: 560px) {
  /* flex-basis у .ck-text задан для строки (300px ширины). В колонке основой
     становится ВЫСОТА — текст растягивался на 300+ px, и баннер занимал пол-экрана
     с пустой дырой посередине. Здесь возвращаем размер по содержимому.
     nowrap — чтобы колонка не начала разбиваться на второй столбец. */
  .cookie-bar { flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
  .ck-text { flex: 0 0 auto; }
  .ck-actions { justify-content: stretch; }
  .ck-accept { flex: 1; }
}

/* ── Адаптив ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  /* Совмещаем края шапки с краями контента: секции на мобильном имеют отступ 20px,
     а у шапки было 16px — плавающая «таблетка» на 4px с каждой стороны вылезала
     за карточки, и это читалось не как приём, а как неаккуратность. */
  .nav { padding-left: 20px; padding-right: 20px; }
  .section { padding: 64px 20px; --head-gap: 40px; }
  .hero { padding: 130px 20px 100px; }
  /* Кнопки встают друг под друга, магнита здесь нет — широкий зазор ни к чему */
  .hero-btns { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; gap: 14px; }
  .hero-btns a { text-align: center; }
  /* Магнита на тач-экранах нет — зона захвата не нужна, кнопка тянется на всю ширину */
  .hero-btns .magnetic { display: block; padding: 0; margin: 0; }
  .hero-btns .magnetic .btn-primary { width: 100%; }
}
@media (max-width: 480px) {
  .nav-cta { display: none; }
}
/* 769–960px: бургера ещё нет, а в меню с 12.09.2026 пять пунктов (добавились
   «Статьи»). Без этого на 769px «Что входит» и кнопка переносились на две
   строки и шапка вырастала с 60 до 80px. Слово «Development» у знака KNS™
   прячем только в этом диапазоне — на телефоне и десктопе оно остаётся. */
@media (min-width: 769px) and (max-width: 960px) {
  .nav-logo .word { display: none; }
  .nav-links { gap: 20px; }
  .nav-links a, .nav-cta { white-space: nowrap; }
}

/* ── Кому подходит: плоский ruled-list (контраст с карточками Services) ── */
.audience-grid {
  /* Ровно 2 колонки на десктопе: пунктов четыре, и в три колонки
     последний оставался сиротой с дырой в половину экрана.
     min() обязателен: без него колонка не сжимается уже 380px
     и на телефоне текст вылезает за экран. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr));
  gap: 0 56px; margin-top: var(--head-gap);
}
.aud-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.aud-icon {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center;
  background: hsla(150, 82%, 55%, 0.10); color: var(--accent);
}
.aud-text b { font-family: var(--font-display); font-weight: 500; font-size: 18px; display: block; }
.aud-text > span { display: block; margin-top: 5px; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ── Что входит в SEO: единая компактная панель-чеклист ── */
.seo-checklist {
  margin-top: var(--head-gap); border-radius: 20px;
  /* Низ меньше верха ровно на padding последнего пункта (18px),
     иначе внутри панели снизу висит лишний воздух. */
  padding: clamp(22px, 3.5vw, 40px) clamp(22px, 3.5vw, 40px) clamp(4px, 2vw, 22px);
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  /* 8 пунктов в 2 колонки = 4 ровных ряда. В три колонки последний ряд
     обрывался на середине и панель выглядела недовёрстанной. */
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 0 56px;
}
.seo-item { display: flex; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.seo-check {
  width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center;
  background: hsla(150, 82%, 55%, 0.12); color: var(--accent);
}
.seo-text b { font-family: var(--font-display); font-weight: 500; font-size: 15px; display: block; }
.seo-text > span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── Сравнение: таблица «студия / фрилансер / конструктор» ── */
.compare-wrap {
  margin-top: var(--head-gap); overflow-x: auto; border-radius: 16px;
  background: var(--glass-fill);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.compare { width: 100%; border-collapse: collapse; min-width: 660px; }
.compare th, .compare td {
  padding: 15px 20px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--ink);
}
.compare tbody th {
  font-weight: 400; font-size: 13px; color: var(--muted); white-space: nowrap;
}
.compare td { font-size: 14px; color: var(--muted); line-height: 1.5; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: none; }
.compare .is-us { background: hsla(150, 82%, 55%, 0.06); color: var(--ink); }
.compare thead .is-us { color: var(--accent); }
.compare .col-head { display: flex; flex-direction: column; gap: 2px; }
.compare .col-head small { font-size: 11px; font-weight: 400; color: var(--muted); text-transform: none; }

/* ── Skip-link: доступность, перепрыгнуть к контенту с клавиатуры ── */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  transform: translateY(-150%); transition: transform .2s ease;
  padding: 10px 18px; border-radius: 999px; font-size: 14px; color: var(--ink);
  background: var(--glass-bg-scrolled);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-lit);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
}
.skip-link:focus-visible { transform: translateY(0); color: var(--ink); }

/* ── Ошибки полей формы: видимая подсказка вместо молчаливого фокуса ── */
.field-error { display: none; margin-top: 2px; font-size: 12px; color: hsl(4, 78%, 72%); }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: hsl(4, 78%, 55%); }

/* ── Scrollspy: текущий раздел в навигации ── */
.nav-links a.is-current,
.mobile-menu a.is-current { color: var(--ink); }

/* ── Кнопка «Наверх» (только десктоп: на мобиле низ занят панелью цены/cookie) ── */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 46px; height: 46px; border-radius: 999px; display: none;
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
  background: var(--glass-bg-scrolled);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-border-lit);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.to-top:hover { color: var(--ink); }
@media (min-width: 901px) {
  .to-top.is-on { display: flex; opacity: 1; transform: none; }
}

/* ── Схлопывание двух колонок в одну ──
   Блок намеренно стоит в конце файла: медиазапрос не добавляет специфичности,
   и выше по коду его перебивали бы обычные правила .faq-grid / .contact-panel,
   объявленные ниже по файлу. */
/* ── Оценка высоты непрорисованных секций ──
   Пока секция за экраном, браузер подставляет вместо неё эту высоту.
   Ошибка оценки = скачок полосы прокрутки. Конструктор цены — самая
   высокая секция на странице, и с общей оценкой в 800px страница на
   телефоне «подрастала» почти вдвое по мере прокрутки. */
/* Значения сняты замером реальных высот в браузере на трёх ширинах,
   МИНУС вертикальные поля секции: свойство задаёт высоту содержимого,
   а не всей секции (192px полей на десктопе, 128px на телефоне).
   Ключевое слово auto означает: после первой отрисовки браузер запоминает
   настоящий размер, поэтому цифры ниже нужны ровно один раз — до неё.
   ПЕРЕСНЯТО 11.09.2026 (второй раз — после правок по второму ревью: сроки в карточках
   цен, спокойная таблица сравнения; третий раз 16.09.2026 — «Кейсы» и контакты без телефона)
   на ширинах 1440 / 768 / 390 скриптом
   business/tools/cis.mjs (отключает content-visibility, берёт offsetHeight минус padding). Причина: калькулятор свёрнут
   за кнопку, и оценка #pricing на телефоне (5250) стала вдвое больше реальной
   (2486) — секция схлопывалась бы на глазах при прокрутке. ПРИ ЛЮБОЙ ПРАВКЕ
   СОДЕРЖИМОГО СЕКЦИЙ ПЕРЕСНИМАТЬ ЭТУ ТАБЛИЦУ. */
#work     { contain-intrinsic-size: auto  965px; }
#services { contain-intrinsic-size: auto  689px; }
#audience { contain-intrinsic-size: auto  476px; }
#seo      { contain-intrinsic-size: auto  651px; }
#process  { contain-intrinsic-size: auto  492px; }
#compare  { contain-intrinsic-size: auto  764px; }
#pricing  { contain-intrinsic-size: auto 1216px; }
#faq      { contain-intrinsic-size: auto  408px; }
#contact  { contain-intrinsic-size: auto  688px; }
@media (max-width: 900px) {
  #work     { contain-intrinsic-size: auto 1545px; }
  #services { contain-intrinsic-size: auto  960px; }
  #audience { contain-intrinsic-size: auto  679px; }
  #seo      { contain-intrinsic-size: auto  908px; }
  #process  { contain-intrinsic-size: auto  708px; }
  #compare  { contain-intrinsic-size: auto  956px; }
  #pricing  { contain-intrinsic-size: auto 1763px; }
  #faq      { contain-intrinsic-size: auto  650px; }
  #contact  { contain-intrinsic-size: auto  911px; }
}
@media (max-width: 560px) {
  #work     { contain-intrinsic-size: auto 2380px; }
  #services { contain-intrinsic-size: auto 1802px; }
  #audience { contain-intrinsic-size: auto  879px; }
  #seo      { contain-intrinsic-size: auto 1262px; }
  #process  { contain-intrinsic-size: auto 1207px; }
  #compare  { contain-intrinsic-size: auto 1125px; }
  #pricing  { contain-intrinsic-size: auto 2552px; }
  #faq      { contain-intrinsic-size: auto  726px; }
  #contact  { contain-intrinsic-size: auto  962px; }
}

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "intro" "form" "list";
    row-gap: 32px;
  }
  .contact-panel .form { margin-top: 0; }
}

/* ── Мобильные: страница обязана «засыпать» ─────────────────────────
   Пока в документе живёт хотя бы одна бесконечная анимация, браузер собирает
   ПОЛНЫЙ кадр 60 раз в секунду всё время, что страница открыта. Замер в
   эмуляции телефона (412×915, CPU ×6): в ПРОСТОЕ, без единого касания, —
   222 полных кадра за 4 секунды и 82 % занятости главного потока. Телефон от
   этого греется, ловит тепловой троттлинг, и каждое касание встаёт в очередь
   за этой работой: именно так и читается «сайт подвисает». С погашенными
   анимациями занятость простоя 0.4 %, а длинных кадров (>50 мс) при прокрутке
   ноль вместо девяти (максимум был 170 мс).
   На десктопе запас по процессору есть — там всё остаётся как в макете. */
@media (hover: none), (max-width: 900px) {
  .bg-mesh::before { animation: none; }
  .hero-cue { animation: none; }
  .btn-primary.is-idle .btn-shine { animation: none; }
  /* Появление блоков при прокрутке: таких анимаций 37, и живут они до конца
     страницы — браузер обслуживает весь список каждый кадр (замер: 22 анимации
     на кадр, 4901 обращение к таймлайнам за 4 секунды). На телефоне секция и
     так занимает весь экран, эффект почти не читается, а стоит дорого. */
  [data-reveal] { animation: none; }
  /* Первый экран на телефоне — без проявления (11.09.2026). Подзаголовок и кнопки
     стартовали из opacity:0 с задержкой 0,2–0,5 с, и Chrome засчитывал LCP только
     после их появления. На десктопе анимация остаётся. */
  .hero-badge, .hero h1, .hero-sub, .hero-btns, .hero-trust { animation: none; }

  /* Слои композитора. На тач-экране параллакса нет (курсора нет, а скролл-сдвиг
     отключён в js/main.js), поэтому обе трансформации вырождаются в нулевые —
     убрать их визуально бесплатно, а браузер перестаёт держать под них
     отдельные слои. Замер: было 46 слоёв на прокрученной странице.
     scale(1.12) у фона сохранён: это масштаб картинки, а не сдвиг. */
  .bg-mesh, .bg-mesh::before { will-change: auto; }
  .bg-mesh { transform: scale(1.12); }
  .hero { transform: none; }
}

/* ── Отключение движения ── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
