/* ============================================================
   NUMERIX — style.css
   Палитра: тёмный космос + неон
   Mobile first: базовые стили = телефон, медиа-запросы вверх
   ============================================================ */

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

* { margin: 0; padding: 0; }

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

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

button,
input,
textarea,
select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

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

a,
button,
label,
input,
summary { -webkit-tap-highlight-color: transparent; }

a,
button { touch-action: manipulation; }

ul, ol { list-style: none; }

/* ---------------- Variables ---------------- */
:root {
  /* Цвета */
  --bg: #05060e;
  --bg-2: #0b0a1f;
  --violet: #7c5cff;
  --violet-dim: #5b43c9;
  --cyan: #22d3ee;
  --pink: #f062c0;
  --text: #edeef7;
  --muted: #a6abc0;
  --muted-2: #7c8199;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .17);
  --glass: rgba(255, 255, 255, .035);
  --glass-2: rgba(255, 255, 255, .06);

  /* Фон карточек: достаточно плотный, чтобы текст читался поверх 3D */
  --card: rgba(12, 13, 30, .82);
  --card-soft: rgba(12, 13, 30, .68);
  --text-shadow: 0 2px 16px rgba(4, 5, 12, .9);

  /* Тени и свечение */
  --glow-violet: 0 0 40px rgba(124, 92, 255, .35);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, .3);
  --shadow-card: 0 24px 60px -30px rgba(0, 0, 0, .9);

  /* Геометрия */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  /* Ритм */
  --gap: 1rem;
  --pad-x: 1.25rem;
  --section-y: 3.75rem;
  --header-h: 64px;

  /* Типографика */
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Helvetica Neue", Arial, sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", "Roboto Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* ---------------- Global ---------------- */
body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* iOS игнорирует overflow:hidden на body, поэтому фиксируем позицию.
   Скролл возвращается в script.js через сохранённое смещение. */
body.is-locked {
  position: fixed;
  right: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
}

::selection {
  background: rgba(124, 92, 255, .45);
  color: #fff;
}

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

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: .6rem 1rem;
  background: var(--violet);
  border-radius: var(--r-sm);
}

.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: max(var(--pad-x), env(safe-area-inset-left)) max(var(--pad-x), env(safe-area-inset-right));
}

.container--narrow { max-width: 820px; }

/* ---------------- Фон: 3D-сцена + подложка ---------------- */
#bg-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

#bg-scene.is-ready { opacity: 1; }

.bg-fallback {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 78% 8%, rgba(124, 92, 255, .22), transparent 60%),
    radial-gradient(100% 70% at 12% 32%, rgba(34, 211, 238, .13), transparent 62%),
    radial-gradient(140% 90% at 50% 110%, rgba(240, 98, 192, .12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 45%, var(--bg) 100%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: .18;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

main,
.footer,
.promo { position: relative; z-index: 3; }

/* ---------------- Промо-баннер ---------------- */
.promo {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .12));
  backdrop-filter: blur(12px);
}

.promo.is-hidden { display: none; }

.promo__inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 40px;
  font-size: .78rem;
}

.promo__dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s var(--ease-io) infinite;
}

.promo__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.promo__code {
  padding: .1rem .4rem;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: 6px;
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .74rem;
}

.promo__link {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 40px;
  padding-block: .3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  color: var(--text);
  font-weight: 600;
}

.promo__close {
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  transition: color .2s;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

/* ---------------- Шапка ---------------- */
/* Размытие вынесено в ::before: backdrop-filter на самой шапке
   сделал бы её containing block для фиксированного мобильного меню */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: border-color .35s var(--ease);
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 14, .72);
  backdrop-filter: blur(20px) saturate(140%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}

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

.header.is-stuck::before { opacity: 1; }

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: var(--header-h);
}

.logo {
  display: flex;
  flex: none;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
}

.logo__mark { display: flex; }

.logo__text {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: min(78vw, 320px);
  height: 100dvh;
  padding: calc(var(--header-h) + 2rem) 1.5rem 2rem;
  border-left: 1px solid var(--line);
  background: rgba(8, 8, 20, .96);
  backdrop-filter: blur(24px);
  visibility: hidden;
  transform: translateX(100%);
  transition: transform .45s var(--ease), visibility .45s;
}

.nav.is-open {
  visibility: visible;
  transform: translateX(0);
}

.nav__link {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1.05rem;
  transition: color .2s;
}

.nav__link:hover,
.nav__link.is-active { color: var(--text); }

