/* ============ Гига Инсайдер · Design system ============ */

:root {
  /* Brand palette */
  --ink: #050816;
  --bg: #070B1F;
  --bg-2: #0B1130;
  --surface: #0F1638;
  --surface-2: #131B45;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --text: #EEF2FF;
  --text-2: #B6C0E0;
  --text-3: #7C88B5;
  --text-mute: #5B658F;

  --blue: #6EA8FF;
  --blue-2: #4F86FF;
  --violet: #9B8CFF;
  --violet-2: #7A66FF;
  --green: #4ADE80;
  --green-glow: rgba(74, 222, 128, 0.18);
  --red: #FF6B7A;

  --grad-hero: radial-gradient(1200px 700px at 50% 30%, rgba(110, 168, 255, 0.18), transparent 60%),
               radial-gradient(900px 600px at 80% 90%, rgba(155, 140, 255, 0.14), transparent 60%),
               radial-gradient(700px 500px at 10% 80%, rgba(74, 222, 128, 0.06), transparent 70%);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);
  --shadow-cta: 0 10px 30px -10px rgba(79, 134, 255, 0.55), 0 0 0 1px rgba(110, 168, 255, 0.25) inset;

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "Cascadia Mono", Menlo, monospace;

  --container: 1200px;
}

/* Light theme — public toggle palette (Slate + sky blue + violet) */
[data-theme="light"] {
  --ink: #0F172A;
  --bg: #F7FAFC;
  --bg-2: #EEF4FF;
  --surface: #FFFFFF;
  --surface-2: #F3F6FB;
  --line:   rgba(15, 23, 42, 0.10);
  --line-2: rgba(15, 23, 42, 0.18);

  --text:     #0F172A;
  --text-2:   #334155;
  --text-3:   #64748B;
  --text-mute:#94A3B8;

  --blue:    #2563EB;
  --blue-2:  #1D4ED8;
  --violet:  #7C3AED;
  --violet-2:#6D28D9;
  --green:   #10B981;
  --green-glow: rgba(16, 185, 129, 0.18);
  --red:     #DC2626;

  --grad-hero: radial-gradient(1200px 700px at 50% 30%, rgba(37, 99, 235, 0.10), transparent 60%),
               radial-gradient(900px 600px at 80% 90%, rgba(124, 58, 237, 0.08), transparent 60%);

  --shadow-card: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 50px -20px rgba(15, 23, 42, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  min-width: 0;
}

html { overflow-x: hidden; }

img, svg { max-width: 100%; height: auto; }

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

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

/* ============ Layout ============ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 120px 0;
  position: relative;
}

.section--tight { padding: 80px 0; }
.section--hero { padding: 0; }

.section--surface {
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}

.section--invert {
  background: var(--bg-2);
}

[data-theme="light"] .section--invert {
  background: #0B1130;
  color: #EEF2FF;
}
[data-theme="light"] .section--invert .eyebrow { color: #B6C0E0; }
[data-theme="light"] .section--invert .h2 { color: #fff; }
[data-theme="light"] .section--invert .lede { color: #B6C0E0; }

/* ============ Typography ============ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.h1 {
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 18px 0 22px;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 14px 0 16px;
  text-wrap: balance;
}

.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 500;
  margin: 0 0 8px;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 60ch;
  text-wrap: pretty;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero", "ss01";
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, #6EA8FF 0%, #4F86FF 100%);
  color: #050816;
  box-shadow: var(--shadow-cta);
}

[data-theme="light"] .btn--primary {
  background: linear-gradient(180deg, #2D6BFF, #1F58E6);
  color: #fff;
}

.btn--primary:hover { box-shadow: 0 14px 40px -10px rgba(79, 134, 255, 0.7), 0 0 0 1px rgba(110, 168, 255, 0.45) inset; }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--text); background: rgba(255,255,255,0.02); }

.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 60px; padding: 0 32px; font-size: 17px; }

.btn .arrow {
  width: 16px; height: 16px;
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============ Header ============ */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 19px;
  color: var(--text);
}
.brand__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
  display: inline-block;
  margin: 0 8px 1px 2px;
}
.brand b { font-weight: 600; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--line); }
.nav a[aria-current="page"] { color: var(--text); background: var(--line); }

.header__right { display: flex; align-items: center; gap: 12px; }

@media (max-width: 820px) {
  .nav { display: none; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  padding: 96px 0 120px;
  background:
    radial-gradient(1200px 700px at 50% 20%, rgba(110, 168, 255, 0.20), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(155, 140, 255, 0.16), transparent 60%);
  overflow: hidden;
}

[data-theme="light"] .hero {
  background:
    radial-gradient(1200px 700px at 50% 20%, rgba(37, 99, 235, 0.10), transparent 60%),
    radial-gradient(900px 600px at 80% 80%, rgba(124, 58, 237, 0.08), transparent 60%);
}

.hero__stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.65;
}

