/* ==========================================================================
   VoidKey VPN — cosmic design system
   Палитра берётся из эмблемы: чёрный космос + неоновый фиолет.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* space */
  --void: #04030b;
  --void-2: #07051360;
  --surface: rgba(20, 14, 40, 0.5);
  --surface-2: rgba(28, 20, 54, 0.62);
  --surface-soft: rgba(255, 255, 255, 0.04);

  /* brand */
  --violet-deep: #6a1fd0;
  --violet: #8e2de8;
  --violet-bright: #a940ff;
  --magenta: #e15cff;
  --lilac: #c9a6ff;
  --gold: #ffd48a;
  --mint: #7ef0c2;

  /* text */
  --text: #f4f1ff;
  --text-soft: #ded7f5;
  --muted: #a79fc4;
  --muted-2: #7a7196;

  /* lines */
  --line: rgba(169, 64, 255, 0.16);
  --line-soft: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(169, 64, 255, 0.46);

  /* effects */
  --grad-brand: linear-gradient(135deg, var(--violet-deep) 0%, var(--violet-bright) 52%, var(--magenta) 100%);
  --grad-text: linear-gradient(102deg, #ffffff 0%, #e3d3ff 34%, var(--violet-bright) 72%, var(--magenta) 100%);
  --grad-accent: linear-gradient(100deg, var(--lilac) 0%, var(--violet-bright) 42%, var(--magenta) 100%);
  --glow-violet: 0 0 0 1px rgba(169, 64, 255, 0.14), 0 18px 60px -18px rgba(142, 45, 232, 0.65);
  --shadow: 0 28px 80px -30px rgba(0, 0, 0, 0.9);
  --shadow-card: 0 20px 60px -28px rgba(0, 0, 0, 0.85);

  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 12px;
  --container: min(1180px, calc(100vw - 40px));

  --font-body: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Unbounded, Inter, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-feature-settings: "cv02", "cv03", "cv04";
  background: var(--void);
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
}

button,
summary {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}

::selection {
  color: #fff;
  background: rgba(169, 64, 255, 0.42);
}

:focus-visible {
  outline: 2px solid var(--violet-bright);
  outline-offset: 3px;
}

/* ==========================================================================
   Космос: небула, звёзды, сетка, зерно
   ========================================================================== */

.cosmos {
  position: fixed;
  inset: 0;
  z-index: -4;
  overflow: hidden;
  pointer-events: none;
}

.cosmos-nebula {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.72;
  will-change: transform;
}

.cosmos-nebula.n1 {
  top: -22vh;
  left: 50%;
  width: min(1100px, 120vw);
  height: min(760px, 86vw);
  background: radial-gradient(circle at 50% 50%, rgba(142, 45, 232, 0.5), rgba(106, 31, 208, 0.18) 42%, transparent 70%);
  translate: -50% 0;
  animation: nebulaDrift 26s ease-in-out infinite;
}

.cosmos-nebula.n2 {
  top: 34vh;
  right: -18vw;
  width: min(760px, 92vw);
  height: min(620px, 78vw);
  background: radial-gradient(circle at 50% 50%, rgba(225, 92, 255, 0.3), transparent 66%);
  opacity: 0.42;
  animation: nebulaDrift 34s ease-in-out infinite reverse;
}

.cosmos-nebula.n3 {
  bottom: -20vh;
  left: -14vw;
  width: min(820px, 96vw);
  height: min(640px, 80vw);
  background: radial-gradient(circle at 50% 50%, rgba(106, 31, 208, 0.42), transparent 68%);
  opacity: 0.44;
  animation: nebulaDrift 30s ease-in-out infinite;
  animation-delay: -12s;
}

.cosmos-grid {
  position: absolute;
  inset: auto 0 0;
  height: 46vh;
  background:
    linear-gradient(to right, rgba(169, 64, 255, 0.13) 1px, transparent 1px) 0 0 / 74px 100%,
    linear-gradient(to bottom, rgba(169, 64, 255, 0.13) 1px, transparent 1px) 0 0 / 100% 74px;
  mask-image: linear-gradient(to top, #000 0%, transparent 88%);
  transform: perspective(520px) rotateX(62deg);
  transform-origin: bottom center;
  opacity: 0.5;
}

#void-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 50% -8%, rgba(169, 64, 255, 0.18), transparent 70%),
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(106, 31, 208, 0.2), transparent 62%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.42;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

@keyframes nebulaDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2.5%, 4%, 0) scale(1.08);
  }
}

