/* MEUX — стили сайта. Светлая тема по умолчанию, тёмная — по переключателю
   (html[data-theme="dark"], выбор хранит assets/theme.js). Минимализм:
   много воздуха, один шрифт, акцент — синий из логотипа. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --surface: #ffffff;
  --text: #0e1726;
  --muted: #5b6577;
  --faint: #8a94a6;
  --line: #e4e8ef;
  --accent: #1b55f0;
  --accent-strong: #0f40c4;
  --accent-soft: #ebf1ff;
  --accent-ink: #ffffff;
  --cyan: #0fb2d1;
  --ok: #0f9d6e;
  --warn: #b7791f;
  --error: #d14343;
  --grad: linear-gradient(100deg, #0050f6 0%, #0089f7 45%, #00c2e0 100%);
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.04), 0 8px 24px rgba(14, 23, 38, 0.06);
  --shadow-hover: 0 2px 4px rgba(14, 23, 38, 0.05), 0 14px 36px rgba(14, 23, 38, 0.1);

  --globe-hi: #fbfcff;
  --globe-fill: #eaf0f9;
  --globe-grid: #dce4f0;
  --globe-land: #cfdbec;
  --globe-border: #f5f8fd;

  --font: "Onest", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.06rem);
  --step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.35rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.3vw, 2.35rem);
  --step-3: clamp(2.2rem, 1.6rem + 2.7vw, 3.7rem);

  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f17;
  --bg-soft: #10161f;
  --surface: #131b27;
  --text: #e8edf5;
  --muted: #a1abbc;
  --faint: #6f7a8d;
  --line: #222c3b;
  --accent: #4d86ff;
  --accent-strong: #79a3ff;
  --accent-soft: rgba(77, 134, 255, 0.13);
  --accent-ink: #ffffff;
  --cyan: #2ad4ee;
  --ok: #3fd29f;
  --warn: #f0c063;
  --error: #ff8a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.35), 0 14px 36px rgba(0, 0, 0, 0.35);
  --grad: linear-gradient(100deg, #5b8fff 0%, #3fb6ff 50%, #4fe3e6 100%);
  --globe-hi: #18243a;
  --globe-fill: #0e1624;
  --globe-grid: #1b273b;
  --globe-land: #24344f;
  --globe-border: #0f1a2b;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, svg { max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow { font-size: var(--step--1); font-weight: 500; color: var(--muted); }
h1, h2, h3, h4 { font-family: var(--font); color: var(--text); }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 var(--step--1)/1 var(--font);
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  background: none;
  color: inherit;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; }
.link-btn:hover { color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- шапка ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 32px; height: 32px; flex: none; display: block; }
.brand b { font-weight: 700; letter-spacing: 0.12em; font-size: 1rem; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: var(--step--1); font-weight: 500; transition: color 0.2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top .btn { padding: 10px 16px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

/* ---------- секции ---------- */
.section > .wrap { padding-block: clamp(56px, 8vw, 104px); }
.section.soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h1, .section-head h2 {
  font-weight: 650; font-size: var(--step-2); line-height: 1.15; letter-spacing: -0.02em;
  margin: 10px 0 12px; text-wrap: balance;
}
.section-head p { margin: 0; color: var(--muted); }
.section-head > :first-child { margin-top: 0; }
.body-indent { padding-left: 0; }

/* ---------- первый экран ---------- */
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px); align-items: center;
  padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px);
}
.hero h1 {
  font-weight: 700; font-size: var(--step-3); line-height: 1.05; letter-spacing: -0.03em;
  margin: 14px 0 18px; text-wrap: balance;
}
.lead { color: var(--muted); font-size: var(--step-1); line-height: 1.5; max-width: 30ch; margin: 0 0 30px; }
.invite { display: flex; gap: 10px; align-items: center; margin: 22px 0 0; font-size: var(--step--1); color: var(--faint); }
.invite::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }

.globe-stage { position: relative; width: 100%; max-width: 520px; justify-self: center; aspect-ratio: 1; }
.globe-stage::before {
  content: ""; position: absolute; inset: 8%; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 72%);
  filter: blur(10px);
}
.globe { position: relative; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.globe.grabbed { touch-action: none; }
.globe.dragging { cursor: grabbing; }
.g-ocean-hi { stop-color: var(--globe-hi); }
.g-ocean-lo { stop-color: var(--globe-fill); }
.g-sphere { fill: url(#g-ocean) var(--globe-fill); }
.g-rim { fill: none; stroke: var(--line); stroke-width: 1; transition: stroke 0.2s, stroke-width 0.2s; }
.globe.grabbed .g-rim { stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 2; }
.g-grid { fill: none; stroke: var(--globe-grid); stroke-width: 0.7; }
.g-land { fill: var(--globe-land); }
.g-border { fill: none; stroke: var(--globe-border); stroke-width: 0.7; stroke-linejoin: round; }
.globe:not(.has-world) .g-land, .globe:not(.has-world) .g-border { display: none; }
.g-arc { fill: none; stroke: var(--accent); stroke-width: 1.3; stroke-linecap: round; opacity: 0.35; }
.g-trail { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; }
/* Щиток — символ #shield через <use>: цвета наследуются от группы. */
.g-shield { fill: var(--surface); stroke: var(--accent); stroke-width: 1.5; }
.g-client-dot { fill: var(--surface); stroke: var(--cyan); stroke-width: 2; }
.g-server-box { fill: var(--accent); stroke: var(--surface); stroke-width: 1.5; }
.g-pulse { fill: none; stroke: var(--accent); stroke-width: 1.2; }
.globe-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-top: 6px; font-size: var(--step--1); color: var(--muted); }
.globe-legend span { display: inline-flex; align-items: center; gap: 8px; }
.globe-legend i { flex: none; display: inline-block; }
.globe-legend svg { width: 14px; height: 16px; flex: none; }
.lg-server { width: 10px; height: 10px; border-radius: 2.5px; background: var(--accent); }
.lg-device { width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--cyan); }
.lg-shield { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.globe-hint { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--faint); }

/* ---------- схема защищённого канала ---------- */
.flow {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: start; gap: 10px; max-width: 960px; margin-inline: auto;
}
.flow > div:not(.flow-node) { margin-top: -2px; }
.flow-node { display: grid; justify-items: center; gap: 10px; text-align: center; width: 170px; }
.flow-icon {
  width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--accent);
}
.flow-icon svg { width: 34px; height: 34px; }
.flow-node b { font-weight: 600; font-size: var(--step--1); }
.wire { width: 100%; height: 64px; overflow: visible; }
.wire-v { display: none; }
.wire .line { fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.wire.secure .line { stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.wire .shield { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.wire .app circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.wire .app use { color: color-mix(in srgb, var(--text) 62%, transparent); }
.wire-caption { font: 500 11px var(--font); fill: var(--muted); }
.flow-note { max-width: 560px; margin: 36px auto 0; text-align: center; color: var(--muted); font-size: var(--step--1); }

/* ---------- преимущества ---------- */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.feature {
  grid-column: span 2; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.feature:nth-child(4), .feature:nth-child(5) { grid-column: span 3; }
.feature:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.feature-icon { color: var(--accent); margin-bottom: 16px; }
.feature-icon svg { display: block; width: 28px; height: 28px; }
.feature h3 { margin: 0 0 6px; font-size: var(--step-1); font-weight: 650; letter-spacing: -0.01em; }
.feature p { margin: 0; color: var(--muted); font-size: var(--step--1); line-height: 1.55; }
.feature .figure { font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; margin: 0 0 4px; color: var(--text); }

/* ---------- локации ---------- */
.locations { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.location {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.location .flag { width: 36px; height: 24px; border-radius: 4px; flex: none; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.location b { display: block; font-weight: 600; }
.location span { color: var(--muted); font-size: var(--step--1); }
.location .status { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.location.add { border-style: dashed; background: transparent; }
.location.add .flag { display: grid; place-items: center; box-shadow: none; color: var(--muted); }
.location.add .flag svg { width: 16px; height: 16px; }

/* Текст только для экранных дикторов. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- тарифы ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1000px; margin-inline: auto; }
/* Билет: условия слева, отрывной корешок справа; линия отрыва — пунктир с
   полукруглыми вырезами. Вырез — круг цвета фона поверх рамки билета (закрывает
   её), обведённый только с внутренней стороны: две соседние стороны рамки круга
   дают полуокружность, поворот на 45° ставит её внутрь билета. */
.ticket {
  --edge: var(--line);
  --inner-radius: calc(var(--radius) - 1px);
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px;
  border: 1px solid var(--edge); border-radius: var(--radius); background: var(--surface);
}
.ticket.featured {
  --edge: color-mix(in srgb, var(--accent) 55%, var(--line));
  /* Без мягкой тени: круг выреза оставлял бы в ней светлое пятно. */
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ticket-main { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 18px; }
.ticket h3 { font-weight: 650; font-size: var(--step-1); margin: 0; }
.ticket .specs { gap: 0; }
.ticket .specs dd { padding-left: 18px; }
.ticket .specs dt, .ticket .specs dd { padding-block: 9px; border-bottom: 1px solid var(--line); }
.ticket .specs dt:nth-last-of-type(1), .ticket .specs dd:nth-last-of-type(1) { border-bottom: 0; }
.ticket-stub {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch;
  gap: 18px; padding: 26px 20px 22px; text-align: center;
  background: var(--bg-soft); border-left: 2px dashed var(--edge);
  border-radius: 0 var(--inner-radius) var(--inner-radius) 0;
}
.ticket.featured .ticket-stub { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; left: -10px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 1px solid transparent; transform: rotate(-45deg);
}
.ticket-stub::before { top: -12px; border-bottom-color: var(--edge); border-left-color: var(--edge); }
.ticket-stub::after { bottom: -12px; border-top-color: var(--edge); border-right-color: var(--edge); }
.ticket .price { flex-direction: column; align-items: center; gap: 8px; }
.ticket .price small { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.ticket .price > span { margin-top: -4px; }
/* Помесячная цена зачёркнута, рядом — скидка за срок. */
.price-was { display: flex; align-items: baseline; justify-content: center; gap: 8px; margin: 0; font-size: var(--step--1); }
.price-was s { color: var(--muted); }
.price-was b { color: var(--accent); font-weight: 650; }
.trial-note { text-align: center; color: var(--muted); margin: -18px auto 22px; }
/* Переключатель срока: один сегментированный контрол над билетами. */
.plan-terms {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; width: fit-content; max-width: 100%;
  margin: 0 auto 24px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft);
}
.term {
  display: inline-flex; align-items: baseline; justify-content: center; gap: 6px;
  font: inherit; font-size: var(--step--1); font-weight: 500; color: var(--muted); background: transparent;
  border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer;
}
.term-save { color: var(--accent); font-size: 0.85em; font-weight: 650; white-space: nowrap; }
.term:hover { color: var(--text); }
.term[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.term:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.term-short { display: none; }
.ticket .price strong { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.5rem); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price strong { font-weight: 700; font-size: var(--step-3); line-height: 1; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-size: var(--step--1); }
.specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: var(--step--1); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 500; }
.pay-note { text-align: center; color: var(--muted); font-size: var(--step--1); margin: 22px auto 0; max-width: 560px; }
.soon { font-size: var(--step--1); color: var(--faint); }

/* ---------- шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.steps li { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.9rem; margin-bottom: 16px;
}
.steps h3 { font-weight: 650; font-size: var(--step-1); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: var(--step--1); }
.steps code { font-family: var(--font-mono); font-size: 0.92em; color: var(--text); }

/* ---------- вопросы ---------- */
.faq { display: grid; gap: 10px; max-width: 760px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- страница оплаты ---------- */
.panel {
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 30px); max-width: 860px; box-shadow: var(--shadow);
}
.panel + .panel, .panel + .notice, .notice + .panel { margin-top: 20px; }
.panel h2 { font-weight: 650; font-size: var(--step-1); margin: 0 0 8px; }
.panel p { margin: 0; color: var(--muted); }
.panel .actions { margin-top: 18px; }
.notice {
  max-width: 860px; padding: 16px 20px; border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  background: var(--accent-soft);
  font-size: var(--step--1);
}
.notice.warn { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.notice.error { border-color: color-mix(in srgb, var(--error) 45%, var(--line)); background: color-mix(in srgb, var(--error) 8%, var(--surface)); }
.notice.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 8%, var(--surface)); }
.who { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; }
.who strong { font-weight: 600; }
.who .meta { color: var(--muted); font-size: var(--step--1); }
.login .actions { align-items: center; gap: 12px 20px; margin-top: 20px; }
.login .consent { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.login .spinner { margin-top: 16px; color: var(--text); }
.login .notice { margin-top: 18px; }
.spinner { display: flex; gap: 10px; align-items: center; }
.spinner::before {
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.choice { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.choice legend { font-size: var(--step--1); font-weight: 600; color: var(--text); margin-bottom: 10px; padding: 0; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.option { position: relative; display: block; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option span {
  display: grid; gap: 4px; align-content: center; padding: 16px 18px; border-radius: 12px; min-height: 64px;
  border: 1px solid var(--line); background: var(--bg); height: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.option b { font-weight: 600; }
.option small { color: var(--muted); font-size: var(--step--1); }
.option input:checked + span { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.option input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.option input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.checkout { display: grid; gap: 22px; }
.total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; }
.total .sum { font-weight: 700; font-size: var(--step-2); letter-spacing: -0.02em; }
.total .sum-note { color: var(--muted); font-size: var(--step--1); margin-top: 2px; }
.addon-title { font-weight: 600; font-size: var(--step-1); margin: 4px 0 0; }
.consent { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- документы ---------- */
.doc { max-width: 72ch; }
.doc h2, .doc h3, .doc h4 { font-weight: 650; line-height: 1.3; margin: 1.8em 0 0.5em; }
.doc h2 { font-size: var(--step-1); }
.doc h3, .doc h4 { font-size: var(--step-0); }
.doc p, .doc ul, .doc ol, .doc blockquote, .doc table, .doc pre { margin: 0 0 1em; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 0.3em; }
.doc a { color: var(--accent); }
.doc blockquote { border-left: 2px solid var(--line); padding-left: 16px; color: var(--muted); }
.doc .table-wrap, .table-wrap { overflow-x: auto; margin: 0 0 1em; }
.doc table { border-collapse: collapse; width: 100%; font-size: var(--step--1); }
.doc th, .doc td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.doc code, .doc pre { font-family: var(--font-mono); font-size: 0.92em; }
.doc pre { overflow-x: auto; padding: 12px 14px; border-radius: 10px; background: var(--bg-soft); }
.doc-meta { color: var(--muted); font-size: var(--step--1); margin: 0 0 24px; }
.doc-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.doc .price-table td:last-child, .doc .price-table th:last-child { text-align: right; white-space: nowrap; }
.doc .price-table td:nth-child(2) { white-space: nowrap; }
.doc .price-table td { font-variant-numeric: tabular-nums; }
.doc .price-table thead th { color: var(--muted); font-weight: 500; background: var(--bg-soft); }

/* ---------- подвал ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); }
.foot .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; padding-block: 48px 36px; }
.foot h4 { font-weight: 600; font-size: var(--step--1); color: var(--text); margin: 0 0 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--step--1); }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--accent); }
.foot .about p { margin: 12px 0 0; color: var(--muted); font-size: var(--step--1); max-width: 38ch; }
.legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.8rem; }

/* ---------- появление при прокрутке ---------- */
.reveal-ready [data-reveal]:not(.is-visible) { opacity: 0; transform: translateY(18px); }
.reveal-ready [data-reveal] { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready [data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal-ready [data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal-ready [data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal-ready [data-reveal-delay="4"] { transition-delay: 0.32s; }
/* Первый экран — без скрипта: на медленном интернете он не ждёт site.js. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .wrap > div > * { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; }
.hero .wrap > div > :nth-child(2) { animation-delay: 0.06s; }
.hero .wrap > div > :nth-child(3) { animation-delay: 0.12s; }
.hero .wrap > div > :nth-child(4) { animation-delay: 0.18s; }
.hero .wrap > div > :nth-child(5) { animation-delay: 0.24s; }

/* ---------- адаптив ---------- */
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .globe-stage { max-width: 420px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:nth-child(4), .feature:nth-child(5) { grid-column: span 1; }
  .feature:nth-child(5) { grid-column: 1 / -1; }
  .locations { grid-template-columns: minmax(0, 1fr); }
  .foot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot .about { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .flow { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
  .flow-node { width: auto; max-width: 260px; }
  .wire-h { display: none; }
  .wire-v { display: block; width: 120px; height: 96px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature:nth-child(5) { grid-column: auto; }
  .plan-terms { flex-wrap: nowrap; width: 100%; }
  .term { flex: 1 1 0; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px; }
  .term-long { display: none; }
  .term-short { display: inline; }
  /* Узко: корешок под условиями, вырезы по бокам линии отрыва. */
  .ticket { grid-template-columns: minmax(0, 1fr); }
  .ticket-stub { border-left: 0; border-top: 2px dashed var(--edge); border-radius: 0 0 var(--inner-radius) var(--inner-radius); }
  .ticket-stub::before, .ticket-stub::after { top: -10px; border-color: transparent; transform: rotate(45deg); }
  .ticket-stub::before { left: -12px; border-top-color: var(--edge); border-right-color: var(--edge); }
  .ticket-stub::after { bottom: auto; left: auto; right: -12px; border-bottom-color: var(--edge); border-left-color: var(--edge); }
  .lead { font-size: var(--step-0); }
  .top .btn span { display: none; }
  .foot .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wire .packet { display: none; }
  .g-pulse { display: none; }
  .spinner::before { animation-duration: 3s; }
  .btn, .feature { transition: none; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero .wrap > div > * { animation: none; }
}

.location.add { text-decoration: none; color: inherit; }
.location.add:hover { border-color: var(--accent); }
