/* ═══════════════════════════════════════════════════════════════════════════
   IzbNet — дизайн-система
   Тёмная тема по умолчанию, светлая — переключателем. Все цвета и радиусы
   живут в токенах: перекрасить сайт целиком можно из блока :root.
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  --bg: #06070d;
  --bg-soft: #0b0e1a;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #e9ecf7;
  --text-dim: #a3abc8;
  --text-faint: #6f779a;

  --brand: #45e0ff;
  --brand-2: #7b61ff;
  --brand-3: #ff5dae;
  --ok: #38e2a0;
  --warn: #ffc453;
  --err: #ff6b6b;

  --grad: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 55%, var(--brand-3) 100%);
  --grad-soft: linear-gradient(135deg, rgba(69, 224, 255, 0.16), rgba(123, 97, 255, 0.16));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75);
  --shadow-brand: 0 20px 50px -20px rgba(69, 224, 255, 0.45);

  --maxw: 1180px;
  --nav-h: 68px;

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

[data-theme='light'] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-soft: #ffffff;
  --surface: rgba(12, 16, 40, 0.035);
  --surface-strong: #ffffff;
  --border: rgba(12, 16, 40, 0.1);
  --border-strong: rgba(12, 16, 40, 0.2);
  --text: #0c1028;
  --text-dim: #4d5578;
  --text-faint: #7b83a4;
  --brand: #1093c8;
  --brand-2: #5b3df0;
  --brand-3: #e0399a;
  --shadow: 0 24px 50px -28px rgba(12, 16, 40, 0.35);
  --shadow-brand: 0 20px 45px -22px rgba(91, 61, 240, 0.4);
}

/* ─────────────────────────────── База ──────────────────────────────────── */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv11', 'ss01';

  /*
    clip вместо hidden: hidden делает страницу прокручиваемым контейнером,
    и на телефоне это даёт «люфт» — страницу можно чуть сдвинуть вбок, хотя
    видимого содержимого там нет. clip просто обрезает и такого не создаёт.
    hidden оставлен строкой выше как запасной для старых браузеров.
  */
  overflow-x: hidden;
  overflow-x: clip;

  /* dvh учитывает адресную строку мобильного браузера, vh — запасной */
  min-height: 100vh;
  min-height: 100dvh;
}