[data-theme="light"] .hero__stars { opacity: 0.25; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__ctas {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero__meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.06em;
}
.hero__meta .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--text-3);
}

.hero__visual {
  position: relative;
  aspect-ratio: 1 / 1;
  min-height: 480px;
}

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { min-height: 420px; max-width: 520px; margin: 0 auto; }
}

/* ============ Planet (default = balanced, see planet.css) ============ */

/* ============ Status pill ============ */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--green-glow);
  border: 1px solid rgba(74, 222, 128, 0.25);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.85); } }

/* ============ Cards (UI floating) ============ */

.ui-card {
  position: absolute;
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  font-size: 13px;
  z-index: 3;
}

.ui-card--access {
  top: 8%;
  right: -8%;
  width: 260px;
}

.ui-card--connect {
  bottom: 6%;
  left: -10%;
  width: 290px;
}

@media (max-width: 1100px) {
  .ui-card--access { right: -2%; top: 4%; width: 230px; }
  .ui-card--connect { left: -2%; bottom: 4%; width: 250px; }
}

.ui-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ui-card__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.ui-card__title {
  font-size: 16px;
  font-weight: 500;
  margin: 6px 0 4px;
  letter-spacing: -0.01em;
}
.ui-card__sub {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.ui-card__bar {
  margin-top: 12px;
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}
.ui-card__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 72%;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  border-radius: inherit;
}

.ui-card__devices {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.ui-card__chip {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-2);
  background: var(--line);
  border-radius: 99px;
  padding: 4px 8px;
}

/* ============ How it works ============ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 60px;
  counter-reset: step;
}

@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding: 28px 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  overflow: hidden;
  isolation: isolate;
}
.step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--text-mute);
}

.step__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--surface-2), rgba(110, 168, 255, 0.10));
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--blue);
  flex: 0 0 auto;
}

.step__title {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.step__desc {
  color: var(--text-3);
  font-size: 14px;
  line-height: 1.55;
}

/* ============ Tariffs ============ */

.tariffs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 880px) { .tariffs { grid-template-columns: 1fr; } }

/* ============ Trial note (above tariffs) ============ */

.trial-note {
  margin-top: 40px;
  padding: 22px 26px;
  background: linear-gradient(135deg,
    rgba(74, 222, 128, 0.10) 0%,
    rgba(110, 168, 255, 0.10) 100%);
  border: 1px solid rgba(74, 222, 128, 0.30);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.trial-note__copy { flex: 1 1 320px; min-width: 0; }
.trial-note__badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.40);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.trial-note__title {
  margin: 10px 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.trial-note__text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.5;
  max-width: 64ch;
}
.trial-note__btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 22px;
  font-size: 14px;
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--text);
}
.trial-note__btn:hover {
  border-color: var(--green);
  background: rgba(74, 222, 128, 0.08);
}

[data-theme="light"] .trial-note {
  background: linear-gradient(135deg,
    rgba(16, 185, 129, 0.10) 0%,
    rgba(37, 99, 235, 0.08) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}
[data-theme="light"] .trial-note__badge {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.30);
  color: #10B981;
}
[data-theme="light"] .trial-note__btn {
  border-color: rgba(16, 185, 129, 0.45);
}
[data-theme="light"] .trial-note__btn:hover {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.06);
}

@media (max-width: 640px) {
  .trial-note { padding: 20px; }
  .trial-note__btn { width: 100%; justify-content: center; }
}

.tariff {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  isolation: isolate;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.tariff:hover { border-color: var(--line-2); transform: translateY(-2px); }

.tariff--featured {
  border-color: rgba(110, 168, 255, 0.35);
  background:
    linear-gradient(180deg, rgba(110, 168, 255, 0.10), transparent 50%),
    var(--surface);
}
.tariff--featured::before {
  content: "Рекомендуем";
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(110, 168, 255, 0.12);
  border: 1px solid rgba(110, 168, 255, 0.30);
  padding: 5px 9px;
  border-radius: 99px;
}

.tariff__name {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}

.tariff__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin: 6px 0 0;
  text-align: center;
  color: var(--text);
  line-height: 1;
}
.tariff__price .amount {
  font-family: var(--font-sans);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
}
.tariff__price .currency {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.tariff__period {
  color: var(--text-3);
  font-size: 15px;
  text-align: center;
}

.tariff__per {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-mute);
  text-align: center;
}

.tariff__list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text-2);
  text-align: left;
}
.tariff__list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: start;
  line-height: 1.35;
}
.tariff__list svg {
  color: var(--green);
  width: 18px;
  height: 18px;
  margin: 0;
  align-self: start;
  margin-top: 1px;
  flex: none;
}