/* ==========================================================================
   Шапка
   ========================================================================== */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  width: var(--container);
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012)), rgba(9, 6, 20, 0.72);
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(24px) saturate(130%);
  transition:
    background 260ms var(--ease),
    border-color 260ms var(--ease),
    box-shadow 260ms var(--ease);
}

.site-header.is-stuck {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)), rgba(7, 4, 16, 0.9);
  border-color: rgba(169, 64, 255, 0.24);
  box-shadow:
    0 24px 60px -30px rgba(0, 0, 0, 0.95),
    0 0 42px -22px rgba(169, 64, 255, 0.7);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(169, 64, 255, 0.5);
  border-radius: 50%;
  box-shadow:
    0 0 0 3px rgba(169, 64, 255, 0.08),
    0 0 26px -4px rgba(169, 64, 255, 0.6);
  object-fit: cover;
  transition: box-shadow 260ms var(--ease);
}

.brand:hover .brand-logo {
  box-shadow:
    0 0 0 4px rgba(169, 64, 255, 0.14),
    0 0 34px -2px rgba(169, 64, 255, 0.85);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: clamp(6px, 2vw, 12px);
}

.main-nav a {
  position: relative;
  padding: 8px 14px;
  color: var(--muted);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease);
}

.main-nav a::after {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
  content: "";
  translate: -50% 0;
  transition: width 240ms var(--ease);
}

.main-nav a:hover {
  color: var(--text);
  background: rgba(169, 64, 255, 0.08);
}

.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 18px;
}

.main-nav a.is-active {
  color: var(--text);
}

/* ==========================================================================
   Кнопки
   ========================================================================== */

.header-cta,
.primary-button,
.ghost-button,
.plan-card a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 240ms var(--ease),
    border-color 240ms var(--ease),
    box-shadow 240ms var(--ease),
    background 240ms var(--ease);
}

.header-cta,
.primary-button,
.plan-card.is-popular a {
  color: #fff;
  background: var(--grad-brand);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 14px 40px -14px rgba(169, 64, 255, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header-cta::before,
.primary-button::before,
.plan-card.is-popular a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.42) 46%, transparent 70%);
  translate: -110% 0;
  transition: translate 620ms var(--ease);
}

.header-cta:hover::before,
.primary-button:hover::before,
.plan-card.is-popular a:hover::before {
  translate: 110% 0;
}

.header-cta:hover,
.primary-button:hover,
.plan-card.is-popular a:hover {
  transform: translateY(-2px);
  box-shadow:
    0 20px 54px -12px rgba(169, 64, 255, 1),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.header-cta,
.plan-card a {
  min-height: 46px;
}

.ghost-button,
.plan-card a {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(169, 64, 255, 0.28);
  box-shadow: inset 0 0 26px -14px rgba(169, 64, 255, 0.9);
}

.ghost-button:hover,
.plan-card:not(.is-popular) a:hover {
  transform: translateY(-2px);
  background: rgba(169, 64, 255, 0.12);
  border-color: rgba(169, 64, 255, 0.6);
  box-shadow: 0 16px 44px -20px rgba(169, 64, 255, 0.9);
}

.button-icon,
.tile-icon,
.step-icon {
  display: grid;
  place-items: center;
  color: currentColor;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.button-icon svg,
.tile-icon svg,
.step-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ==========================================================================
   Общая раскладка и стеклянные карточки
   ========================================================================== */

main {
  position: relative;
  width: var(--container);
  margin: 0 auto;
}

.glass,
.promo-tile,
.support-strip a,
.referral-section,
.steps-list article,
.seo-points article,
.link-card,
.plan-card,
.faq-grid details,
.advantages-grid article,
.device-card,
.price-table-wrap,
.guide-steps li,
.guide-trouble,
.guide-pointer {
  position: relative;
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 58%), var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(125%);
  transition:
    transform 320ms var(--ease),
    border-color 320ms var(--ease),
    box-shadow 320ms var(--ease);
}

/* блик под курсором */
.spotlight::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(169, 64, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 320ms var(--ease);
  pointer-events: none;
}

.spotlight:hover::before {
  opacity: 1;
}

.spotlight > * {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Герой
   ========================================================================== */

.hero-section {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 38px;
  min-height: min(560px, calc(100svh - 110px));
  padding: clamp(30px, 5vw, 56px) 0 18px;
  text-align: center;
}

.hero-logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 22vw, 216px);
  aspect-ratio: 1;
}

