/* ---------- дизайн-система ---------- */
:root {
  --bg: #080b11;
  --surface: #0f131c;
  --surface-2: #161c28;
  --surface-3: #1e2534;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8ecf4;
  --muted: #8c97ad;
  --up: #00c48c;
  --up-soft: rgba(0, 196, 140, 0.14);
  --down: #ff4d5e;
  --down-soft: rgba(255, 77, 94, 0.14);
  --accent: #3d7dff;
  --accent-soft: rgba(61, 125, 255, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100dvh; }
a { color: inherit; text-decoration: none; }
input, button, select { font-family: inherit; font-size: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- каркас страниц ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 19, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  letter-spacing: -0.2px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), #7b5cff);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 22px; }
.center-page {
  min-height: calc(100dvh - 66px);
  display: grid;
  place-items: center;
  padding: 32px 20px 60px;
}

/* ---------- карточки и формы ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.card h1 { margin: 0 0 8px; font-size: 24px; letter-spacing: -0.4px; }
.card p.lead { margin: 0 0 22px; color: var(--muted); }

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 7px;
}

.input {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.code-input {
  text-align: center;
  font-size: 26px;
  letter-spacing: 8px;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface-3); color: var(--text); }
.btn.slim { width: auto; padding: 9px 14px; font-size: 14px; }

.hint { font-size: 13px; color: var(--muted); margin-top: 10px; }
.error {
  margin-bottom: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--down-soft);
  border: 1px solid rgba(255, 77, 94, 0.3);
  color: #ffb3ba;
  font-size: 14px;
}
.note {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid rgba(61, 125, 255, 0.3);
  font-size: 14px;
}

/* ---------- лендинг ---------- */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  background: linear-gradient(180deg, #fff, #97a6c4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 0 auto 30px; max-width: 560px; color: var(--muted); font-size: 17px; }
.hero .btn { width: auto; padding: 15px 34px; font-size: 16px; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  padding-bottom: 60px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature h3 { margin: 0 0 8px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.ticker-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 0 34px;
  scrollbar-width: none;
}
.ticker-strip::-webkit-scrollbar { display: none; }
.ticker-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.ticker-chip b { font-weight: 600; }
.ticker-chip .chg.up { color: var(--up); }
.ticker-chip .chg.down { color: var(--down); }

.disclaimer {
  border-top: 1px solid var(--line);
  padding: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- оплата ---------- */
.pay-grid { display: grid; gap: 22px; grid-template-columns: 1.2fr 1fr; }
.price-tag {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 6px 0 18px;
}
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: 0; }
.checklist .tick { color: var(--up); }

/* ---------- админка ---------- */
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th, table.grid td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
table.grid th { color: var(--muted); font-weight: 500; font-size: 13px; }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--surface-3);
}
.badge.ok { background: var(--up-soft); color: var(--up); }
.badge.no { background: var(--down-soft); color: var(--down); }

.lang-switch { display: flex; gap: 4px; }
.lang-switch a {
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
}
.lang-switch a.on { background: var(--surface-3); color: var(--text); }

@media (max-width: 720px) {
  .pay-grid { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .wrap { padding: 0 16px; }
  .topbar { padding: 13px 16px; }
}

/* ---------- пакеты пополнения ---------- */
.packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 14px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.06s;
}
.pack:hover { background: var(--surface-2); }
.pack:active { transform: translateY(1px); }
.pack.on { border-color: var(--accent); background: var(--accent-soft); }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack-bonus {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--up);
  color: #04120d;
  font-size: 11.5px;
  font-weight: 700;
}
.pack-sum { font-size: 26px; font-weight: 700; letter-spacing: -0.6px; }
.pack-cur { font-size: 12px; color: var(--muted); }
.pack-get { margin-top: 6px; font-size: 12px; color: var(--up); }