.tariff .btn { margin-top: auto; }

/* ============ Devices ============ */

.devices {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 50px;
}
@media (max-width: 900px) { .devices { grid-template-columns: repeat(2, 1fr); } }

.device {
  padding: 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.device__icon {
  width: 32px; height: 32px;
  color: var(--text-2);
}
.device__name {
  font-size: 15px;
  font-weight: 500;
}
.device__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

/* ============ Trust strip ============ */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
  margin-top: 40px;
}
@media (max-width: 880px) { .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 18px 0; } }

.trust-strip__item {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}
.trust-strip__item:first-child { border-left: none; }
.trust-strip__num {
  font-size: 36px;
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1;
}
.trust-strip__num .sub { font-size: 18px; color: var(--text-3); margin-left: 4px; }
.trust-strip__label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ============ Footer ============ */

.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  margin-top: 80px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin: 0 0 16px;
  font-weight: 500;
}
.footer__col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column;
  gap: 10px;
}
.footer__col a { color: var(--text-2); font-size: 14px; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  margin-top: 50px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-mute);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============ Inputs ============ */

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.input, .textarea, .select {
  width: 100%;
  height: 52px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text);
  border-radius: var(--radius);
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.textarea { height: auto; padding: 14px 16px; min-height: 120px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.15);
}

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

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.faq-item__btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-item__btn::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 300;
  color: var(--text-3);
  transition: transform 0.2s;
}
.faq-item[open] .faq-item__btn::after { content: "−"; }

/* Active state — highlights the currently open question */
.faq-item[open],
.faq-item.is-open {
  border-color: var(--blue);
  background: rgba(110, 168, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.10);
}
.faq-item[open] .faq-item__btn,
.faq-item.is-open .faq-item__btn {
  color: var(--text);
}
.faq-item[open] .faq-item__btn::after,
.faq-item.is-open .faq-item__btn::after {
  color: var(--blue);
}

.faq-item__answer {
  padding: 0 60px 24px 0;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 76ch;
}

/* ============ Stars background ============ */

.stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.7), transparent 100%),
    radial-gradient(1px 1px at 70% 60%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 40% 80%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px at 80% 20%, rgba(255,255,255,0.6), transparent 100%),
    radial-gradient(1px 1px at 15% 75%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px at 55% 12%, rgba(255,255,255,0.4), transparent 100%),
    radial-gradient(1px 1px at 90% 85%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(1px 1px at 35% 55%, rgba(255,255,255,0.35), transparent 100%);
  pointer-events: none;
}

/* ============ Utilities ============ */

.gap-sm { display: flex; gap: 8px; }
.gap-md { display: flex; gap: 14px; }
.col { display: flex; flex-direction: column; gap: 14px; }
.center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.muted { color: var(--text-3); }
.mono-small { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-3); }

.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--line-2);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ============ Section heads ============ */

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.sec-head__main { max-width: 640px; }

/* ============ Tweaks panel (bottom-right) ============ */

.tweaks {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 280px;
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5);
  font-family: var(--font-sans);
  font-size: 14px;
  z-index: 100;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.tweaks[data-open="true"] { display: block; }
.tweaks__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.tweaks__title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.tweaks__close {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 18px; line-height: 1;
}
.tweaks__close:hover { color: var(--text); }
.tweaks__group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.tweaks__group:last-child { margin-bottom: 0; }
.tweaks__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.tweaks__seg {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), 1fr);
  background: var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.tweaks__seg button {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  letter-spacing: -0.005em;
}
.tweaks__seg button[aria-pressed="true"] {
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line-2) inset;
}

/* ============ Checkboxes (.check) ============ */

.check {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 14px; color: var(--text-2);
  line-height: 1.5;
}
/* Accessibility: keep input focusable for keyboard + screen readers */
.check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.check__box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line-2);
  flex: 0 0 20px;
  margin-top: 2px;
  display: grid; place-items: center;
  background: var(--bg-2);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.check input:focus-visible + .check__box {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.18);
}
.check input:checked + .check__box {
  background: var(--blue); border-color: var(--blue);
}
.check input:checked + .check__box::after {
  content: ""; width: 10px; height: 6px;
  border-left: 2px solid var(--bg);
  border-bottom: 2px solid var(--bg);
  transform: rotate(-45deg) translate(1px, -1px);
}
.check a { color: var(--blue); }
.check a:hover { text-decoration: underline; }

/* ============ Button disabled state ============ */

.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* ============ Field error ============ */

.field__error {
  font-size: 13px;
  color: var(--red);
  font-family: var(--font-sans);
  margin-top: 4px;
  display: none;
}
.field[data-invalid="true"] .field__error { display: block; }
.field[data-invalid="true"] .input {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.12);
}

