:root {
  --bg: #070b18;
  --bg-2: #07121f;
  --card: rgba(255,255,255,.045);
  --card-2: rgba(255,255,255,.075);
  --border: rgba(126,177,255,.15);
  --text: #f4f7ff;
  --muted: #a7b1c8;
  --accent: #35c7ff;
  --accent-2: #7c5cff;
  --accent-3: #21ffd9;
  --shadow: 0 28px 80px rgba(0,0,0,.34);
  --page-width: 1040px;
}

html[data-theme="light"] {
  --bg: #f4f8ff;
  --bg-2: #eaf2fb;
  --card: rgba(255,255,255,.82);
  --card-2: rgba(255,255,255,.96);
  --border: rgba(15,23,42,.12);
  --text: #111827;
  --muted: #5b687b;
  --shadow: 0 24px 70px rgba(31,56,96,.14);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 18% 6%, rgba(105,55,255,.28), transparent 30%),
    radial-gradient(circle at 86% 8%, rgba(0,224,218,.16), transparent 28%),
    radial-gradient(circle at 52% 100%, rgba(24,112,255,.10), transparent 36%),
    linear-gradient(135deg, var(--bg), var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 18%, #000, transparent 72%);
}

a { color: inherit; }

.page {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 110px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9,13,32,.92), rgba(7,12,27,.80));
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-theme="light"] .topbar {
  background: rgba(255,255,255,.78);
}

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

.brand__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.09), rgba(255,255,255,.03)),
    radial-gradient(circle at 35% 25%, rgba(124,92,255,.42), transparent 42%),
    radial-gradient(circle at 75% 75%, rgba(53,199,255,.35), transparent 45%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(53,199,255,.22);
}

.brand__icon svg { width: 34px; height: 34px; }

.brand strong { display: block; font-size: 15px; }
.brand small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }

.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
}

.top-nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: rgba(255,255,255,.78);
  background: rgba(255,255,255,.035);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  transition: .18s ease;
}

.top-nav a:hover {
  color: #fff;
  transform: translateY(-1px);
  background: rgba(33,255,217,.10);
}

html[data-theme="light"] .top-nav a { color: #172033; }

.theme-toggle {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--border);
  border-radius: 13px;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
}

/* Visitor counter */
.visitor-counter-section {
  width: min(940px, calc(100% - 36px));
  margin: 18px auto 26px;
}

.visitor-counter-card {
  position: relative;
  min-height: 138px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  padding: 18px 86px;
  border: 1px solid rgba(39,221,255,.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 50%, rgba(127,52,255,.30), transparent 34%),
    radial-gradient(circle at 88% 50%, rgba(0,238,213,.19), transparent 34%),
    linear-gradient(115deg, rgba(20,7,58,.98), rgba(4,19,46,.98));
  box-shadow:
    -2px 0 20px rgba(133,60,255,.44),
    2px 0 20px rgba(31,238,222,.26),
    0 15px 44px rgba(0,0,0,.30),
    inset 0 0 36px rgba(47,150,255,.07);
}

.visitor-counter-icon {
  position: relative;
  z-index: 2;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(124,92,255,.85);
  border-radius: 50%;
  color: #8d68ff;
  background: radial-gradient(circle, rgba(104,61,255,.20), rgba(5,12,34,.92));
  box-shadow: 0 0 18px rgba(124,69,255,.68), inset 0 0 22px rgba(53,199,255,.07);
}

.visitor-counter-icon svg { width: 44px; height: 44px; }

.visitor-counter-content {
  position: relative;
  z-index: 2;
  min-width: 260px;
  text-align: center;
}

.visitor-counter-value-row {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  line-height: 1;
}

