/* ============================================================
   LASTBOT — дизайн-система
   Тёмная тема · неон · glassmorphism · bento · геймификация
   ============================================================ */

:root {
  /* База */
  --bg-0: #04060d;
  --bg-1: #070b18;
  --bg-2: #0b1124;
  --panel: rgba(148, 170, 255, 0.045);
  --panel-strong: rgba(148, 170, 255, 0.08);
  --border: rgba(160, 185, 255, 0.14);
  --border-strong: rgba(160, 185, 255, 0.28);

  /* Неон */
  --cyan: #22d3ee;
  --cyan-soft: #67e8f9;
  --blue: #4d7cff;
  --violet: #8b5cf6;
  --violet-soft: #a78bfa;
  --green: #4ade80;
  --green-acid: #a3ff5e;
  --amber: #fbbf24;
  --red: #f87171;

  /* Текст */
  --text: #e8eeff;
  --text-dim: #9aa8cc;
  --text-faint: #6b7aa3;

  /* Прочее */
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1200px;
  --header-h: 72px;
  --font-display: "Unbounded", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --glow-cyan: 0 0 24px rgba(34, 211, 238, 0.35);
  --glow-violet: 0 0 28px rgba(139, 92, 246, 0.4);
  --shadow-card: 0 20px 60px rgba(2, 6, 20, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--cyan-soft); text-decoration: none; }
ul, ol, dl { margin: 0; padding: 0; }
li { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34,211,238,.5), rgba(139,92,246,.5));
  border-radius: 8px;
}

.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -60px; left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Фоновые слои ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-particles { position: absolute; inset: 0; width: 100%; height: 100%; }

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: .5;
  will-change: transform;
}
.orb-a {
  width: 560px; height: 560px;
  top: -160px; right: -140px;
  background: radial-gradient(circle, rgba(77,124,255,.5) 0%, rgba(77,124,255,.18) 45%, transparent 70%);
  animation: orbFloat 16s ease-in-out infinite alternate;
}
.orb-b {
  width: 640px; height: 640px;
  bottom: -220px; left: -200px;
  background: radial-gradient(circle, rgba(139,92,246,.45) 0%, rgba(139,92,246,.16) 45%, transparent 70%);
  animation: orbFloat 20s ease-in-out infinite alternate-reverse;
}
@keyframes orbFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 50px, 0) scale(1.12); }
}

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110, 140, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 140, 255, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

.bg-noise {
  position: absolute; inset: 0;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 14px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .01em;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }

.btn-primary {
  color: #030712;
  background: linear-gradient(120deg, var(--cyan), var(--blue) 55%, var(--violet));
  box-shadow: var(--glow-cyan), var(--glow-violet);
  border: 1px solid transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(34,211,238,.5), 0 0 60px rgba(139,92,246,.45);
}
.btn-primary::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
  transform: translateY(-2px);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18);
}

