/* Rectorm — единый визуальный язык с рабочим MiniApp. */
@font-face {
  font-family: Inter;
  src: url('/assets/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg:        #000;
  --surface:   #0b1015;
  --surface-2: #141b23;
  --line:      rgba(255, 255, 255, .07);
  --fg:        #f5f7fa;
  --fg-2:      #94a0ae;
  --fg-3:      #94a0ae;
  --blue:      #286be0;
  --blue-2:    #70a7ff;
  --blue-dim:  rgba(40, 107, 224, .10);
  --green:     #55d5a6;

  --r:    18px;
  --r-lg: 18px;
  --r-sm: 12px;

  --shell: 1160px;
  --pad:   clamp(20px, 4.5vw, 44px);

  --f-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --f-mono: var(--f-sans);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; min-width: 320px; }
img { display: block; max-width: 100%; }
button, a { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active, a.btn:active { opacity: .76; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.65 var(--f-sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 650; letter-spacing: -.035em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 10px; z-index: 99; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { left: 10px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.flag { width: 22px; height: 15px; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding-inline: var(--pad); min-width: 0; }

/* ── появление ──────────────────────────────────────────────────────────── */

/* Блоки всплывают на 14 пикселей при входе в кадр. Только под .js: класс
   ставит строчный скрипт в <head>, и если скрипт не выполнится, содержимое
   останется видимым, а не пропадёт целиком. Сдвиг маленький и один на всю
   страницу намеренно: заметная анимация на каждом блоке читается как реклама.
   Задержка внутри группы задаётся переменной --d из data-stagger. */
.js [data-rise] {
  opacity: 0; transform: translateY(14px);
  transition: opacity .55s cubic-bezier(.2, .7, .3, 1), transform .55s cubic-bezier(.2, .7, .3, 1);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.js [data-rise].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-rise] { opacity: 1 !important; transform: none !important; }
}

/* ── повторяющиеся элементы ─────────────────────────────────────────────── */

.label { font-family: var(--f-sans); font-size: 11px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; color: var(--blue-2); }
.lead { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.5; color: var(--fg-2); max-width: 46ch; }
.micro { font-size: 13.5px; line-height: 1.6; color: var(--fg-3); max-width: 70ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-sans); font-size: 14px; font-weight: 600; line-height: 1.4;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 13px; cursor: pointer; text-align: center; max-width: 100%;
  transition: background .18s ease, color .18s ease;
}
.btn--solid { background: var(--blue); color: #fff; }
.btn--solid:hover { background: #3679ef; }
.btn--soft { background: var(--surface-2); color: var(--fg); }
.btn--soft:hover { background: #1e2935; }
.btn--sm { min-height: 42px; padding: 10px 17px; font-size: 13px; }
.btn--lg { min-height: 52px; padding: 15px 24px; font-size: 15px; }
/* Стрелка отъезжает на наведении. Сдвиг маленький: на кнопке призыва он
   читается как «дальше», а не как анимация ради анимации. */
.btn--go::after {
  content: ""; width: 7px; height: 7px; margin-left: 10px; flex: none;
  border-right: 2px solid currentColor; border-top: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, 1px);
  transition: transform .22s cubic-bezier(.2, .7, .3, 1);
}
.btn--go:hover::after { transform: rotate(45deg) translate(2px, -2px); }

/* ── шапка ──────────────────────────────────────────────────────────────── */

.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid transparent; transition: border-color .25s ease;
}
.top.is-stuck { border-bottom-color: var(--line); }
.top__in { height: 76px; display: flex; align-items: center; gap: 28px; }
.top__nav { display: flex; gap: 28px; margin-left: auto; font-size: 13px; color: var(--fg-2); }
.top__nav a { display: flex; align-items: center; min-height: 44px; transition: color .16s ease; }
.top__nav a:hover { color: var(--fg); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 19px; font-weight: 650; letter-spacing: -.7px; }
.logo img, .logo > svg { width: 27px; height: 27px; object-fit: contain; flex: none; margin-right: 9px; }
.logo__s { color: var(--blue-2); margin-left: 5px; }
/* Знак: три полосы разной длины, верхняя синяя. На наведении они выравниваются
   по длине — маленькая награда за попадание курсором, не более того. */
.logo__mark { display: flex; flex-direction: column; gap: 2.5px; margin-right: 9px; }
.logo__mark i { display: block; height: 2.5px; border-radius: 2px; background: var(--fg); transition: width .28s cubic-bezier(.2,.7,.3,1); }
.logo__mark i:nth-child(1) { width: 16px; background: var(--blue); }
.logo__mark i:nth-child(2) { width: 16px; opacity: .85; }
.logo__mark i:nth-child(3) { width: 9px; opacity: .45; }
.logo:hover .logo__mark i { width: 16px; }

/* ── главный экран ──────────────────────────────────────────────────────── */

.hero { padding-block: 56px 34px; }
.hero__in { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(0,.82fr); gap: 42px 76px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; min-width: 0; padding-block: 24px; }
.hero h1 { font-size: clamp(38px, 5.1vw, 65px); letter-spacing: -.055em; line-height: 1.07; max-width: 13ch; }
.hero h1 span { color: var(--fg-2); }
.hero .row { margin-top: 2px; }
.hero .lead { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; }
.hero .micro { max-width: 48ch; font-size: 12px; }
.hero-preview { position: relative; width: min(100%,332px); margin: 0; justify-self: center; min-width: 0; }
.hero-preview img { width: 100%; height: auto; border: 1px solid #ffffff17; border-radius: 28px; background: #000; }
.hero-preview figcaption { color: var(--fg-2); font-size: 11px; line-height: 1.5; margin-top: 13px; text-align: center; }

/* Показатели: одна мягкая плоскость, разделителей внутри нет. */
.spec {
  grid-column: 1 / -1; margin: 0; padding: 27px 30px;
  width: 100%; background: var(--surface); border-radius: var(--r-lg);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
}
.spec > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.spec dd { margin: 0; font-size: clamp(27px, 3vw, 36px); font-weight: 650; letter-spacing: -.055em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.spec dd i { font-style: normal; font-size: .5em; color: var(--fg-3); }
.spec dt { font-size: 12px; color: var(--fg-3); }

/* ── раздел ─────────────────────────────────────────────────────────────── */

.band { padding-block: clamp(46px, 6vw, 76px); }

.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(26px, 3vw, 38px); }
.head h2 { font-size: clamp(25px, 3.1vw, 36px); max-width: 22ch; }
.head__lead { font-size: clamp(15px, 1.2vw, 17px); color: var(--fg-2); max-width: 56ch; }

/* ── локации ────────────────────────────────────────────────────────────── */

.nodes { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.nodes li {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; min-height: 64px;
  background: var(--surface); border-radius: var(--r); padding: 15px 18px;
  transition: background .18s ease, transform .18s cubic-bezier(.2, .7, .3, 1);
}
.nodes li:hover { background: var(--surface-2); }
.nodes b { font-weight: 550; font-size: 14px; min-width: 0; }
.chip {
  margin-left: auto; font-family: var(--f-sans); font-size: 10px; font-weight: 500;
  color: var(--fg-3); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; max-width: 100%; overflow-wrap: anywhere;
}
.chip--on { color: var(--green); background: #55d5a60d; display: inline-flex; align-items: center; gap: 6px; }
/* Точка дышит. Это единственная бесконечная анимация на странице, и она стоит
   ровно там, где означает «локация живая»: у скоростной и у обхода. */
.chip--on::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor;
  flex: none;
}
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .chip--on::before { animation: none; opacity: 1; } }

/* ── карточки ───────────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cards + .cards { margin-top: 10px; }
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px);
  display: flex; flex-direction: column; gap: 10px;
  transition: background .18s ease, transform .18s cubic-bezier(.2, .7, .3, 1);
}
.card:hover { background: var(--surface-2); }
.card p { font-size: 14.5px; color: var(--fg-2); }
.card h3 { font-size: 17px; }
.card__top { display: flex; align-items: baseline; gap: 10px; font-size: 17px; font-weight: 600; letter-spacing: -.02em; color: var(--fg); }
.card .card__top { font-size: 17px; color: var(--fg); }
.card__top em { font-style: normal; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--fg-3); }

/* замер */
.bars { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 34px; align-items: center; gap: 12px; }
.bar span { font-size: 13px; color: var(--fg-2); }
.bar i { height: 6px; border-radius: 100px; background: rgba(255, 255, 255, .07); overflow: hidden; }
/* Ширина берётся из --w, а стартует с нуля: полоски вырастают, когда карточка
   входит в кадр. Анимируется width, а не transform: шкала короткая, и
   масштабирование скруглило бы концы неравномерно. */
.bar i b { display: block; height: 100%; width: 0; border-radius: 100px; background: var(--blue); transition: width .9s cubic-bezier(.2, .7, .3, 1) .15s; }
.is-in .bar i b, html:not(.js) .bar i b { width: var(--w); }
.bar i b.is-2 { background: rgba(255, 255, 255, .3); }
.bar em { font-style: normal; font-family: var(--f-mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }

/* ── тарифы ─────────────────────────────────────────────────────────────── */

.terms { display: inline-flex; gap: 4px; padding: 5px; background: var(--surface); border-radius: 14px; margin-bottom: 16px; max-width: 100%; }
.terms__b {
  font-family: var(--f-sans); font-size: 13.5px; font-weight: 500; color: var(--fg-2);
  background: none; border: 0; border-radius: 10px; min-height: 42px; padding: 10px 17px; cursor: pointer;
  transition: background .16s ease, color .16s ease;
}
.terms__b:hover { color: var(--fg); }
.terms__b.is-on { background: var(--blue); color: #fff; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.plan {
  background: var(--surface); border: 1px solid transparent; border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 26px); min-width: 0;
  display: flex; flex-direction: column; gap: 13px;
  transition: transform .18s cubic-bezier(.2, .7, .3, 1);
}
.plan:hover { border-color: #ffffff1c; }
/* Отмеченный тариф: чуть светлее плоскость и синяя подпись, без рамок. */
.plan--hero { background: var(--surface); border-color: #286be080; }
.plan--hero:hover { border-color: var(--blue); }
.plan--hero .plan__badge { color: var(--blue-2); }
.plan__badge { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); }
.plan__name { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.plan__price { display: flex; align-items: baseline; gap: 5px; font-variant-numeric: tabular-nums; }
.plan__price b { font-size: clamp(30px, 2.8vw, 36px); font-weight: 600; letter-spacing: -.04em; }
.plan__price span { font-size: 12.5px; color: var(--fg-3); }
.plan__sub { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--fg-3); }
.plan__save { color: var(--green); background: #55d5a60d; border-radius: 7px; padding: 3px 8px; font-family: var(--f-sans); font-size: 10px; }
.plan__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--fg-2); flex: 1; }
.plan__list li { padding-left: 16px; position: relative; }
.plan__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.plan__list li.is-off { color: var(--fg-3); }
.plan .btn { width: 100%; margin-top: 2px; }

/* ── шаги ───────────────────────────────────────────────────────────────── */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--surface); border-radius: var(--r-lg); padding: clamp(20px, 2.2vw, 26px); display: flex; flex-direction: column; gap: 9px; }
.steps li::before {
  content: counter(s); width: 29px; height: 29px; border-radius: 9px;
  display: grid; place-items: center; margin-bottom: 4px;
  font-family: var(--f-sans); font-size: 12px; font-weight: 600; color: var(--blue-2); background: var(--surface-2);
}
.steps h3 { font-size: 16.5px; }
.steps p { font-size: 14px; color: var(--fg-2); }

/* ── платформы ──────────────────────────────────────────────────────────── */

.plat { margin-top: 18px; display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.plat__i { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--fg-2); }
.plat__i svg {
  width: 19px; height: 19px; flex: none; color: var(--fg-3);
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}

/* ── вопросы ────────────────────────────────────────────────────────────── */

.faq { display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.qa { background: var(--surface); border-radius: var(--r); overflow: hidden; }
.qa__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: 0; padding: 18px 22px; cursor: pointer; text-align: left;
  font-family: var(--f-sans); font-size: 16px; font-weight: 500; color: var(--fg);
  transition: color .16s ease;
}
.qa__q:hover { color: var(--blue-2); }
.qa__q i { position: relative; width: 12px; height: 12px; flex: none; }
.qa__q i::before, .qa__q i::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.qa__q i::before { width: 12px; height: 2px; }
.qa__q i::after { width: 2px; height: 12px; }
.qa.is-open .qa__q i::after { transform: rotate(90deg); opacity: 0; }
.qa__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .24s ease; }
.qa.is-open .qa__a { grid-template-rows: 1fr; }
.qa__a > div { overflow: hidden; }
.qa__a p { font-size: 15px; color: var(--fg-2); padding: 0 22px 20px; max-width: 66ch; }
.qa__a a { color: var(--blue-2); }

/* ── призыв ─────────────────────────────────────────────────────────────── */

.end {
  background: var(--surface);
  border-radius: var(--r-lg); padding: clamp(30px, 4vw, 52px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.end h2 { font-size: clamp(24px, 3vw, 34px); }
.end p { color: var(--fg-2); max-width: 46ch; }
.end .btn { margin-top: 10px; }

/* ── подвал ─────────────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--line); padding-block: 28px; }
.foot__in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.foot__nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--fg-2); margin-inline: auto; }
.foot__nav a:hover { color: var(--fg); }
.foot__copy { font-size: 12.5px; color: var(--fg-3); }

/* ── узкие экраны ───────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__in { column-gap: 36px; }
  .hero-preview { max-width: 300px; }
  .top__nav { gap: 18px; }
  .top__in { gap: 20px; }
  .card--wide { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .top__nav { display: none; }
  .top__in > .btn { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 28px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { gap: 18px; }
  .hero .lead { font-size: 15px; }
  .hero .row { flex-direction: column; width: 100%; }
  .hero .row .btn { width: 100%; }
  .hero-preview { max-width: 260px; }
  .spec { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .nodes { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .card:last-child { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  :root { --pad: 20px; }
  .top__in { height: 68px; gap: 12px; }
  .logo { font-size: 18px; }
  .top .btn--sm { font-size: 12px; padding: 10px 13px; }
  .hero { padding-block: 23px 20px; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero-copy { padding: 16px 0 0; gap: 19px; }
  .hero h1 { font-size: clamp(36px, 9.4vw, 52px); max-width: 13ch; }
  .hero .lead { font-size: 16px; }
  .hero .row { flex-direction: row; gap: 9px; }
  .hero .row .btn { width: auto; flex: 1 1 auto; }
  .hero-preview { width: min(100% - 28px, 300px); max-width: none; }
  .hero-preview img { border-radius: 25px; }
  .spec { padding: 24px; gap: 24px 16px; }
  .spec dd { font-size: 30px; }
  .spec dt { font-size: 11px; }
  .band { padding-block: 44px; }
  .head h2 { font-size: 28px; }
  .head__lead { font-size: 14px; }
  .nodes li { padding: 16px; gap: 10px; }
  .nodes b { font-size: 13px; }
  .chip { font-size: 9px; padding: 4px 7px; }
  .plans, .steps, .cards { grid-template-columns: 1fr; }
  .cards > .card:last-child { grid-column: auto; }
  .row .btn { flex: 1 1 auto; }
  .terms { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
  .terms__b { min-width: 0; min-height: 44px; padding-inline: 4px; font-size: 12px; }
  .qa__q { padding: 18px; font-size: 14px; }
  .qa__a p { padding-inline: 18px; font-size: 13px; }
  .foot__nav { margin-inline: 0; }
}
@media (max-width: 359px) {
  :root { --pad: 16px; }
  .logo { font-size: 16px; }
  .logo__mark { margin-right: 7px; }
  .top .btn--sm { font-size: 11px; padding: 10px; }
  .hero h1 { font-size: 35px; }
  .hero .btn--lg { font-size: 13px; padding: 14px 17px; }
  .hero-preview { width: calc(100% - 24px); }
  .spec { padding: 21px 20px; }
  .nodes li { gap: 8px; }
  .nodes b { font-size: 12px; }
  .flag { width: 20px; height: 14px; }
  .chip { font-size: 8px; }
  .head h2 { font-size: 26px; }
}