.hero-orbit {
  position: absolute;
  inset: -11%;
  border: 1px solid rgba(169, 64, 255, 0.22);
  border-radius: 50%;
  animation: orbitSpin 26s linear infinite;
}

.hero-orbit::after {
  position: absolute;
  top: 50%;
  left: -4px;
  width: 7px;
  height: 7px;
  background: var(--lilac);
  border-radius: 50%;
  box-shadow: 0 0 16px 3px rgba(201, 166, 255, 0.9);
  content: "";
  translate: 0 -50%;
}

.hero-orbit.o2 {
  inset: -19%;
  border-color: rgba(225, 92, 255, 0.16);
  border-style: dashed;
  animation-duration: 44s;
  animation-direction: reverse;
}

.hero-orbit.o2::after {
  top: auto;
  bottom: 12%;
  left: 8%;
  width: 5px;
  height: 5px;
  background: var(--magenta);
  box-shadow: 0 0 14px 3px rgba(225, 92, 255, 0.85);
}

.hero-glow {
  position: absolute;
  inset: 2%;
  border: 1px solid rgba(169, 64, 255, 0.4);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(142, 45, 232, 0.28), transparent 62%);
  box-shadow:
    0 0 60px -8px rgba(142, 45, 232, 0.75),
    inset 0 0 44px -12px rgba(225, 92, 255, 0.6);
  animation: logoPulse 5.4s ease-in-out infinite;
}

.hero-logo {
  position: relative;
  z-index: 1;
  width: 74%;
  height: 74%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 22px 60px -18px rgba(0, 0, 0, 0.9);
  object-fit: cover;
}

.hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 820px);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 0 15px;
  margin-bottom: 20px;
  color: var(--lilac);
  background: rgba(169, 64, 255, 0.09);
  border: 1px solid rgba(169, 64, 255, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-badge i {
  width: 7px;
  height: 7px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 10px 2px rgba(225, 92, 255, 0.9);
  animation: dotPulse 2.4s ease-in-out infinite;
}

h1 {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: clamp(38px, 7.4vw, 76px);
  line-height: 1.02;
}

h1 span {
  background: var(--grad-accent);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subpage-main h1 {
  font-size: clamp(32px, 5.4vw, 56px);
}

.hero-lead {
  max-width: 580px;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 500;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.hero-actions .primary-button,
.hero-actions .ghost-button {
  min-width: 186px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  width: min(100%, 620px);
}

.hero-stats span {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.hero-stats b {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.subpage-main {
  padding-bottom: 24px;
}

.subpage-main .hero-section {
  min-height: auto;
  gap: 22px;
}

@keyframes logoPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.92;
  }

  50% {
    transform: scale(1.045);
    opacity: 1;
  }
}

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

@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.8);
  }
}

/* ==========================================================================
   Промо-плитки
   ========================================================================== */

.promo-rail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.promo-tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 112px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.promo-tile:hover,
.support-strip a:hover,
.link-card:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 64, 255, 0.4);
  box-shadow:
    var(--shadow-card),
    0 0 50px -26px rgba(169, 64, 255, 0.95);
}

.promo-tile .tile-icon,
.referral-section .tile-icon,
.support-strip .tile-icon,
.link-card .tile-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--lilac);
  background: linear-gradient(150deg, rgba(169, 64, 255, 0.22), rgba(169, 64, 255, 0.04));
  border: 1px solid rgba(169, 64, 255, 0.24);
  border-radius: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.trial-promo .tile-icon {
  color: var(--mint);
  background: linear-gradient(150deg, rgba(126, 240, 194, 0.18), rgba(126, 240, 194, 0.03));
  border-color: rgba(126, 240, 194, 0.24);
}

.discount-promo .tile-icon {
  color: var(--gold);
  background: linear-gradient(150deg, rgba(255, 212, 138, 0.18), rgba(255, 212, 138, 0.03));
  border-color: rgba(255, 212, 138, 0.24);
}