.btn-lg { padding: 18px 40px; font-size: 16px; border-radius: 16px; }
.btn-sm { padding: 11px 22px; font-size: 13px; border-radius: 11px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(5, 8, 18, 0.72);
  border-bottom-color: var(--border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.logo-mark { width: 36px; height: 36px; filter: drop-shadow(0 0 10px rgba(34,211,238,.5)); }
.logo-word {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .06em;
}
.logo-accent {
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav { display: flex; gap: 6px; }
.main-nav a {
  position: relative;
  padding: 10px 16px;
  color: var(--text-dim);
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.main-nav a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulseDot 2s ease-in-out infinite;
}
.online-label { font-family: var(--font-mono); font-size: 12px; color: var(--green); letter-spacing: .08em; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.72); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 72px 0 88px;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 9px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: .02em;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: pulseDot 1.8s ease-in-out infinite;
}

.hero-title { display: flex; flex-direction: column; gap: 6px; margin-bottom: 26px; }
.hero-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-line-1 {
  font-size: clamp(20px, 2.6vw, 30px);
  color: var(--text-dim);
  font-weight: 600;
}
.hero-line-2 {
  font-size: clamp(38px, 7vw, 78px);
  text-transform: uppercase;
  line-height: 1.08;
}
.grad-text {
  background: linear-gradient(100deg, var(--cyan) 10%, var(--blue) 45%, var(--violet) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Кинетическая типографика */
.kw {
  display: inline-block;
  opacity: 0;
  transform: translateY(46px);
  filter: blur(10px);
  animation: kwRise .9s cubic-bezier(.2, .8, .2, 1) forwards;
  will-change: transform, opacity, filter;
}
.kw-1 { color: var(--green-acid); text-shadow: 0 0 34px rgba(163, 255, 94, .45); animation-delay: .15s; }
.kw-2 { color: var(--cyan-soft); text-shadow: 0 0 38px rgba(34, 211, 238, .55); animation-delay: .34s; margin-inline: .12em; }
.kw-3 {
  color: var(--violet-soft);
  text-shadow: 0 0 40px rgba(139, 92, 246, .6);
  animation-delay: .53s;
}
@keyframes kwRise {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.hero-sub {
  max-width: 640px;
  margin-bottom: 38px;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-dim);
}
.hero-sub strong { color: var(--text); font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-bottom: 34px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-bottom: 58px;
}
.hero-trust li {
  position: relative;
  padding-left: 20px;
  font-size: 13.5px;
  color: var(--text-faint);
}
.hero-trust li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--green);
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 960px;
}
.stat {
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.stat:hover { border-color: var(--border-strong); box-shadow: 0 0 30px rgba(34,211,238,.12); transform: translateY(-3px); }
.stat dt {
  order: 2;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.stat dd {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: var(--text);
}
.stat dd span { color: var(--cyan-soft); }

.hero-scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
}
.hero-scroll i {
  width: 1px; height: 34px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Секции ---------- */
.section { padding: 96px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-tag {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(34, 211, 238, .5);
}
.section-head h2 { font-size: clamp(26px, 4.2vw, 42px); margin-bottom: 16px; }
.section-head p { color: var(--text-dim); font-size: 17px; }

/* ---------- Reveal (scrollytelling) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease var(--d, 0s), transform .8s cubic-bezier(.2, .7, .2, 1) var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Glass-карточки ---------- */
.glass-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease, background .3s ease;
}
.glass-card:hover {
  border-color: var(--border-strong);
  background: var(--panel-strong);
  box-shadow: var(--shadow-card), 0 0 34px rgba(77, 124, 255, 0.14);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}
.card-icon svg { width: 26px; height: 26px; }
.icon-green { color: var(--green); box-shadow: 0 0 22px rgba(74, 222, 128, 0.25); }
.icon-cyan { color: var(--cyan-soft); box-shadow: 0 0 22px rgba(34, 211, 238, 0.28); }
.icon-violet { color: var(--violet-soft); box-shadow: 0 0 22px rgba(139, 92, 246, 0.3); }
.icon-amber { color: var(--amber); box-shadow: 0 0 22px rgba(251, 191, 36, 0.25); }

/* ---------- Why us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-grid .glass-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; }
.why-grid h3 { font-size: 17px; }
.why-grid p { font-size: 14.5px; color: var(--text-dim); flex: 1; }

.xp-bar {
  position: relative;
  height: 26px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(3, 6, 16, 0.6);
  overflow: hidden;
}
.xp-fill {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.5);
  transition: width 1.6s cubic-bezier(.25, .8, .3, 1);
}
.xp-fill span {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-item { padding: 30px 28px; display: flex; flex-direction: column; gap: 16px; }
.bento-ally { grid-column: span 4; }
.bento-farm { grid-column: span 2; }
.bento-item:not(.bento-ally):not(.bento-farm):not(.bento-wide) { grid-column: span 2; }
.bento-wide { grid-column: span 6; }

/* Флагманский модуль: помощь альянсу */
.bento-ally {
  border-color: rgba(139, 92, 246, 0.45);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.16), rgba(5, 8, 20, 0.55) 60%);
  box-shadow: 0 0 44px rgba(139, 92, 246, 0.16), var(--shadow-card);
}
.bento-ally:hover {
  border-color: rgba(167, 139, 250, 0.65);
  background: linear-gradient(165deg, rgba(139, 92, 246, 0.24), rgba(5, 8, 20, 0.6) 60%);
  box-shadow: 0 0 56px rgba(139, 92, 246, 0.22), var(--shadow-card);
}
.bento-ally h3 { font-size: 21px; }
.bento-ally .bento-list li::before {
  border-color: rgba(167, 139, 250, 0.55);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.6) 3px, transparent 4px);
}

