/* ============================================================
   KIBI — публичный сайт, визуальный слой
   Самодостаточный файл: подключается только к public/index.html.
   Юридические страницы продолжают использовать site.css.
   ============================================================ */

:root {
  /* фон и поверхности */
  --bg:            #05060B;
  --surface:       #0B0D17;
  --surface-2:     #101322;
  --surface-glass: rgba(16, 19, 34, .62);
  --surface-hi:    rgba(24, 28, 48, .78);

  /* текст */
  --text:  #F7F8FF;
  --muted: #9DA3B5;
  --dim:   #6C7286;

  /* акценты */
  --violet: #8B5CF6;
  --blue:   #3B82F6;
  --cyan:   #22D3EE;
  --success:#38E8B0;
  --warning:#F5B855;

  /* линии */
  --line:      rgba(157, 163, 181, .14);
  --line-soft: rgba(157, 163, 181, .09);
  --line-hot:  rgba(59, 130, 246, .42);

  /* градиенты и свет */
  --grad-brand: linear-gradient(115deg, var(--violet) 0%, var(--blue) 52%, var(--cyan) 100%);
  --grad-text:  linear-gradient(104deg, #FFFFFF 6%, #C7D6FF 38%, var(--cyan) 96%);
  --glow-soft:  0 0 34px rgba(59, 130, 246, .22);
  --glow-hot:   0 18px 44px rgba(59, 130, 246, .30);
  --shadow:     0 28px 70px rgba(0, 0, 0, .52);

  --radius:    20px;
  --radius-sm: 14px;
  --radius-xs: 10px;

  --shell: 1240px;
  --gut:   clamp(18px, 4vw, 40px);

  --ease: cubic-bezier(.22, .68, .32, 1);

  --font: "Manrope", "Inter", "SF Pro Display", "Segoe UI Variable", "Segoe UI",
          system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", "Space Grotesk", "Manrope", "SF Pro Display",
          "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;

  color-scheme: dark;
}

/* ── базис ─────────────────────────────────────────────────── */

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

html {
  min-width: 320px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em; line-height: 1.06; }

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

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  padding: 12px 18px; border-radius: var(--radius-xs);
  background: var(--surface-2); color: var(--text);
  font-size: 14px; font-weight: 700;
  transition: top .18s var(--ease);
}
.skip-link:focus-visible { top: 16px; }

/* ── атмосфера ─────────────────────────────────────────────── */

.site-atmosphere { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.atmosphere-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(157, 163, 181, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(157, 163, 181, .05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 72%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 72%);
}

.atmosphere-glow { position: absolute; border-radius: 50%; filter: blur(120px); }
.glow-violet { top: -220px; left: -140px;  width: 620px; height: 620px; background: rgba(139, 92, 246, .20); }
.glow-blue   { top: 120px;  right: -220px; width: 700px; height: 700px; background: rgba(59, 130, 246, .17); }
.glow-cyan   { top: 980px;  left: 34%;     width: 560px; height: 560px; background: rgba(34, 211, 238, .10); }

.atmosphere-noise {
  position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(ellipse 120% 80% at 50% -10%, rgba(59, 130, 246, .10), transparent 60%);
}

/* ── контейнеры ────────────────────────────────────────────── */

main, footer > * { width: min(var(--shell), calc(100% - var(--gut) * 2)); margin-inline: auto; }
.section { padding-block: clamp(58px, 6.5vw, 96px); scroll-margin-top: 96px; }

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

.button {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease), background-color .22s var(--ease);
  will-change: transform;
}
.button i { font-style: normal; font-size: 16px; line-height: 1; }

.button-main {
  color: #06070E;
  background: var(--grad-brand);
  box-shadow: var(--glow-hot);
}
.button-main::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.24), transparent 58%);
  pointer-events: none;
}
.button-main:hover { box-shadow: 0 22px 54px rgba(59, 130, 246, .42); }