.promo-tile strong,
.support-strip strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.promo-tile small,
.support-strip small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.promo-tile b,
.support-strip b {
  padding: 2px 7px;
  color: var(--text);
  background: rgba(169, 64, 255, 0.14);
  border: 1px dashed rgba(169, 64, 255, 0.4);
  border-radius: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.trial-promo b {
  background: rgba(126, 240, 194, 0.1);
  border-color: rgba(126, 240, 194, 0.36);
}

.discount-promo b {
  background: rgba(255, 212, 138, 0.1);
  border-color: rgba(255, 212, 138, 0.36);
}

/* ==========================================================================
   Секции
   ========================================================================== */

.section {
  padding: clamp(64px, 8vw, 108px) 0 0;
}

.section-heading {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-bottom: 30px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--violet-bright);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.section-eyebrow::before,
.section-eyebrow::after {
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 64, 255, 0.7));
  content: "";
}

.section-eyebrow::after {
  background: linear-gradient(90deg, rgba(169, 64, 255, 0.7), transparent);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.06;
}

h3 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.section-heading p,
.steps-list p,
.faq-grid p,
.plan-card li,
.referral-section p {
  color: var(--muted);
  font-weight: 450;
  line-height: 1.6;
}

.section-heading p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 16px;
}

/* шаги */

.steps-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.steps-list article {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 14px;
  align-content: start;
  min-height: 190px;
  padding: 24px 20px;
  text-align: center;
}

.steps-list article:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 64, 255, 0.34);
}

.step-number {
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(169, 64, 255, 0.34);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.step-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  color: var(--lilac);
  background: linear-gradient(150deg, rgba(169, 64, 255, 0.22), rgba(169, 64, 255, 0.04));
  border: 1px solid rgba(169, 64, 255, 0.24);
  border-radius: 15px;
}

.steps-list p {
  margin-bottom: 0;
  font-size: 13.5px;
}

/* карточки «что важно знать» */

.seo-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.seo-points article {
  display: grid;
  align-content: start;
  min-height: 168px;
  padding: 24px 22px;
  text-align: left;
}

.seo-points article::before {
  width: 30px;
  height: 3px;
  margin-bottom: 16px;
  background: var(--grad-brand);
  border-radius: 3px;
  content: "";
}

.seo-points article:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 64, 255, 0.34);
}

.seo-points strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.seo-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
}

/* сетка ссылок */

.link-grid,
.link-grid.compact {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 124px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.link-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
}

.link-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.45;
}

/* ==========================================================================
   Тарифы
   ========================================================================== */

.plans-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 384px;
  padding: 26px 22px 22px;
  text-align: center;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(169, 64, 255, 0.36);
  box-shadow:
    var(--shadow-card),
    0 0 60px -30px rgba(169, 64, 255, 0.95);
}

.plan-card.is-popular {
  background: linear-gradient(158deg, rgba(169, 64, 255, 0.14), rgba(255, 255, 255, 0.014) 58%), var(--surface-2);
  border-color: rgba(169, 64, 255, 0.44);
  box-shadow:
    var(--shadow-card),
    0 0 70px -34px rgba(169, 64, 255, 1);
}

.plan-card.is-popular::after {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 2;
  padding: 5px 14px 6px;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 0 0 11px 11px;
  box-shadow: 0 10px 26px -12px rgba(169, 64, 255, 1);
  content: "Популярный";
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  translate: -50% 0;
}

.trial-card {
  border-color: rgba(126, 240, 194, 0.24);
}

.trial-card:hover {
  border-color: rgba(126, 240, 194, 0.45);
}

.premium-card {
  border-color: rgba(255, 212, 138, 0.22);
}

.premium-card:hover {
  border-color: rgba(255, 212, 138, 0.42);
}

.plan-name {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.trial-card .plan-name {
  color: var(--mint);
}

.premium-card .plan-name {
  color: var(--gold);
}

.plan-card strong {
  display: block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad-text);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.plan-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 24px 0 18px;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 24px;
  font-size: 13px;
  text-align: left;
}