/* Фоновое «северное сияние» — два размытых пятна, не мешают чтению */
body::before {
  content: '';
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  background:
    radial-gradient(45% 55% at 18% 20%, rgba(69, 224, 255, 0.22), transparent 70%),
    radial-gradient(40% 50% at 78% 10%, rgba(123, 97, 255, 0.24), transparent 70%),
    radial-gradient(30% 40% at 55% 45%, rgba(255, 93, 174, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

[data-theme='light'] body::before {
  opacity: 0.55;
}

img {
  max-width: 100%;
  display: block;
}

/* Атрибут hidden должен быть сильнее наших display:flex/grid */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

::selection {
  background: var(--brand-2);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/*
  Страницы объявляют viewport-fit=cover — значит, браузер растягивает их под
  вырез и скруглённые углы телефона. Без учёта безопасных зон текст у края
  уезжает под «чёлку» и под скругления, особенно в альбомной ориентации.
  Поэтому боковые поля берут максимум из обычного отступа и системной зоны.
*/
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(64px, 9vw, 120px);
  position: relative;
  z-index: 1;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.section-title {
  font-size: clamp(28px, 4.4vw, 46px);
  max-width: 20ch;
}

.section-lead {
  color: var(--text-dim);
  font-size: clamp(16px, 1.6vw, 18px);
  max-width: 62ch;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--split {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─────────────────────────────── Кнопки ────────────────────────────────── */

.btn {
  --btn-bg: var(--surface-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--grad);
  border-color: transparent;
  color: #05060f;
  box-shadow: var(--shadow-brand);
}

.btn--ghost {
  background: transparent;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ─────────────────────────────── Навигация ─────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.nav.is-stuck {
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Логотип — PNG с прозрачным фоном, одинаково ложится на тёмную и светлую
   тему. Размеры заданы жёстко в пикселях, а object-fit: contain гарантирует,
   что при любой правке коробки картинка не растянется. */
.logo {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
}

.logo img {
  width: 34px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.logo--footer img {
  width: 51px;
  height: 60px;
  margin-bottom: 14px;
}

@media (max-width: 480px) {
  .logo img {
    width: 29px;
    height: 34px;
  }
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active {
  color: var(--text);
  background: var(--surface);
}

/* Личный кабинет — внешняя ссылка, выделяем рамкой, чтобы не терялась
   среди якорей на разделы этой же страницы */
.nav__cabinet a {
  border: 1px solid var(--border-strong);
  color: var(--text);
  margin-left: 4px;
}

.nav__cabinet a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.icon-btn:hover {
  background: var(--surface-strong);
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
}

@media (max-width: 960px) {
  .nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    /* Меню во всю ширину — у края оно тоже не должно лезть под скругления */
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }

  .nav__links.is-open {
    transform: translateY(0);
  }

  .nav__links a {
    padding: 13px 14px;
    border-radius: var(--r-sm);
  }

  .nav__burger {
    display: grid;
  }

  .nav .btn--primary {
    display: none;
  }
}

/* ──────────────────────────── Баннер аварий ────────────────────────────── */

.alert-bar {
  background: linear-gradient(90deg, rgba(255, 196, 83, 0.16), rgba(255, 196, 83, 0.05));
  border-bottom: 1px solid rgba(255, 196, 83, 0.3);
  font-size: 14.5px;
  position: relative;
  z-index: 101;
}

.alert-bar__inner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-block: 11px;
}

.alert-bar b {
  color: var(--warn);
}

/* Посетитель может убрать полосу сам — она вернётся, когда авария сменится */
.alert-bar__close {
  margin-left: auto;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.alert-bar__close:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

/* ──────────────────────────────── Hero ─────────────────────────────────── */

.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(56px, 8vw, 100px);
  position: relative;
  z-index: 1;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13.5px;
  color: var(--text-dim);
  margin-bottom: 22px;
}

.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 22%, transparent);
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px);
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: clamp(17px, 1.9vw, 20px);
  color: var(--text-dim);
  max-width: 54ch;
  margin-bottom: 32px;
}

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

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 44px);
}

.stat__value {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat__label {
  font-size: 14px;
  color: var(--text-faint);
}

/* Карточка скорости справа */
.speed-card {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.speed-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0.6;
  pointer-events: none;
}

.speed-card > * {
  position: relative;
  z-index: 1;
}

.speed-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.speed-card__gauge {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.speed-card__num {
  font-size: clamp(52px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.speed-card__unit {
  font-size: 18px;
  color: var(--text-dim);
  font-weight: 600;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 92px;
  margin: 22px 0 18px;
}

.bars span {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--grad);
  opacity: 0.85;
  animation: bar 2.6s var(--ease) infinite;
  transform-origin: bottom;
}

@keyframes bar {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.speed-card__rows {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.speed-card__row {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
}

.speed-card__row b {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  .bars span,
  .pill__dot {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ─────────────────────────── Логотипы/доверие ──────────────────────────── */

.marquee {
  border-block: 1px solid var(--border);
  padding-block: 18px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 32s linear infinite;
  color: var(--text-faint);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

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

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  color: var(--brand);
}

.card__icon svg {
  width: 22px;
  height: 22px;
}

.bento__a { grid-column: span 3; }
.bento__b { grid-column: span 3; }
.bento__c { grid-column: span 2; }
.bento__d { grid-column: span 2; }
.bento__e { grid-column: span 2; }
.bento__wide { grid-column: span 6; }

.card--feature {
  background: var(--grad-soft);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento__a, .bento__b, .bento__c, .bento__d, .bento__e { grid-column: span 2; }
  .bento__wide { grid-column: span 2; }
  .card--feature { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .bento__a, .bento__b, .bento__c, .bento__d, .bento__e, .bento__wide { grid-column: span 1; }
}

/* ─────────────────────────────── Тарифы ────────────────────────────────── */

/*
  Все тарифы — одной строкой с горизонтальной прокруткой. Секция занимает
  предсказуемую высоту независимо от того, сколько тарифов завели в панели:
  седьмой не уедет на второй ряд, а просто появится справа.
*/
.tariff-strip {
  position: relative;
}

/* Стрелки поверх краёв строки: на десктопе крутить колесом вбок неудобно */
.tariff-strip__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: color-mix(in srgb, var(--bg-soft) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.tariff-strip__arrow:hover:not(:disabled) {
  border-color: var(--brand);
  color: var(--brand);
}

.tariff-strip__arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.tariff-strip__arrow--prev { left: -14px; }
.tariff-strip__arrow--next { right: -14px; }

@media (max-width: 1240px) {
  .tariff-strip__arrow--prev { left: 2px; }
  .tariff-strip__arrow--next { right: 2px; }
}

.tariffs {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  /* небольшой запас сверху — чтобы карточка не обрезалась при подъёме на ховере */
  padding: 8px 2px 14px;
  margin-inline: -2px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
  overscroll-behavior-x: contain;
}

.tariffs::-webkit-scrollbar {
  height: 8px;
}

.tariffs::-webkit-scrollbar-track {
  background: var(--surface);
  border-radius: 99px;
}

.tariffs::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 99px;
}

.tariffs::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

.tariffs:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
}

.tariff {
  flex: 0 0 246px;
  scroll-snap-align: start;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}

.tariff:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

@media (max-width: 420px) {
  .tariff {
    flex-basis: 232px;
  }
}

.tariff--popular {
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--grad-soft);
  box-shadow: var(--shadow-brand);
}

/* Метки в шапке карточки: группа («Для дома» / «Для бизнеса») и плашка.
   Обе в потоке, а не абсолютом, — тогда они не наезжают друг на друга
   и не обрезаются прокручиваемым контейнером. */
/*
  Шапка карточки: метка группы и, у избранных тарифов, плашка вроде
  «Выгоднее всего». В узкой карточке два чипа не помещались в строку и
  переносились — из-за этого название тарифа съезжало вниз, и в ряду
  «Интернет 100 / Интернет 200 / Бизнес 50» подписи стояли на разной высоте.

  Раскладываем их столбцом: ряда всегда два, у всех карточек одинаково.
  Когда плашки нет, её место занимает пустой невидимый чип — высота
  считается не по магическому числу в пикселях, а по самому содержимому,
  поэтому смена шрифта или размера ничего не сломает.
*/
.tariff__tags {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 10px;
}

/* Пустая плашка занимает высоту строки, но не видна */
.tariff__badge:empty {
  visibility: hidden;
}

.tariff__badge:empty::before {
  content: '\00a0';
}

.tariff__group {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Бизнес-тарифы выделяем цветом — это главное различие в общей строке */
.tariff--business .tariff__group {
  border-color: color-mix(in srgb, var(--brand-2) 55%, transparent);
  background: color-mix(in srgb, var(--brand-2) 16%, transparent);
  color: var(--brand-2);
}

[data-theme='dark'] .tariff--business .tariff__group {
  color: color-mix(in srgb, var(--brand-2) 55%, #fff);
}

.tariff__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: #05060f;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.tariff__price {
  font-size: 14.5px;
  color: var(--text-dim);
  margin-bottom: 14px;
  text-align: center;
}

.tariff__price b {
  color: var(--text);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ─────────────────────────── Спидометр тарифа ──────────────────────────── */

/*
  Стрелка «поднимается» к скорости тарифа при наведении. Угол и заполнение
  дуги приходят из данных в переменных --gauge-angle и --gauge-offset,
  поэтому разметка одна на все тарифы, а анимацию целиком делает CSS.
  На сенсорных экранах наведения нет — там стрелка сразу стоит на месте.
*/
.gauge {
  position: relative;
  /* Шкала не растягивается на всю карточку: иначе тарифы выходят слишком
     высокими и секция занимает пол-экрана. */
  max-width: 164px;
  margin: 0 auto 6px;
}

.gauge svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.gauge__track {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 9;
  stroke-linecap: round;
}

.gauge__value {
  fill: none;
  stroke: url(#gaugeGrad);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1s var(--ease);
}

.gauge__tick {
  stroke: var(--text-faint);
  stroke-width: 2;
  stroke-linecap: round;
}

.gauge__scale {
  fill: var(--text-faint);
  font-size: 11px;
  font-weight: 600;
}

.gauge__needle {
  transform: rotate(-120deg);
  transform-origin: 100px 96px;
  transition: transform 1s var(--ease);
}

.gauge__needle path {
  fill: var(--brand-3);
}

.gauge__cap {
  fill: var(--bg-soft);
  stroke: var(--border-strong);
  stroke-width: 2;
}

/*
  Спидометр оживает, когда карточка доезжает до экрана — класс is-live
  ставит наблюдатель в main.js. Раньше условий было только два: наведение
  и фокус. На телефоне наводить нечем, и там выручал отдельный блок
  @media (hover: none); а на компьютере человек видел шкалы на нуле до тех
  пор, пока не проведёт мышью по каждой карточке, и считал их сломанными.
  Наведение осталось — оно просто перестало быть единственным поводом.
*/
.tariff.is-live .gauge__needle,
.tariff:hover .gauge__needle,
.tariff:focus-within .gauge__needle {
  transform: rotate(var(--gauge-angle, -120deg));
}

.tariff.is-live .gauge__value,
.tariff:hover .gauge__value,
.tariff:focus-within .gauge__value {
  stroke-dashoffset: var(--gauge-offset, 100);
}

.gauge__readout {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  text-align: center;
  pointer-events: none;
}

.gauge__readout b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* «до» рядом с цифрой: скорость всегда «до», но спорить с числом не должно */
.gauge__readout b i {
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  letter-spacing: 0;
}

.gauge__readout span {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 600;
}

/*
  Отдельного правила для сенсорных экранов больше нет. Раньше оно ставило
  стрелку и дугу в конечное положение сразу при загрузке — и анимировать
  было нечего: на телефоне шкала просто появлялась уже заполненной.
  Теперь и там, и на компьютере работает класс is-live: его ставит
  наблюдатель, когда карточка доезжает до экрана, и переход отыгрывается.
*/

@media (prefers-reduced-motion: reduce) {
  .gauge__needle,
  .gauge__value {
    transition: none;
    transform: rotate(var(--gauge-angle, -120deg));
  }
  .gauge__value {
    transform: none;
    stroke-dashoffset: var(--gauge-offset, 100);
  }
}

/* ──────────────────────── Индивидуальный тариф ─────────────────────────── */

.individual {
  margin-top: 16px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border-strong);
  background: var(--grad-soft);
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.individual__text {
  flex: 1 1 320px;
}

.individual h3 {
  font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 6px;
}

.individual p {
  color: var(--text-dim);
  margin: 0;
  max-width: 62ch;
  font-size: 15px;
}

.tariff__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-dim);
  flex: 1;
}

.tariff__list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.tariff__list li::before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent);
  background-image: linear-gradient(var(--brand), var(--brand));
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-position: center;
}

.tariffs-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-faint);
}

/* ───────────────────────────────  О нас ───────────────────────────────── */

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
}

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

.timeline {
  display: grid;
  gap: 4px;
  position: relative;
}

.timeline__item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.timeline__year {
  font-weight: 800;
  font-size: 17px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline__text {
  color: var(--text-dim);
  font-size: 15px;
}

.timeline__text b {
  color: var(--text);
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
}

/* ─────────────────────────────── Новости ───────────────────────────────── */

.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
}

.news-card {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), background 0.4s var(--ease);
}

.news-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.news-card__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: var(--text-faint);
}

.tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
}

.news-card h3 {
  font-size: 19px;
  margin: 0;
  letter-spacing: -0.02em;
}

.news-card p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
  flex: 1;
}

.news-card__more {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--brand);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.news-article {
  border-top: 1px solid var(--border);
  padding-block: 32px;
}

.news-article p {
  color: var(--text-dim);
  max-width: 72ch;
}

/* ───────────────────── Отдельная страница статьи ───────────────────────── */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.article__back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-faint);
}