.button-quiet {
  color: var(--text);
  background: var(--surface-glass);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.button-quiet:hover { border-color: var(--line-hot); background: var(--surface-hi); }

.button.is-disabled {
  color: var(--dim); background: var(--surface-2);
  border: 1px solid var(--line-soft); box-shadow: none;
  pointer-events: none;
}
.button.is-disabled::after { display: none; }

/* ── header ────────────────────────────────────────────────── */

.topbar {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  transition: transform .3s var(--ease);
}
.topbar-inner {
  width: min(var(--shell), calc(100% - var(--gut) * 2));
  margin-inline: auto;
  display: flex; align-items: center; gap: 24px;
  height: 68px; padding: 0 10px 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 13, 23, .72);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
          backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .38);
  transition: height .3s var(--ease), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.topbar.is-compact .topbar-inner {
  height: 56px;
  background: rgba(11, 13, 23, .9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
}

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-emblem {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(59,130,246,.28), transparent 70%);
}
.brand-emblem img { width: 40px; height: 40px; }
.brand-word { display: grid; line-height: 1; }
.brand-word strong { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.brand-word small { margin-top: 5px; font-size: 8px; font-weight: 700; letter-spacing: .26em; color: var(--dim); }

.topnav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.topnav a {
  position: relative; padding: 9px 13px; border-radius: var(--radius-xs);
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.topnav a:hover { color: var(--text); background: rgba(157, 163, 181, .07); }

.nav-action { min-height: 44px; padding-inline: 20px; font-size: 14px; flex: none; }
.topbar .nav-action { margin-left: 4px; }

.burger {
  display: none; flex: none;
  width: 44px; height: 44px; border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: var(--surface-glass);
  padding: 0;
}
.burger span {
  display: block; width: 17px; height: 1.5px; margin: 3.5px auto;
  border-radius: 2px; background: var(--text);
  transition: transform .24s var(--ease), opacity .18s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ── hero ──────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
  padding-block: clamp(122px, 13vw, 168px) clamp(48px, 7vw, 92px);
}

.hero-copy { position: relative; z-index: 2; min-width: 0; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  max-width: 100%;
  padding: 8px 15px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--muted);
  font-size: 13px; font-weight: 600;
}
.hero-badge i {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 12px var(--cyan);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(38px, 6.2vw, 76px);
  line-height: 1.02;
}
.hero h1 span {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.hero-lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
}

.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero-facts {
  margin-top: 38px; padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap; gap: clamp(22px, 4vw, 46px);
}
.hero-facts dt {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-facts dd { margin-top: 6px; color: var(--dim); font-size: 13px; font-weight: 600; }

.hero-status { margin-top: 22px; display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 13px; font-weight: 600; }
.live-dot {
  width: 7px; height: 7px; flex: none; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 10px var(--success);
  animation: pulse-dot 2.6s var(--ease) infinite;
}

/* сцена с персонажем */
.hero-visual { position: relative; min-width: 0; display: grid; place-items: center; }

.hero-scene {
  position: relative;
  width: 100%; max-width: 600px;
  aspect-ratio: 1 / .92;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
}

.hero-bloom {
  position: absolute; z-index: 0; left: 50%; top: 42%;
  width: 74%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.34) 0%, rgba(139,92,246,.16) 42%, transparent 70%);
  filter: blur(30px);
}

.hero-orbit {
  position: absolute; z-index: 1; left: 50%; top: 44%;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, .26);
  transform: translate(-50%, -50%) rotateX(74deg) rotate(0deg);
  animation: orbit-spin 26s linear infinite;
}
.orbit-a { width: 96%; aspect-ratio: 1; }
.orbit-b {
  width: 74%; aspect-ratio: 1;
  border-color: rgba(139, 92, 246, .24);
  animation-duration: 38s; animation-direction: reverse;
}
.hero-orbit::after {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 14px var(--cyan);
}
.orbit-b::after { background: var(--violet); box-shadow: 0 0 14px var(--violet); }

.hero-robot {
  position: absolute; left: 50%; top: 42%; z-index: 2;
  width: 100%; height: auto;
  transform: translate(-50%, -50%);
  animation: robot-float 7.2s ease-in-out infinite;
  will-change: transform;
}

