:root { color-scheme: light; --ink: #202b31; --muted: #607078; --line: #dce3e5; --green: #08795c; --blue: #176ca0; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.6 "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
header { background: #f6f8f9; border-bottom: 1px solid var(--line); }
nav, .brand, .nav-links, .page-title, .balance-bar, .section-title, footer { display: flex; align-items: center; gap: 20px; }
nav { min-height: 72px; justify-content: space-between; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand { color: var(--ink); font-weight: 700; gap: 10px; }
.brand img { object-fit: contain; }
.nav-links { flex-wrap: wrap; font-size: 14px; gap: 16px; }
.nav-links span { color: var(--muted); overflow-wrap: anywhere; }
.page-title { padding: 36px 0 28px; justify-content: space-between; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; color: var(--green); font-size: 12px; font-weight: 700; }
h1 { font-size: 32px; line-height: 1.25; margin: 0; font-weight: 700; }
h2 { font-size: 20px; line-height: 1.4; margin: 0 0 18px; }
p { margin: 0; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-align: center; overflow-wrap: anywhere; }
.button:hover { background: #09654f; text-decoration: none; }
.button.secondary { background: #fff; color: var(--blue); border-color: #b8cbd5; }
.button.secondary:hover { background: #f2f7fa; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.button.compact { margin-top: 16px; }
:focus-visible { outline: 3px solid #d79b25; outline-offset: 3px; }
.notice { padding: 12px 16px; margin-bottom: 16px; border-left: 3px solid var(--blue); background: #edf5fb; overflow-wrap: anywhere; }
.notice.danger { border-color: #bb333e; color: #a4242e; background: #fff1f2; }
.notice.success { border-color: var(--green); background: #edf8f3; }
.balance-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; flex-wrap: wrap; gap: 8px 18px; }
.balance-bar span { color: var(--muted); overflow-wrap: anywhere; }
.balance-bar strong { font-size: 22px; margin-left: auto; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; padding: 32px 0; }
.plan { border-bottom: 1px solid var(--line); padding: 0 0 18px; margin: 0 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.plan div { display: grid; }
.plan div strong { font-size: 18px; }
.plan span { color: var(--muted); }
.price { font-size: 26px; color: var(--green); white-space: nowrap; }
form { display: grid; gap: 10px; }
label { font-weight: 600; font-size: 14px; }
input:not([type=hidden]) { width: 100%; min-width: 0; height: 46px; padding: 8px 12px; border: 1px solid #b6c4cb; border-radius: 6px; font: inherit; background: #fff; color: var(--ink); }
input:disabled { background: #f3f5f6; }
form .button { margin-top: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.deposit > p { margin-bottom: 24px; }
.terms { margin-top: 14px; }
.details { border-top: 1px solid var(--line); padding: 28px 0; }
.section-title { justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.section-title h2 { margin: 0; }
.success { color: var(--green); }
dl { margin: 0; }
dl div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f2; }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.payment-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
.qr { width: 220px; height: 220px; object-fit: contain; }
footer { justify-content: space-between; border-top: 1px solid var(--line); padding: 24px 0; margin-top: 8px; color: var(--muted); flex-wrap: wrap; gap: 12px; }
@media (max-width: 700px) {
    .shell { width: calc(100% - 32px); }
    .page-title { padding-top: 26px; gap: 16px; }
    h1 { font-size: 28px; }
    .shop-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 26px 0; }
    .deposit { border-top: 1px solid var(--line); padding-top: 26px; }
    .balance-bar strong { margin-left: 0; }
    .balance-bar span { flex-basis: 100%; }
    .balance-bar a { margin-left: auto; }
    .payment-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    dl div { grid-template-columns: 110px minmax(0, 1fr); }
}