.nav__foot {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.nav__tg {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--cyan);
  font-size: .9rem;
}

.header__actions {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-end;
  gap: .5rem;
}

.header__actions .header__cta { display: none; }

.burger {
  position: relative;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  width: 42px;
  height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .35s var(--ease), opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------------- Кнопки ---------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
  text-align: center;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease),
              background .3s, border-color .3s, color .3s;
}

.btn:active { transform: scale(.975); }

.btn--primary {
  background: linear-gradient(135deg, var(--violet), #9a7bff 45%, var(--cyan));
  color: #06060f;
  box-shadow: 0 10px 30px -12px rgba(124, 92, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.btn--primary:hover {
  box-shadow: 0 16px 44px -14px rgba(124, 92, 255, 1), 0 0 0 1px rgba(255, 255, 255, .12) inset;
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: var(--glass);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  border-color: rgba(124, 92, 255, .6);
  background: rgba(124, 92, 255, .12);
  transform: translateY(-2px);
}

.btn--sm { min-height: 40px; padding: .5rem 1rem; font-size: .85rem; }
.btn--lg { min-height: 56px; padding: .9rem 1.9rem; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---------------- Типографика секций ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .9rem;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow__pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.4s var(--ease-io) infinite;
}

/* Тень нельзя: при background-clip:text она рисуется ПОВЕРХ градиента
   и глушит его. Вместо неё — свечение через drop-shadow. */
.grad {
  background: linear-gradient(100deg, #3ee0f7, #cbbcff 45%, #ff7ad0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 3px 26px rgba(124, 92, 255, .45));
}

.section { padding-block: var(--section-y); }

.section__head { margin-bottom: 2.25rem; }

.section__title {
  text-shadow: var(--text-shadow);
  font-size: clamp(1.75rem, 6.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}

.section__lead {
  max-width: 62ch;
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1rem;
  text-shadow: var(--text-shadow);
}

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  padding-block: 1.75rem 3.5rem;
}

/* Mobile first: заголовок → квадрат Пифагора → форма */
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas: "head" "matrix" "form";
  gap: 1.75rem;
}

.hero__head { grid-area: head; }
.hero__matrix { grid-area: matrix; }
.hero__form { grid-area: form; }

.hero__title {
  text-shadow: var(--text-shadow);
  font-size: clamp(2.3rem, 11vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.hero__lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.02rem;
  text-shadow: var(--text-shadow);
}

/* Калькулятор */
.calc {
  margin-top: 1.25rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(10, 11, 26, .82);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.calc__row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: .85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  flex: 1;
  min-width: 0;
}

.field__label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.field__label i { color: var(--pink); font-style: normal; }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: .7rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 1rem;
  transition: border-color .25s, background .25s, box-shadow .25s;
}

.field__input::placeholder { color: var(--muted-2); }

.field__input:focus {
  border-color: rgba(124, 92, 255, .8);
  background: rgba(124, 92, 255, .07);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .13);
  outline: none;
}

.field__input.is-error {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(240, 98, 192, .12);
}

.field__input--area { resize: vertical; min-height: 72px; }

.calc__note {
  margin-top: .8rem;
  color: var(--muted-2);
  font-size: .78rem;
  line-height: 1.45;
}

.calc__note.is-error { color: var(--pink); }

/* Строка доверия */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.trust__item {
  color: var(--muted);
  font-size: .82rem;
}

.trust__item b {
  display: block;
  color: var(--text);
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -.03em;
}

/* ---------------- Квадрат Пифагора ---------------- */
.hero__matrix { position: relative; }

/* Панель почти прозрачная: сквозь неё видно 3D-кубы */
.pyth {
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: rgba(9, 10, 24, .42);
  box-shadow: var(--shadow-card);
}

.pyth__head { margin-bottom: .8rem; }

.pyth__title {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.pyth__hint {
  display: flex;
  gap: .45rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: .55rem .8rem;
  border: 1px solid rgba(34, 211, 238, .38);
  border-radius: 999px;
  background: rgba(34, 211, 238, .09);
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  animation: hintGlow 3.4s var(--ease-io) infinite;
}

.pyth__hint svg { flex: none; }

.pyth__hint.is-hot {
  border-color: rgba(34, 211, 238, .6);
  background: rgba(34, 211, 238, .16);
}

@keyframes hintGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
  50% { box-shadow: 0 0 22px -4px rgba(34, 211, 238, .55); }
}

.pyth__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .5rem;
}

.cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: .4rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .022);
  overflow: hidden;
  text-align: center;
  transition: transform .35s var(--ease), border-color .3s, background .3s, box-shadow .35s;
}

.cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 80% at 50% 120%, rgba(124, 92, 255, .35), transparent 70%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.cell:hover,
.cell.is-active {
  border-color: rgba(124, 92, 255, .75);
  background: rgba(124, 92, 255, .09);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .3), var(--glow-violet);
  transform: translateY(-3px);
}

.cell:hover::before,
.cell.is-active::before { opacity: 1; }

.cell__val {
  position: relative;
  font-family: var(--font-num);
  font-size: clamp(1.35rem, 6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  transition: color .3s, text-shadow .3s;
}

.cell__name {
  position: relative;
  color: rgba(232, 233, 243, .62);
  font-size: .58rem;
  line-height: 1.2;
  letter-spacing: .01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .95), 0 0 3px rgba(0, 0, 0, .9);
}

.cell--empty .cell__val {
  color: var(--muted-2);
  text-shadow: none;
}

.cell--filled .cell__val {
  color: #fff;
  text-shadow: 0 0 18px rgba(124, 92, 255, .95), 0 0 40px rgba(34, 211, 238, .5);
}

.cell--strong { border-color: rgba(34, 211, 238, .45); }

.cell--strong .cell__val {
  color: var(--cyan);
  text-shadow: 0 0 20px rgba(34, 211, 238, .9);
}

.cell--multi .cell__val { font-size: clamp(.85rem, 3.6vw, 1.15rem); }

.cell.is-pop { animation: cellPop .55s var(--ease); }

@keyframes cellPop {
  0% { transform: scale(.86) translateY(6px); opacity: .3; }
  60% { transform: scale(1.06) translateY(-4px); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}

.pyth__readout {
  min-height: 74px;
  margin-top: .9rem;
  padding: .8rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(8, 9, 22, .7);
}

.pyth__next {
  display: flex;
  gap: .4rem;
  align-items: center;
  justify-content: center;
  margin-top: .7rem;
  padding: .7rem;
  border: 1px solid rgba(34, 211, 238, .4);
  border-radius: var(--r-md);
  background: rgba(34, 211, 238, .09);
  color: var(--cyan);
  font-size: .85rem;
  font-weight: 600;
  animation: nextIn .5s var(--ease);
  transition: background .25s, border-color .25s;
}

.pyth__next[hidden] { display: none; }

.pyth__next:hover {
  border-color: rgba(34, 211, 238, .8);
  background: rgba(34, 211, 238, .16);
}

@keyframes nextIn {
  from { opacity: 0; transform: translateY(-6px); }
}

.pyth__placeholder,
.readout__text {
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5;
}

.readout__title {
  margin-bottom: .3rem;
  color: var(--text);
  font-size: .9rem;
  font-weight: 600;
}

.readout__title span { color: var(--cyan); }

/* ---------------- Подсказка скролла ---------------- */
.scroll-hint {
  display: none;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  transform: translateX(-50%);
}

.scroll-hint__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, var(--violet), transparent);
  animation: slide 2.4s var(--ease-io) infinite;
}

.scroll-hint__text {
  color: var(--muted-2);
  font-size: .64rem;
  letter-spacing: .28em;
  text-transform: uppercase;
}

@keyframes slide {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------------- Результат расчёта ---------------- */
.result__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
}

.rcard {
  position: relative;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  overflow: hidden;
}

.rcard__top {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: .7rem;
}

.rcard__num {
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(124, 92, 255, .5);
  border-radius: 14px;
  background: rgba(124, 92, 255, .12);
  color: #fff;
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 600;
  text-shadow: 0 0 16px rgba(124, 92, 255, .9);
}

.rcard__label {
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.rcard__name {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.rcard__text {
  color: var(--muted);
  font-size: .92rem;
}

.rcard--locked { color: var(--muted-2); }

.rcard--locked .rcard__body {
  filter: blur(5px);
  opacity: .5;
  user-select: none;
}

.rcard__lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: .5rem;
  background: linear-gradient(180deg, rgba(6, 7, 18, .35), rgba(6, 7, 18, .8));
}

.rcard__lock span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 11, 26, .8);
  color: var(--muted);
  font-size: .76rem;
}

.result__cta {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
  margin-top: 1.75rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid rgba(124, 92, 255, .3);
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(34, 211, 238, .07));
  text-align: center;
}

