/* ============================================================
   verstalka — лендинг услуг по разработке
   Палитра построена на цветах оверлея DevTools: content / padding
   / border / margin. В деле всегда один синий; все четыре цвета
   встречаются только в фоне страницы и в схеме box-model.
   ============================================================ */

/* ---------- 1. Токены ----------
   Тем две. Тёмная — значение по умолчанию, прямо в :root; светлая
   живёт в [data-theme="light"] и включается кнопкой в шапке.
   Инлайн-скрипт в <head> ставит атрибут до первой отрисовки, иначе
   при перезагрузке моргает чужая тема.
   --ink — это цвет текста, он переворачивается вместе с темой.
   Плашки, которые тёмные в обеих темах (подвал, контакты, подложка
   логотипа), берут --plate / --plate-soft. */
:root {
  color-scheme: dark;

  --ink:        #EDF1F7;
  --paper:      #0B0E13;
  --card:       #161B23;
  --line:       #272F3B;
  --muted:      #AAB3C1;

  --plate:      #0E1116;
  --plate-soft: #1A1F27;

  --c-content:  #4A7DFF;
  --c-padding:  #79C98B;
  --c-border:   #EFC15C;
  --c-margin:   #F08A5D;

  --accent:     var(--c-content);
  --accent-ink: #8FB0FF;

  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --font-body:    "Golos Text", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 14px;
  --radius-lg: 22px;

  /* Подложки поверх живого фона: не глухая заливка, а стекло — цвет
     пятен проходит сквозь карточки, но текст остаётся читаемым. */
  --glass:        rgba(22, 27, 35, .72);
  --glass-strong: rgba(22, 27, 35, .86);
  --glass-line:   rgba(58, 67, 81, .55);
  --glass-ink:    rgba(8, 10, 14, .86);
  --topbar-bg:    rgba(11, 14, 19, .88);
  --bg-base:      var(--paper);
  --grid-line:    rgba(126, 162, 255, .11);
  --blur: blur(10px);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30), 0 6px 18px rgba(0, 0, 0, .28);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, .34), 0 18px 44px rgba(0, 0, 0, .42);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

[data-theme="light"] {
  color-scheme: light;

  --ink:        #0E1116;
  --paper:      #EFF2F6;
  --card:       #FFFFFF;
  --line:       #DCE1E8;
  --muted:      #565D69;

  --accent-ink: #2B57C4;

  --glass:        rgba(255, 255, 255, .76);
  --glass-strong: rgba(255, 255, 255, .86);
  --glass-line:   rgba(220, 225, 232, .55);
  --glass-ink:    rgba(14, 17, 22, .90);
  --topbar-bg:    rgba(239, 242, 246, .90);
  --bg-base:      var(--paper);
  --grid-line:    rgba(74, 125, 255, .09);

  --shadow-sm: 0 1px 2px rgba(14, 17, 22, .05), 0 6px 18px rgba(14, 17, 22, .05);
  --shadow-md: 0 2px 4px rgba(14, 17, 22, .06), 0 18px 44px rgba(14, 17, 22, .10);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
}
p { margin: 0; }
img { max-width: 100%; display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Скрыт визуально, но доступен с клавиатуры. Без clip-путь
   через left:-9999px растягивал страницу по горизонтали. */
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  background: var(--plate);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}
.skip:focus { clip-path: none; opacity: 1; pointer-events: auto; }

/* ---------- 3. Каркас ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

.section { padding-block: clamp(72px, 9vw, 130px); }

.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 66px); }
.section-head--tight { margin-bottom: 32px; }

.section-title {
  font-size: clamp(30px, 4.4vw, 50px);
  font-weight: 600;
  margin-bottom: 18px;
}
.section-title--invert { color: #fff; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
}
.eyebrow--invert { color: #8FB0FF; }
.eyebrow--hero { color: var(--muted); margin-bottom: 26px; }

/* ---------- 4. Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease),
              border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(74, 125, 255, .28);
}
.btn--primary:hover { background: var(--accent-ink); box-shadow: 0 10px 26px rgba(74, 125, 255, .34); }

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

.btn--sm { padding: 11px 20px; font-size: 15px; }
.btn--full { width: 100%; }

/* ---------- 5. Шапка ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
/* Пока страница не прокручена, шапка полностью прозрачная: фон
   проходит под ней без ступеньки. Только с JS — без скрипта класс
   is-stuck не появится и шапка должна остаться плотной. */
.js .topbar { background: transparent; backdrop-filter: none; }

.topbar.is-stuck {
  border-bottom-color: var(--line);
  background: var(--topbar-bg);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 74px;
}

