/* ===========================
   Sales Hub — Space HUD theme
   =========================== */

/* Шрифты подключены отдельной строкой в <head>, а не через @import.
   При @import браузер сначала скачивает этот файл, разбирает его, только
   потом узнаёт про fonts.css и идёт за ним — лишний круг до первой
   отрисовки на каждой странице. Двумя ссылками оба файла едут разом. */

:root {
  --bg: #05070c;
  --bg-alt: #0a0e16;
  --panel: rgba(16, 22, 34, 0.62);
  --panel-solid: #0d1420;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text: #e8edf4;
  --text-dim: #a3b1c6;   /* 9.1:1 на --bg */
  --text-faint: #7d8a9f; /* 5.8:1 на --bg — было #576277 (3.3:1, ниже нормы) */

  --accent: #ffb547;
  --accent-2: #ff7a3d;
  --accent-soft: rgba(255, 181, 71, 0.08);
  --accent-line: rgba(255, 181, 71, 0.2);
  --success: #4ade80;
  --danger: #ff8080;

  /* Manrope и JetBrains Mono содержат кириллицу — прежние Archivo и
     Share Tech Mono её не имели, и весь русский текст отрисовывался
     системным шрифтом, по-разному на каждом устройстве.
     Michroma оставлена: она используется только для латиницы и цифр. */
  --font-accent: 'Michroma', 'Manrope', system-ui, sans-serif;
  /* «Manrope Fallback» — не отдельный шрифт, а тот же системный, но с
     подогнанной шириной: строка в нём занимает почти столько же места, что и
     в Manrope. Пока основной шрифт едет, текст рисуется запасным, и без этой
     подгонки строки перевёрстываются на подмене — вёрстка прыгает. */
  --font-body: 'Manrope', 'Manrope Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --radius: 14px;
  --container: 1240px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- доступность ---------- */

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  z-index: 100;
  background: var(--accent);
  color: #04121a;
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 8px;
  transition: transform 0.2s var(--ease-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Единый видимый фокус — раньше его не было нигде, кроме полей формы. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- фоновые слои ---------- */

.stars-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--bg);
}
.stars-bg span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.9; }
}

/* Свечение индикатора «ONLINE».
   Частые короткие сбои разной глубины вперемешку с ровным светом — так
   мигает контакт, который барахлит. Равномерная синусоида читалась бы как
   «дыхание» и выглядела бы искусственно, поэтому шаг между провалами
   намеренно неровный. */
/* Мерцание светодиода. Раньше здесь вместе с прозрачностью менялась
   text-shadow — а изменение тени заставляет браузер перерисовывать пиксели на
   каждом кадре, и так у восьми плашек одновременно. Теперь тень статичная, а
   гаснет она сама: opacity применяется ко всей отрисовке элемента, свечение
   тускнеет вместе с текстом. На глаз то же самое, считает видеокарта. */
@keyframes led-glow {
  0%   { opacity: 1; }
  5%   { opacity: 0.88; }
  6%   { opacity: 0.34; }
  8%   { opacity: 1; }
  12%  { opacity: 0.52; }
  14%  { opacity: 1; }
  22%  { opacity: 0.84; }
  24%  { opacity: 1; }
  33%  { opacity: 0.4; }
  35%  { opacity: 1; }
  44%  { opacity: 0.9; }
  46%  { opacity: 0.46; }
  47%  { opacity: 0.95; }
  48%  { opacity: 0.38; }
  50%  { opacity: 1; }
  62%  { opacity: 0.86; }
  64%  { opacity: 1; }
  73%  { opacity: 0.44; }
  75%  { opacity: 1; }
  86%  { opacity: 0.8; }
  88%  { opacity: 1; }
  95%  { opacity: 0.5; }
  97%  { opacity: 1; }
  100% { opacity: 1; }
}

/* Точечный индикатор — тот же ритм, но светится ореолом, а не текстом. */
/* То же для точки: box-shadow больше не анимируется. */
@keyframes led-dot {
  0%   { opacity: 1; }
  6%   { opacity: 0.3; }
  8%   { opacity: 1; }
  12%  { opacity: 0.5; }
  14%  { opacity: 1; }
  33%  { opacity: 0.36; }
  35%  { opacity: 1; }
  46%  { opacity: 0.42; }
  48%  { opacity: 0.34; }
  50%  { opacity: 1; }
  73%  { opacity: 0.4; }
  75%  { opacity: 1; }
  95%  { opacity: 0.48; }
  97%  { opacity: 1; }
  100% { opacity: 1; }
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(5, 7, 12, 0.85), rgba(5, 7, 12, 0));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  background: rgba(6, 9, 15, 0.94);
  border-bottom-color: var(--border);
  /* Стекло гасим при прокрутке. Размытие в закреплённой шапке пересчитывается
     на каждом кадре и стоит около восьми кадров в секунду на обычном
     ноутбуке, а при фоне плотностью 94% под ним всё равно ничего не видно.
     Наверху страницы, в покое, эффект остаётся. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  flex-shrink: 0;
}
.logo-mark { color: var(--accent); display: flex; }
.logo-text {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.logo-text em { font-style: normal; color: var(--accent); }

.main-nav {
  display: flex;
  gap: 26px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  transition: color 0.2s ease;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text); }
.nav-index { color: var(--accent); font-size: 11px; }

/* ---------- выпадающий список услуг ---------- */

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 4px;
  color: var(--text-faint);
  cursor: pointer;
  transition: color 0.2s ease;
}
.nav-sub-toggle svg { transition: transform 0.2s var(--ease-out); }
.nav-item:hover .nav-sub-toggle,
.nav-item.is-open .nav-sub-toggle { color: var(--accent); }
.nav-item.is-open .nav-sub-toggle svg { transform: rotate(180deg); }
.nav-sub-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.nav-sub {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  z-index: 60;
  width: 470px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 10px;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}