.result__cta-text {
  color: var(--text);
  font-size: 1rem;
}

/* ---------------- 12 параметров: компактные плитки ---------------- */
.params {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.ptile {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}

.ptile.is-open {
  border-color: rgba(124, 92, 255, .45);
  background: rgba(124, 92, 255, .08);
}

.ptile__btn {
  display: flex;
  gap: .75rem;
  align-items: center;
  width: 100%;
  padding: .85rem 1rem;
  text-align: left;
  transition: background .25s;
}

.ptile__btn:hover { background: rgba(124, 92, 255, .06); }

.ptile__num {
  flex: none;
  color: var(--violet);
  font-family: var(--font-num);
  font-size: .76rem;
  letter-spacing: .1em;
}

.ptile__title {
  flex: 1;
  min-width: 0;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.ptile__icon {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
}

.ptile__icon::before,
.ptile__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 11px;
  height: 1.5px;
  background: var(--violet);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease);
}

.ptile__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.ptile.is-open .ptile__icon::after { transform: translate(-50%, -50%) rotate(0); }

.ptile__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s var(--ease);
}

.ptile.is-open .ptile__body { grid-template-rows: 1fr; }

.ptile__inner { overflow: hidden; }

.ptile__text {
  padding: 0 1rem .95rem 2.6rem;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.55;
}

/* ---------------- Шаги ---------------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.step__num {
  display: block;
  margin-bottom: .75rem;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -.04em;
}

.step__title {
  margin-bottom: .45rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.step__text {
  color: var(--muted);
  font-size: .9rem;
}

/* ---------------- Фрагмент разбора ---------------- */
.sample__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ticks {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 1.25rem 0 1.5rem;
}

.ticks li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--muted);
  font-size: .92rem;
  text-shadow: var(--text-shadow);
}

.ticks li::before {
  content: "";
  position: absolute;
  top: .5rem;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.page__tabs {
  display: flex;
  gap: .35rem;
  margin-bottom: .75rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

.page__tab {
  flex: 1;
  padding: .5rem .4rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 500;
  transition: background .25s, color .25s;
}

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

.page__tab.is-active {
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  color: #06060f;
  font-weight: 600;
}

.page__paper {
  position: relative;
  padding: 1.5rem 1.25rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)),
    var(--card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.page__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .8rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page__h {
  margin-bottom: .8rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.page__p {
  margin-bottom: .8rem;
  color: rgba(232, 233, 243, .78);
  font-size: .88rem;
  line-height: 1.65;
}

.page__fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 110px;
  background: linear-gradient(180deg, transparent, rgba(7, 8, 20, .96) 70%);
}

.page__more {
  position: absolute;
  right: 0;
  bottom: .9rem;
  left: 0;
  color: var(--muted-2);
  font-size: .72rem;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.sample__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  align-items: flex-start;
}

.sample__link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: .85rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

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

.page__cap {
  margin-top: .7rem;
  color: var(--muted-2);
  font-size: .75rem;
  text-align: center;
}

/* ---------------- Отзывы ---------------- */
.section__head--center { text-align: center; }

.section__head--center .section__lead { margin-inline: auto; }

#reviews[hidden],
#stats[hidden] { display: none; }

#reviews:not([hidden]) + #stats:not([hidden]) { margin-top: -1.5rem; }

.reviews {
  display: flex;
  gap: 1rem;
  margin-inline: calc(var(--pad-x) * -1);
  padding-inline: var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.reviews::-webkit-scrollbar { display: none; }

.review {
  position: relative;
  display: flex;
  flex: 0 0 min(85%, 340px);
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  scroll-snap-align: center;
  transition: border-color .35s, transform .35s var(--ease);
}

.review:hover {
  border-color: rgba(124, 92, 255, .45);
  transform: translateY(-4px);
}

.review__top {
  display: flex;
  gap: .75rem;
  align-items: center;
  margin-bottom: .9rem;
}

.review__avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--tone-line, rgba(34, 211, 238, .45));
  border-radius: 50%;
  background: var(--tone-bg, rgba(34, 211, 238, .12));
  color: var(--tone, var(--cyan));
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.review__who { flex: 1; min-width: 0; }

.review__name {
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.015em;
}

.review__badge {
  display: inline-block;
  margin-top: .3rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--tone-bg, rgba(34, 211, 238, .14));
  color: var(--tone, var(--cyan));
  font-size: .68rem;
  font-weight: 600;
}

.review__quote {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--tone-line, rgba(34, 211, 238, .3));
  border-radius: 12px;
  background: var(--tone-bg, rgba(34, 211, 238, .1));
  color: var(--tone, var(--cyan));
  opacity: .85;
}