.plan-card li::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 15px;
  height: 15px;
  background:
    linear-gradient(135deg, rgba(126, 240, 194, 0.9), rgba(169, 64, 255, 0.9));
  border-radius: 50%;
  box-shadow: 0 0 14px -3px rgba(126, 240, 194, 0.9);
  content: "";
  translate: 0 -50%;
}

.plan-card li::after {
  position: absolute;
  top: 50%;
  left: 4px;
  width: 7px;
  height: 4px;
  border-left: 1.6px solid #06040e;
  border-bottom: 1.6px solid #06040e;
  content: "";
  rotate: -45deg;
  translate: 0 -70%;
}

.price-list {
  display: grid;
  gap: 8px;
  margin: 24px 0 18px;
}

.price-list span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 9px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.028);
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 500;
  transition:
    border-color 240ms var(--ease),
    background 240ms var(--ease);
}

.plan-card:hover .price-list span {
  border-color: rgba(169, 64, 255, 0.2);
  background: rgba(169, 64, 255, 0.05);
}

.price-list b {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.plan-card a {
  width: 100%;
  margin-top: auto;
}

/* ==========================================================================
   Реферальная программа и поддержка
   ========================================================================== */

.referral-section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  margin-top: clamp(56px, 7vw, 96px);
  padding: 28px;
  overflow: hidden;
  text-align: left;
}

.referral-section::after {
  position: absolute;
  top: -60%;
  right: -6%;
  z-index: 0;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(169, 64, 255, 0.24), transparent 66%);
  content: "";
  pointer-events: none;
}

.referral-section h2 {
  margin-bottom: 6px;
  font-size: clamp(22px, 3vw, 28px);
  text-align: left;
}

.referral-section p {
  max-width: 640px;
  margin: 0;
  font-size: 15px;
  text-align: left;
}

.referral-section b {
  color: var(--lilac);
  font-weight: 700;
}

.referral-section .ghost-button {
  white-space: nowrap;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.support-strip a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 104px;
  padding: 20px;
  color: inherit;
  text-decoration: none;
}

.support-strip a::after {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: var(--lilac);
  border: 1px solid rgba(169, 64, 255, 0.24);
  border-radius: 50%;
  content: "→";
  font-size: 15px;
  transition:
    background 240ms var(--ease),
    transform 240ms var(--ease);
}

.support-strip a:hover::after {
  background: rgba(169, 64, 255, 0.16);
  transform: translateX(3px);
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-section {
  padding-bottom: 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.faq-grid details {
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.faq-grid details[open] {
  border-color: rgba(169, 64, 255, 0.3);
}

.faq-grid summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 18px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color 200ms var(--ease);
}

.faq-grid summary:hover {
  color: var(--lilac);
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--violet-bright);
  content: "";
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat;
  transition: rotate 300ms var(--ease);
}

.faq-grid details[open] summary::after {
  rotate: 135deg;
}

.faq-grid p {
  padding: 0 20px 20px;
  margin-bottom: 0;
  font-size: 14px;
}

/* ==========================================================================
   Подвал
   ========================================================================== */

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: var(--container);
  min-height: 96px;
  margin: 56px auto 0;
  padding: 30px 0 36px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(169, 64, 255, 0.42), transparent);
  content: "";
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.footer-links a:hover {
  color: var(--lilac);
}

.footer-brand .brand-logo {
  width: 40px;
  height: 40px;
}

.footer-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.footer-actions a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.footer-actions a:hover {
  color: var(--lilac);
}

/* ==========================================================================
   404
   ========================================================================== */

.not-found-main {
  display: grid;
  align-content: center;
  gap: 26px;
  min-height: calc(100svh - 120px);
  padding: clamp(34px, 7vh, 78px) 0 38px;
}

.not-found-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 232px) minmax(0, 620px);
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  padding: clamp(20px, 4vw, 42px) 0 8px;
}

.not-found-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 232px);
}

.not-found-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(169, 64, 255, 0.32);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(142, 45, 232, 0.24), transparent 58%),
    conic-gradient(from 28deg, rgba(225, 92, 255, 0.05), rgba(169, 64, 255, 0.44), rgba(225, 92, 255, 0.05));
  box-shadow:
    0 0 60px -12px rgba(142, 45, 232, 0.8),
    inset 0 0 40px -14px rgba(225, 92, 255, 0.6);
  animation: orbitSpin 30s linear infinite;
}