/* Знак: буква «v» как выделенный элемент в инспекторе — четыре
   маркера по углам повторяют порядок слоёв box-model (content,
   padding, border, margin). Единственное место, кроме героя и
   схемы, где все четыре цвета стоят рядом. */
.logo {
  --logo-plate: var(--plate-soft);
  --logo-size: 30px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo__type { display: inline-flex; align-items: baseline; }

.logo__mark {
  width: var(--logo-size);
  height: var(--logo-size);
  flex: none;
  overflow: visible;
}
.logo__plate { fill: var(--logo-plate); }
.logo__frame { fill: none; stroke: #fff; stroke-opacity: .14; stroke-width: .8; }
.logo__v {
  fill: none;
  stroke: var(--c-content);
  stroke-width: 3;
}
.logo__pin { transition: transform .28s var(--ease); }
.logo__pin--tl { fill: var(--c-content) }
.logo__pin--tr { fill: var(--c-padding) }
.logo__pin--br { fill: var(--c-border) }
.logo__pin--bl { fill: var(--c-margin) }

/* Наведение — как будто элемент взяли за маркеры выделения. */
.logo:hover .logo__pin--tl { transform: translate(-.85px, -.85px) }
.logo:hover .logo__pin--tr { transform: translate(.85px, -.85px) }
.logo:hover .logo__pin--br { transform: translate(.85px, .85px) }
.logo:hover .logo__pin--bl { transform: translate(-.85px, .85px) }

.logo__caret {
  width: 9px;
  height: 18px;
  margin-left: 4px;
  background: var(--accent);
  transform: translateY(2px);
  animation: blink 1.15s steps(1) infinite;
}
@keyframes blink { 0%, 50% { opacity: 1 } 50.01%, 100% { opacity: 0 } }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.burger span {
  width: 18px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child  { transform: translateY(-3.5px) rotate(-45deg); }

/* Переключатель темы. Иконка показывает тему, в которую переключишь:
   в тёмной — солнце, в светлой — месяц. Без JS кнопка прячется:
   переключать нечем, а тема остаётся тёмной по умолчанию. */
.theme {
  display: none;
  width: 44px;
  height: 44px;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.js .theme { display: inline-flex; }
.theme:hover { border-color: var(--accent); color: var(--accent); }
.theme:active { transform: scale(.93); }

.theme__icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}
.theme__icon--moon { fill: currentColor; stroke: none; }

[data-theme="dark"] .theme__icon--moon,
[data-theme="light"] .theme__icon--sun { display: none; }

/* ---------- 6. Фон сайта ---------- */

/* Слой прибит к вьюпорту (fixed) и лежит под контентом (z-index: -1):
   фон виден на всей странице, а не только в герое, и не уезжает при
   прокрутке — пятна и так двигаются сами. Секции поверх него сделаны
   полупрозрачными (см. --glass), тёмные блоки в конце — почти плотными.
     ::before — статичные пятна для случая без JS;
     ::after  — сетка-оверлей с шагом 38px, как в инспекторе. */
body { position: relative; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg-base);
}

.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
}

/* Запасной статичный вариант: без JS и при prefers-reduced-motion
   пятна остаются нарисованными градиентами, скрипт их не трогает. */
.site-bg::before {
  inset: 0;
  background:
    radial-gradient(46% 42% at 16% 14%, rgba(74, 125, 255, .48), transparent 70%),
    radial-gradient(42% 38% at 88%  2%, rgba(121, 201, 139, .31), transparent 72%),
    radial-gradient(38% 42% at 99% 50%, rgba(239, 193, 92,  .29), transparent 70%),
    radial-gradient(40% 40% at  1% 70%, rgba(240, 138, 93,  .31), transparent 72%);
  filter: blur(12px);
  animation: bg-drift 26s ease-in-out infinite alternate;
  transition: opacity .5s var(--ease);
}
@keyframes bg-drift {
  from { transform: translate3d(-1.4%, -1%, 0) scale(1.02); }
  to   { transform: translate3d( 1.4%,  1.4%, 0) scale(1.07); }
}

/* Живые пятна: позиции считает script.js, сюда приходят только
   transform'ы — поэтому анимация идёт на композиторе. Градиент
   у каждого пятна тоже ставит скрипт (цвет и прозрачность). */
.site-bg.is-live::before { opacity: 0; }

.site-bg__blob {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity .6s var(--ease);
  will-change: transform;
}
.site-bg.is-live .site-bg__blob { opacity: 1; }

/* Волна от тычка: кольцо запечено в градиент, поэтому при scale
   толщина растёт вместе с радиусом — читается как расходящийся круг. */
.site-bg__ripple {
  position: absolute;
  width: 460px;
  height: 460px;
  margin: -230px 0 0 -230px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(74, 125, 255, .06) 46%,
    rgba(74, 125, 255, .50) 60%,
    rgba(74, 125, 255, .14) 70%,
    transparent 80%);
  animation: site-ripple .9s var(--ease) forwards;
}
@keyframes site-ripple {
  from { transform: scale(.08); opacity: 1; }
  to   { transform: scale(1);   opacity: 0; }
}