.pay-error {
  align-self: stretch;
  margin-top: 6px;
  text-align: right;
}
[data-loading="true"] {
  opacity: 0.85;
  cursor: progress !important;
}

.email-pill[data-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 107, 122, 0.12);
}
.email-pill__error {
  font-size: 13px;
  color: var(--red);
  margin-top: 10px;
  display: none;
}
.hero__copy[data-email-invalid="true"] .email-pill__error { display: block; }

/* ============ Trust strip — title variant ============ */
.trust-strip__title { font-size: 22px; letter-spacing: -0.01em; font-weight: 500; line-height: 1.1; }

/* ============ Devices / Contacts grid variants ============ */
.devices--main { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .devices--main { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .devices--main { grid-template-columns: 1fr; } }

.contacts--compact { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .contacts--compact { grid-template-columns: 1fr; } }

/* ============ Plan badge ============ */
.plan-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.16);
  color: #BFD7FF;
  border: 1px solid rgba(110, 168, 255, 0.35);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  z-index: 2;
  pointer-events: none;
}

[data-theme="light"] .plan-badge {
  background: rgba(37, 99, 235, 0.10);
  color: #1D4ED8;
  border-color: rgba(37, 99, 235, 0.25);
}

/* Suppress legacy ::before badge on featured tariff (we use .plan-badge now) */
.tariff--featured::before { content: none !important; }

/* ============ Section title variants ============ */
.section-title--sm { font-size: clamp(28px, 3.2vw, 40px); }

.telegram-eyebrow { color: var(--blue); }

.footer-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.02em;
}

/* ============ Restore block ============ */
.restore-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}
@media (max-width: 880px) { .restore-card { grid-template-columns: 1fr; padding: 24px; gap: 24px; } }

.restore-card__copy h2 { margin: 8px 0 6px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.restore-card__copy p { color: var(--text-2); font-size: 15px; max-width: 50ch; margin: 0; }

.restore-form { display: flex; flex-direction: column; gap: 14px; }

.restore-status {
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.restore-status[data-state="success"] {
  display: block;
  background: var(--green-glow);
  border: 1px solid rgba(74, 222, 128, 0.3);
  color: var(--green);
}
.restore-status[data-state="notfound"] {
  display: block;
  background: rgba(255, 107, 122, 0.10);
  border: 1px solid rgba(255, 107, 122, 0.3);
  color: var(--red);
}
.restore-status[data-state="error"] {
  display: block;
  background: rgba(255, 107, 122, 0.10);
  border: 1px solid rgba(255, 107, 122, 0.3);
  color: var(--red);
}

/* ============ Success-view actions ============ */
.access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

/* ============ Mobile adaptive guards ============ */
@media (max-width: 540px) {
  .container { padding: 0 20px; }
  .header__inner { height: 64px; }
  .header__right .btn { padding: 0 14px; font-size: 13px; }
  .hero { padding: 56px 0 80px; }
  .checkout-card { padding: 22px; }
  .ribbon-link { padding: 14px 16px; gap: 10px; flex-wrap: wrap; }
  .ribbon-link__url { white-space: normal; word-break: break-all; flex-basis: 100%; order: 3; }
  .tg-banner { padding: 28px 22px; }
}

@media (max-width: 380px) {
  .h1 { font-size: 36px; }
  .h2 { font-size: 28px; }
}

.footer-bottom__line {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}

/* ============ Tariff selected state ============ */

.tariff.is-selected,
.tariff[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.12);
}
.tariff:focus-visible {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.25);
}

/* Plan summary line in checkout-summary */
.checkout-summary__plan {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.02em;
}
.checkout-summary__plan b {
  color: var(--text-2);
  font-weight: 500;
}

/* Pay button label/loading swap */
.co-pay__label { display: inline-flex; align-items: center; gap: 6px; }
.co-pay__loading { display: none; }
#co-pay[data-loading="true"] .co-pay__label { display: none; }
#co-pay[data-loading="true"] .co-pay__loading { display: inline-flex; }
#co-pay[data-loading="true"] .arrow { display: none; }
#co-pay[data-loading="true"] {
  cursor: progress;
  pointer-events: none;
  opacity: 0.85;
}

.pay-error {
  align-self: stretch;
  margin-top: 6px;
  text-align: right;
  display: none;
}

/* ============ Cookie banner ============ */
.faq-list--mt { margin-top: 40px; }
.device-grid--mt { margin-top: 40px; }
.section--no-top { padding-top: 0; }
.success-eyebrow { color: var(--green); }
.acc-email { font-size: 16px; word-break: break-all; }
.planet--mini { max-width: 220px; }
.footer__desc { font-size: 14px; max-width: 38ch; }
.link-blue { color: var(--blue); }
.link-blue:hover { text-decoration: underline; }