.article__back:hover { color: var(--text); }

.article__title {
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  max-width: 24ch;
}

.article__lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
  max-width: 66ch;
  margin: 0 0 26px;
}

.article p {
  color: var(--text-dim);
  max-width: 72ch;
  line-height: 1.7;
}

/*
  Перечисления в статьях: девять причин подряд сплошным текстом не читаются.
  Каждый пункт — своя строка в общей рамке, между пунктами линия.
*/
.article-steps {
  margin: 26px 0;
  max-width: 72ch;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.article-step {
  padding: 16px 20px;
  color: var(--text-dim);
  line-height: 1.65;
}

.article-step + .article-step { border-top: 1px solid var(--border); }

.article-step b {
  color: var(--text);
  margin-right: 2px;
}

.article__more {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article__more-title {
  font-size: 19px;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 560px) {
  .article-step { padding: 14px 15px; }
}

/* ────────────────────────────── Бот-секция ─────────────────────────────── */

.bot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

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

.chat {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  padding: 20px;
  display: grid;
  gap: 12px;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

/* Коробка 40px под две строки текста, а padding уменьшает картинку внутри
   неё — логотип показывается целиком, как в шапке, а не враспор. */
.chat__avatar {
  width: 40px;
  height: 40px;
  padding: 5px;
  border-radius: 11px;
  background: var(--bg);
  border: 1px solid var(--border);
  object-fit: contain;
  display: block;
  flex: none;
}

.chat__name {
  font-weight: 700;
  font-size: 15px;
}

.chat__status {
  font-size: 12.5px;
  color: var(--ok);
}

.msg {
  max-width: 86%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
  border: 1px solid var(--border);
  background: var(--surface);
}

.msg--in {
  border-bottom-left-radius: 5px;
}

.msg--out {
  margin-left: auto;
  border-bottom-right-radius: 5px;
  background: var(--grad);
  border-color: transparent;
  color: #05060f;
  font-weight: 500;
}

.msg code {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(127, 127, 127, 0.18);
}

/* Блок выбора мессенджера: одинаковые по весу кнопки, чтобы не навязывать канал */
.messengers {
  margin-top: 30px;
}

.messengers__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.messengers__row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.messenger {
  gap: 10px;
}

.messenger__icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: none;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--text-dim);
  font-size: 15.5px;
}

.checklist li::before {
  content: '✓';
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}

.checklist b {
  color: var(--text);
  font-weight: 600;
}

/* ──────────────────────────────── Форма ────────────────────────────────── */

.form-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}