.review__text {
  flex: 1;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.65;
}

.review__date {
  margin-top: 1rem;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .74rem;
}

/* Четыре оттенка карточек по кругу */
.review[data-tone="0"] { --tone: #22d3ee; --tone-bg: rgba(34, 211, 238, .12); --tone-line: rgba(34, 211, 238, .42); }
.review[data-tone="1"] { --tone: #a78bfa; --tone-bg: rgba(167, 139, 250, .14); --tone-line: rgba(167, 139, 250, .42); }
.review[data-tone="2"] { --tone: #f062c0; --tone-bg: rgba(240, 98, 192, .13); --tone-line: rgba(240, 98, 192, .4); }
.review[data-tone="3"] { --tone: #7c5cff; --tone-bg: rgba(124, 92, 255, .16); --tone-line: rgba(124, 92, 255, .45); }

.reviews__nav {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
  margin-top: 1.25rem;
}

.reviews__dots { display: flex; gap: .45rem; }

.reviews__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  transition: background .3s, transform .3s;
}

.reviews__dot.is-on {
  background: var(--cyan);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(34, 211, 238, .8);
}

.reviews__swipe {
  display: flex;
  gap: .4rem;
  align-items: center;
  color: var(--cyan);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------------- Опыт в цифрах ---------------- */
.stats-band { padding-block: 0 3rem; }

.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--line);
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  align-items: center;
  padding: 1.35rem .75rem;
  background: var(--card);
  text-align: center;
}

.stat__num {
  display: flex;
  gap: .35rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
}

.stat__side {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: -.005em;
}

.stat__value {
  color: var(--text);
  font-size: clamp(1.7rem, 6.5vw, 2.15rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-shadow: 0 0 26px rgba(124, 92, 255, .45);
}

.stat__label {
  color: var(--muted-2);
  font-size: .8rem;
  line-height: 1.35;
}

.stats__note {
  max-width: 60ch;
  margin: 1rem auto 0;
  color: var(--muted-2);
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}

/* ---------------- Тарифы ---------------- */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
}

.plan:hover {
  border-color: rgba(124, 92, 255, .5);
  transform: translateY(-5px);
  box-shadow: 0 30px 70px -40px rgba(124, 92, 255, .9);
}

.plan--featured {
  border-color: rgba(124, 92, 255, .55);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(34, 211, 238, .07)),
    rgba(10, 11, 26, .88);
  box-shadow: 0 24px 70px -40px rgba(124, 92, 255, 1);
}

.plan__badge {
  position: absolute;
  top: -11px;
  left: 1.25rem;
  padding: .25rem .7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  color: #06060f;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.plan__name {
  margin-bottom: .5rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.025em;
}

.plan__price {
  margin-bottom: .3rem;
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.plan__meta {
  margin-bottom: 1.1rem;
  color: var(--muted-2);
  font-size: .78rem;
}

.plan__list {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.35rem;
}

.plan__list li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.45;
}

.plan__list li::before {
  content: "";
  position: absolute;
  top: .45rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px rgba(124, 92, 255, .8);
}

.plan__foot { margin-top: auto; }

.plan__need {
  margin-top: .7rem;
  color: var(--muted-2);
  font-size: .72rem;
  line-height: 1.4;
  text-align: center;
}

.plans__foot {
  margin-top: 1.5rem;
  color: var(--muted-2);
  font-size: .85rem;
  text-align: center;
}

.plans__foot a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, .4);
}

/* ---------------- FAQ ---------------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.qa {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  transition: border-color .3s, background .3s;
}

.qa.is-open {
  border-color: rgba(124, 92, 255, .45);
  background: rgba(124, 92, 255, .05);
}

.qa__btn {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.05rem 1.1rem;
  text-align: left;
  font-size: .97rem;
  font-weight: 500;
}

.qa__icon {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
}

.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 1.5px;
  background: var(--violet);
  transform: translate(-50%, -50%);
  transition: transform .35s var(--ease);
}

.qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.qa.is-open .qa__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.qa__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease);
}

.qa.is-open .qa__body { grid-template-rows: 1fr; }

.qa__inner { overflow: hidden; }

.qa__text {
  padding: 0 1.1rem 1.1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ---------------- Финальный CTA / портал ---------------- */