/* Сетка ровная по всему слою и без маски. Слой прибит к вьюпорту, и
   любой вертикальный градиент в нём — базовая заливка, виньетка на
   сетке — повторяется на каждом экране одинаково: получается стык
   ровно по границе экрана, будто страница склеена из отдельных
   листов. Поэтому --bg-base плоский, а сетка одинаковой плотности
   сверху донизу; всю разницу яркости дают пятна, они двигаются. */
.site-bg::after {
  inset: 0;
  background-image:
    linear-gradient(to right,  var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
}

.hero { padding-block: clamp(52px, 8vw, 96px) clamp(40px, 4vw, 56px); }
.hero__inner { max-width: 1000px; }

.hero__title {
  font-size: clamp(30px, 6.6vw, 74px);
  font-weight: 800;
  letter-spacing: -.035em;
  hyphens: auto;
}

.hero__lead {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 58ch;
  margin-top: 46px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero__facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 64px 0 0;
  background: var(--glass-line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  background: var(--glass);
  backdrop-filter: var(--blur);
  padding: 22px 24px;
}
.fact dt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.fact dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 600;
  letter-spacing: -.02em;
}

/* ---------- 7. Услуги ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 20px;
}
.card {
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 125, 255, .45);
}
.card__mark {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 15.5px; margin-bottom: 22px; }
.card__meta {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- 8. Box-model ---------- */
.method__grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1.05fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

/* Схема стоит на плотной подложке темы, а не на стекле: её слои
   нарисованы полупрозрачными цветами, и живой фон под ними уводит
   их в грязь. По той же причине на тёмной теме слои плотнее —
   иначе оранжевый и жёлтый уходят в бурый. */
.bm {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  position: sticky;
  top: 110px;
}
.bm__layer {
  position: relative;
  border-radius: 8px;
  padding: 40px 22px 22px;
  transition: filter .22s var(--ease), transform .22s var(--ease);
}
.bm__layer--margin  { background: rgba(240, 138, 93, .34); }
.bm__layer--border  { background: rgba(239, 193, 92, .40); }
.bm__layer--padding { background: rgba(121, 201, 139, .38); }
.bm__layer--content {
  background: rgba(74, 125, 255, .46);
  padding-bottom: 66px;
}
[data-theme="light"] .bm__layer--margin  { background: rgba(240, 138, 93, .22); }
[data-theme="light"] .bm__layer--border  { background: rgba(239, 193, 92, .30); }
[data-theme="light"] .bm__layer--padding { background: rgba(121, 201, 139, .30); }
[data-theme="light"] .bm__layer--content { background: rgba(74, 125, 255, .26); }
.bm__tag {
  position: absolute;
  top: 12px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--ink);
  opacity: .68;
}
.bm.is-focused .bm__layer { filter: saturate(.15) opacity(.55); }
.bm.is-focused .bm__layer.is-active { filter: none; }
.bm.is-focused .bm__layer.is-active > .bm__tag { opacity: 1; font-weight: 700; }

.layers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.layer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.layer:hover { background: var(--glass); border-color: var(--line); }
.layer__dot {
  width: 13px; height: 13px;
  border-radius: 4px;
  background: var(--dot);
  margin-top: 8px;
}
.layer h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.layer p { color: var(--muted); font-size: 15.5px; }
.layer__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* ---------- 9. Процесс ---------- */

/* Своей подложки и рамок у секции нет. Раньше здесь была полупрозрачная
   плашка --band с border-block: на тёмной теме она почти не читалась, а
   на светлой шла заметной белой полосой — и в обеих темах две линии
   разрезали сквозной фон пополам, будто процесс начинает страницу
   заново. Секцию и так держат карточки шагов на стекле. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1px;
  background: var(--glass-line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.step {
  background: var(--glass);
  backdrop-filter: var(--blur);
  padding: 34px 30px 32px;
  transition: background-color .22s var(--ease);
}
.step:hover { background: var(--glass-strong); }
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 11px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- 10. Стек ---------- */
.stack { padding-block: clamp(56px, 6vw, 86px); }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 9px 16px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--accent-ink); }