@media (max-width: 900px) {
  .form-wrap {
    grid-template-columns: 1fr;
  }
}

.form {
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

@media (max-width: 620px) {
  .form__grid {
    grid-template-columns: 1fr;
  }
  .field--full {
    grid-column: auto;
  }
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.field .req {
  color: var(--brand-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
  resize: vertical;
  min-height: 92px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea,
.field.has-error .dropzone {
  border-color: var(--err);
}

.field__error {
  font-size: 13px;
  color: var(--err);
  min-height: 0;
}

.field__hint {
  font-size: 13px;
  color: var(--text-faint);
}

/* Какие именно страницы паспорта нужны — самый частый вопрос при подключении,
   поэтому вынесено списком над областью загрузки, а не в мелкую подпись. */
.passport-req {
  list-style: none;
  margin: 0 0 10px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  display: grid;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-dim);
}

.passport-req li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 8px;
  align-items: start;
}

.passport-req li::before {
  content: '📄';
  font-size: 13px;
  line-height: 1.5;
}

.passport-req b {
  color: var(--text);
  font-weight: 600;
}

/* Загрузка паспорта */
.dropzone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-soft);
  transition: border-color 0.25s, background 0.25s;
}

.dropzone:hover,
.dropzone.is-drag {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 7%, var(--bg-soft));
}