.hero-planet {
  position: absolute; left: 50%; bottom: -6%; z-index: 1;
  width: 124%; max-width: none; height: auto;
  transform: translateX(-50%);
  opacity: .85;
  pointer-events: none;
}

.hero-chip {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 23, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .38);
  color: var(--text);
  font-size: 12.5px; font-weight: 650; white-space: nowrap;
  animation: chip-float 8s ease-in-out infinite;
}
.hero-chip i { width: 6px; height: 6px; flex: none; border-radius: 50%; }
.chip-secure { top: 6%; left: -3%; }
.chip-secure i { background: var(--success); box-shadow: 0 0 10px var(--success); }
.chip-route { bottom: 16%; right: -3%; animation-delay: -3.4s; }
.chip-route i { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* ── статус запуска ────────────────────────────────────────── */

.launch-note {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  font-size: 14.5px;
}
.launch-note strong { font-weight: 700; }
.launch-note span { color: var(--muted); }
.launch-note[data-state="live"]  { border-left-color: var(--success); }
.launch-note[data-state="error"] { border-left-color: var(--warning); }

/* ── заголовки секций ──────────────────────────────────────── */

.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 52px); }
.kicker {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 11.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase;
}
.section-head h2, .network-copy h2, .final-copy h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}
.section-head h2 span, .network-copy h2 span, .final-copy h2 span {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lead { margin-top: 16px; max-width: 58ch; color: var(--muted); font-size: 15.5px; }

/* ── bento ─────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.cell-wide { grid-column: span 2; }
.cell-tall { grid-row: span 2; }

.bento-cell {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 190px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(158deg, rgba(24, 28, 48, .58) 0%, rgba(11, 13, 23, .82) 62%);
  overflow: hidden;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
  will-change: transform;
}
.bento-cell::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(520px 240px at 12% -20%, rgba(59, 130, 246, .16), transparent 62%);
  opacity: 0; transition: opacity .28s var(--ease);
  pointer-events: none;
}
.bento-cell:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: var(--shadow); }
.bento-cell:hover::before { opacity: 1; }

.cell-body { position: relative; }
.cell-body h3 { font-size: 18.5px; letter-spacing: -.02em; line-height: 1.25; }
.cell-body p { margin-top: 10px; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

.cell-icon {
  position: relative; flex: none;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(139, 92, 246, .10);
}
.cell-icon::before,
.cell-icon::after { content: ""; position: absolute; }

/* иконки нарисованы на CSS: без внешних библиотек и без inline-SVG */
[data-icon="globe"]::before {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--cyan);
}
[data-icon="globe"]::after {
  width: 9px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--cyan); border-top-color: transparent; border-bottom-color: transparent;
}
[data-icon="key"]::before {
  width: 12px; height: 12px; border-radius: 50%;
  border: 1.5px solid var(--violet); transform: translate(-6px, -3px);
}
[data-icon="key"]::after {
  width: 13px; height: 1.5px; background: var(--violet);
  transform: translate(6px, 3px);
  box-shadow: 3px 4px 0 -.5px var(--violet), 7px 4px 0 -.5px var(--violet);
}
[data-icon="devices"]::before {
  width: 20px; height: 14px; border-radius: 3px;
  border: 1.5px solid var(--blue); transform: translate(-3px, -2px);
}
[data-icon="devices"]::after {
  width: 9px; height: 13px; border-radius: 3px;
  border: 1.5px solid var(--cyan); background: var(--surface);
  transform: translate(8px, 4px);
}
[data-icon="app"]::before {
  width: 19px; height: 19px; border-radius: 6px;
  border: 1.5px solid var(--blue);
}
[data-icon="app"]::after {
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--cyan);
}
[data-icon="shieldless"]::before {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--success);
}
[data-icon="shieldless"]::after {
  width: 9px; height: 5px;
  border-left: 1.5px solid var(--success); border-bottom: 1.5px solid var(--success);
  transform: translateY(-1px) rotate(-45deg);
}
[data-icon="chat"]::before {
  width: 20px; height: 16px; border-radius: 5px;
  border: 1.5px solid var(--violet); transform: translateY(-2px);
}
[data-icon="chat"]::after {
  width: 6px; height: 6px;
  background: var(--violet); transform: translate(-4px, 8px) rotate(45deg);
}