.co-yk { display: flex; align-items: center; gap: 6px; }
.co-yk__logo {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(135deg, #5538F9, #9747FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============ Page-specific helpers (moved from inline styles) ============ */

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 720px;
  margin: 0 auto;
  background: color-mix(in oklab, var(--bg-2) 96%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  display: flex;
  gap: 18px;
  align-items: center;
  z-index: 120;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  transform: translateY(0);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cookie-banner[hidden] {
  display: none;
}
.cookie-banner__text {
  flex: 1;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; left: 12px; right: 12px; bottom: 12px; padding: 16px; }
  .cookie-banner__actions { flex-direction: row-reverse; }
  .cookie-banner__actions .btn { flex: 1; }
}

/* ============ Hero email pill ============ */

.email-pill {
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  margin-top: 32px;
  max-width: 520px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.email-pill:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.12);
}
.email-pill input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 16px 12px 16px 0;
  min-width: 0;
}
.email-pill input::placeholder { color: var(--text-mute); }
.email-pill .btn {
  height: 48px;
  padding: 0 22px;
  font-size: 15px;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .email-pill { padding: 8px; flex-direction: column; align-items: stretch; border-radius: 18px; }
  .email-pill input { padding: 14px 16px; }
  .email-pill .btn { width: 100%; }
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__ctas .btn { flex: 0 0 auto; }
.hero__secondary {
  margin-top: 14px;
  font-size: clamp(14px, 1.1vw, 16px);
  color: var(--text-3);
  max-width: 56ch;
}
@media (max-width: 540px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

/* ============ Checkout (in tariffs section) ============ */

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}
@media (max-width: 880px) {
  .checkout-card { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
}

.checkout-form { display: flex; flex-direction: column; gap: 18px; }

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .checkout-row { grid-template-columns: 1fr; } }

.checkout-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
@media (max-width: 880px) {
  .checkout-summary { align-items: stretch; text-align: left; }
}
.checkout-summary__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}
.checkout-summary__amount {
  font-size: 48px;
  letter-spacing: -0.03em;
  font-weight: 500;
  line-height: 1;
}
.checkout-summary__period {
  color: var(--text-3);
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.checkout-summary .btn { margin-top: 14px; }

/* ============ Telegram block ============ */

.tg-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1B2A55 0%, #0F1638 60%, #11163B 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}
[data-theme="light"] .tg-banner {
  background: linear-gradient(135deg, #EEF4FF 0%, #F7FAFC 100%);
}
[data-theme="light"] .tg-banner::before {
  background: radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.18), transparent 60%);
}
.tg-banner::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(110, 168, 255, 0.25), transparent 60%);
  filter: blur(20px);
  pointer-events: none;
}
.tg-banner__copy { position: relative; z-index: 1; }
.tg-banner__copy h2 { margin: 8px 0 6px; font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -0.02em; font-weight: 500; }
.tg-banner__copy p { margin: 0; color: var(--text-2); max-width: 50ch; font-size: 15px; }
.tg-banner__action { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .tg-banner { grid-template-columns: 1fr; padding: 32px 24px; }
}

/* ============ Contacts strip ============ */

.contacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 720px) { .contacts { grid-template-columns: 1fr; } }

.contact {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.contact .icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(160deg, var(--surface-2), rgba(110, 168, 255, 0.10));
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--blue);
  margin-bottom: 6px;
}
.contact h3 { margin: 0; font-size: 16px; font-weight: 500; }
.contact p { margin: 0; color: var(--text-3); font-size: 13px; }
.contact a { color: var(--blue); font-family: var(--font-mono); font-size: 14px; margin-top: 4px; }

/* ============ Modal ============ */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 11, 31, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}
.modal-backdrop[data-open="true"] { display: flex; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  max-width: 760px;
  width: 100%;
  max-height: 100%;
  overflow: auto;
  position: relative;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.6);
}

.modal__head {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding: 22px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}
.modal__head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.modal__close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
  display: grid; place-items: center;
}
.modal__close:hover { color: var(--text); border-color: var(--text-3); }

.modal__body {
  padding: 28px 32px 32px;
}
.modal__body h3 {
  font-size: 16px; font-weight: 500;
  letter-spacing: -0.01em;
  margin: 24px 0 8px;
}
.modal__body h3:first-child { margin-top: 0; }
.modal__body p, .modal__body ul {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.65;
  margin: 0 0 10px;
}
.modal__body ul { padding-left: 18px; }
.modal__body li { margin-bottom: 4px; }
.modal__body .doc-meta {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 18px;
}
.modal__body .doc-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 22px;
  display: flex; gap: 12px;
  font-size: 13px; color: var(--text-2);
}
.modal__body .doc-summary::before {
  content: ""; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex: 0 0 6px;
  margin-top: 7px;
}