/* ---------- 11. Стоимость ---------- */
.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.tier {
  position: relative;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.tier--lead {
  border-color: var(--accent);
  border-width: 1.5px;
  box-shadow: var(--shadow-md);
}
.tier__flag {
  position: absolute;
  top: -12px;
  left: 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.tier__name { font-size: 20px; font-weight: 600; margin-bottom: 18px; }
.tier__price {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 36px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.tier__price span {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.tier__term {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tier__list { list-style: none; margin: 24px 0 30px; padding: 0; display: grid; gap: 12px; }
.tier__list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  color: var(--ink);
}
.tier__list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  opacity: .35;
}
.tier .btn { margin-top: auto; }

.pricing__note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- 12. Почему я ---------- */
.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 34px 40px;
}
.reason { padding-top: 22px; border-top: 2px solid var(--ink); }
.reason h3 { font-size: 19px; font-weight: 600; margin-bottom: 11px; }
.reason p { color: var(--muted); font-size: 15.5px; }

/* ---------- 13. FAQ ---------- */
.qa { border-top: 1px solid var(--line); max-width: 880px; }
.q { border-bottom: 1px solid var(--line); }
.q summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 46px 24px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  letter-spacing: -.02em;
  transition: color .18s var(--ease);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--accent-ink); }
.q summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 33px;
  width: 13px; height: 13px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .22s var(--ease);
}
.q[open] summary::after { transform: rotate(225deg); top: 37px; }
.q p { color: var(--muted); padding-bottom: 26px; max-width: 72ch; font-size: 16px; }

/* ---------- 14. Контакт ---------- */
/* Тёмные блоки в конце не глухие: сквозь них фон едва подсвечивает,
   поэтому страница не обрывается ступенькой. Блюр тут не нужен —
   за ними и так только мягкий градиент. */
.contact { background: var(--glass-ink); color: #fff; }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 460px);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.contact__lead { color: #A9B3C1; font-size: 17px; max-width: 46ch; margin-top: 18px; }

.direct { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 1px; background: #262C36; border: 1px solid #262C36; border-radius: var(--radius); overflow: hidden; }
.direct li { background: var(--plate); display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px 20px; }
.direct__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #7A8494; }
.direct a { font-weight: 500; text-decoration: none; transition: color .18s var(--ease); }
.direct a:hover { color: #8FB0FF; }

.form { background: var(--plate-soft); border: 1px solid #262C36; border-radius: var(--radius-lg); padding: 30px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7A8494;
  margin-bottom: 9px;
}
.field input, .field textarea {
  width: 100%;
  background: var(--plate);
  border: 1.5px solid #2E3540;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color .18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #5A6373; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--c-margin); }

.form__note { margin-top: 16px; font-size: 13.5px; color: #7A8494; }
.form__note.is-error { color: var(--c-margin); }
.form__note.is-ok { color: var(--c-padding); }

/* ---------- 15. Подвал ---------- */
.footer { background: var(--glass-ink); color: #7A8494; padding-block: 34px 44px; border-top: 1px solid #20262F; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 34px; }
.logo--footer {
  --logo-plate: var(--plate-soft);
  --logo-size: 26px;
  color: #fff;
  margin-right: auto;
  font-size: 18px;
  gap: 9px;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer__nav a { font-size: 14.5px; text-decoration: none; transition: color .18s var(--ease); }
.footer__nav a:hover { color: #fff; }
.footer__legal { flex-basis: 100%; font-size: 13.5px; padding-top: 8px; border-top: 1px solid #20262F; margin-top: 4px; }

/* ---------- 16. Появление при скролле ----------
   Скрываем блоки только когда JS доступен: без него контент
   должен остаться видимым — и для людей, и для поисковиков. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--delay, 0ms);
}

/* ---------- 17. Адаптив ---------- */
/* Шапка уезжает в бургер с 980 px, а не с 860: шести пунктов меню
   вместе с кнопкой хватает, чтобы строка перестала помещаться уже
   около 970 px — страница получала горизонтальную прокрутку. */
@media (max-width: 980px) {
  .method__grid { grid-template-columns: 1fr; }
  .bm { position: static; }
  .contact__inner { grid-template-columns: 1fr; }
  .hero__facts { grid-template-columns: repeat(2, 1fr); }

  .topbar__cta { display: none; }
  .burger { display: flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero__facts { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .card, .tier, .step { padding-inline: 22px; }
  .form { padding: 22px; }
  .direct li { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---------- 18. Меньше движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .site-bg::before { animation: none !important; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .card:hover { transform: none; }
}