.not-found-mark img {
  position: relative;
  z-index: 1;
  width: 72%;
  height: 72%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 22px 60px -18px rgba(0, 0, 0, 0.9);
  object-fit: cover;
}

.not-found-badge {
  position: absolute;
  right: -10px;
  bottom: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--grad-brand);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow: 0 16px 40px -14px rgba(169, 64, 255, 1);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
}

.not-found-copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: start;
  max-width: 620px;
  text-align: left;
}

.not-found-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 16px;
  color: var(--lilac);
  background: rgba(169, 64, 255, 0.1);
  border: 1px solid rgba(169, 64, 255, 0.26);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.not-found-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.03;
  text-align: left;
}

.not-found-copy p:not(.not-found-kicker) {
  max-width: 560px;
  margin-bottom: 26px;
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.55;
}

.not-found-copy .hero-actions {
  justify-content: flex-start;
}

.not-found-links {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Появление при скролле
   ========================================================================== */

.reveal {
  opacity: 0;
  translate: 0 22px;
  transition:
    opacity 700ms var(--ease),
    translate 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  translate: none;
}

.reveal-stagger > * {
  opacity: 0;
  translate: 0 18px;
  transition:
    opacity 620ms var(--ease),
    translate 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  translate: none;
}

/* ==========================================================================
   Преимущества
   ========================================================================== */

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.advantages-grid article {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 210px;
  padding: 26px 24px;
}

.advantages-grid article:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 64, 255, 0.34);
  box-shadow:
    var(--shadow-card),
    0 0 50px -28px rgba(169, 64, 255, 0.95);
}

.advantages-grid .tile-icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--lilac);
  background: linear-gradient(150deg, rgba(169, 64, 255, 0.22), rgba(169, 64, 255, 0.04));
  border: 1px solid rgba(169, 64, 255, 0.24);
  border-radius: 15px;
}

.advantages-grid h3 {
  margin-bottom: 0;
  font-size: 17px;
}

.advantages-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
}

/* ==========================================================================
   Таблица цен
   ========================================================================== */

.price-table-wrap {
  margin-top: 16px;
  padding: 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.price-table th,
.price-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.price-table thead th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-table tbody th {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: left;
  white-space: nowrap;
}

.price-table tbody th small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 450;
  letter-spacing: 0;
}

.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table td b {
  display: block;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.price-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
  white-space: nowrap;
}

.price-table td em {
  display: inline-block;
  margin-top: 7px;
  padding: 3px 8px;
  color: var(--mint);
  background: rgba(126, 240, 194, 0.09);
  border: 1px solid rgba(126, 240, 194, 0.22);
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.price-table .is-popular-row {
  background: rgba(169, 64, 255, 0.07);
}

.price-table .is-popular-row th {
  color: var(--lilac);
}

.plans-note {
  max-width: 720px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
  text-align: center;
}

.plans-note b {
  padding: 2px 7px;
  color: var(--text);
  background: rgba(169, 64, 255, 0.14);
  border: 1px dashed rgba(169, 64, 255, 0.4);
  border-radius: 7px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
}

/* ==========================================================================
   Устройства
   ========================================================================== */

.devices-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.device-card {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 144px;
  padding: 20px 14px;
  color: inherit;
  text-align: center;
  text-decoration: none;
}

.device-card:hover {
  transform: translateY(-3px);
  border-color: rgba(169, 64, 255, 0.4);
  box-shadow:
    var(--shadow-card),
    0 0 50px -28px rgba(169, 64, 255, 0.95);
}

.device-card .tile-icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  color: var(--lilac);
  background: linear-gradient(150deg, rgba(169, 64, 255, 0.2), rgba(169, 64, 255, 0.03));
  border: 1px solid rgba(169, 64, 255, 0.22);
  border-radius: 14px;
}

.device-card strong {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.device-card small {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
  line-height: 1.35;
}

/* ==========================================================================
   Текстовый блок и разделы
   ========================================================================== */

.seo-text {
  max-width: 860px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.75;
}

.seo-text p {
  margin-bottom: 18px;
}

.seo-text p:last-child {
  margin-bottom: 0;
}

.seo-text h3 {
  margin: 30px 0 12px;
  color: var(--text);
  font-size: 19px;
  text-align: left;
}

.seo-text b {
  color: var(--text-soft);
  font-weight: 700;
}

.hub-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.hub-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition:
    color 200ms var(--ease),
    background 200ms var(--ease),
    border-color 200ms var(--ease);
}