.dropzone input[type='file'] {
  display: none;
}

.dropzone__icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: 13px;
  background: var(--grad-soft);
  display: grid;
  place-items: center;
  color: var(--brand);
}

.dropzone__title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.dropzone__sub {
  font-size: 13px;
  color: var(--text-faint);
}

.filelist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.filelist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 14px;
}

.filelist__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filelist__size {
  color: var(--text-faint);
  font-size: 13px;
}

.filelist__del {
  border: 0;
  background: transparent;
  color: var(--text-faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 6px;
}

.filelist__del:hover {
  color: var(--err);
}

/* Чекбоксы согласий */
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
  cursor: pointer;
}

.consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-soft);
  cursor: pointer;
  position: relative;
  transition: background 0.2s, border-color 0.2s;
  flex: none;
}

.consent input:checked {
  background: var(--grad);
  border-color: transparent;
}

.consent input:checked::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid #05060f;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.consent a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent.has-error {
  color: var(--err);
}

.consent.has-error input {
  border-color: var(--err);
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form__status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  display: none;
}

.form__status.is-visible {
  display: block;
}

.form__status--ok {
  background: color-mix(in srgb, var(--ok) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  color: var(--text);
}

.form__status--err {
  background: color-mix(in srgb, var(--err) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--err) 40%, transparent);
  color: var(--text);
}

.privacy-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

.privacy-note a {
  color: var(--brand);
}