.cta {
  position: relative;
  padding-block: 4rem 4.5rem;
  overflow: hidden;
}

.cta__inner {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
}

.cta__portal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: min(94vw, 720px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta__ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(124, 92, 255, .3);
  border-radius: 50%;
  animation: ringSpin 24s linear infinite;
}

.cta__ring--1 {
  width: 62%;
  height: 62%;
  border-color: rgba(34, 211, 238, .28);
  box-shadow: 0 0 60px rgba(34, 211, 238, .18) inset, 0 0 40px rgba(34, 211, 238, .12);
}

.cta__ring--2 {
  width: 82%;
  height: 82%;
  border-style: dashed;
  animation-duration: 40s;
  animation-direction: reverse;
}

.cta__ring--3 {
  width: 100%;
  height: 100%;
  border-color: rgba(240, 98, 192, .16);
  animation-duration: 60s;
}

@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.cta__content { position: relative; }

.cta__title {
  text-shadow: var(--text-shadow);
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.045em;
}

.cta__price {
  max-width: 26ch;
  margin: .9rem auto 0;
  color: var(--muted);
  font-size: .95rem;
}

.cta__price b {
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.cta__actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-top: 1.75rem;
}

.cta__note {
  max-width: 44ch;
  margin: 1.25rem auto 0;
  color: var(--muted-2);
  font-size: .8rem;
}

/* ---------------- Футер ---------------- */
.footer {
  padding-block: 2.5rem calc(4.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(4, 5, 12, .72);
  backdrop-filter: blur(16px);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.35rem;
}

.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: .87rem;
  transition: color .2s;
}

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

/* Реквизиты и документы */
.legal {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card-soft);
}

.legal__title {
  margin-bottom: .75rem;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.legal__list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.legal__row {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
  font-size: .82rem;
}

.legal__row dt {
  min-width: 8.5rem;
  color: var(--muted-2);
}

.legal__row dd {
  min-width: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.legal__row dd a { border-bottom: 1px solid rgba(255, 255, 255, .25); }

.legal__docs {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: .9rem;
}

.legal__docs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  align-self: flex-start;
  color: var(--cyan);
  font-size: .85rem;
  border-bottom: 1px solid rgba(34, 211, 238, .3);
  transition: color .2s;
}

.legal__docs a:hover { color: #7ce7fb; }

.legal__pay {
  color: var(--muted-2);
  font-size: .78rem;
}

.footer__disclaimer {
  max-width: 78ch;
  color: var(--muted-2);
  font-size: .74rem;
  line-height: 1.6;
}

.footer__copy {
  margin-top: 1.25rem;
  color: var(--muted-2);
  font-size: .78rem;
}

/* ---------------- Липкая кнопка оплаты (телефон) ---------------- */
.sticky-cta {
  position: fixed;
  right: .75rem;
  bottom: 0;
  left: .75rem;
  z-index: 90;
  display: flex;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: calc(.75rem + env(safe-area-inset-bottom));
  padding: .6rem .6rem .6rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 11, 26, .88);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 1);
  backdrop-filter: blur(18px);
  transform: translateY(160%);
  transition: transform .45s var(--ease);
}

.sticky-cta.is-visible { transform: translateY(0); }

.sticky-cta__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.sticky-cta__info b { font-size: .88rem; }

.sticky-cta__info span {
  color: var(--muted);
  font-size: .74rem;
  font-variant-numeric: tabular-nums;
}