.hub-links a:hover {
  color: var(--text);
  background: rgba(169, 64, 255, 0.12);
  border-color: rgba(169, 64, 255, 0.4);
}

/* ==========================================================================
   Хлебные крошки
   ========================================================================== */

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px 0 0;
  color: var(--muted-2);
  font-size: 12.5px;
  font-weight: 500;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
  transition: color 200ms var(--ease);
}

.breadcrumbs a:hover {
  color: var(--lilac);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text-soft);
}

/* ==========================================================================
   Инструкция подключения
   ========================================================================== */

.guide-steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: none;
}

.guide-steps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
}

.guide-steps li:hover {
  transform: translateY(-2px);
  border-color: rgba(169, 64, 255, 0.32);
}

.guide-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--grad-brand);
  border-radius: 11px;
  box-shadow: 0 10px 26px -14px rgba(169, 64, 255, 1);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.guide-steps h3 {
  margin-bottom: 7px;
  text-align: left;
}

.guide-steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 450;
  line-height: 1.6;
}

.guide-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.guide-links > span {
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
}

.guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  color: var(--lilac);
  background: rgba(169, 64, 255, 0.09);
  border: 1px solid rgba(169, 64, 255, 0.26);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 200ms var(--ease),
    border-color 200ms var(--ease);
}

.guide-links a:hover {
  background: rgba(169, 64, 255, 0.18);
  border-color: rgba(169, 64, 255, 0.5);
}

.guide-trouble {
  margin-top: 22px;
  padding: 24px 26px;
}

.guide-trouble h3 {
  margin-bottom: 16px;
  font-size: 17px;
  text-align: left;
}

.guide-trouble dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

.guide-trouble dt {
  margin-bottom: 5px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
}

.guide-trouble dd {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.6;
}

.guide-pointer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 20px 22px;
}

.guide-pointer strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.guide-pointer p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.55;
}

.guide-pointer .tile-icon {
  width: 46px;
  height: 46px;
  padding: 11px;
  color: var(--lilac);
  background: linear-gradient(150deg, rgba(169, 64, 255, 0.22), rgba(169, 64, 255, 0.04));
  border: 1px solid rgba(169, 64, 255, 0.24);
  border-radius: 15px;
}

.guide-pointer .ghost-button {
  white-space: nowrap;
}

/* ==========================================================================
   Адаптив
   ========================================================================== */