.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bento-item h3 { font-size: 19px; }
.bento-item p { font-size: 14.5px; color: var(--text-dim); }

.bento-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  border: 1px solid;
}
.tag-green { color: var(--green-acid); border-color: rgba(163,255,94,.4); background: rgba(163,255,94,.08); text-shadow: 0 0 12px rgba(163,255,94,.6); }
.tag-cyan { color: var(--cyan-soft); border-color: rgba(34,211,238,.4); background: rgba(34,211,238,.08); text-shadow: 0 0 12px rgba(34,211,238,.6); }
.tag-violet { color: var(--violet-soft); border-color: rgba(139,92,246,.45); background: rgba(139,92,246,.1); text-shadow: 0 0 12px rgba(139,92,246,.6); }

.bento-list { display: flex; flex-direction: column; gap: 9px; margin-top: 4px; }
.bento-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14px;
  color: var(--text-dim);
}
.bento-list li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 16px; height: 16px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(74, 222, 128, 0.5);
  background: radial-gradient(circle, rgba(74,222,128,.5) 3px, transparent 4px);
}

.bento-wide-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.bento-wide-body > div:first-child { max-width: 720px; display: flex; flex-direction: column; gap: 12px; }

.target-box {
  position: relative;
  flex-shrink: 0;
  width: 150px; height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 40%, rgba(34,211,238,.12), rgba(3,6,16,.4));
}
.target-box svg { width: 52px; height: 52px; color: var(--cyan); filter: drop-shadow(0 0 14px rgba(34,211,238,.7)); }
.target-ring {
  position: absolute; inset: 26px;
  border: 1px dashed rgba(34, 211, 238, 0.55);
  border-radius: 50%;
  animation: spin 14s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  padding: 36px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.price-card:hover { transform: translateY(-6px); }

.price-lvl {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text-dim);
}
.price-card h3 { font-size: 22px; }
.price-bots { font-size: 15px; color: var(--text-dim); }
.price-bots strong { font-size: 30px; color: var(--text); font-family: var(--font-display); font-weight: 800; }
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-period { color: var(--text-faint); font-size: 14px; }
.price-per {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--green-acid);
  text-shadow: 0 0 14px rgba(163, 255, 94, 0.4);
}
.price-rub {
  font-family: var(--font-mono);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--amber);
}
html.light .price-per { text-shadow: none; }

.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 20px 0;
  margin: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex: 1;
}
.price-features li {
  position: relative;
  padding-left: 28px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.price-features li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 17px; height: 17px;
  transform: translateY(-50%);
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.55);
  background: radial-gradient(circle, rgba(34,211,238,.6) 3px, transparent 4px);
}

.price-popular {
  border-color: rgba(139, 92, 246, 0.65);
  background: linear-gradient(180deg, rgba(139,92,246,.14), rgba(34,211,238,.05) 55%, var(--panel));
  box-shadow: 0 0 46px rgba(139, 92, 246, 0.28), var(--shadow-card);
}
.price-popular .price-lvl { border-color: rgba(139,92,246,.6); color: var(--violet-soft); text-shadow: 0 0 12px rgba(139,92,246,.6); }
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #030712;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 0 26px rgba(139, 92, 246, 0.55);
}

.pricing-notes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
  text-align: center;
}
.note-renewal { max-width: 560px; font-size: 13.5px; color: var(--text-faint); }

/* ---------- News ---------- */
.news-panel { padding: 26px 28px; max-width: 820px; margin: 0 auto; }
.news-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.news-live { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-dim); }
.news-live .pulse-dot { background: var(--green); }

.news-refresh {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 13px;
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.news-refresh svg { width: 15px; height: 15px; }
.news-refresh:hover { color: var(--cyan-soft); border-color: rgba(34,211,238,.5); box-shadow: 0 0 18px rgba(34,211,238,.2); }
.news-refresh.loading svg { animation: spin 1s linear infinite; }

.news-list { display: flex; flex-direction: column; }
.news-item {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 17px 6px;
  border-bottom: 1px solid rgba(160, 185, 255, 0.08);
  transition: background .25s ease;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: rgba(148, 170, 255, 0.05); }
.news-date {
  flex-shrink: 0;
  width: 92px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
}
.news-title { font-size: 15px; font-weight: 500; color: var(--text); line-height: 1.5; }
.news-title:hover { color: var(--cyan-soft); }
.news-source {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--text-faint);
}
.news-foot {
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
}