/* Невидимый мостик над панелью: между пунктом меню и списком есть зазор,
   и без него курсор по дороге вниз терял наведение, а список схлопывался. */
.nav-sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}

/* Мышкой — по наведению. С клавиатуры и на сенсорном экране — кнопкой,
   она же переключает класс is-open. */
@media (hover: hover) and (min-width: 861px) {
  .nav-item:hover .nav-sub { display: grid; }
}
.nav-item.is-open .nav-sub { display: grid; }

.nav-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.3;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.nav-sub-link:hover,
.nav-sub-link:focus-visible { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-sub-ico { display: flex; color: var(--accent); opacity: 0.8; flex-shrink: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.header-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.header-icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

.header-phone {
  display: none;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.header-phone:hover { color: var(--accent); }

.dot-badge {
  box-shadow: 0 0 9px rgba(74, 222, 128, 0.95);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  flex-shrink: 0;
  animation: led-dot 6.7s linear infinite -6.7s;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 181, 71, 0.25), 0 8px 24px -6px rgba(255, 181, 71, 0.35);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-block { width: 100%; padding: 15px; }

/* ---------- герой ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 0;
  overflow: hidden;
  z-index: 1;
}

/* isolation обязателен: без него mix-blend-mode слоя свечения смешивается
   со всей страницей, а не с фотографией под ним, и кадр пропадает. */
.hero-photo { position: absolute; inset: 0; z-index: 0; isolation: isolate; }
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: saturate(1.05) contrast(1.04);
}
.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5,7,12,0.95) 0%, rgba(5,7,12,0.72) 24%, rgba(5,7,12,0.22) 50%, rgba(5,7,12,0.02) 68%, rgba(5,7,12,0.2) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(5,7,12,0.35) 14%, transparent 38%),
    linear-gradient(to bottom, rgba(5,7,12,0.55) 0%, transparent 16%);
}

.hero-planet {
  position: absolute;
  /* В пикселях, а не в процентах: проценты считаются от высоты первого
     экрана, а она меняется, когда подгружаются шрифты и заголовок
     перевёрстывается. Планета уезжала вслед за ней — и это давало сдвиг
     вёрстки до 0.06, который Google учитывает при ранжировании. */
  top: -300px;
  right: -216px;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  /* Было ещё blur(2px) и mix-blend-mode: screen. Оба дорогие: размытие
     держит отдельную поверхность 900×900, наложение заставляет смешивать её
     с фоном на каждом кадре. Сравнение кадров показало разницу в 4 единицы
     яркости из 255 — градиент и без них такой же мягкий. */
  background: radial-gradient(circle at 35% 35%, rgba(255,181,71,0.14), rgba(255,181,71,0.02) 45%, transparent 70%);
  z-index: 0;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 20%, transparent 75%);
}

.hero-terrain {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 260px;
  z-index: 0;
  background: linear-gradient(to top, var(--bg) 0%, rgba(5,7,12,0.4) 60%, transparent 100%);
}
.hero-terrain::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 100% at 20% 100%, rgba(255,255,255,0.03), transparent 60%),
    radial-gradient(ellipse 40% 100% at 70% 100%, rgba(255,255,255,0.025), transparent 60%);
}

.hero-hud {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 68px 1fr 260px;
  gap: 28px;
  align-items: start;
}

.hud-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.hud-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 6px;
  position: sticky;
  top: calc(var(--header-h) + 34px);
}
.hud-side--right {
  gap: 20px;
  padding: 0;
  background: none;
  border: none;
  backdrop-filter: none;
}

.hud-side-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 9px 4px;
  border-radius: 10px;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  text-align: center;
  transition: color 0.2s ease, background 0.2s ease;
}
.hud-side-item:hover { color: var(--accent); background: var(--accent-soft); }
.hud-side-item span { line-height: 1.2; }

.hud-center { min-width: 0; padding-top: 8px; }

.mission-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}
.mission-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

/* H1 состоит из двух частей: строка с ключевым запросом для поиска и
   крупный слоган для человека. Обе внутри одного заголовка. */
.hero-title { margin-bottom: 20px; }
.hero-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-headline {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* панель показателей */

.info-card {
  padding: 20px 22px 18px;
  max-width: 540px;
}
.info-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.info-card-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.info-card-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.info-card-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--success);
  border: 1px solid rgba(74, 222, 128, 0.3);
  background: rgba(74, 222, 128, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
  animation: led-glow 5.8s linear infinite -2.1s;
}