/* ---------------- Модалка заказа ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: end center;
}

.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 4, 10, .75);
  backdrop-filter: blur(10px);
  animation: fade .3s ease;
}

.modal__panel {
  position: relative;
  width: 100%;
  max-height: 92dvh;
  padding: 1.5rem 1.25rem 2rem;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(180deg, rgba(16, 17, 38, .98), rgba(8, 9, 22, .99));
  box-shadow: 0 -30px 80px -30px rgba(124, 92, 255, .6);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  animation: slideUp .45s var(--ease);
}

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

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
}

.modal__close {
  position: absolute;
  top: .9rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  transition: color .2s, border-color .2s;
}

.modal__close:hover { color: var(--text); border-color: var(--line-strong); }

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
}

.modal__price {
  margin-top: .3rem;
  margin-bottom: 1.35rem;
  background: linear-gradient(100deg, var(--cyan), #b9a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.order {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}

.order[hidden] { display: none; }

.order__partner {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: .9rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
}

.order__partner[hidden] { display: none; }

.segmented {
  display: flex;
  gap: .35rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}

.segmented__item { flex: 1; }

.segmented__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented__item span {
  display: block;
  padding: .5rem .3rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .82rem;
  text-align: center;
  cursor: pointer;
  transition: background .25s, color .25s;
}

.segmented__item input:checked + span {
  background: linear-gradient(120deg, var(--violet), var(--cyan));
  color: #06060f;
  font-weight: 600;
}

.segmented__item input:focus-visible + span { outline: 2px solid var(--cyan); }

.check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  font-size: 16px;
  margin-top: .1rem;
  accent-color: var(--violet);
}

.check a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, .4);
}

.order__error {
  padding: .6rem .8rem;
  border: 1px solid rgba(240, 98, 192, .4);
  border-radius: var(--r-sm);
  background: rgba(240, 98, 192, .08);
  color: var(--pink);
  font-size: .82rem;
}

/* Модалка «Где вам удобнее» */
.modal__panel--slim { max-width: 440px; }

.contact__lead {
  margin-top: .3rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: .88rem;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.contact__item {
  display: flex;
  gap: .9rem;
  align-items: center;
  padding: .9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .035);
  transition: border-color .25s, background .25s, transform .25s var(--ease);
}

.contact__item:hover {
  border-color: var(--tone, var(--cyan));
  background: var(--tone-bg, rgba(34, 211, 238, .1));
  transform: translateY(-2px);
}

.contact__item--tg { --tone: #35a8e0; --tone-bg: rgba(53, 168, 224, .12); }
.contact__item--max { --tone: #a78bfa; --tone-bg: rgba(167, 139, 250, .12); }

.contact__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tone-bg);
  color: var(--tone);
}

.contact__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.contact__body b {
  font-size: .98rem;
  font-weight: 600;
}

.contact__body span {
  color: var(--muted-2);
  font-size: .78rem;
}

.contact__arrow {
  flex: none;
  color: var(--muted-2);
  font-size: 1.1rem;
}

.contact__vpn {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}

.contact__vpn a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, .35);
}

.contact__vpn b {
  padding: .05rem .35rem;
  border: 1px solid rgba(34, 211, 238, .35);
  border-radius: 5px;
  color: var(--cyan);
  font-family: var(--font-num);
  font-size: .72rem;
}

.modal__alt {
  color: var(--muted-2);
  font-size: .82rem;
  text-align: center;
}

.modal__alt a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal__alt a:hover { color: #7ce7fb; }

/* ---------------- Текстовые страницы (оферта, политика, реквизиты) ---------------- */
.doc {
  max-width: 820px;
  margin: 0 auto;
  padding-block: 2.5rem 4rem;
}

.doc__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .4rem;
  margin-bottom: 1.75rem;
  color: var(--cyan);
  font-size: .85rem;
}

