/* Палитра и повадки лендинга vpw.kirian.su: тёмный slate, акцент #236da3.
   Собственный CSS, а не Tailwind, намеренно — см. paysite/README.md. */

:root {
  --bg: #0b1220;
  --bg-soft: #111a2b;
  --card: #16203352;
  --line: #24324a;
  --line-soft: #1c2739;
  --text: #e6edf7;
  --muted: #93a4bd;
  --accent: #236da3;
  --accent-soft: #2f86c4;
  --danger: #e06b6b;
  --ok: #4bb37b;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: radial-gradient(1100px 600px at 50% -10%, #14243c 0%, var(--bg) 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  max-width: 620px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: .2px;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--accent-soft), var(--accent));
  box-shadow: 0 0 0 3px #236da326;
}

.top-note { color: var(--muted); font-size: 13px; }

/* ── Основа ────────────────────────────────────────────────────────────── */

.wrap {
  max-width: 620px;
  margin: 0 auto;
  padding: 4px 20px 40px;
}

h1 { font-size: 24px; line-height: 1.25; margin: 8px 0 6px; }

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
}

.card p { margin: 10px 0 0; }

.pane-hint { margin: 4px 0 14px; font-size: 14px; }

/* ── Переключатель «тариф / сумма» ─────────────────────────────────────── */

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 5px;
  margin: 18px 0 16px;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
}

.tab.is-active { background: var(--accent); color: #fff; font-weight: 600; }

/* ── Тарифы ────────────────────────────────────────────────────────────── */

.plans { display: grid; gap: 10px; }

.plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.plan:hover { border-color: #31527a; }

.plan.is-active {
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px #236da333;
}

.plan-name { font-weight: 600; }
.plan-sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.plan-price { font-size: 18px; font-weight: 650; white-space: nowrap; }

/* ── Поле суммы ────────────────────────────────────────────────────────── */

.field { display: block; }

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

#amount {
  width: 100%;
  font: inherit;
  font-size: 20px;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
}

#amount:focus {
  outline: none;
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 3px #236da333;
}

.hint { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.error { color: var(--danger); font-size: 14px; margin: 14px 0 0; }

/* ── Кнопки ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  appearance: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 20px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-soft); }

.btn-primary:disabled {
  background: #1d3550;
  color: #6f819b;
  cursor: not-allowed;
}

.btn-wide { width: 100%; margin-top: 20px; }

.fineprint {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: center;
}

.fineprint a, .legal a { color: var(--accent-soft); }

/* ── Ожидание ──────────────────────────────────────────────────────────── */

.spinner {
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
  border: 3px solid #2a3a55;
  border-top-color: var(--accent-soft);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 3s; }
}

.is-paid { color: var(--ok); }

/* ── Юридический низ ───────────────────────────────────────────────────── */

.legal {
  max-width: 620px;
  margin: 0 auto;
  padding: 26px 20px 56px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.legal h2 { font-size: 15px; color: var(--text); margin: 0 0 10px; }

.legal p { margin: 0 0 12px; }

.methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }

.method {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 12px;
  letter-spacing: .3px;
  color: var(--text);
  background: var(--bg-soft);
}

.requisites { margin: 16px 0 0; }
.requisites > div { display: flex; gap: 8px; flex-wrap: wrap; }
.requisites dt { color: var(--muted); }
.requisites dt::after { content: ":"; }
.requisites dd { margin: 0; color: var(--text); }

.legal-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 18px; }