.visitor-counter-number {
  color: transparent;
  background: linear-gradient(130deg, #9257ff 0%, #4b67ff 42%, #20c8ff 74%, #1ff3d5 100%);
  background-clip: text;
  -webkit-background-clip: text;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 900;
  line-height: .82;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  filter: drop-shadow(0 0 8px rgba(77,103,255,.62)) drop-shadow(0 0 18px rgba(32,214,255,.22));
}

.visitor-counter-plus {
  margin: 1px 0 0 6px;
  color: #20e6ef;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 900;
  text-shadow: 0 0 14px rgba(32,230,239,.62);
}

.visitor-counter-title {
  margin-top: 8px;
  color: #31f4e8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 5px;
  text-transform: uppercase;
}

.visitor-counter-label {
  margin-top: 5px;
  color: rgba(255,255,255,.88);
  font-size: 17px;
  letter-spacing: 2px;
}

.visitor-counter-label strong { color: #2df1e1; }

.visitor-counter-users {
  position: relative;
  z-index: 2;
  display: flex;
  margin-left: 8px;
}

.visitor-counter-users span {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  border: 2px solid rgba(255,255,255,.26);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, #fff 0 14%, transparent 15%),
    radial-gradient(circle at 50% 90%, #fff 0 31%, transparent 32%),
    linear-gradient(145deg, #7c5cff, #35c7ff);
  box-shadow: 0 0 11px rgba(53,199,255,.5);
}

.visitor-lines {
  position: absolute;
  top: 50%;
  width: 160px;
  height: 90px;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: .42;
}

.visitor-lines--left { left: 0; }
.visitor-lines--right { right: 0; transform: translateY(-50%) scaleX(-1); }

.visitor-lines span {
  position: absolute;
  left: -60px;
  width: 210px;
  height: 46px;
  border-top: 1px dashed rgba(81,179,255,.65);
  border-radius: 50%;
}

.visitor-lines span:nth-child(1) { top: 2px; transform: rotate(-7deg); }
.visitor-lines span:nth-child(2) { top: 24px; }
.visitor-lines span:nth-child(3) { top: 46px; transform: rotate(7deg); }

.visitor-counter-card.is-updating .visitor-counter-number {
  animation: counterPulse .55s ease;
}

@keyframes counterPulse {
  50% { transform: scale(1.06); filter: drop-shadow(0 0 24px rgba(35,221,255,.65)); }
}

/* Hero */
.hero {
  position: relative;
  min-height: 530px;
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(330px,.95fr);
  gap: 42px;
  align-items: center;
  overflow: hidden;
  padding: 42px 50px 34px;
  border: 1px solid rgba(81,160,255,.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at 10% 12%, rgba(109,49,255,.15), transparent 28%),
    radial-gradient(circle at 90% 54%, rgba(12,182,255,.12), transparent 33%),
    linear-gradient(140deg, rgba(7,11,32,.98), rgba(4,19,35,.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
}

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-3);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 66px);
  line-height: .98;
  letter-spacing: -.055em;
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }

.btn--primary,
.btn--cabinet {
  background: linear-gradient(135deg, #7048ff, #27c9ff);
  box-shadow: 0 18px 46px rgba(53,199,255,.22);
}

.btn--telegram {
  background: linear-gradient(135deg, #1f9ed8, #24c5ff 52%, #7556ff);
}

.btn--telegram::before { content: "✈"; margin-right: 8px; }

.btn--cabinet {
  width: 100%;
  margin-top: 10px;
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-badge {
  min-height: 70px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 10px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.hero-badge span { font-size: 20px; }
.hero-badge strong { font-size: 12px; line-height: 1.2; }

.platform-block { margin-top: 18px; text-align: center; }
.platform-title { margin: 0 0 9px; color: var(--accent-3); font-size: 11px; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }

.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.trust span {
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255,255,255,.028);
  font-size: 12px;
}

.payment-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 800; }

.hero-visual {
  position: relative;
  height: 410px;
  display: grid;
  place-items: center;
}

.robot-card {
  position: relative;
  z-index: 2;
  width: 300px;
  height: 300px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(100,170,255,.16);
  border-radius: 76px;
  background:
    radial-gradient(circle at 38% 20%, rgba(122,71,255,.36), transparent 32%),
    radial-gradient(circle at 72% 76%, rgba(20,213,255,.34), transparent 42%),
    linear-gradient(145deg, rgba(17,25,62,.84), rgba(5,14,38,.72));
  box-shadow: 0 0 60px rgba(49,106,255,.18), 0 34px 88px rgba(0,0,0,.36);
  animation: floatBot 4.2s ease-in-out infinite;
}

.robot-svg { width: 280px; height: 280px; filter: drop-shadow(0 18px 34px rgba(55,118,255,.34)); }

.orbit {
  position: absolute;
  border: 1px solid rgba(45,116,255,.38);
  border-radius: 50%;
}

.orbit--one { width: 390px; height: 220px; transform: rotate(-18deg); }
.orbit--two { width: 325px; height: 170px; transform: rotate(25deg); border-color: rgba(126,71,255,.34); }

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #29e4ff;
  box-shadow: 0 0 16px #29e4ff;
}

.orbit-dot--one { right: 18px; top: 120px; }
.orbit-dot--two { left: 44px; bottom: 68px; background: #8a4dff; box-shadow: 0 0 16px #8a4dff; }

@keyframes floatBot {
  50% { transform: translateY(-8px); }
}

/* Sections */
.section { margin-top: 26px; }
.section__head { margin-bottom: 18px; text-align: center; }

.section__head h2,
.help-card h2 {
  margin: 0;
  font-size: clamp(28px,4vw,44px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.apps-panel,
.help-card,
.plan,
.features article,
.legal-card {
  border: 1px solid rgba(103,174,255,.14);
}

.apps-panel {
  padding: 32px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 12%, rgba(31,237,214,.10), transparent 30%),
    radial-gradient(circle at 90% 88%, rgba(47,132,255,.12), transparent 34%),
    linear-gradient(135deg, rgba(10,18,39,.96), rgba(5,13,28,.95));
  box-shadow: var(--shadow);
}

.apps-subtitle {
  max-width: 680px;
  margin: 10px auto 0;
  color: var(--muted);
  line-height: 1.55;
  text-align: center;
}

.app-cards {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 16px;
  margin-top: 26px;
}

.app-card {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  color: var(--text);
  background: rgba(255,255,255,.04);
  text-decoration: none;
  transition: .2s ease;
}

.app-card:hover {
  transform: translateY(-5px);
  border-color: rgba(33,255,217,.48);
  box-shadow: 0 24px 60px rgba(33,255,217,.12);
}

.app-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(33,255,217,.18), rgba(53,199,255,.12));
}

.app-card__content { display: block; }
.app-card__content strong { display: block; font-size: 20px; line-height: 1.15; }
.app-card__content small { display: block; margin-top: 8px; color: var(--muted); line-height: 1.45; }

.app-card__meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.app-pill { padding: 6px 9px; border: 1px solid rgba(255,255,255,.10); border-radius: 999px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.06); font-size: 11px; }

.app-card__arrow {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #06121a;
  font-weight: 900;
  background: linear-gradient(135deg, #21ffd9, #35c7ff);
}

.app-preview { margin-top: 38px; text-align: center; }
.app-preview__text { max-width: 650px; margin: 0 auto; }
.app-preview__text h3 { margin: 0; font-size: 30px; }
.app-preview__text p { color: var(--muted); line-height: 1.55; }

.app-showcase { display: flex; justify-content: center; margin-top: 24px; }
.app-showcase img { display: block; width: 100%; max-width: 520px; height: auto; border: 1px solid rgba(114,247,255,.24); border-radius: 24px; box-shadow: 0 24px 70px rgba(0,0,0,.34); }

.apps-note { margin: 20px 0 0; color: var(--muted); text-align: center; font-size: 14px; }
.apps-note span { color: var(--text); }

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

.plan {
  position: relative;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.022));
}

.plan h3 { margin: 0 0 8px; font-size: 23px; }
.plan p { margin: 0; color: var(--muted); line-height: 1.45; }
.plan strong { margin-top: 26px; font-size: 30px; }
.plan--popular { border-color: rgba(53,199,255,.42); box-shadow: 0 20px 60px rgba(53,199,255,.14); }

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  color: #07111f;
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  font-size: 11px;
  font-weight: 900;
}

.help-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 20%, rgba(124,92,255,.16), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
}