.news-loading { display: flex; flex-direction: column; gap: 8px; padding: 17px 6px; border-bottom: 1px solid rgba(160,185,255,.08); }
.news-skeleton {
  display: block;
  height: 15px;
  width: 85%;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(148,170,255,.06) 25%, rgba(148,170,255,.16) 50%, rgba(148,170,255,.06) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease infinite;
}
.news-skeleton.short { width: 38%; height: 11px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Steps ---------- */
#how .container { position: relative; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}
.steps-line {
  position: absolute;
  top: 44px; left: 12%; right: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 20%, var(--violet) 80%, transparent);
  opacity: .35;
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}
.step { text-align: center; padding: 0 14px; }
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  margin: 0 auto 24px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: linear-gradient(140deg, rgba(34,211,238,.16), rgba(139,92,246,.18));
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--cyan-soft);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.6);
  position: relative;
  z-index: 2;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item { border-radius: var(--radius); overflow: hidden; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cyan-soft); }
.faq-item summary svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  color: var(--cyan);
  transition: transform .3s ease;
}
.faq-item[open] summary svg { transform: rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 0 26px; }
.faq-body p { padding: 20px 0 24px; color: var(--text-dim); font-size: 15px; }
.faq-item[open] .faq-body { animation: faqOpen .4s ease; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- CTA ---------- */
.cta-panel {
  position: relative;
  padding: 72px 40px;
  text-align: center;
  border-radius: 30px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(77,124,255,.12), rgba(139,92,246,.1) 50%, rgba(34,211,238,.06));
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(34,211,238,.16) 85%, rgba(139,92,246,.16) 95%, transparent 100%);
  animation: spin 16s linear infinite;
  pointer-events: none;
}
.cta-panel h2 { font-size: clamp(28px, 4.5vw, 44px); margin-bottom: 16px; position: relative; }
.cta-panel p { max-width: 560px; margin: 0 auto 34px; color: var(--text-dim); font-size: 17px; position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; position: relative; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: rgba(4, 6, 13, 0.6);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding: 56px 0 40px;
}
.footer-brand { max-width: 320px; }
.footer-tagline { margin-top: 18px; color: var(--text-faint); font-size: 14px; }

.footer-nav { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-nav h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer-nav a, .footer-hours {
  display: block;
  margin-bottom: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--cyan-soft); }
.footer-hours { color: var(--green); font-family: var(--font-mono); font-size: 12.5px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 0 30px;
  border-top: 1px solid rgba(160, 185, 255, 0.1);
  font-size: 13px;
  color: var(--text-faint);
}
.footer-disclaimer { max-width: 620px; }

/* ============================================================
   Правовые страницы (legal)
   ============================================================ */