.hero-stats { display: flex; flex-direction: column; gap: 12px; }
.stat-row {
  display: grid;
  grid-template-columns: 1fr 90px 38px;
  align-items: center;
  gap: 12px;
}
.stat-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.35;
}
.stat-ico {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.stat-ico--ctr { background: #ffd27a; }
.stat-ico--reach { background: var(--success); }
.stat-ico--conv { background: var(--accent-2); }

.stat-bar {
  display: block;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.stat-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 1.4s var(--ease-out);
}
.stat-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
  text-align: right;
}

.exterior-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.status-dot {
  box-shadow: 0 0 9px rgba(74, 222, 128, 0.95);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: led-dot 4.9s linear infinite -4.3s;
}

/* правая колонка героя */

.minimap {
  padding: 18px 18px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}
.minimap-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}
.minimap-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text);
}
/* Цвет ярче соседних подписей осознанно: строка лежит на полупрозрачной
   панели поверх светлой части фотографии, и при --text-faint замер давал
   4.36 при норме 4.5. Единственное место в первом экране, где общий токен
   не дотягивал. */
.minimap-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }
.expand-ico { color: var(--text-faint); flex-shrink: 0; }
.minimap-route { width: 100%; height: 70px; margin-bottom: 14px; }
.minimap-btn {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.minimap-btn:hover { border-color: var(--accent); color: var(--accent); }

.orient-dial {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(8,12,20,0.55) 0%, rgba(8,12,20,0.35) 60%, transparent 78%);
  border-radius: 50%;
  backdrop-filter: blur(6px);
}
.dial-ring { position: absolute; inset: 0; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dial-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.4;
}
.dial-zoom {
  position: absolute;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-faint);
}

/* нижняя лента героя */

.hero-bottom-bar {
  position: relative;
  z-index: 2;
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: rgba(8, 11, 18, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 16px 32px;
}
.bar-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.bar-item:last-child { border-right: none; }
.bar-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.bar-v { font-family: var(--font-mono); font-size: 13px; color: var(--text); }

/* ---------- общие стили секций ---------- */

/* Отступ секции с одной стороны. Между двумя соседними секциями его два,
   так что на границе получается вдвое больше — при 100px выходило 200px
   пустоты между каждой парой блоков, и страница читалась разреженной. */
section:not(.hero) {
  position: relative;
  z-index: 1;
  padding: 68px 0;
  scroll-margin-top: var(--header-h);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 660px; margin-bottom: 38px; }
.section-head h2, .why-text h2, .contact-info h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  line-height: 1.15;
  /* Ровняет длину строк, чтобы последнее слово не повисало в одиночестве. */
  text-wrap: balance;
}
.section-head p, .hero-subtitle, .page-hero-subtitle { text-wrap: pretty; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---------- услуги ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.service-card:hover { border-color: var(--border-strong); transform: translateY(-4px); }
.service-card:hover .service-more { color: var(--accent); gap: 10px; }

.service-card-photo {
  position: relative;
  height: 168px;
  flex-shrink: 0;
}
.service-card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.68);
}
.service-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--panel-solid) 0%, rgba(13,20,32,0.15) 65%, rgba(13,20,32,0.05) 100%);
}
.service-card-body {
  padding: 22px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.service-ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.service-card-photo .service-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  /* Было размытие. Восемь плашек размывали фото под собой, стоило это
     около десяти кадров в секунду, а видно не было ничего: подняли плотность
     фона с 60 до 74% — результат тот же, цена нулевая. */
  background: rgba(8, 12, 20, 0.74);
  border: 1px solid rgba(74, 222, 128, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}
.service-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--success);
  animation: led-glow 5s linear infinite;
}

/* Каждая надпись живёт в своей фазе и со своим периодом — синхронное
   мерцание восьми карточек сразу выдавало бы анимацию. Отрицательная
   задержка стартует цикл с середины, поэтому при загрузке они уже вразнобой. */
.services-grid .service-card:nth-child(1) .service-tag { animation-duration: 4.1s;  animation-delay: -0.7s; }
.services-grid .service-card:nth-child(2) .service-tag { animation-duration: 5.3s;  animation-delay: -3.2s; }
.services-grid .service-card:nth-child(3) .service-tag { animation-duration: 4.7s;  animation-delay: -5.6s; }
.services-grid .service-card:nth-child(4) .service-tag { animation-duration: 6.1s; animation-delay: -1.9s; }
.services-grid .service-card:nth-child(5) .service-tag { animation-duration: 3.9s;  animation-delay: -6.4s; }
.services-grid .service-card:nth-child(6) .service-tag { animation-duration: 5.6s;  animation-delay: -2.5s; }
.services-grid .service-card:nth-child(7) .service-tag { animation-duration: 4.4s;  animation-delay: -4.8s; }
.services-grid .service-card:nth-child(8) .service-tag { animation-duration: 6.4s; animation-delay: -0.3s; }
.service-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.service-card > .service-card-body > p {
  color: var(--text-dim);
  font-size: 14px;
  margin-bottom: 18px;
}
.service-list { display: flex; flex-direction: column; gap: 9px; }
.service-list li {
  font-size: 13px;
  color: var(--text-dim);
  padding-left: 16px;
  position: relative;
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent-2);
  border-radius: 50%;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  transition: color 0.2s ease, gap 0.2s ease;
}

/* ---------- клиенты ---------- */

