:root {
  --bg: #0a0b10;
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #9298ab;
  --accent: #7c6cff;
  --accent-2: #4f8cff;
  --glow: rgba(124, 108, 255, 0.35);
  --radius: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(40% 35% at 25% 10%, rgba(124, 108, 255, 0.16), transparent 70%),
    radial-gradient(35% 30% at 80% 20%, rgba(79, 140, 255, 0.12), transparent 70%),
    radial-gradient(50% 40% at 50% 100%, rgba(124, 108, 255, 0.08), transparent 70%);
  filter: blur(40px);
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora, .portal { animation: none !important; }
  html { scroll-behavior: auto; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 56px);
  background: rgba(10, 11, 16, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 32px);
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.site-header nav a:hover { color: var(--text); }

.site-header nav a.nav-cta {
  color: var(--text);
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.site-header nav a.nav-cta:hover {
  border-color: var(--accent);
  background: rgba(124, 108, 255, 0.1);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

.hero {
  position: relative;
  text-align: center;
  padding: clamp(90px, 16vh, 170px) 0 clamp(70px, 12vh, 130px);
}

.portal {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--glow) 25%, transparent 50%, rgba(79, 140, 255, 0.3) 75%, transparent 100%);
  filter: blur(60px);
  opacity: 0.55;
  animation: spin 28s linear infinite;
  pointer-events: none;
}

@keyframes spin {
  to { transform: translate(-50%, -52%) rotate(360deg); }
}

.eyebrow {
  position: relative;
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  margin: 0 0 28px;
  background: rgba(10, 11, 16, 0.5);
}

h1 {
  position: relative;
  font-size: clamp(2.5rem, 7vw, 4.4rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 24px;
}

.lede {
  position: relative;
  max-width: 560px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero .actions { margin-bottom: 34px; }

.hero-note {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-size: 16px;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px var(--glow);
}

.btn-ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(124, 108, 255, 0.08);
}

.btn-small { padding: 10px 20px; font-size: 14px; }

.btn-wide { width: 100%; text-align: center; }

.section {
  padding: clamp(50px, 9vh, 90px) 0;
}

.section h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
}

.section-lede {
  color: var(--muted);
  max-width: 560px;
  margin: 0 0 40px;
}

.narrow {
  max-width: 640px;
  margin: 0 auto;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 860px) {
  .grid3, .grid2, .plan-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.card p { margin: 0; color: var(--muted); font-size: 15px; }

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 16px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 720px;
}

.plan-card {
  position: relative;
  background: var(--card-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 108, 255, 0.5);
  box-shadow: 0 20px 60px rgba(124, 108, 255, 0.15);
}

.plan-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  font-weight: 600;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}

.plan-days {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 22px;
}

.plan-cut {
  position: relative;
  border-top: 1px dashed var(--border);
  margin: 0 -28px 22px;
}

.plan-cut::before, .plan-cut::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg);
}

.plan-cut::before { left: -9px; }
.plan-cut::after { right: -9px; }

.promises article h3 { margin: 0 0 10px; font-size: 1.1rem; }
.promises article p { color: var(--muted); font-size: 15px; margin: 0; }

.download { text-align: center; }
.download .section-lede { margin-left: auto; margin-right: auto; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 34px clamp(20px, 5vw, 56px) 44px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

.brand-small { font-weight: 650; letter-spacing: -0.01em; }

.muted { color: var(--muted); }

.flash {
  background: rgba(124, 108, 255, 0.1);
  border: 1px solid rgba(124, 108, 255, 0.35);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 15px;
  margin: 0 0 28px;
}

.flash-error {
  background: rgba(255, 107, 107, 0.08);
  border-color: rgba(255, 107, 107, 0.35);
}

.form label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0 8px;
}

.form input, .order-form select {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.form input:focus, .order-form select:focus { border-color: var(--accent); }

.form input::placeholder { color: rgba(146, 152, 171, 0.6); }

.form .btn { margin-top: 22px; }

.form h2 { margin: 0 0 8px; font-size: 1.2rem; }

.passport h2 {
  font-size: 1.3rem;
  margin: 44px 0 18px;
}

.passport-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 46px 0 24px;
}

.passport-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 6px; }

.token-box {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px;
  background: var(--card);
}

.token-box summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}

.token-box code {
  display: block;
  margin: 12px 0 8px;
  font-size: 14px;
  word-break: break-all;
  color: var(--text);
}

.token-box p { margin: 0; font-size: 13px; }

.device-card { display: flex; flex-direction: column; gap: 12px; }

.device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.device-head h3 { margin: 0; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.status-past { color: #9ef0c0; }

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.6;
}

.dot-past {
  background: #34d399;
  opacity: 1;
  box-shadow: 0 0 12px rgba(52, 211, 153, 0.7);
}

.order-form {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.order-form select { flex: 1; }

.order-form .btn { white-space: nowrap; }

.add-device { max-width: 480px; }

.empty { padding: 8px 0 4px; }

.label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

.token-card code {
  display: block;
  font-size: 14px;
  word-break: break-all;
  margin: 0 0 20px;
}

.token-card p.muted { font-size: 13px; margin: 4px 0 0; }

.token-card { margin: 0 0 28px; }

.ticket-summary { margin: 30px 0 26px; }

.ticket-summary .big {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 20px;
}

.ticket-summary .plan-price { margin: 0; }

.kassa h1 { margin-bottom: 0; }

.kassa .muted { font-size: 14px; margin-top: 14px; }