.cell-flow {
  position: relative; margin-top: auto;
  display: flex; align-items: center; gap: 12px;
}
.flow-source {
  padding: 8px 13px;
  border: 1px solid var(--line-hot);
  border-radius: 10px;
  background: rgba(59, 130, 246, .12);
  color: var(--text);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.flow-line {
  position: relative; flex: 1; height: 1px; min-width: 22px;
  background: linear-gradient(90deg, rgba(59,130,246,.5), rgba(34,211,238,.5));
}
.flow-line { overflow: hidden; }
.flow-line::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0 40%, #EAFCFF 50%, transparent 60% 100%);
  animation: flow-run 2.8s var(--ease) infinite;
  will-change: transform;
}
.flow-targets { display: flex; gap: 7px; }
.flow-targets b {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(157, 163, 181, .06);
  font-family: var(--font-display);
  font-size: 11.5px; font-weight: 700; color: var(--muted);
}

.cell-tags { position: relative; margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.cell-tags li {
  padding: 5px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(157, 163, 181, .05);
  color: var(--muted);
  font-size: 12px; font-weight: 650;
}
.cell-link {
  position: relative; margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--cyan); font-size: 14px; font-weight: 700;
  transition: gap .2s var(--ease);
}
.cell-link i { font-style: normal; }
.cell-link:hover { gap: 12px; }

/* ── сеть серверов ─────────────────────────────────────────── */

.network {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.network-copy { min-width: 0; }
.network-copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.network-note { margin-top: 20px; color: var(--dim); font-size: 13.5px; line-height: 1.55; }

.location-list { margin-top: 28px; display: grid; gap: 10px; }
.location {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center; gap: 14px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  transition: transform .24s var(--ease), border-color .24s var(--ease);
  will-change: transform;
}
.location:hover { transform: translateY(-2px); border-color: var(--line-hot); }
.location-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(59, 130, 246, .10);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--text);
}
.location-copyline { min-width: 0; display: grid; }
.location-copyline b { font-size: 15.5px; font-weight: 700; }
.location-copyline small { margin-top: 3px; color: var(--dim); font-size: 12.5px; }
.location-latency {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(56, 232, 176, .11);
  color: var(--success);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.location-latency::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; box-shadow: 0 0 8px currentColor;
}
.location-latency.is-degraded { background: rgba(245, 184, 85, .12); color: var(--warning); }

.location-list .empty,
.plan-grid .empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--dim);
  font-size: 14px;
}
.plan-grid .empty { grid-column: 1 / -1; }
.empty.load-error { border-color: rgba(245, 184, 85, .34); color: var(--warning); }

/* глобус сети */
.network-map {
  position: relative;
  width: 100%; max-width: 560px;
  margin-inline: auto;
  aspect-ratio: 1;
}

.globe {
  position: absolute; inset: 8%;
  border-radius: 50%;
  overflow: hidden;
  box-shadow:
    inset 0 0 70px rgba(59, 130, 246, .26),
    inset -22px -26px 70px rgba(0, 0, 0, .68),
    0 0 60px rgba(59, 130, 246, .16);
  background:
    radial-gradient(circle at 34% 28%, #131F42 0%, #0A1024 46%, #06080F 90%);
}
.globe-face {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 26%, rgba(139, 92, 246, .20), transparent 54%),
    radial-gradient(circle at 74% 76%, rgba(34, 211, 238, .12), transparent 46%);
}