.legal-page .site-header { position: relative; }
.legal-main { padding: 64px 0 96px; }
.legal-prose { max-width: 780px; margin: 0 auto; }
.legal-prose h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 12px;
}
.legal-updated { font-family: var(--font-mono); font-size: 13px; color: var(--text-faint); margin-bottom: 40px; }
.legal-prose h2 {
  font-size: 20px;
  margin: 40px 0 14px;
  color: var(--cyan-soft);
}
.legal-prose p, .legal-prose li { color: var(--text-dim); font-size: 15.5px; margin-bottom: 12px; }
.legal-prose ul { padding-left: 22px; }
.legal-prose li { list-style: disc; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-ally { grid-column: span 6; }
  .bento-farm { grid-column: span 3; }
  .bento-item:not(.bento-ally):not(.bento-farm):not(.bento-wide) { grid-column: span 3; }
  .bento-wide { grid-column: span 6; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
  .price-popular { order: -1; }
}

@media (max-width: 820px) {
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 18px 24px 26px;
    background: rgba(5, 8, 18, 0.96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid rgba(160,185,255,.07); }
  .nav-toggle { display: flex; }
  .online-label { display: none; }
  .header-cta .btn { display: none; }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps-line { display: none; }
  .bento-wide-body { flex-direction: column; align-items: flex-start; }
  .target-box { align-self: center; }
  .footer-inner { flex-direction: column; gap: 36px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 36px); }
  .section { padding: 68px 0; }
  .why-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento-ally, .bento-farm, .bento-item:not(.bento-ally):not(.bento-farm):not(.bento-wide), .bento-wide { grid-column: span 1; }
  .hero { padding: 52px 0 96px; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .hero-stats { gap: 10px; }
  .stat { padding: 14px 8px; }
  .news-item { flex-direction: column; gap: 6px; }
  .news-date { width: auto; }
  .cta-panel { padding: 52px 22px; }
  .cta-actions .btn { width: 100%; max-width: 340px; }
  .price-card { padding: 30px 22px 26px; }
  :root { --shadow-card: 0 12px 30px rgba(2, 6, 20, 0.45); }
  .orb-a { width: 340px; height: 340px; }
  .orb-b { width: 380px; height: 380px; }
  .cta-glow { animation: none; }
}

/* ---------- Слабые GPU / мобильные: дешевле композитинг ---------- */
@media (hover: none) and (pointer: coarse), (max-width: 820px) {
  .glass-card, .site-footer {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .glass-card { background: rgba(148, 170, 255, 0.09); }
  .glass-card:hover { background: rgba(148, 170, 255, 0.13); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .kw { opacity: 1; transform: none; filter: none; }
}


/* ============================================================
   Вкладки новостей + промокоды
   ============================================================ */
.news-head { flex-wrap: wrap; gap: 12px 16px; }
.news-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(3, 6, 16, 0.5);
}
.news-tab {
  padding: 8px 18px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-dim);
  transition: color .2s, background .2s, box-shadow .2s;
}
.news-tab:hover { color: var(--text); }
.news-tab.is-active {
  color: #030712;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
}
.news-tabpanel[hidden] { display: none; }

.news-badge {
  display: inline-block;
  margin-left: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  vertical-align: middle;
}
.news-badge.official {
  color: var(--violet-soft);
  border: 1px solid rgba(139, 92, 246, 0.5);
  background: rgba(139, 92, 246, 0.1);
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.codes-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 6px 0 18px;
}
.code-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(148, 170, 255, 0.05);
}
.code-row { display: flex; align-items: center; gap: 10px; }
.code-value {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--green-acid);
  text-shadow: 0 0 16px rgba(163, 255, 94, 0.4);
}
.code-copy {
  flex-shrink: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 12.5px;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.code-copy:hover { color: var(--cyan-soft); border-color: rgba(34, 211, 238, 0.5); }
.code-copy.copied { color: var(--green); border-color: rgba(74, 222, 128, 0.6); box-shadow: 0 0 14px rgba(74, 222, 128, 0.25); }
.code-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12.5px;
  color: var(--text-faint);
}
.code-exp { font-family: var(--font-mono); font-size: 11.5px; }
.code-meta a { color: var(--text-faint); text-decoration: underline; }
.code-meta a:hover { color: var(--cyan-soft); }