/* ============ Success view (overlay) ============ */

body[data-view="success"] .main-content { display: none; }
body[data-view="success"] .success-view { display: block; }

.success-view { display: none; }

.success-hero {
  padding: 80px 0 40px;
  position: relative;
  background:
    radial-gradient(800px 500px at 50% 0%, var(--green-glow), transparent 60%),
    radial-gradient(900px 600px at 80% 100%, rgba(110, 168, 255, 0.12), transparent 60%);
}

.access-card {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-xl);
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.access-card::before {
  content: "";
  position: absolute;
  top: -50px; right: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(74, 222, 128, 0.4), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}
@media (max-width: 880px) { .access-card { grid-template-columns: 1fr; padding: 28px; } }

.access-card__info { position: relative; z-index: 1; }
.access-card__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em; font-weight: 500; margin: 14px 0 8px; }
.access-card__sub { color: var(--text-2); font-size: 16px; }
.access-card__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (max-width: 540px) { .access-card__meta { grid-template-columns: 1fr; } }
.access-card__visual { width: 220px; aspect-ratio: 1/1; position: relative; z-index: 1; }
@media (max-width: 880px) { .access-card__visual { display: none; } }
.meta-cell .label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.meta-cell .value { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; margin-top: 4px; }

.ribbon-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.ribbon-link__url { flex: 1; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ribbon-link__icon {
  width: 36px; height: 36px;
  background: linear-gradient(160deg, var(--blue), var(--violet));
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--bg);
  flex: 0 0 auto;
}

/* Device picker (success view) */
.device-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 900px) { .device-grid { grid-template-columns: repeat(2, 1fr); } }
.device-pick {
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color 0.15s, transform 0.15s;
  text-align: left;
}
.device-pick:hover { border-color: var(--line-2); transform: translateY(-2px); }
.device-pick[aria-pressed="true"] {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.10);
}
.device-pick svg { width: 28px; height: 28px; color: var(--text-2); }
.device-pick__name { font-size: 14px; font-weight: 500; }
.device-pick__time { font-family: var(--font-mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.05em; }

.instructions {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
}
.instr-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.instr-head h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.instr-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.instr-step:first-of-type { border-top: none; padding-top: 0; }
.instr-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px;
  color: var(--text-2);
}
.instr-body h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.instr-body p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }

/* ============ Theme toggle (fixed pill) ============ */

.theme-toggle {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 85%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid var(--line-2);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
[data-theme="light"] .theme-toggle {
  box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
}
.theme-toggle:hover {
  border-color: var(--text-3);
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.30);
}
.theme-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--blue);
}
.theme-toggle__icon svg { width: 16px; height: 16px; }
.theme-toggle__label { display: inline-block; }

/* Show the icon for the *target* state — clicking moves to that theme. */
body[data-theme="dark"]  .theme-toggle__icon--moon { display: none; }
body[data-theme="light"] .theme-toggle__icon--sun  { display: none; }

@media (max-width: 540px) {
  .theme-toggle {
    top: 76px;
    right: 12px;
    height: 34px;
    padding: 0 12px 0 10px;
    font-size: 12px;
  }
}

/* ============ Light-theme polish for sections that lacked it ============ */

[data-theme="light"] .step,
[data-theme="light"] .tariff,
[data-theme="light"] .device,
[data-theme="light"] .contact,
[data-theme="light"] .checkout-card,
[data-theme="light"] .restore-card,
[data-theme="light"] .instructions,
[data-theme="light"] .access-card {
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 20px 40px -24px rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .section--surface {
  background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent);
}

[data-theme="light"] .btn--primary:hover {
  box-shadow: 0 14px 40px -10px rgba(37, 99, 235, 0.40), 0 0 0 1px rgba(37, 99, 235, 0.30) inset;
}

[data-theme="light"] .ui-card {
  background: color-mix(in oklab, var(--surface) 96%, transparent);
  border-color: var(--line-2);
}

[data-theme="light"] .planet__chip {
  background: color-mix(in oklab, var(--surface) 92%, transparent);
  color: var(--text-2);
  border-color: var(--line-2);
}