.globe-lat, .globe-long {
  position: absolute; left: 50%; top: 50%;
  border: 1px solid rgba(99, 152, 240, .16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.lat-1 { width: 100%; height: 100%; }
.lat-2 { width: 100%; height: 62%; }
.lat-3 { width: 100%; height: 26%; }
.lat-4 { width: 88%; height: 88%; border-color: rgba(99, 152, 240, .12); }
.long-1 { width: 62%; height: 100%; }
.long-2 { width: 26%; height: 100%; }
.long-3 { width: 88%; height: 100%; border-color: rgba(99, 152, 240, .12); }

.globe-rim {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, .30);
  box-shadow: inset 0 0 24px rgba(34, 211, 238, .12);
}

/* дуга Amsterdam — Helsinki
   Дуга окружности, проходящей через обе точки: рисуется conic-gradient'ом
   с кольцевой маской, искра едет по ней обычным rotate — только transform. */
.map-link, .map-spark {
  position: absolute;
  left: 40.75%; top: 27%;
  width: 44%; height: 44%;
  border-radius: 50%;
  pointer-events: none;
}
.map-link {
  background: conic-gradient(from 0deg,
    transparent 0 261deg,
    rgba(34, 211, 238, .28) 261deg 276deg,
    rgba(34, 211, 238, .78) 300deg 330deg,
    rgba(34, 211, 238, .28) 340deg 347deg,
    transparent 347deg 360deg);
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 1.7px), #000 calc(100% - 1.7px) 100%, transparent 100%);
          mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 1.7px), #000 calc(100% - 1.7px) 100%, transparent 100%);
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, .55));
}
.map-spark {
  animation: spark-arc 3.8s var(--ease) infinite;
  will-change: transform;
}
.map-spark i {
  position: absolute; left: 50%; top: 0;
  width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: #EAFCFF;
  box-shadow: 0 0 10px var(--cyan), 0 0 22px rgba(34, 211, 238, .8);
}

.map-pin {
  position: absolute;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, .14), 0 0 16px rgba(34, 211, 238, .75);
}
.map-pin::before {
  content: ""; position: absolute; inset: -8px;
  border-radius: 50%; border: 1px solid rgba(34, 211, 238, .55);
  animation: pin-ping 3s var(--ease) infinite;
}
.map-pin b {
  position: absolute; left: 50%; top: 20px;
  transform: translateX(-50%);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 13, 23, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.pin-nl { left: 41%; top: 52.5%; }
.pin-fi { left: 58%; top: 27.5%; }
.pin-fi::before { animation-delay: -1.5s; }
.pin-fi b { top: auto; bottom: 20px; }

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

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(162deg, rgba(24, 28, 48, .52) 0%, rgba(11, 13, 23, .84) 66%);
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
  will-change: transform;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--line-hot); box-shadow: var(--shadow); }

.plan-card.featured {
  border-color: rgba(139, 92, 246, .48);
  background:
    radial-gradient(520px 240px at 50% -30%, rgba(139, 92, 246, .30), transparent 66%),
    linear-gradient(162deg, rgba(139, 92, 246, .14) 0%, rgba(11, 13, 23, .92) 64%);
  box-shadow: 0 28px 72px rgba(139, 92, 246, .30);
}
.plan-card.featured .plan-price strong {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-size: clamp(30px, 3vw, 38px);
}
.plan-card.featured .plan-name { font-size: 21px; }
.plan-card.featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px;
  background: var(--grad-brand);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

.plan-label {
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(157, 163, 181, .09);
  color: var(--muted);
  font-size: 10.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
}
.plan-card.featured .plan-label { background: var(--grad-brand); color: #06070E; }

.plan-name { margin-top: 16px; font-size: 19px; letter-spacing: -.02em; }

.plan-price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.plan-price strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.plan-price small { color: var(--dim); font-size: 13px; font-weight: 600; }
.plan-alt { margin-top: 8px; color: var(--dim); font-size: 12.5px; font-weight: 600; }

.plan-features { margin: 20px 0 24px; display: grid; gap: 9px; }
.plan-features li {
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--muted); font-size: 13.5px; line-height: 1.45;
}
.plan-features li::before {
  content: ""; flex: none;
  width: 8px; height: 5px; margin-top: 6px;
  border-left: 1.5px solid var(--success); border-bottom: 1.5px solid var(--success);
  transform: rotate(-45deg);
}
.plan-card .button { margin-top: auto; width: 100%; }

.plans-note { margin-top: 24px; color: var(--dim); font-size: 13.5px; }