.codes-howto {
  padding: 18px 20px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(148, 170, 255, 0.03);
}
.codes-howto h4 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.codes-howto ol { display: flex; flex-direction: column; gap: 8px; counter-reset: code-step; }
.codes-howto li {
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  color: var(--text-dim);
  counter-increment: code-step;
}
.codes-howto li::before {
  content: counter(code-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.codes-note { margin-top: 12px; font-size: 12.5px; color: var(--text-faint); }
.codes-note a { color: var(--cyan-soft); }

@media (max-width: 640px) {
  .codes-list { grid-template-columns: 1fr; }
  .news-head { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Переключатель языка
   ============================================================ */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.lang-btn:hover { color: var(--cyan-soft); border-color: var(--border-strong); box-shadow: 0 0 14px rgba(34, 211, 238, 0.15); }
.lang-globe { width: 15px; height: 15px; }
.lang-caret { width: 11px; height: 11px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(7, 11, 24, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(2, 6, 20, 0.7);
}
.lang-menu[hidden] { display: none; }
.lang-menu li {
  padding: 9px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-menu li:hover { background: rgba(148, 170, 255, 0.1); color: var(--text); }
.lang-menu li[data-lang="ru"],
.lang-menu li[data-lang="en"],
.lang-menu li[data-lang="es"],
.lang-menu li[data-lang="de"],
.lang-menu li[data-lang="fr"],
.lang-menu li[data-lang="pt"],
.lang-menu li[data-lang="zh"],
.lang-menu li[data-lang="ar"] { list-style: none; }

/* ============================================================
   Базовый RTL (арабский)
   ============================================================ */
[dir="rtl"] .bento-list li { padding-left: 0; padding-right: 26px; }
[dir="rtl"] .bento-list li::before { left: auto; right: 0; }
[dir="rtl"] .price-features li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .price-features li::before { left: auto; right: 0; }
[dir="rtl"] .hero-trust li { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .hero-trust li::before { left: auto; right: 0; }
[dir="rtl"] .codes-howto li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .codes-howto li::before { left: auto; right: 0; }
[dir="rtl"] .news-item { flex-direction: row-reverse; }
[dir="rtl"] .news-date { text-align: right; }
[dir="rtl"] .news-badge { margin-left: 0; margin-right: 10px; }
[dir="rtl"] .bento-wide-body { flex-direction: row-reverse; }
[dir="rtl"] .faq-item summary svg { transform: scaleX(-1); }
[dir="rtl"] .faq-item[open] summary svg { transform: scaleX(-1) rotate(45deg); }

/* ============================================================
   Светлая тема (html.light)
   ============================================================ */
html.light {
  --bg-0: #eef2fa;
  --bg-1: #f6f8fd;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --border: rgba(15, 23, 42, 0.1);
  --border-strong: rgba(15, 23, 42, 0.2);

  --cyan: #0891b2;
  --cyan-soft: #0e7490;
  --blue: #4d7cff;
  --violet: #7c3aed;
  --violet-soft: #6d28d9;
  --green: #16a34a;
  --green-acid: #4d7c0f;
  --amber: #b45309;
  --red: #dc2626;

  --text: #0f172a;
  --text-dim: #475569;
  --text-faint: #64748b;

  --glow-cyan: 0 0 20px rgba(8, 145, 178, 0.22);
  --glow-violet: 0 0 24px rgba(124, 58, 237, 0.22);
  --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html.light body { background: var(--bg-0); }

/* Фоновые слои */
html.light .bg-grid {
  background-image:
    linear-gradient(rgba(30, 64, 175, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 64, 175, 0.06) 1px, transparent 1px);
}
html.light .orb { opacity: .32; }
html.light .bg-noise { opacity: .022; }

/* Шапка и меню */
html.light .site-header.scrolled { background: rgba(255, 255, 255, 0.82); }
html.light .main-nav a { border-bottom-color: rgba(15, 23, 42, 0.07); }
html.light .lang-menu {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}
html.light .lang-menu li:hover { background: rgba(77, 124, 255, 0.1); }

/* Неоновые тени → мягкие, читаемые на белом */
html.light .section-tag,
html.light .kw-1,
html.light .kw-2,
html.light .kw-3,
html.light .step-num,
html.light .price-per,
html.light .code-value,
html.light .news-badge.official { text-shadow: none; }
html.light .kw-1 { text-shadow: 0 2px 14px rgba(77, 124, 15, 0.3); }
html.light .kw-2 { text-shadow: 0 2px 14px rgba(8, 145, 178, 0.3); }
html.light .kw-3 { text-shadow: 0 2px 14px rgba(124, 58, 237, 0.3); }

/* Кнопки и градиентные элементы: тёмный градиент → белый текст */
html.light .btn-primary,
html.light .news-tab.is-active,
html.light .price-badge { color: #ffffff; }
html.light .btn-primary:hover {
  box-shadow: 0 0 24px rgba(8, 145, 178, 0.3), 0 0 44px rgba(124, 58, 237, 0.3);
}

/* Карточки */
html.light .card-icon { background: rgba(15, 23, 42, 0.05); }
html.light .xp-bar { background: rgba(15, 23, 42, 0.07); }
html.light .bento-ally {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.12), rgba(255, 255, 255, 0.75) 60%);
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.16), var(--shadow-card);
}
html.light .bento-ally:hover {
  background: linear-gradient(165deg, rgba(124, 58, 237, 0.16), rgba(255, 255, 255, 0.85) 60%);
}
html.light .target-box {
  background: radial-gradient(circle at 50% 40%, rgba(8, 145, 178, 0.12), rgba(255, 255, 255, 0.8));
}

/* Тарифы */
html.light .price-lvl { background: rgba(15, 23, 42, 0.05); }
html.light .price-popular {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(8, 145, 178, 0.06) 55%, var(--panel));
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.18), var(--shadow-card);
}

/* Новости и промокоды */
html.light .news-tabs { background: rgba(15, 23, 42, 0.06); }
html.light .news-item,
html.light .news-loading { border-bottom-color: rgba(15, 23, 42, 0.08); }
html.light .news-item:hover { background: rgba(15, 23, 42, 0.05); }
html.light .code-card { background: rgba(77, 124, 255, 0.06); }
html.light .codes-howto { background: rgba(77, 124, 255, 0.04); }

/* CTA и футер */
html.light .site-footer { background: rgba(255, 255, 255, 0.75); }
html.light .footer-bottom { border-top-color: rgba(15, 23, 42, 0.08); }

/* Мобильные стеклянные панели */
html.light .glass-card { background: rgba(255, 255, 255, 0.85); }
html.light .glass-card:hover { background: rgba(255, 255, 255, 0.95); }

/* Кнопка переключения темы */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  color: var(--text-dim);
  cursor: pointer;
  transition: color .2s, border-color .2s, box-shadow .2s;
}
.theme-toggle:hover {
  color: var(--amber);
  border-color: var(--border-strong);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.18);
}
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .ico-sun { display: none; }
html.light .theme-toggle .ico-sun { display: block; }
html.light .theme-toggle .ico-moon { display: none; }

/* ============================================================
   Панель промокодов в верхней части главного экрана
   ============================================================ */
.hero-codes {
  display: flex;
  flex-direction: column;
  margin-bottom: 26px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-codes-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
}
.hero-codes-head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.hero-codes-head svg { width: 15px; height: 15px; color: var(--amber); }
.hero-codes-list { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hero-code-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px 5px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-2);
}
.hero-code-value {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--green-acid);
  text-shadow: 0 0 14px rgba(163, 255, 94, 0.35);
}
html.light .hero-code-value { text-shadow: none; }
.hero-code-exp { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-faint); }
.hero-code-chip .code-copy { padding: 6px 12px; font-size: 11.5px; }