.client-wall {
  display: grid;
  /* 168px даёт шесть карточек в один ряд на десктопе: при 190px шестая
     срывалась на вторую строку и висела там в одиночестве. */
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 14px;
}
.client-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 150px;
  padding: 24px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-faint);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.client-item:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-3px);
}
.client-mark-wrap { display: flex; color: inherit; }
.client-name {
  font-family: var(--font-accent);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: inherit;
  line-height: 1.35;
}
.client-sector {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- процесс ---------- */

.process-banner {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}
.process-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) brightness(0.6);
}
.process-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,7,12,0.92) 0%, rgba(5,7,12,0.35) 55%, rgba(5,7,12,0.15) 100%);
}
.process-banner-caption {
  position: absolute;
  left: 28px;
  bottom: 24px;
  right: 28px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.process-banner-k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.process-banner-v { font-size: 19px; color: var(--text); max-width: 460px; }

.route-track { position: relative; padding-top: 10px; }
.route-line { width: 100%; height: 60px; display: block; }
.route-line-fill {
  stroke-dashoffset: 920;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.route-line-fill.in-view { stroke-dashoffset: 0; }

.route-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: -14px;
}
.route-step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
}
.route-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 14px;
}
.route-node--end { border-color: var(--accent-2); color: var(--accent-2); }
.route-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.route-step p { font-size: 13px; color: var(--text-dim); }

/* ---------- герой подстраниц ---------- */

.page-hero {
  position: relative;
  min-height: 56vh;
  padding: calc(var(--header-h) + 70px) 0 64px;
  overflow: hidden;
  z-index: 1;
}
.page-hero-photo { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.05) contrast(1.04);
}
.page-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(5,7,12,0.97) 0%, rgba(5,7,12,0.88) 34%, rgba(5,7,12,0.55) 62%, rgba(5,7,12,0.2) 82%, rgba(5,7,12,0.35) 100%),
    linear-gradient(to top, var(--bg) 0%, rgba(5,7,12,0.3) 14%, transparent 40%),
    linear-gradient(to bottom, rgba(5,7,12,0.7) 0%, transparent 20%);
}
/* Контейнер остаётся во всю ширину — иначе `margin: 0 auto` из .section-inner
   уводил текст в центр, на светлую часть фотографии. Ограничиваем содержимое. */
.page-hero-content { position: relative; z-index: 2; }
.page-hero-content > * { max-width: 660px; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--accent); }

.page-hero-title {
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.page-hero-subtitle {
  color: var(--text-dim);
  font-size: 16.5px;
  max-width: 560px;
  margin-bottom: 30px;
}
.page-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- вводный текст на странице услуги ---------- */

.service-intro { padding-bottom: 0; }
.intro-body { max-width: 780px; }
.intro-body h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 20px;
  text-wrap: balance;
}
.intro-body p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}
.intro-body p + p { margin-top: 16px; }

/* ---------- сетка преимуществ ---------- */

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
}
.feature-ico {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item p { font-size: 14px; color: var(--text); line-height: 1.45; padding-top: 6px; }

/* ---------- работы ---------- */

/* Каждая работа — снимок страницы целиком, в несколько раз выше окошка,
   в котором лежит. При наведении снимок уезжает вверх ровно на свою
   «лишнюю» высоту: translateY(-100%) отсчитывается от высоты самой
   картинки, поэтому + высота окошка возвращает низ страницы на место.
   Время прокрутки приходит из сборщика в --shot-time. */

.works-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 18px;
  align-items: start;
}

/* Отдельная страница портфолио */

/* Шапка без фотографии: страницу отправляют клиенту ссылкой, и первый экран
   не должен ждать ни одного килобайта картинки. Фон рисуют звёзды и градиент. */
.page-hero--bare {
  min-height: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.page-hero--bare .page-hero-content { padding-bottom: 40px; }

.works-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 32px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-dim);
}
.works-stats li { display: flex; align-items: baseline; gap: 8px; }
.works-stats-n {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent);
}

/* На отдельной странице карточки крупнее: три в ряд вместо пяти, и кадр
   выше — сюда приходят рассматривать работы, а не скользить взглядом. */
.works--page .works-grid { grid-template-columns: repeat(3, 1fr); gap: 38px 24px; }
.works--page .work { --shot-h: 420px; }