@media (max-width: 1080px) {
  .link-grid,
  .link-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 28px, 760px);
  }

  .site-header {
    grid-template-columns: auto auto;
    row-gap: 6px;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    padding-top: 2px;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-section {
    min-height: auto;
    padding-top: 36px;
  }

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

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .price-table-wrap {
    margin-right: calc((var(--container) - 100vw) / 2);
    margin-left: calc((var(--container) - 100vw) / 2);
    padding-right: calc((100vw - var(--container)) / 2);
    padding-left: calc((100vw - var(--container)) / 2);
    background: none;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .price-table {
    min-width: 560px;
  }

  .referral-section {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 18px;
  }

  .referral-section .ghost-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .not-found-main {
    min-height: auto;
    padding-top: 28px;
  }

  .not-found-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
  }

  .not-found-mark {
    width: 172px;
  }

  .not-found-copy {
    justify-items: center;
    text-align: center;
  }

  .not-found-hero h1 {
    text-align: center;
  }

  .not-found-copy .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 720px) {
  :root {
    --container: min(100vw - 20px, 520px);
    --radius: 20px;
  }

  .site-header {
    top: 0;
    width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 9px max(14px, env(safe-area-inset-left)) 9px max(14px, env(safe-area-inset-right));
    background: rgba(6, 4, 14, 0.88);
    border-width: 0 0 1px;
    border-color: var(--line-soft);
    border-radius: 0;
    box-shadow: none;
  }

  .site-header.is-stuck {
    background: rgba(6, 4, 14, 0.94);
    border-color: rgba(169, 64, 255, 0.2);
    box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 1);
  }

  .main-nav {
    margin: 0 -6px;
    padding: 2px 0 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
  }

  .main-nav a.is-active {
    background: rgba(169, 64, 255, 0.12);
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 14px;
    font-size: 12px;
  }

  .main-nav {
    gap: 2px;
  }

  .main-nav a {
    padding: 7px 10px;
    font-size: 12px;
  }

  .cosmos-grid {
    height: 30vh;
  }

  .hero-section {
    gap: 28px;
    padding: 30px 0 14px;
  }

  .hero-logo-wrap {
    width: 132px;
  }

  .hero-badge {
    margin-bottom: 16px;
  }

  .hero-lead {
    max-width: 380px;
    margin-bottom: 22px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .primary-button,
  .hero-actions .ghost-button {
    width: 100%;
    min-width: 0;
  }

  .hero-stats {
    gap: 8px 18px;
    margin-top: 24px;
    padding-top: 18px;
  }

  .hero-stats span {
    font-size: 12px;
  }

  .hero-stats b {
    font-size: 13px;
  }

  .promo-rail {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .promo-tile {
    min-height: 96px;
    padding: 16px;
  }

  .section {
    padding-top: 58px;
  }

  .section-heading {
    margin-bottom: 22px;
  }

  h1,
  h2 {
    line-height: 1.14;
  }

  .seo-text h3 {
    line-height: 1.25;
  }

  .steps-list,
  .seo-points,
  .advantages-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .advantages-grid article {
    min-height: auto;
    padding: 20px;
  }

  .devices-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .device-card {
    min-height: 128px;
    padding: 16px 12px;
  }

  .breadcrumbs {
    padding-top: 16px;
    font-size: 12px;
  }

  .guide-steps li {
    gap: 14px;
    padding: 18px;
  }

  .guide-num {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .guide-trouble {
    padding: 20px;
  }

  .guide-pointer {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 18px;
  }

  .guide-pointer .ghost-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .seo-text {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .seo-text h3 {
    margin-top: 24px;
    font-size: 17px;
  }

  .hub-links {
    justify-content: flex-start;
    gap: 8px;
  }

  .hub-links a {
    min-height: 36px;
    padding: 0 13px;
    font-size: 12.5px;
  }

  .plans-note {
    font-size: 13.5px;
  }

  .steps-list article {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    min-height: auto;
    padding: 18px;
    text-align: left;
  }

  .steps-list article > div {
    width: 100%;
  }

  /* номер шага абсолютный в правом верхнем углу — заголовок не должен под него лезть */
  .steps-list h3 {
    padding-right: 30px;
  }

  .step-number {
    top: 12px;
    right: 14px;
    font-size: 24px;
  }

  .step-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
  }

  .seo-points article {
    min-height: auto;
    padding: 20px;
  }

  .link-grid,
  .link-grid.compact {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 96px;
    padding: 16px;
  }

  .plans-layout {
    display: flex;
    gap: 12px;
    margin-right: calc((var(--container) - 100vw) / 2);
    margin-left: calc((var(--container) - 100vw) / 2);
    padding: 12px calc((100vw - var(--container)) / 2) 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: calc((100vw - var(--container)) / 2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .plans-layout::-webkit-scrollbar {
    display: none;
  }

  .plan-card {
    flex: 0 0 min(80vw, 300px);
    min-height: 364px;
    scroll-snap-align: start;
  }

  .referral-section {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 22px;
  }

  .referral-section .ghost-button {
    grid-column: auto;
  }

  .support-strip {
    grid-template-columns: 1fr;
  }

  .support-strip a {
    min-height: 88px;
    padding: 16px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
    margin-top: 40px;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-actions {
    justify-items: start;
  }

  .not-found-mark {
    width: 136px;
  }

  .not-found-badge {
    right: -6px;
    bottom: 8px;
    min-width: 68px;
    height: 34px;
    font-size: 13px;
  }

  .not-found-copy p:not(.not-found-kicker) {
    font-size: 16px;
  }
}

@media (max-width: 400px) {
  :root {
    --container: min(100vw - 16px, 380px);
  }

  .main-nav a {
    padding: 6px 7px;
    font-size: 11.5px;
  }

  .hero-stats {
    gap: 8px 14px;
  }
}

/* ==========================================================================
   Меньше движения
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    translate: none !important;
  }
}