.steps { margin: 22px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.6; }
.steps li + li { margin-top: 12px; }
.steps strong { color: var(--text); }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.features article { min-height: 190px; padding: 22px; border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.022)); }
.features span { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 15px; background: rgba(53,199,255,.12); font-size: 22px; }
.features h3 { margin: 0 0 9px; font-size: 21px; }
.features p { margin: 0; color: var(--muted); line-height: 1.55; }

.legal-cards { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.legal-card { display: flex; gap: 15px; padding: 22px; border-radius: 22px; color: inherit; background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.022)); text-decoration: none; transition: .2s ease; }
.legal-card:hover { transform: translateY(-3px); border-color: rgba(53,199,255,.42); }
.legal-card > span { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 15px; background: rgba(53,199,255,.12); font-size: 22px; }
.legal-card h3 { margin: 0 0 7px; }
.legal-card p { margin: 0; color: var(--muted); line-height: 1.5; }

.footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 34px; color: var(--muted); font-size: 14px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--accent); }

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 40;
  width: min(560px, calc(100% - 28px));
  display: none;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 8px;
  padding: 8px;
  transform: translateX(-50%);
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(10,14,27,.82);
  backdrop-filter: blur(22px);
}

.bottom-nav a { min-height: 44px; display: grid; place-items: center; border-radius: 16px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 800; }
.bottom-nav__main { color: #fff !important; background: linear-gradient(135deg, var(--accent-2), var(--accent)); }

/* Modal */
.support-modal { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center; padding: 20px; }
.support-modal.is-open { display: flex; }
.support-modal__backdrop { position: absolute; inset: 0; background: rgba(3,8,18,.78); backdrop-filter: blur(10px); }
.support-modal__dialog { position: relative; z-index: 1; width: min(100%,460px); padding: 34px; border: 1px solid rgba(114,247,255,.26); border-radius: 28px; color: #eef7ff; text-align: center; background: radial-gradient(circle at 18% 10%, rgba(33,255,217,.16), transparent 36%), linear-gradient(145deg,#132236,#0b1423); box-shadow: 0 30px 90px rgba(0,0,0,.48); }
.support-modal__close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border: 0; border-radius: 14px; color: #c8d5e3; background: rgba(255,255,255,.07); font-size: 28px; cursor: pointer; }
.support-modal__icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 24px; background: linear-gradient(135deg, rgba(33,255,217,.18), rgba(53,199,255,.18)); font-size: 34px; }
.support-modal__dialog h2 { margin: 0; font-size: 28px; }
.support-modal__status { color: #21ffd9; font-weight: 700; }
.support-modal__email { width: 100%; padding: 14px 16px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; color: #fff; background: rgba(255,255,255,.07); font-size: 17px; font-weight: 700; cursor: pointer; }
.support-modal__text { margin: 18px 0 24px; color: #aebdcd; line-height: 1.6; }
.support-modal__button { min-width: 160px; padding: 13px 24px; border: 0; border-radius: 16px; color: #06121a; background: linear-gradient(135deg,#21ffd9,#35c7ff); font-size: 16px; font-weight: 900; cursor: pointer; }
body.support-modal-open { overflow: hidden; }

@media (max-width: 940px) {
  .visitor-counter-section { width: 100%; }
  .visitor-counter-card { padding: 18px 44px; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { order: 2; }
  .hero-visual { order: 1; height: 240px; }
  .robot-card { width: 190px; height: 190px; border-radius: 48px; }
  .robot-svg { width: 180px; height: 180px; }
  .orbit--one { width: 250px; height: 120px; }
  .orbit--two { width: 210px; height: 94px; }
}

@media (max-width: 860px) {
  .top-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .app-cards { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .page { width: min(100% - 20px, var(--page-width)); }
  .visitor-counter-section { margin: 14px 0 18px; }
  .visitor-counter-card { min-height: 112px; padding: 15px 16px; gap: 12px; border-radius: 22px; }
  .visitor-counter-icon { width: 54px; height: 54px; flex-basis: 54px; }
  .visitor-counter-icon svg { width: 31px; height: 31px; }
  .visitor-counter-content { min-width: 0; }
  .visitor-counter-number { font-size: 45px; }
  .visitor-counter-plus { font-size: 28px; }
  .visitor-counter-title { font-size: 9px; letter-spacing: 3px; }
  .visitor-counter-label { font-size: 12px; letter-spacing: .5px; }
  .visitor-counter-users, .visitor-lines { display: none; }

  .hero { padding: 28px 18px 26px; border-radius: 26px; }
  .hero h1 { font-size: clamp(38px,12vw,50px); }
  .actions { grid-template-columns: 1fr; }
  .hero-badges { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .legal-cards { grid-template-columns: 1fr; }
  .help-card { grid-template-columns: 1fr; padding: 24px; }
  .help-card .btn { width: 100%; }
  .bottom-nav { display: grid; }
}

@media (max-width: 430px) {
  .brand small { display: none; }
  .visitor-counter-icon { display: none; }
  .visitor-counter-number { font-size: 42px; }
  .topbar { border-radius: 18px; }
}


/* =========================================================
   Навигация по вкладкам
   ========================================================= */

.tabs-main {
  min-height: 620px;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tabPanelIn .28s ease both;
}

.tab-panel[hidden] {
  display: none !important;
}

@keyframes tabPanelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section--tab-start {
  margin-top: 18px;
}

.top-nav a.is-active {
  color: #ffffff;
  border-color: rgba(33, 255, 217, .34);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, .24), rgba(33, 255, 217, .12));
  box-shadow:
    0 0 18px rgba(53, 199, 255, .10),
    inset 0 1px 0 rgba(255, 255, 255, .06);
}

html[data-theme="light"] .top-nav a.is-active {
  color: #07111f;
  border-color: rgba(14, 165, 233, .28);
  background:
    linear-gradient(135deg, rgba(124, 92, 255, .12), rgba(14, 165, 233, .14));
}

.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a.is-active {
  color: #ffffff;
  background: rgba(53, 199, 255, .13);
}

.bottom-nav__main {
  grid-column: auto;
}

@media (max-width: 720px) {
  .tabs-main {
    min-height: 540px;
  }

  .bottom-nav {
    width: min(620px, calc(100% - 18px));
    gap: 5px;
    padding: 6px;
  }

  .bottom-nav a {
    min-width: 0;
    padding: 0 5px;
    font-size: 11px;
  }

  .bottom-nav__main {
    font-size: 12px !important;
  }

  .section--tab-start {
    margin-top: 14px;
  }
}

@media (max-width: 390px) {
  .bottom-nav a {
    font-size: 10px;
  }
}


/* =========================================================
   Пошаговая инструкция
   ========================================================= */

.guide-section {
  margin-top: 18px;
}

.guide-hero {
  padding: 34px;
  text-align: center;
  border: 1px solid rgba(55, 202, 255, .22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 16% 10%, rgba(124, 92, 255, .18), transparent 36%),
    radial-gradient(circle at 88% 84%, rgba(33, 255, 217, .12), transparent 34%),
    linear-gradient(145deg, rgba(12, 20, 42, .96), rgba(5, 14, 30, .96));
  box-shadow: var(--shadow);
}

.guide-hero h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -.045em;
}

.guide-hero > p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px auto 0;
  color: var(--muted);
  line-height: 1.65;
}

.guide-actions {
  max-width: 620px;
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.guide-video {
  margin-top: 22px;
  overflow: hidden;
  border: 1px solid rgba(53, 199, 255, .25);
  border-radius: 26px;
  background: #030816;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

.guide-video video {
  display: block;
  width: 100%;
  height: auto;
  max-height: 600px;
  background: #030816;
}

.guide-steps {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.guide-step {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(240px, .8fr) minmax(360px, 1.2fr);
  gap: 20px;
  align-items: center;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(103, 174, 255, .16);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
}

.guide-step__number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #05111b;
  background: linear-gradient(135deg, #21ffd9, #35c7ff);
  box-shadow: 0 12px 32px rgba(33, 255, 217, .18);
  font-size: 24px;
  font-weight: 950;
}

.guide-step__content h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.guide-step__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.guide-step img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  border: 1px solid rgba(114, 247, 255, .18);
  border-radius: 18px;
  background: #07101f;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .28);
}

@media (max-width: 860px) {
  .guide-step {
    grid-template-columns: 52px 1fr;
  }

  .guide-step img {
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 620px) {
  .guide-hero {
    padding: 26px 18px;
  }

  .guide-actions {
    grid-template-columns: 1fr;
  }

  .guide-step {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    padding: 16px;
    border-radius: 22px;
  }

  .guide-step__number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 19px;
  }

  .guide-step__content h3 {
    font-size: 19px;
  }

  .guide-step__content p {
    font-size: 14px;
  }
}

/* =========================================================
   Единая светлая тема
   ========================================================= */

html[data-theme="light"] body::before {
  opacity: .32;
  background-image:
    linear-gradient(rgba(77, 107, 148, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77, 107, 148, .055) 1px, transparent 1px);
}

html[data-theme="light"] .topbar {
  border-color: rgba(76, 105, 145, .16);
  background: rgba(255, 255, 255, .88);
  box-shadow:
    0 16px 38px rgba(45, 70, 105, .15),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

html[data-theme="light"] .top-nav {
  border-color: rgba(76, 105, 145, .10);
  background: rgba(235, 242, 251, .74);
}

html[data-theme="light"] .top-nav a {
  color: #172033;
  background: transparent;
}

html[data-theme="light"] .top-nav a:hover {
  color: #07111f;
  background: rgba(53, 199, 255, .13);
}

html[data-theme="light"] .theme-toggle {
  background: #ffffff;
}

html[data-theme="light"] .hero,
html[data-theme="light"] .apps-panel,
html[data-theme="light"] .guide-hero {
  color: #111827;
  border-color: rgba(70, 111, 164, .18);
  background:
    radial-gradient(circle at 10% 12%, rgba(124, 92, 255, .10), transparent 30%),
    radial-gradient(circle at 90% 70%, rgba(33, 214, 217, .11), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(239, 246, 255, .92));
  box-shadow:
    0 24px 70px rgba(31, 56, 96, .14),
    inset 0 1px 0 rgba(255, 255, 255, .95);
}

html[data-theme="light"] .hero .lead,
html[data-theme="light"] .hero .payment-note,
html[data-theme="light"] .apps-panel .apps-subtitle,
html[data-theme="light"] .apps-panel .app-card__content small,
html[data-theme="light"] .apps-panel .app-preview__text p,
html[data-theme="light"] .apps-panel .apps-note,
html[data-theme="light"] .guide-hero > p:not(.eyebrow) {
  color: #536176;
}

html[data-theme="light"] .hero-badge,
html[data-theme="light"] .trust span,
html[data-theme="light"] .app-card,
html[data-theme="light"] .plan,
html[data-theme="light"] .features article,
html[data-theme="light"] .legal-card,
html[data-theme="light"] .help-card,
html[data-theme="light"] .guide-step {
  color: #111827;
  border-color: rgba(70, 111, 164, .18);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 34px rgba(31, 56, 96, .07);
}

html[data-theme="light"] .hero-badge strong,
html[data-theme="light"] .app-card__content strong,
html[data-theme="light"] .app-preview__text h3,
html[data-theme="light"] .apps-note span,
html[data-theme="light"] .plan h3,
html[data-theme="light"] .plan strong,
html[data-theme="light"] .help-card h2,
html[data-theme="light"] .steps strong,
html[data-theme="light"] .features h3,
html[data-theme="light"] .legal-card h3,
html[data-theme="light"] .guide-step__content h3 {
  color: #111827;
}

html[data-theme="light"] .trust span,
html[data-theme="light"] .plan p,
html[data-theme="light"] .steps,
html[data-theme="light"] .features p,
html[data-theme="light"] .legal-card p,
html[data-theme="light"] .guide-step__content p,
html[data-theme="light"] .footer {
  color: #59677a;
}

html[data-theme="light"] .app-pill {
  color: #405067;
  border-color: rgba(70, 111, 164, .20);
  background: rgba(226, 237, 249, .85);
}

html[data-theme="light"] .robot-card {
  border-color: rgba(69, 128, 202, .20);
  background:
    radial-gradient(circle at 38% 20%, rgba(122, 71, 255, .25), transparent 34%),
    radial-gradient(circle at 72% 76%, rgba(20, 213, 255, .28), transparent 44%),
    linear-gradient(145deg, rgba(232, 239, 255, .96), rgba(211, 235, 248, .90));
  box-shadow: 0 24px 70px rgba(49, 106, 180, .18);
}

html[data-theme="light"] .plan--popular {
  border-color: rgba(14, 165, 233, .48);
  background:
    linear-gradient(145deg, rgba(235, 250, 255, .96), rgba(255, 255, 255, .86));
  box-shadow: 0 18px 48px rgba(14, 165, 233, .13);
}

html[data-theme="light"] .legal-card:hover,
html[data-theme="light"] .app-card:hover {
  border-color: rgba(14, 165, 233, .48);
  background: rgba(255, 255, 255, .94);
}

html[data-theme="light"] .bottom-nav {
  border-color: rgba(70, 111, 164, .18);
  background: rgba(255, 255, 255, .90);
  box-shadow: 0 16px 42px rgba(31, 56, 96, .16);
}

html[data-theme="light"] .bottom-nav a {
  color: #536176;
}

html[data-theme="light"] .bottom-nav a.is-active {
  color: #07111f;
  background: rgba(53, 199, 255, .16);
}

/* Счётчик, окно поддержки и видео намеренно остаются тёмными. */
html[data-theme="light"] .visitor-counter-card,
html[data-theme="light"] .support-modal__dialog,
html[data-theme="light"] .guide-video {
  color: #f4f7ff;
}