.works-pager {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 42px;
}
.works-page {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.works-page:hover:not(:disabled) { color: var(--text); border-color: var(--border-strong); }
.works-page:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.works-page[aria-current="page"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.works-page:disabled { opacity: 0.35; cursor: default; }
.works-pager-info {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}

/* Ссылка на полное портфолио под витриной на странице услуги */
.works-more { margin-top: 38px; }
.works-more .btn { gap: 10px; }
.works-more-n {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  color: var(--text-faint);
}

@media (max-width: 1080px) {
  .works--page .works-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .works--page .work { --shot-h: 440px; }
}
@media (max-width: 560px) {
  .works--page .works-grid { grid-template-columns: 1fr; gap: 36px; }
  .works--page .work { --shot-h: 400px; }
  .works-pager { flex-wrap: wrap; }
  .works-pager-info { margin-left: 0; width: 100%; }
  .works-more .btn { width: 100%; justify-content: center; }
}

/* Фильтр по направлению */

.works-filter {
  display: flex;
  gap: 8px;
  margin: -14px 0 34px;
  flex-wrap: wrap;
}
.works-filter-btn {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 8px 14px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.works-filter-btn:hover { color: var(--text); border-color: var(--border-strong); }
.works-filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.works-filter-btn[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}
.works-filter-n { font-size: 10px; color: var(--text-faint); }
.works-filter-btn[aria-pressed="true"] .works-filter-n { color: var(--accent); opacity: 0.7; }

/* Ряд одинаковых карточек читается как каталог товаров. Сдвиг через одну
   ломает эту линию — получается стопка распечаток, разложенных на столе.
   Пока скрипт не подключился, ступеньку расставляет CSS. Дальше её берёт на
   себя фильтр: nth-child считает и скрытые карточки, поэтому после отбора
   зигзаг развалился бы. */
.works-grid .work:nth-child(even) { margin-top: 42px; }
.works-grid.js .work { margin-top: 0; }
.works-grid.js .work.is-low { margin-top: 42px; }
.work[hidden] { display: none; }

/* Появление после смены фильтра. Анимация перезапускается сама: карточка
   выходит из display:none, и браузер проигрывает её заново. */
@keyframes workIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.works-grid.js .work:not([hidden]) { animation: workIn 0.35s var(--ease-out) both; }

.work { --shot-h: 340px; }

.work-screen {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-solid);
  overflow: hidden;
  transition: border-color 0.25s ease;
}
.work-screen:hover,
.work-screen:focus-within { border-color: var(--border-strong); }

.work-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
/* Зелёный, а не акцентный оранжевый: это индикатор «сайт работает»,
   а не элемент оформления. Тем же цветом на сайте помечен статус ONLINE. */
.work-led {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.12), 0 0 7px rgba(74, 222, 128, 0.5);
}
.work-domain {
  color: var(--text-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-hint { margin-left: auto; opacity: 0.75; transition: opacity 0.25s ease; }
.work-screen:hover .work-hint,
.work-screen:focus-within .work-hint { opacity: 0; }

.work-glass {
  position: relative;
  height: var(--shot-h);
  overflow: hidden;
}
.work-glass:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Затемнение по нижнему краю: показывает, что страница на этом не кончается.
   На время прокрутки убираем — иначе низ сайта уходит в тень. Тень висит на
   рамке, а не на окошке: внутри прокручиваемого окошка она уехала бы вместе
   с картинкой на телефоне. */
.work-screen::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  height: 76px;
  background: linear-gradient(rgba(5, 7, 12, 0), rgba(5, 7, 12, 0.8));
  opacity: 1;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.work-screen:hover::before,
.work-screen:focus-within::before { opacity: 0; }

.work-shot {
  width: 100%;
  height: auto;
  transform: translateY(0);
  transition: transform var(--shot-time, 8s) linear;
}
.work-screen:hover .work-shot,
.work-screen:focus-within .work-shot {
  transform: translateY(calc(-100% + var(--shot-h)));
}

/* Полоска справа заполняется синхронно с прокруткой — видно, сколько
   страницы уже проехало и сколько осталось. */
.work-screen::after {
  content: "";
  position: absolute;
  right: 0;
  top: 35px;
  bottom: 0;
  z-index: 2;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--shot-time, 8s) linear;
  pointer-events: none;
}
.work-screen:hover::after,
.work-screen:focus-within::after { transform: scaleY(1); }

.work-kind {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.work-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.work-note {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  text-wrap: pretty;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.work-tags li {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.work-link:hover, .work-link:focus-visible { color: var(--accent); border-color: var(--accent); }

/* Ряд из пяти держится только на широком экране: у́же карточки становятся
   такими тесными, что подпись рассыпается на семь строк. Ступенька до трёх
   стоит здесь, а не в общем блоке адаптива, — иначе она перебила бы правила
   для планшета и телефона, которые идут ниже по файлу. */
@media (max-width: 1240px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); gap: 34px 22px; }
  .work { --shot-h: 400px; }
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.price-card {
  position: relative;
  padding: 32px 30px 30px;
  background: rgba(16, 22, 34, 0.82);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 60% at 50% 0%, rgba(255, 181, 71, 0.12), transparent 70%);
  pointer-events: none;
}
.price-amount {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  position: relative;
}
.price-value {
  font-family: var(--font-accent);
  /* Michroma широкий: «1 250 000» рвалось на две строки. Держим в одну. */
  font-size: clamp(26px, 3.2vw, 38px);
  white-space: nowrap;
  line-height: 1.05;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-unit {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}
.price-note {
  position: relative;
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.price-card .btn { position: relative; }

.price-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px 24px;
  align-content: start;
  padding-top: 6px;
}
.price-includes li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.5;
}
.price-includes svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

.compare-wrap { overflow-x: auto; border-radius: var(--radius); margin-bottom: 24px; }
.compare-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  text-align: left;
  padding: 15px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.compare-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: rgba(255, 255, 255, 0.02);
}
.compare-table tbody th { color: var(--text-dim); font-weight: 400; }
.compare-table td { color: var(--text-dim); }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-accent { color: var(--accent); font-weight: 600; }
.compare-table thead .col-accent { color: var(--accent); }
.compare-table tbody td.col-accent { background: rgba(255, 181, 71, 0.05); }

.price-footnote {
  font-size: 13.5px;
  color: var(--text-faint);
  max-width: 720px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 22px; }
  .price-includes { grid-template-columns: 1fr; }
}

/* ---------- CPA ---------- */

.cpa-explainer {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 34px;
  margin-bottom: 32px;
}
.cpa-explainer p { color: var(--text-dim); font-size: 15px; max-width: 760px; }
.cpa-explainer p + p { margin-top: 12px; }

.cpa-table-wrap { overflow-x: auto; margin-bottom: 56px; border-radius: var(--radius); }
.cpa-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.cpa-table th, .cpa-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
}
.cpa-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.02);
}
.cpa-table tbody th { color: var(--text); font-weight: 600; }
.cpa-table td { color: var(--text-dim); }
.cpa-table tr:last-child td, .cpa-table tr:last-child th { border-bottom: none; }
.cpa-table td.highlight { color: var(--accent); font-weight: 600; }
.cpa-table tr.row-highlight td, .cpa-table tr.row-highlight th { background: rgba(255, 181, 71, 0.04); }

