/* ============================================================
   RAYON ONLINE — Donate (top-up) & Legal pages
   ============================================================ */

/* ---------- Page hero / banner ---------- */
.page-hero { padding: 56px 0 14px; position: relative; }
.page-hero h1 { font-family: var(--font-display); font-weight: 900; font-size: clamp(30px, 5.5vw, 64px); line-height: 0.98; letter-spacing: -0.025em; margin: 16px 0 0; overflow-wrap: anywhere; }
.page-hero .lead { margin-top: 18px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--brand); }
.crumbs span { opacity: .5; }

/* ---------- Donate layout ---------- */
.donate-grid { display: grid; grid-template-columns: 1.5fr 0.9fr; gap: 24px; align-items: start; }
.donate-main { display: flex; flex-direction: column; gap: 20px; }

.dcard { padding: 28px 30px; }
.dcard .step-h { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.dcard .step-h .no { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-family: var(--font-display); font-weight: 800; font-size: 16px; display: flex; align-items: center; justify-content: center; flex: none; }
.dcard .step-h h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.field input, .field select { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 14px 16px; font-family: var(--font-body); font-weight: 600; font-size: 15.5px; width: 100%; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); }
.field input::placeholder { color: var(--muted); }
.field select { -webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%238C95A8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; background-size: 18px; }

/* amount presets */
.amt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.amt {
  position: relative; cursor: pointer; padding: 18px 16px; border-radius: var(--r);
  background: var(--bg-2); border: 1.5px solid var(--line-2); text-align: left;
  transition: border-color .18s, background .18s, transform .15s;
}
.amt:hover { border-color: rgba(246,180,30,0.5); transform: translateY(-2px); }
.amt.sel { border-color: var(--brand); background: rgba(246,180,30,0.08); }
.amt .coins { font-family: var(--font-display); font-weight: 800; font-size: 21px; display: flex; align-items: center; gap: 7px; }
.amt .coins svg { width: 18px; height: 18px; color: var(--brand); }
.amt .rub { font-size: 14px; color: var(--text-2); font-weight: 600; margin-top: 6px; }
.amt .bns { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--online); background: rgba(70,213,138,0.14); padding: 4px 8px; border-radius: 999px; }
.amt.sel::after { content: "✓"; position: absolute; bottom: 14px; right: 14px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

.amt-custom { margin-top: 14px; display: flex; align-items: center; gap: 12px; }
.amt-custom .field { flex: 1; }

/* payment methods */
.pay-section { margin-top: 26px; }
.pay-section > label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 12px; }
.pm-opt {
  cursor: pointer; min-height: 62px; padding: 8px 10px; border-radius: var(--r); background: var(--bg-2);
  border: 1.5px solid var(--line-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: border-color .18s, transform .15s, background .18s; position: relative;
}
.pm-opt:hover { border-color: rgba(246,180,30,0.5); transform: translateY(-2px); }
.pm-opt.sel { border-color: var(--brand); background: rgba(246,180,30,0.08); }
.pm-opt svg { height: 24px; width: auto; max-width: 100%; display: block; }
.pm-opt img { height: 27px; width: auto; max-width: 100%; display: block; }
.pm-logos { display: flex; align-items: center; gap: 7px; }
.pm-cap { font-size: 10px; font-weight: 600; color: var(--muted); line-height: 1.15; text-align: center; }
.pm-opt.sel::after { content: ""; position: absolute; top: 7px; right: 7px; width: 17px; height: 17px; border-radius: 50%; background-color: var(--brand); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23141A2A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 11px; }

/* promo */
.promo-inline { display: flex; gap: 10px; }
.promo-inline input { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 12px; padding: 14px 16px; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.promo-inline input:focus { outline: none; border-color: var(--brand); }

/* summary (sticky) */
.summary { position: sticky; top: 96px; padding: 28px 30px; }
.summary h3 { font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0 0 22px; }
.sum-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row span { color: var(--text-2); }
.sum-row b { font-family: var(--font-display); font-weight: 700; }
.sum-row.bonus b { color: var(--online); }
.sum-total { display: flex; align-items: center; justify-content: space-between; padding: 20px 0 22px; }
.sum-total > span { color: var(--text-2); font-size: 15px; }
.sum-total b { font-family: var(--font-display); font-weight: 800; font-size: 34px; }
.summary .btn { width: 100%; }
.summary .agree { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 4px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.summary .agree input { margin-top: 2px; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.summary .agree a { color: var(--brand); }
.consent { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.55; }
.consent a { color: var(--brand); }
.secure { display: flex; align-items: center; gap: 8px; justify-content: center; margin-top: 16px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.secure svg { width: 15px; height: 15px; color: var(--online); }

.toast { margin-top: 14px; font-weight: 600; font-size: 14px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 8px 0 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 24px; margin: 40px 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal .upd { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .donate-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 600px) {
  .page-hero { padding: 40px 0 10px; }
  .page-hero h1 { font-size: 27px; }
  .dcard { padding: 22px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .summary { padding: 24px 22px; }
  .sum-total b { font-size: 30px; }
  .legal h2 { font-size: 21px; }
  .legal p, .legal li { font-size: 15px; }
}