/* ── шаги ──────────────────────────────────────────────────── */

.step-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.step-track::before {
  content: ""; position: absolute;
  left: 6%; right: 6%; top: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59,130,246,.42), rgba(139,92,246,.42), transparent);
}
.step {
  position: relative;
  padding: 26px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(162deg, rgba(24, 28, 48, .5) 0%, rgba(11, 13, 23, .84) 66%);
  transition: transform .28s var(--ease), border-color .28s var(--ease);
  will-change: transform;
}
.step:hover { transform: translateY(-4px); border-color: var(--line-hot); }
.step-num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border: 1px solid var(--line-hot);
  border-radius: 12px;
  background: rgba(59, 130, 246, .12);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--text);
}
.step h3 { margin-top: 18px; font-size: 17px; letter-spacing: -.02em; line-height: 1.28; }
.step p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.steps-cta { margin-top: 34px; }

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

.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-glass);
  transition: border-color .24s var(--ease), background-color .24s var(--ease);
}
.faq-item[open] { border-color: var(--line-hot); background: var(--surface-hi); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 19px 22px;
  cursor: pointer;
  font-size: 15.5px; font-weight: 650;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i {
  position: relative; flex: none;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .24s var(--ease), transform .24s var(--ease);
}
.faq-item summary i::before,
.faq-item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 10px; height: 1.5px; margin: -.75px 0 0 -5px;
  border-radius: 2px; background: var(--muted);
  transition: transform .24s var(--ease), background-color .24s var(--ease);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i { border-color: var(--line-hot); }
.faq-item[open] summary i::before,
.faq-item[open] summary i::after { background: var(--cyan); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { max-width: 74ch; color: var(--muted); font-size: 14.5px; line-height: 1.62; }

/* ── финальный блок ────────────────────────────────────────── */

.final-call {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(20px, 3vw, 40px);
  margin-bottom: clamp(56px, 7vw, 90px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(680px 300px at 8% 0%, rgba(139, 92, 246, .20), transparent 62%),
    linear-gradient(160deg, rgba(24, 28, 48, .6) 0%, rgba(11, 13, 23, .9) 62%);
  overflow: hidden;
}
.final-robot { width: clamp(84px, 10vw, 120px); height: auto; animation: robot-float 7.8s ease-in-out infinite; }
.final-copy h2 { margin-top: 4px; font-size: clamp(24px, 3vw, 36px); }
.final-copy p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ── footer ────────────────────────────────────────────────── */

footer { padding-bottom: 44px; }
.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 4px; margin-inline: auto; }
.footer-links a {
  padding: 8px 12px; border-radius: var(--radius-xs);
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.footer-links a:hover { color: var(--text); background: rgba(157, 163, 181, .07); }

.footer-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--dim); font-size: 13px;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a { color: var(--muted); font-weight: 600; transition: color .18s var(--ease); }
.legal-links a:hover { color: var(--cyan); }

/* ── анимации ──────────────────────────────────────────────── */

@keyframes robot-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50%      { transform: translate(-50%, -50%) translateY(-8px); }
}
.final-robot { animation-name: mark-float; }
@keyframes mark-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}
@keyframes orbit-spin {
  from { transform: translate(-50%, -50%) rotateX(74deg) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotateX(74deg) rotate(360deg); }
}
@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
@keyframes flow-run {
  0%       { transform: translateX(-100%); opacity: 0; }
  15%, 85% { opacity: 1; }
  100%     { transform: translateX(100%);  opacity: 0; }
}
@keyframes pin-ping {
  0%       { opacity: .85; transform: scale(.8); }
  70%,100% { opacity: 0;   transform: scale(1.9); }
}
@keyframes spark-arc {
  0%        { transform: rotate(261deg); opacity: 0; }
  12%, 88%  { opacity: 1; }
  100%      { transform: rotate(347deg); opacity: 0; }
}

/* появление при прокрутке */
.reveal-block, .reveal-item {
  opacity: 0;
  transform: translateY(22px);
}
body.motion-ready .reveal-block,
body.motion-ready .reveal-item {
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay: calc(var(--reveal-index, 0) * 60ms);
}
.reveal-block.is-visible, .reveal-item.is-visible { opacity: 1; transform: none; }
body:not(.motion-ready) .reveal-block,
body:not(.motion-ready) .reveal-item { opacity: 1; transform: none; }

