/* Сайт оплаты «После полуночи»: тёмная тема игры, золото и бордо */
:root { --bg: #0e080b; --surface: #1a0f14; --surface-2: #241419; --line: rgba(241, 230, 216, .12); --fg: #f1e6d8; --muted: #a8979e; --gold: #d4a86a; --gold-hi: #f1d9a8; --crimson: #b3263a; --ok: #7fd1a0; --err: #ff8a9a;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif; --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: radial-gradient(120% 60% at 50% 0%, #2a0f18 0%, var(--bg) 60%) fixed, var(--bg); color: var(--fg); font: 15px/1.6 var(--ui); }
a { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding-block: 28px 40px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); }
.logo i { font-style: normal; color: var(--gold); font-size: 18px; }
.logo b { font: 600 22px/1 var(--serif); letter-spacing: .02em; }
.top nav { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--gold-hi); }
h1 { font: 600 clamp(30px, 6vw, 44px)/1.1 var(--serif); margin: 0 0 10px; text-wrap: balance; }
h1 em { color: var(--gold); }
h2 { font: 600 24px/1.2 var(--serif); margin: 34px 0 12px; }
h3 { font: 600 18px/1.3 var(--serif); margin: 22px 0 8px; }
.lead { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.steps { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0 0 24px; padding: 0; list-style: none; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 12px 44px; position: relative; font-size: 13.5px; color: var(--muted); }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 14px; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: #1a0f14; font: 700 12px/20px var(--ui); text-align: center; }
.packs { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 20px; }
.pack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--fg); cursor: pointer; font: inherit; transition: border-color .2s, transform .2s; }
.pack:hover { border-color: rgba(212, 168, 106, .5); }
.pack.on { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset, 0 0 24px rgba(212, 168, 106, .2); }
.pack .g { font: 600 28px/1 var(--serif); color: var(--gold-hi); }
.pack .g small { font: 500 12px var(--ui); color: var(--muted); margin-left: 4px; }
.pack .p { font-weight: 600; font-size: 16px; }
.pack .tag { position: absolute; top: -9px; right: 10px; padding: 2px 9px; border-radius: 999px; background: var(--crimson); color: #fff; font-size: 11px; font-weight: 600; }
.pack .old { color: var(--muted); text-decoration: line-through; font-size: 12px; }
form.pay { display: grid; gap: 14px; }
label.f { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
label.f input { width: 100%; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--fg); font: 16px var(--ui); }
label.f input:focus { outline: none; border-color: var(--gold); }
label.f small { color: var(--muted); font-size: 12px; }
label.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
label.chk input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold); flex-shrink: 0; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; width: 100%; padding: 15px 18px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #f1d9a8, #c9935a); color: #1a0f14; font: 700 16px var(--ui); cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.msg { min-height: 1.2em; margin: 0; font-size: 13.5px; }
.msg.err { color: var(--err); } .msg.ok { color: var(--ok); }
.pm { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.pm li { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sum { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.sum b { font: 600 22px var(--serif); color: var(--gold-hi); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.tbl { overflow-x: auto; }
footer { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: grid; gap: 8px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer nav a { color: var(--muted); }
.req p { margin: 2px 0; }
.center { text-align: center; }
.big-ok { font-size: 46px; line-height: 1; margin: 10px 0; }
.doc p, .doc li { max-width: 68ch; }