[data-theme="light"] .tariff--featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06), transparent 50%), var(--surface);
  border-color: rgba(37, 99, 235, 0.40);
}
[data-theme="light"] .tariff[aria-pressed="true"],
[data-theme="light"] .tariff.is-selected {
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

[data-theme="light"] .co-yk__logo {
  background: linear-gradient(135deg, #4B2FE3 0%, #7C3AED 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .cookie-banner {
  background: color-mix(in oklab, var(--surface) 95%, transparent);
  box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.20);
}

[data-theme="light"] .header {
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  border-bottom-color: var(--line-2);
}

[data-theme="light"] .faq-item { border-color: var(--line-2); }
[data-theme="light"] .faq-list { border-top-color: var(--line-2); }
[data-theme="light"] .faq-item[open],
[data-theme="light"] .faq-item.is-open {
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}
[data-theme="light"] .faq-item[open] .faq-item__btn::after,
[data-theme="light"] .faq-item.is-open .faq-item__btn::after {
  color: #2563EB;
}

[data-theme="light"] .footer {
  border-top-color: var(--line-2);
  background: linear-gradient(180deg, transparent, var(--bg-2) 100%);
}

[data-theme="light"] .trust-strip,
[data-theme="light"] .trust-strip__item { border-color: var(--line-2); }

[data-theme="light"] .status {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.30);
}

[data-theme="light"] .email-pill,
[data-theme="light"] .input,
[data-theme="light"] .textarea,
[data-theme="light"] .select {
  background: var(--surface);
  border-color: var(--line-2);
}

[data-theme="light"] .ribbon-link {
  background: var(--bg-2);
  border-color: var(--line-2);
}