/* ─────────────────────────────── FAQ ───────────────────────────────────── */

.faq {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

details.acc {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 0 20px;
  transition: border-color 0.25s;
}

details.acc[open] {
  border-color: var(--border-strong);
}

details.acc summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

details.acc summary::-webkit-details-marker {
  display: none;
}

details.acc summary::after {
  content: '+';
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.25s var(--ease);
  flex: none;
}

details.acc[open] summary::after {
  transform: rotate(45deg);
}

details.acc p {
  color: var(--text-dim);
  font-size: 15px;
  padding-bottom: 18px;
  margin: 0;
  max-width: 76ch;
}

/* ──────────────────────────────── CTA ──────────────────────────────────── */

.cta {
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 60px);
  background: var(--grad-soft);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  max-width: 22ch;
  margin-inline: auto;
}

.cta p {
  color: var(--text-dim);
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 28px;
}

.cta__row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─────────────────────────────── Подвал ────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  position: relative;
  z-index: 1;
  background: color-mix(in srgb, var(--bg-soft) 60%, transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

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

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

.footer h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  margin-bottom: 14px;
  font-weight: 600;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 15px;
  color: var(--text-dim);
}

.footer a:hover {
  color: var(--brand);
}

.footer__about {
  color: var(--text-dim);
  font-size: 14.5px;
  max-width: 34ch;
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ──────────────────── Правовая страница (типографика) ──────────────────── */

.legal {
  max-width: 860px;
}

.legal h1 {
  font-size: clamp(28px, 4vw, 42px);
}

.legal h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-size: 18px;
  margin-top: 26px;
}

.legal p,
.legal li {
  color: var(--text-dim);
  font-size: 15.5px;
}

.legal ul,
.legal ol {
  padding-left: 22px;
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.legal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 14px;
  color: var(--text-faint);
  padding: 16px 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 32px;
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 22px;
  font-size: 14.5px;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-dim);
}

.toc a:hover {
  color: var(--brand);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 900px) {
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
  }
}

/* ────────────────────── Появление при прокрутке ────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee__track {
    animation: none;
  }
}

/* ──────────────────── Всплывающее окно (акции, объявления) ─────────────── */

.promo {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: promo-fade 0.25s var(--ease);
}

.promo__card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  animation: promo-in 0.3s var(--ease);
}

@keyframes promo-fade {
  from { opacity: 0; }
}

@keyframes promo-in {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
}

.promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 85%, transparent);
  backdrop-filter: blur(6px);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.promo__close:hover {
  border-color: var(--border-strong);
  color: var(--brand);
}

.promo__image {
  width: 100%;
  height: auto;
  display: block;
  border-bottom: 1px solid var(--border);
}

.promo__body {
  padding: 24px;
}

.promo__body h3 {
  font-size: clamp(20px, 3vw, 25px);
  margin-bottom: 10px;
}

.promo__body p {
  color: var(--text-dim);
  font-size: 15px;
  white-space: pre-line;
  margin-bottom: 20px;
}

.promo__body .btn {
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .promo__card,
  .promo__backdrop {
    animation: none;
  }
}

/* ─────────────────────── Телефоны и узкие экраны ───────────────────────── */

@media (max-width: 560px) {
  .container {
    padding-inline: 16px;
  }

  /* Четыре показателя в ряд на телефоне не читаются — по два */
  .hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 16px;
  }

  .hero__cta .btn,
  .cta__row .btn,
  .messengers__row .btn {
    flex: 1 1 100%;
  }

  .speed-card {
    padding: 22px 18px;
  }

  .bars {
    height: 72px;
  }

  .section-head--split {
    align-items: flex-start;
  }

  .form {
    padding: 20px 16px;
  }

  .legal__meta {
    padding: 14px 16px;
  }
}

@media (max-width: 380px) {
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .btn--lg {
    padding: 14px 22px;
    font-size: 15px;
  }
}

/* Пальцу нужна цель побольше, чем указателю мыши */
@media (hover: none) {
  .nav__links a {
    padding: 12px 14px;
  }

  .btn {
    min-height: 44px;
  }

  .consent input {
    width: 24px;
    height: 24px;
  }
}

/* ─────────────────────────── Страница 404 ──────────────────────────────── */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound h1 {
  font-size: clamp(64px, 14vw, 140px);
  letter-spacing: -0.06em;
}
