:root {
  --bg: #0A0A0C;
  --panel: #131316;
  --panel-2: #1A1A1F;
  --line: rgba(255, 255, 255, 0.09);
  --text: #F5F2EE;
  --muted: #A8A29B;
  --accent: #FF6A1A;
  --accent-hi: #FF8A3D;
  --gold: #F2B544;
  --danger: #FF5A4F;
  --ok: #4ADE80;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }

.checker {
  height: 8px;
  background-image: conic-gradient(#F5F2EE 0 25%, var(--bg) 0 50%, #F5F2EE 0 75%, var(--bg) 0);
  background-size: 16px 16px;
  opacity: 0.85;
}
.glow {
  position: fixed; inset: -20vh -20vw auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255, 106, 26, 0.18), rgba(255, 106, 26, 0));
  pointer-events: none; z-index: 0;
}

/* header */
.top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  width: 100%; max-width: 1080px; margin: 0 auto; padding: 20px 16px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand img { height: 44px; width: auto; display: block; }
.brand span { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.08em; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14px;
  padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { color: var(--text); background: var(--panel); }
.nav a[aria-current="page"] { color: var(--text); background: var(--panel-2); }

/* layout */
.wrap { position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 12px 16px 48px; flex: 1; }
.intro { margin: 24px 0 28px; }
.eyebrow {
  display: inline-block; font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); border: 1.5px solid rgba(242, 181, 68, 0.6); border-radius: 999px; padding: 6px 12px;
}
h1 {
  font-family: 'Unbounded', sans-serif; font-weight: 900; text-transform: uppercase;
  font-size: clamp(34px, 7vw, 64px); line-height: 1; letter-spacing: -0.01em; margin: 16px 0 12px;
}
.accent { color: var(--accent); }
.lead { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0; }

/* card */
.card {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.fields { padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
label, legend { display: block; font-weight: 800; font-size: 14px; margin-bottom: 8px; padding: 0; }
input[type="text"], input[type="email"], input[type="number"] {
  width: 100%; height: 54px; padding: 0 16px;
  background: var(--bg); color: var(--text); border: 1.5px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 17px; font-weight: 600; outline: none; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #5E5954; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.18); }
input[aria-invalid="true"] { border-color: var(--danger); }
input[type="number"]::-webkit-outer-spin-button, input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.hint.error { color: var(--danger); font-weight: 700; }

.amount { position: relative; }
.amount input { padding-right: 44px; font-family: 'Unbounded', sans-serif; font-size: 20px; font-weight: 700; }
.rub { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--panel-2); color: var(--text); border: 1.5px solid var(--line);
  font: inherit; font-weight: 800; font-size: 14px; transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: rgba(255, 106, 26, 0.6); }
.chip[aria-pressed="true"] { background: rgba(255, 106, 26, 0.14); border-color: var(--accent); color: var(--accent-hi); }

.method {
  position: relative; display: flex; align-items: center; gap: 14px; margin: 0; cursor: pointer;
  padding: 16px; border-radius: 14px; background: var(--bg); border: 1.5px solid var(--accent);
}
.method input { position: absolute; opacity: 0; pointer-events: none; }
.method-box { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.method-name { font-family: 'Unbounded', sans-serif; font-weight: 700; font-size: 16px; }
.method-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.tick { color: var(--accent); flex: none; }
.method:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(255, 106, 26, 0.25); }

/* summary */
.summary {
  padding: 28px; background: linear-gradient(180deg, rgba(255,106,26,0.07), rgba(255,106,26,0) 60%), var(--panel-2);
  border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px;
}
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.sum-row b { color: var(--text); font-weight: 800; text-align: right; overflow-wrap: anywhere; }
.sum-total { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); margin: 4px 0; }
.sum-total span { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.sum-total b { font-family: 'Unbounded', sans-serif; font-weight: 900; font-size: 40px; line-height: 1.1; color: var(--text); }

.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; margin: 0; }
.agree input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--accent); }
.form-error { margin: 0; color: var(--danger); font-weight: 700; font-size: 14px; }

.pay {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 58px;
  border: 0; border-radius: 999px; cursor: pointer; background: var(--accent); color: #0A0A0C;
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase;
  transition: background .15s, transform .1s;
}
.pay:hover { background: var(--accent-hi); }
.pay:active { transform: translateY(1px); }
.pay:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.pay[disabled] { opacity: .6; cursor: progress; }
.pay.small { width: auto; min-height: 48px; padding: 0 24px; }
.safe { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; color: var(--muted); }

/* status after payment */
.status[hidden], .form-error[hidden] { display: none; }
.status {
  display: flex; gap: 14px; align-items: flex-start; margin: 0 0 20px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel);
}
.status b { display: block; font-family: 'Unbounded', sans-serif; font-size: 16px; margin-bottom: 2px; }
.status p { margin: 0; color: var(--muted); font-size: 14px; }
.status .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 6px; flex: none; }
.status.ok { border-color: rgba(74, 222, 128, 0.45); } .status.ok .dot { background: var(--ok); }
.status.wait { border-color: rgba(242, 181, 68, 0.5); } .status.wait .dot { background: var(--gold); }
.status.bad { border-color: rgba(255, 90, 79, 0.5); } .status.bad .dot { background: var(--danger); }

/* faq */
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 900; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { margin: 0 0 16px; color: var(--muted); }

.foot {
  position: relative; z-index: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 32px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line);
}
.foot a { color: var(--muted); }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 20px; padding: 24px; max-width: min(520px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0, 0, 0, 0.6); }
dialog h2 { font-family: 'Unbounded', sans-serif; margin: 0 0 12px; font-size: 20px; }

/* demo pay page */
.demo { max-width: 480px; margin: 40px auto; text-align: left; }
.demo .card { display: block; padding: 28px; }
.demo .badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.demo .row { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--panel-2); }

@media (max-width: 860px) {
  .card { grid-template-columns: minmax(0, 1fr); }
  .summary { border-left: 0; border-top: 1px solid var(--line); }
  .fields, .summary { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