.suited-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.suited-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}
.suited-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  flex-shrink: 0;
}

/* ---------- бриф ---------- */

.brief-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 26px;
  max-width: 860px;
}
.brief-row { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; }
.brief-row > label,
.brief-row legend {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  padding: 0;
}
.brief-row .req { color: var(--accent); }
.brief-hint { font-size: 12px; color: var(--text-faint); margin-top: -2px; }

.brief-row input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.brief-row input[type="text"]::placeholder { color: var(--text-faint); }
.brief-row input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.05);
}
.brief-row input[aria-invalid="true"] { border-color: var(--danger); }

/* Цели занимают всю ширину: вариантов пять, в половину они переносятся
   некрасиво и колонки расходятся по высоте. */
.brief-goals { grid-column: 1 / -1; }
.brief-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.brief-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.brief-check:hover { border-color: var(--border-strong); color: var(--text); }
.brief-check input { accent-color: var(--accent); width: 15px; height: 15px; cursor: pointer; }
.brief-check:has(input:checked) {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}
.brief-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
#brief-goal-other-text { margin-top: 10px; }

.brief-submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.brief-submit .form-note { margin: 0; flex: 1; min-width: 220px; }

@media (max-width: 720px) {
  .brief-form { grid-template-columns: 1fr; }
  .brief-submit .btn { width: 100%; }
  /* Палец промахивается по зоне ниже 44px — на телефоне добираем высоту. */
  .brief-check { padding: 12px 14px; }
}

/* ---------- другие услуги ---------- */

/* Селектор с тегом не случаен: общее правило section:not(.hero) специфичнее
   одного класса и раньше перебивало этот отступ — блок «Другие услуги»
   задумывался теснее остальных, но выходил такой же высоты. */
section.related-services { border-top: 1px solid var(--border); padding: 44px 0; }
.related-services-head { margin-bottom: 24px; }
.related-services-head h2 {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
/* Портфолио стоит в списке услуг, но услугой не является — отделяем чертой. */
.footer-nav-extra {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--accent);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.related-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.related-ico { color: var(--accent); display: flex; flex-shrink: 0; }
.related-name { font-size: 15px; font-weight: 600; flex: 1; }
.related-card > svg { color: var(--accent); flex-shrink: 0; }

/* ---------- почему мы ---------- */

.why-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr 1fr;
  gap: 36px;
  align-items: center;
}
.why-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  min-height: 340px;
  height: 100%;
}
.why-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) brightness(0.72);
}
.why-list { margin-top: 30px; display: flex; flex-direction: column; gap: 16px; }
.why-list li {
  display: flex;
  gap: 14px;
  font-size: 15px;
  color: var(--text-dim);
  align-items: flex-start;
}
.why-list li span {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 12px;
  padding-top: 3px;
  flex-shrink: 0;
}
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.why-stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}
.why-stat-num {
  display: block;
  font-family: var(--font-accent);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.why-stat-label { display: block; font-size: 12.5px; color: var(--text-dim); }

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 16px; font-weight: 600; color: var(--text); }
.faq-marker {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out);
}
.faq-marker::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-marker::after { left: 7px; top: 0; width: 2px; height: 16px; }
.faq-item[open] .faq-marker::after { transform: rotate(90deg); opacity: 0; }
.faq-a { padding: 0 24px 22px; }
.faq-a p { color: var(--text-dim); font-size: 14.5px; max-width: 70ch; }

/* ---------- контакты ---------- */

.cta-contact { position: relative; overflow: hidden; }
.contact-bg { position: absolute; inset: 0; z-index: 0; }
.contact-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: saturate(1.1) brightness(0.65);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 80%);
}
.cta-contact .section-inner { position: relative; z-index: 1; }

.contact-panel {
  /* Было размытие на 14px. Панель лежит на сильно затемнённой фотографии,
     разница при сравнении кадров попиксельно оказалась в пределах шума —
     подняли плотность фона вместо размытия. */
  background: rgba(16, 22, 34, 0.82);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.contact-info { padding: 52px 44px; border-right: 1px solid var(--border); }
.contact-info h2 { font-size: 30px; margin: 10px 0 14px; }
.contact-info > p { color: var(--text-dim); margin-bottom: 26px; max-width: 400px; }
.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 13px 0;
  border-top: 1px solid var(--border);
}
.contact-detail:last-of-type { border-bottom: 1px solid var(--border); }
.contact-detail-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.contact-detail-v { font-size: 15px; transition: color 0.2s ease; }
a.contact-detail-v:hover { color: var(--accent); }
.contact-tg { margin-top: 24px; }