.doc__back:hover { color: #7ce7fb; }

.doc__title {
  margin-bottom: .5rem;
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.doc__meta {
  margin-bottom: 2rem;
  color: var(--muted-2);
  font-size: .82rem;
}

.doc__body {
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
}

.doc__body h2 {
  margin: 1.75rem 0 .75rem;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -.02em;
}

.doc__body h2:first-child { margin-top: 0; }

.doc__body p,
.doc__body li {
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.7;
}

.doc__body ol,
.doc__body ul { margin: 0 0 .7rem 1.1rem; }

.doc__body ol { list-style: decimal; }
.doc__body ul { list-style: disc; }

.doc__body li::marker { color: var(--violet); }

.doc__body strong { color: var(--text); }

.doc__body a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(34, 211, 238, .3);
}

.req {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  margin-bottom: 1.5rem;
}

.req__row {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem .8rem;
  padding: .6rem 0;
  border-bottom: 1px solid var(--line);
}

.req__row:last-child { border-bottom: 0; }

.req__row dt {
  flex: none;
  width: 100%;
  color: var(--muted-2);
  font-size: .76rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.req__row dd {
  color: var(--text);
  font-size: .92rem;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

@media (min-width: 48em) {
  .doc__body { padding: 2.25rem; }

  .req__row dt { width: 13rem; font-size: .8rem; text-transform: none; letter-spacing: 0; }
}

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

.noscript {
  position: relative;
  z-index: 3;
  margin: 1rem var(--pad-x);
  padding: 1rem;
  border: 1px solid rgba(240, 98, 192, .4);
  border-radius: var(--r-md);
  background: rgba(240, 98, 192, .1);
  text-align: center;
}

/* ---------------- Появление при скролле ---------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- 480px и выше --- */
@media (min-width: 30em) {
  :root { --pad-x: 1.5rem; }

  .calc__row { flex-direction: row; }
  .cta__actions { flex-direction: row; justify-content: center; }
  .result__grid { grid-template-columns: repeat(2, 1fr); }
  .params { grid-template-columns: repeat(2, 1fr); }
  .cell__name { font-size: .62rem; }
  .stats { grid-template-columns: repeat(3, 1fr); }
}

/* --- 768px и выше (планшет) --- */
@media (min-width: 48em) {
  :root {
    --section-y: 6.5rem;
    --pad-x: 2rem;
    --header-h: 72px;
  }

  .promo__inner { justify-content: center; font-size: .82rem; }
  .promo__text { flex: none; }

  .steps { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .review { flex-basis: min(60%, 360px); }
  .legal { grid-template-columns: 1.4fr 1fr; gap: 2rem; padding: 1.75rem 2rem; }
  .pyth { padding: 1.5rem; }
  .pyth__grid { gap: .65rem; }
  .modal { place-items: center; }

  .cta__price { max-width: none; }

  .modal__panel {
    max-width: 560px;
    padding: 2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-xl);
    box-shadow: 0 40px 100px -40px rgba(124, 92, 255, .8);
  }

  .scroll-hint { display: flex; }
}

/* --- 1024px и выше (десктоп) --- */
@media (min-width: 64em) {
  :root { --section-y: 8rem; }

  html { scroll-padding-top: 100px; }

  .burger { display: none; }

  .sticky-cta { display: none; }

  .header__actions .header__cta { display: inline-flex; }

  .nav__foot {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.nav__tg {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--cyan);
  font-size: .9rem;
}

.header__actions { gap: 1rem; }

  .nav {
    position: static;
    flex-direction: row;
    gap: 1.75rem;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    backdrop-filter: none;
    visibility: visible;
    transform: none;
  }

  .nav__foot { display: none; }

  .nav__link {
    position: relative;
    padding: .35rem 0;
    border: 0;
    font-size: .88rem;
  }

  .nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
    transition: width .35s var(--ease);
  }

  .nav__link:hover::after,
  .nav__link.is-active::after { width: 100%; }

  .hero { padding-block: 3.5rem 6rem; }

  .hero__inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas:
      "head   matrix"
      "form   matrix";
    align-items: center;
    gap: 1.5rem 3.5rem;
  }

  .hero__head { align-self: end; }
  .hero__form { align-self: start; }
  .hero__matrix { justify-self: end; width: 100%; max-width: 480px; }

  .result__grid { grid-template-columns: repeat(3, 1fr); }

  .result__cta {
    flex-direction: row;
    justify-content: space-between;
    padding: 1.75rem 2rem;
    text-align: left;
  }

  .params { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: repeat(3, 1fr); }

  /* На десктопе отзывы — сетка, карусель не нужна */
  .reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }

  .review { flex-basis: auto; }

  .reviews__nav { display: none; }

  .stats-band { padding-block: .5rem 4rem; }

  .sample__inner {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .sample__copy { flex: 1 1 45%; }
  .page { flex: 1 1 55%; }

  .footer__top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* --- 1440px и выше --- */
@media (min-width: 90em) {
  :root { --pad-x: 2.5rem; }

  .container { max-width: 1320px; }
  .hero__matrix { max-width: 540px; }
}

/* --- Телефон в ландшафте: экран низкий, ужимаем первый экран --- */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --section-y: 2.5rem; }

  .hero { padding-block: 1rem 2.5rem; }

  .hero__title { font-size: clamp(1.6rem, 4.6vw, 2.2rem); }

  .hero__lead { font-size: .92rem; }

  .scroll-hint { display: none; }

  .cta { padding-block: 3rem; }
}

/* Ландшафт на широком телефоне — две колонки, чтобы квадрат был виден сразу */
@media (orientation: landscape) and (max-height: 500px) and (min-width: 44em) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "head   matrix"
      "form   matrix";
    align-items: center;
    gap: 1rem 2rem;
  }

  .hero__head { align-self: end; }
  .hero__form { align-self: start; }
  .hero__matrix { justify-self: end; width: 100%; max-width: 420px; }

  .calc__row { flex-direction: row; }
}

/* ---------------- Доступность: меньше движения ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}