/* Инструкция «Как активировать» внутри панели */
.hero-codes-how {
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.hero-codes-how summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  list-style: none;
  transition: color .2s;
}
.hero-codes-how summary::-webkit-details-marker { display: none; }
.hero-codes-how summary:hover { color: var(--cyan-soft); }
.hero-codes-how summary svg { width: 13px; height: 13px; transition: transform .25s ease; }
.hero-codes-how[open] summary svg { transform: rotate(180deg); }
.hero-codes-how ol {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
  counter-reset: hero-code-step;
}
.hero-codes-how li {
  position: relative;
  padding-left: 28px;
  font-size: 12.5px;
  color: var(--text-dim);
  counter-increment: hero-code-step;
}
.hero-codes-how li::before {
  content: counter(hero-code-step);
  position: absolute;
  left: 0; top: 0;
  width: 19px; height: 19px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
[dir="rtl"] .hero-codes-how li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .hero-codes-how li::before { left: auto; right: 0; }

/* ============================================================
   Новые системы: калькуляторы, акции, триал, отзывы, дашборд
   ============================================================ */

/* Ссылка на реферальный код в панели промокодов */
.hero-codes-ref {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--amber);
}

/* ---------- Ползунки (range) ---------- */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--violet);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.55);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid var(--violet);
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.55);
}
html.light input[type="range"]::-webkit-slider-thumb { background: #ffffff; border-color: var(--violet); }
html.light input[type="range"]::-moz-range-thumb { background: #ffffff; border-color: var(--violet); }

/* ---------- Калькулятор тарифов ---------- */
.pricing-calc {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  padding: 12px 16px;
  border: 1px dashed rgba(251, 191, 36, 0.5);
  border-radius: 14px;
  background: rgba(251, 191, 36, 0.08);
  font-size: 14px;
  color: var(--text-dim);
}
.promo-badge {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.promo-banner strong { color: var(--amber); }
.promo-desc { font-size: 13px; color: var(--text-faint); }

.calc-slider { display: flex; flex-direction: column; gap: 10px; }
.calc-slider-head { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: var(--text-dim); }
.calc-slider-head strong {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--text);
}
.calc-scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

.calc-periods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.calc-period {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.calc-period:hover { color: var(--text); border-color: var(--border-strong); }
.calc-period.is-active {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.6);
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.16), rgba(34, 211, 238, 0.08));
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.25);
}
.period-badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-acid);
  color: #04060d;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  font-style: normal;
}
html.light .period-badge { color: #ffffff; }

.calc-summary { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.calc-total { display: flex; flex-direction: column; gap: 6px; }
.calc-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-faint); }
.calc-amounts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 12px 16px; }
.calc-usd {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.calc-old { font-size: 24px; color: var(--red); opacity: .75; }
.calc-per { font-family: var(--font-mono); font-size: 13px; color: var(--green-acid); }
.calc-rub { font-family: var(--font-mono); font-size: 17px; font-weight: 600; color: var(--amber); }
.calc-save { font-size: 14px; color: var(--text-dim); }
.calc-save strong { color: var(--green-acid); font-family: var(--font-mono); font-size: 16px; }
.calc-promo-save { margin-left: 10px; color: var(--cyan); font-family: var(--font-mono); font-size: 14px; }
.calc-cashback { font-size: 13px; color: var(--text-faint); }
.calc-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Отзывы ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testimonial-card { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.testimonial-stars { color: var(--amber); font-size: 16px; letter-spacing: .12em; }
.testimonial-text { font-size: 14.5px; color: var(--text-dim); flex: 1; }
.testimonial-meta { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.testimonial-meta span { font-size: 12.5px; color: var(--text-faint); }

/* ---------- Модалка триала ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 6, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay[hidden] { display: none; }
html.light .modal-overlay { background: rgba(15, 23, 42, 0.35); }
.modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 34px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-card h2 { font-size: 22px; }
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 10px;
  color: var(--text-faint);
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: var(--panel); }
.modal-open { overflow: hidden; }

.fld { display: flex; flex-direction: column; gap: 8px; }
.fld > span { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.fld input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  transition: border-color .2s, box-shadow .2s;
}
.fld input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
}
.trial-error { font-size: 13px; color: var(--red); }
.trial-success { display: flex; flex-direction: column; gap: 14px; text-align: center; }
.trial-success h3 { font-size: 20px; color: var(--green-acid); }
.trial-success p { font-size: 14.5px; color: var(--text-dim); }

/* ---------- Дашборд (/dashboard) ---------- */
.dash-main { padding: 48px 0 72px; }
.dash-title { font-size: clamp(26px, 4vw, 38px); }
.dash-lookup {
  max-width: 520px;
  margin: 0 auto 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.dash-lookup .fld input { text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-mono); }
.dash-error { max-width: 520px; margin: 0 auto 18px; text-align: center; font-size: 14px; color: var(--red); }
.dash-board { display: flex; flex-direction: column; gap: 18px; max-width: 860px; margin: 0 auto; }
.dash-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dash-card { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.dash-card-label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-faint); }
.dash-card-value { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--cyan-soft); }
.dash-section { padding: 26px; }
.dash-section h2 { font-size: 18px; margin-bottom: 14px; }
.dash-table-wrap { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dash-table th {
  padding: 10px 12px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border-strong);
}
.dash-table td { padding: 10px 12px; color: var(--text-dim); border-bottom: 1px solid var(--border); }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-empty { padding: 16px 12px; font-size: 13.5px; color: var(--text-faint); }

/* ---------- Адаптив для новых блоков ---------- */
@media (max-width: 820px) {
  .testimonials-grid { grid-template-columns: 1fr; }
  .dash-cards { grid-template-columns: 1fr; }
  .calc-periods { grid-template-columns: repeat(2, 1fr); }
  .pricing-calc { padding: 26px 20px; }
}
@media (max-width: 640px) {
  .calc-periods { grid-template-columns: 1fr 1fr; }
  .calc-usd { font-size: 36px; }
}
/* Гарантия: атрибут hidden всегда скрывает элемент,
   даже если у него задан display в других правилах */
[hidden] { display: none !important; }