.contact-form { padding: 52px 44px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  text-transform: uppercase;
}
.label-optional { text-transform: none; letter-spacing: 0; }

/* Поле-приманка для спам-ботов. Убираем из виду и из потока табуляции,
   но не через display:none — часть ботов такие поля пропускает. */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-row input, .form-row textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--text-faint); }
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-row input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { font-size: 12px; color: var(--danger); }
.form-note { font-size: 12px; color: var(--text-faint); text-align: center; }
.form-note a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--accent); }
.form-note.success { color: var(--success); }
.form-note.error { color: var(--danger); }

/* ---------- страница 404 ---------- */

.error-page { padding-top: calc(var(--header-h) + 70px); }
.error-inner { max-width: 760px; }
.error-code {
  font-family: var(--font-accent);
  font-size: clamp(72px, 14vw, 148px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  text-shadow: 0 0 60px rgba(255, 181, 71, 0.28);
}
.error-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 12px;
}
.error-text { color: var(--text-dim); font-size: 16px; max-width: 520px; margin-bottom: 30px; }
.error-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
.error-links-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.error-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

@media (max-width: 560px) {
  .error-ctas { flex-direction: column; align-items: stretch; }
  .error-ctas .btn { width: 100%; }
}

/* ---------- юридическая страница ---------- */

.legal-page { padding-top: calc(var(--header-h) + 60px); }
.legal-inner { max-width: 820px; }
.legal-updated {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  margin-bottom: 36px;
}
.legal-body h2 {
  font-size: 19px;
  font-weight: 600;
  margin: 34px 0 12px;
  color: var(--text);
}
.legal-body p, .legal-body li { color: var(--text-dim); font-size: 15px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { margin: 12px 0 0 20px; list-style: disc; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-note {
  margin-top: 36px;
  padding: 20px 24px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  border-radius: 12px;
}
.legal-note p { color: var(--text); font-size: 14px; }
.legal-back { margin-top: 40px; }

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

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 32px;
}
.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-dim);
  max-width: 280px;
}
.footer-nav-title {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px;
}
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-nav a, .footer-contacts a { color: var(--text-dim); transition: color 0.2s ease; }
.footer-nav a:hover, .footer-contacts a:hover { color: var(--accent); }
.footer-addr { color: var(--text-faint); font-size: 13px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
}
.footer-legal { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-by { color: var(--text-dim); }
.footer-legal a { transition: color 0.2s ease; }
.footer-legal a:hover { color: var(--accent); }

/* ---------- плавающие элементы ---------- */

.scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 45;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--panel-solid);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.2s ease;
}
.scroll-top[hidden] { display: none; }
.scroll-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.scroll-top:hover { border-color: var(--accent); }

/* Панель связи — только на мобильных, где шапка сжимается до логотипа.
   Оформлена как приборный блок: тёмное стекло, угловые засечки прицела
   и строка состояния с мигающим индикатором. */
.mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 46;
  flex-direction: column;
  gap: 8px;
  padding: 9px 10px 10px;
  border-radius: 14px;
  background: rgba(8, 12, 20, 0.93);
  border: 1px solid var(--border-strong);
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 181, 71, 0.06);
}

/* Угловые засечки — четыре уголка рамки, как в прицеле HUD. */
.mobile-dock::before,
.mobile-dock::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  opacity: 0.55;
  pointer-events: none;
}
.mobile-dock::before {
  top: -1px; left: -1px;
  border-right: none; border-bottom: none;
  border-top-left-radius: 14px;
}
.mobile-dock::after {
  bottom: -1px; right: -1px;
  border-left: none; border-top: none;
  border-bottom-right-radius: 14px;
}

.dock-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  color: var(--text-faint);
}
.dock-status-text { font-variant-numeric: tabular-nums; }

.dock-status-dot {
  box-shadow: 0 0 9px rgba(74, 222, 128, 0.95);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 6px var(--success);
  animation: led-dot 5.4s linear infinite -1.8s;
}

/* Вне часов приёма индикатор перестаёт мигать и меняет цвет на янтарный —
   состояние читается ещё до того, как глаз доберётся до цифр. */
.dock-status.is-closed .dock-status-dot {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(255, 181, 71, 0.7);
  animation: none;
  opacity: 0.85;
}

.dock-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 10px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
/* Звонок — основное действие, поэтому заполненная кнопка. */
.dock-btn--call {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04121a;
  font-weight: 600;
  box-shadow: 0 6px 20px -6px rgba(255, 181, 71, 0.55);
}
.dock-btn--call:active { filter: brightness(0.94); }
/* Telegram — тоже оранжевая, но подсвеченная изнутри, а не залитая:
   две одинаково яркие кнопки рядом заставляли бы выбирать дольше. */
.dock-btn--tg {
  color: var(--accent);
  border: 1px solid rgba(255, 181, 71, 0.55);
  background:
    linear-gradient(135deg, rgba(255, 181, 71, 0.22), rgba(255, 122, 61, 0.14));
  text-shadow: 0 0 10px rgba(255, 181, 71, 0.35);
  box-shadow:
    inset 0 0 18px rgba(255, 181, 71, 0.12),
    0 4px 16px -6px rgba(255, 181, 71, 0.3);
}
.dock-btn--tg:active { background: rgba(255, 181, 71, 0.3); }

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

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

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