/* ── адаптив ───────────────────────────────────────────────── */

@media (max-width: 1180px) {
  .topnav a { padding-inline: 10px; font-size: 13.5px; }
  .topbar-inner { gap: 16px; }
}

@media (max-width: 1020px) {
  html { scroll-padding-top: 92px; }

  .topnav {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px);
    margin-left: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(11, 13, 23, .96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .topnav.is-open { opacity: 1; visibility: visible; transform: none; }
  .topnav a { padding: 13px 14px; font-size: 15px; }

  .topbar-inner { position: relative; gap: 12px; }
  .topbar .nav-action { margin-left: auto; }
  .burger { display: block; }

  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: clamp(104px, 16vw, 132px); }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; }
  .hero-scene { max-width: 480px; }
  .hero-lead { max-width: none; }

  .network { grid-template-columns: minmax(0, 1fr); }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-tall { grid-row: auto; }

  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .step-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-track::before { display: none; }

  .final-call { grid-template-columns: auto minmax(0, 1fr); }
  .final-call .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 720px) {
  .topbar { inset: 8px 0 auto; }
  .topbar-inner { height: 60px; padding: 0 8px 0 12px; }
  .topbar.is-compact .topbar-inner { height: 54px; }
  .brand-word small { display: none; }
  .nav-action span { font-size: 13.5px; }

  .hero-facts { gap: 20px 26px; }
  .hero-actions .button { flex: 1 1 100%; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .cell-wide { grid-column: auto; }

  .plan-grid { grid-template-columns: minmax(0, 1fr); }

  .step-track { grid-template-columns: minmax(0, 1fr); }

  .final-call { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .final-robot { width: 84px; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-links { margin-inline: 0; margin-left: -12px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .section { padding-block: 62px; }
  .hero { padding-top: 100px; }
  .hero h1 { font-size: clamp(32px, 10vw, 42px); }
  .hero-badge { font-size: 12px; padding: 7px 13px 7px 10px; line-height: 1.35; }
  .hero-scene { max-width: 340px; }
  .hero-planet { width: 108%; }
  .orbit-a { width: 88%; }
  .hero-chip { font-size: 11.5px; padding: 7px 12px; }
  .chip-secure { top: 8%; left: 0; }
  .chip-route { bottom: 22%; right: 0; }

  .bento-cell, .plan-card, .step { padding: 22px 20px; }
  .location { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
  .location-icon { width: 40px; height: 40px; font-size: 12px; }
  .location-latency { grid-column: 2; justify-self: start; }

  .network-map { aspect-ratio: 4 / 3.4; }
  .map-pin b { font-size: 10.5px; padding: 4px 9px; }

  .faq-item summary { padding: 16px 18px; font-size: 14.5px; gap: 12px; }
  .faq-answer { padding: 0 18px 18px; }

  .launch-note { padding: 16px 18px; font-size: 13.5px; }
}

@media (max-width: 380px) {
  .hero-facts dt { font-size: 22px; }
  .brand-word strong { font-size: 16px; }
  .nav-action { padding-inline: 14px; }
  .nav-action i { display: none; }
}

/* ── доступность движения ──────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-block, .reveal-item { opacity: 1 !important; transform: none !important; }
  .hero-robot, .final-robot, .hero-chip, .hero-orbit { animation: none !important; }
  .hero-robot { transform: translate(-50%, -50%); }
}

@media (prefers-contrast: more) {
  :root { --muted: #C6CBD9; --dim: #A2A8BA; --line: rgba(157, 163, 181, .32); }
}

/* печать: юридические ссылки и текст должны остаться читаемыми */
@media print {
  .reveal-block, .reveal-item { opacity: 1 !important; transform: none !important; }
  .site-atmosphere, .topbar, .hero-visual, .network-map, .final-call { display: none; }
  body { background: #fff; color: #000; }
}