/* ============ Trial modal ============ */
.trial-modal { max-width: 560px; }
.trial-modal__lede {
  color: var(--text-2);
  font-size: 14px;
  margin: 0 0 18px;
  line-height: 1.55;
}
.trial-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.trial-form .check { padding: 2px 0; }
.trial-submit__label { display: inline-flex; align-items: center; gap: 6px; }
.trial-submit__loading { display: none; }
#trial-submit[data-loading="true"] .trial-submit__label { display: none; }
#trial-submit[data-loading="true"] .trial-submit__loading { display: inline-flex; }
#trial-submit[data-loading="true"] { cursor: progress; pointer-events: none; opacity: 0.85; }
.trial-success {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.trial-success__title {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.trial-success__text {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
  max-width: 50ch;
}
.trial-success__actions {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .trial-modal { max-width: 100%; }
  .trial-success__actions { flex-direction: column; align-items: stretch; }
  .trial-success__actions .btn { width: 100%; justify-content: center; }
}

[data-theme="light"] .trial-modal { background: var(--surface); }

/* ============================================================
   Responsive normalization — final pass
   Mobile  ≤ 767px
   Tablet  768–1023px
   Desktop ≥ 1024px
   Existing breakpoints above are kept; this block fills gaps,
   ensures min 44px hit targets, prevents horizontal scroll and
   adapts grids that previously sat awkwardly at tablet width.
   ============================================================ */

/* Universal containment — prevent stray children from overflowing */
.container { width: 100%; }
.hero, .section, .section--surface, .section--invert, .section--tight,
.footer, .success-hero, .success-view, .main-content {
  max-width: 100%;
  overflow-x: clip;
}

/* Defensive min-width: 0 for flex/grid children that hold long text */
.hero__copy, .hero__visual, .tariff, .step, .device, .contact,
.checkout-form, .checkout-summary, .restore-card__copy, .restore-form,
.faq-item, .footer__col, .access-card__info { min-width: 0; }

/* Buttons — guarantee mobile-tappable hit area (min 44px). Small btns OK on desktop. */
@media (max-width: 767px) {
  .btn { min-height: 44px; }
  .btn--sm { min-height: 40px; }
}

/* ===== Mobile ≤ 767px ===== */
@media (max-width: 767px) {
  .container { padding: 0 18px; }

  /* Header */
  .header__inner { height: 60px; gap: 8px; }
  .header__right .btn--sm { padding: 0 12px; font-size: 12.5px; height: 36px; min-height: 36px; }
  .brand { font-size: 17px; }
  /* .nav is already hidden ≤820px */

  /* Hero — single column, planet under text */
  .hero { padding: 48px 0 64px; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { min-height: 340px; max-width: 100%; margin: 0 auto; }
  .h1 { font-size: clamp(32px, 9vw, 44px); }
  .lede { font-size: 16px; }
  .ui-card--access { right: 0; top: 0; width: 220px; }
  .ui-card--connect { left: 0; bottom: 0; width: 240px; }

  /* Trust strip — 1 column on small phones, 2 on larger */
  .trust-strip { grid-template-columns: 1fr 1fr; padding: 22px 0; }
  .trust-strip__item { padding: 14px 16px; border-left: none; border-top: 1px solid var(--line); }
  .trust-strip__item:first-child,
  .trust-strip__item:nth-child(2) { border-top: none; }

  /* Sections — tighter vertical rhythm */
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }

  /* How it works — already 1 column at ≤540, keep here */
  .steps { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .step { padding: 22px 20px; min-height: 0; }

  /* Tariffs — 1 column, trial-note becomes stacked */
  .tariffs { gap: 14px; }
  .tariff { padding: 26px 22px; }
  .trial-note { padding: 18px 18px; flex-direction: column; align-items: stretch; gap: 14px; }
  .trial-note__btn { width: 100%; justify-content: center; }

  /* Checkout — single column, summary wraps */
  .checkout-card { padding: 20px; gap: 18px; }
  .checkout-summary { align-items: stretch; text-align: left; }
  .checkout-summary__amount { font-size: 40px; }
  .checkout-summary .btn { width: 100%; justify-content: center; }
  .pay-error { text-align: left; }

  /* Devices — 1 column on very small, 2 columns by default */
  .devices, .devices--main { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
  .device { padding: 18px 16px; gap: 8px; }
  .device__name { font-size: 14px; }

  /* FAQ */
  .faq-item { padding: 0 18px; }
  .faq-item__btn { font-size: 16px; padding: 18px 0; gap: 16px; }
  .faq-item__answer { padding: 0 0 18px 0; font-size: 14px; }

  /* Restore */
  .restore-card { padding: 20px; gap: 18px; }
  .restore-form .btn { width: 100%; justify-content: center; }

  /* Telegram banner */
  .tg-banner { padding: 28px 22px; gap: 18px; }
  .tg-banner__copy h2 { font-size: 22px; }
  .tg-banner__action .btn { width: 100%; justify-content: center; }

  /* Footer */
  .footer { padding: 48px 0 28px; margin-top: 40px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { font-size: 10px; }

  /* Cookie banner */
  .cookie-banner { padding: 14px; gap: 12px; }
  .cookie-banner__text { font-size: 12.5px; line-height: 1.5; }

  /* Theme toggle — compact, push down so it doesn't overlap header CTA */
  .theme-toggle { top: 70px; right: 12px; height: 32px; font-size: 12px; padding: 0 10px; }
  .theme-toggle__icon svg { width: 14px; height: 14px; }

  /* Success view */
  .access-card { padding: 22px; gap: 22px; }
  .access-card__title { font-size: 26px; }
  .ribbon-link { padding: 14px 14px; gap: 10px; flex-wrap: wrap; }
  .ribbon-link__url { white-space: normal; word-break: break-all; flex-basis: 100%; order: 3; }
  .ribbon-link .btn--sm { width: 100%; justify-content: center; }
  .access-actions { gap: 8px; }
  .access-actions .btn { flex: 1 1 100%; justify-content: center; }
  .instructions { padding: 22px 18px; }
  .device-grid, .devices--main { gap: 10px; }
}

/* ===== Mobile ≤ 380px (extra small phones) ===== */
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .header__right .btn--sm { font-size: 12px; padding: 0 10px; }
  .h1 { font-size: 30px; }
  .h2 { font-size: 24px; }
  .checkout-summary__amount { font-size: 36px; }
  .tariff__price .amount { font-size: 36px; }
  .tariff__price .currency { font-size: 24px; }
}

/* ===== Tablet 768–1023px ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .container { padding: 0 28px; }

  /* Hero — keep two-column but tighten gap, scale planet down */
  .hero__grid { gap: 36px; grid-template-columns: 1fr 1fr; }
  .hero__visual { min-height: 380px; }

  /* Trust strip — 2x2 reads better on tablet */
  .trust-strip { grid-template-columns: 1fr 1fr; gap: 0; }
  .trust-strip__item:nth-child(odd) { border-left: none; }

  /* How it works — 2 columns */
  .steps { grid-template-columns: repeat(2, 1fr); }

  /* Tariffs — 2 columns, featured plan spans full width to keep prominence */
  .tariffs { grid-template-columns: repeat(2, 1fr); }
  .tariff--featured { grid-column: 1 / -1; }
  .tariff--featured .tariff__list { max-width: 60ch; }

  /* Checkout — keep two-column layout but allow summary to wrap below if cramped */
  .checkout-card { grid-template-columns: 1fr; gap: 22px; }
  .checkout-summary { align-items: stretch; text-align: left; }

  /* Devices — 2 columns of larger cards */
  .devices, .devices--main { grid-template-columns: repeat(2, 1fr); }

  /* FAQ — comfortable, not full-width */
  .faq-list { max-width: 760px; }

  /* Restore — keep two-column but tighter */
  .restore-card { gap: 28px; }

  /* Footer — 2 columns of pairs */
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* Success-view: keep visual but smaller */
  .access-card { gap: 24px; }
  .access-card__visual { width: 180px; }
}

/* ===== Desktop ≥ 1024px ===== */
@media (min-width: 1024px) {
  .container { max-width: 1200px; padding: 0 32px; }

  .tariffs { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .devices--main { grid-template-columns: repeat(4, 1fr); }
  .device-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Anti-overlap: planet must not cover hero text on tablet ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero__visual .planet { max-width: 360px; }
}