@media (min-width: 1081px) {
  .header-phone { display: flex; }
}

@media (max-width: 1080px) {
  .hero-hud { grid-template-columns: 1fr; }
  .hud-side--left { display: none; }
  .hud-side--right {
    display: flex;
    flex-direction: row;
    position: static;
    gap: 16px;
    align-items: stretch;
  }
  .minimap { flex: 1; }
  .why-inner { grid-template-columns: 1fr; }
  .why-stats { max-width: 480px; }
  .why-photo { min-height: 240px; order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .works-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .work { --shot-h: 440px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-phone { display: none; }
  .header-actions .btn-sm { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .route-steps { grid-template-columns: 1fr 1fr; }
  .route-line { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-panel { grid-template-columns: 1fr; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-bottom-bar { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .bar-item { flex-shrink: 0; }
  .hud-side--right { flex-direction: column; }
  .orient-dial { display: none; }
  .mobile-dock { display: flex; }
  .scroll-top { bottom: 108px; }

  /* Зоны нажатия на телефоне: контакты и гамбургер были 23–32px, палец
     промахивался. Ниже 44px опускаться не стоит. */
  .contact-detail { padding: 10px 0; }
  a.contact-detail-v { display: inline-flex; align-items: center; min-height: 44px; }
  .nav-toggle { padding: 12px 10px; }
  .footer-contacts a, .footer-nav a { padding: 6px 0; }
  section:not(.hero) { padding: 52px 0; }
  .site-footer { padding-bottom: 124px; }
}

@media (max-width: 560px) {
  .header-inner { padding: 14px 20px; }
  .section-inner { padding: 0 20px; }
  .hero-hud { padding: 0 20px; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn, .page-hero-ctas .btn { width: 100%; }
  .page-hero-ctas { flex-direction: column; align-items: stretch; }
  .route-steps { grid-template-columns: 1fr; }
  .why-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .contact-info, .contact-form { padding: 32px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .process-banner { height: 220px; }
  .process-banner-v { font-size: 16px; }
  .info-card { padding: 18px; }
  .stat-row { grid-template-columns: 1fr 60px 34px; gap: 10px; }
  .client-wall { grid-template-columns: 1fr 1fr; }
  .faq-item summary { padding: 16px 18px; }
  .faq-a { padding: 0 18px 18px; }
  .cpa-explainer { padding: 24px 20px; }
  .works-grid { grid-template-columns: 1fr; gap: 36px; }
  .works-grid .work:nth-child(even) { margin-top: 0; }
  .work { --shot-h: 400px; }
}

/* На телефоне и планшете наведения нет — вместо прокрутки по наведению
   отдаём окошко пальцу. overscroll-behavior не даёт странице уехать
   вместе с кадром, когда снимок домотан до конца. */
@media (hover: none) {
  .work-glass {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .work-screen:hover .work-shot,
  .work-screen:focus-within .work-shot { transform: none; }
  .work-screen::after { display: none; }
  .work-screen:hover::before,
  .work-screen:focus-within::before { opacity: 1; }
}

/* ---------- мобильное меню ---------- */

@media (max-width: 860px) {
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: calc(var(--header-h) - 6px);
    left: 16px;
    right: 16px;
    background: var(--panel-solid);
    border: 1px solid var(--border-strong);
    border-radius: 14px;
    padding: 20px;
    gap: 18px;
    z-index: 60;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
  }

  /* В гамбургере список услуг раскрывается не поверх, а внутри — под самим
     пунктом. Перенос строки делает flex-wrap: ссылка и стрелка встают в одну
     строку, список во всю ширину переходит на следующую. */
  .nav-item { flex-wrap: wrap; width: 100%; }
  .nav-sub-toggle { width: 44px; height: 44px; margin: -12px 0; }
  .nav-sub {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 12px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border);
    border-radius: 10px;
    box-shadow: none;
  }
  .nav-sub::before { display: none; }
  .nav-sub-link { padding: 12px 10px; font-size: 13px; }
}

/* ---------- уважение к настройкам движения ---------- */

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

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .reveal { opacity: 1; transform: none; }
  .stat-fill { transition: none; }
  .route-line-fill { stroke-dashoffset: 0; }
  .stars-bg span { animation: none; opacity: 0.5; }
  .dial-ring { animation: none; }
  .mission-dot { animation: none; }
  .service-tag, .info-card-badge { animation: none; text-shadow: 0 0 7px rgba(74, 222, 128, 0.45); }
  .status-dot, .dot-badge { animation: none; }
  .service-card:hover, .client-item:hover, .related-card:hover, .btn-primary:hover {
    transform: none;
  }

  /* Общее правило выше обнуляет длительность переходов — прокрутка кадра
     от этого не исчезла бы, а стала мгновенным скачком. Поэтому здесь её
     выключаем совсем и отдаём окошко на ручную прокрутку. */
  .work-glass { overflow-y: auto; overscroll-behavior: contain; }
  .work-screen:hover .work-shot,
  .work-screen:focus-within .work-shot { transform: none; }
  .work-screen::after { display: none; }
  .work-screen:hover::before,
  .work-screen:focus-within::before { opacity: 1; }
}
