:root { color-scheme: light; font-family: Manrope, system-ui, sans-serif; color: #172554; background: #f5f7fb; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; font-size: 16px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.ads-container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }
.ads-header { background: #172554; color: white; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: white; border-radius: 50%; padding: 3px; }
.back-link { color: #dbeafe; font-size: .9rem; font-weight: 700; text-decoration: none; }
.back-link:hover, .back-link:focus-visible { color: white; text-decoration: underline; }
.page-heading { display: flex; align-items: stretch; justify-content: space-between; gap: 28px; padding: 42px 0 24px; }
.eyebrow { color: #2563eb; text-transform: uppercase; letter-spacing: .13em; font-size: .8rem; font-weight: 800; margin: 0 0 9px; }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.04em; line-height: 1.1; margin: 0 0 10px; }
.page-heading p:not(.eyebrow) { color: #52617c; margin: 0; max-width: 630px; line-height: 1.6; }
.balance-card { min-width: 230px; background: #172554; color: white; border-radius: 20px; padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; box-shadow: 0 18px 40px #17255422; }
.balance-card span { color: #cbd5e1; font-size: .86rem; font-weight: 700; }
.mode-badge { display: inline-block; margin-left: 5px; padding: 2px 6px; border-radius: 5px; background: #fef08a; color: #854d0e; font-size: .67rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.mode-badge[hidden] { display: none; }
.balance-card strong { font-size: 2rem; letter-spacing: -.03em; margin: 3px 0 8px; }
.balance-card button { color: #bef264; border: 0; padding: 0; background: transparent; font-size: .82rem; font-weight: 800; }
.balance-card button:hover { text-decoration: underline; }
.message { border: 1px solid #bfdbfe; border-radius: 12px; padding: 13px 16px; color: #1d4ed8; background: #eff6ff; margin: 0 0 24px; line-height: 1.5; }
.message.success { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
.message.error { border-color: #fecaca; color: #991b1b; background: #fef2f2; }
.main-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 20px 0 56px; }
.panel { background: #fff; border: 1px solid #dfe5f1; border-radius: 20px; padding: 24px; box-shadow: 0 8px 30px #1725540b; }
.panel-heading { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 22px; border-bottom: 1px solid #e8edf5; margin-bottom: 22px; }
.step-number { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #dbeafe; color: #1d4ed8; font-size: .85rem; font-weight: 800; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; margin: 0 0 5px; }
.panel-heading p { color: #64748b; margin: 0; line-height: 1.45; font-size: .9rem; }
fieldset { border: 0; padding: 0; margin: 0 0 19px; min-width: 0; }
legend, label { color: #334155; display: block; font-size: .9rem; font-weight: 800; margin-bottom: 9px; }
.choice-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.choice { position: relative; flex: 1 1 110px; }
.choice input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; justify-content: center; align-items: center; min-height: 54px; border-radius: 12px; border: 1.5px solid #d5deec; background: #f8fafc; font-size: .91rem; font-weight: 800; text-align: center; padding: 9px; }
.choice input:checked + span { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; box-shadow: inset 0 0 0 1px #2563eb; }
.choice input:focus-visible + span { outline: 3px solid #93c5fd; outline-offset: 2px; }
input[type="tel"], input[type="number"], select { display: block; width: 100%; min-height: 48px; border: 1px solid #cbd5e1; border-radius: 11px; background: #fff; color: #172554; padding: 10px 13px; margin-bottom: 19px; }
input[type="tel"]:focus, input[type="number"]:focus, select:focus { outline: 3px solid #bfdbfe; border-color: #2563eb; }
input[type="number"]:disabled { background: #f1f5f9; color: #94a3b8; }
.primary-button { width: 100%; min-height: 50px; border: 0; border-radius: 11px; background: #2563eb; color: white; font-size: .94rem; font-weight: 800; padding: 12px 18px; }
.primary-button:hover { background: #1d4ed8; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.form-note { color: #64748b; font-size: .79rem; line-height: 1.55; margin: 11px 0 0; }
.form-note a { color: #1d4ed8; text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover, .form-note a:focus-visible { color: #1e40af; }
.record-list { display: grid; gap: 11px; margin-top: 15px; }
.record { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; background: #f8fafc; border: 1px solid #e5eaf3; border-radius: 12px; padding: 13px 14px; }
.record strong { display: block; font-size: .92rem; color: #172554; }
.record span, .empty-text { display: block; color: #64748b; font-size: .82rem; line-height: 1.5; margin: 3px 0 0; }
.record b { white-space: nowrap; font-size: .88rem; }
.record .positive { color: #15803d; }
.record .negative { color: #b91c1c; }
.campaign-metrics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.campaign-metrics span { margin: 0; border-radius: 8px; padding: 4px 7px; color: #1e40af; background: #dbeafe; font-weight: 800; }
.price-preview { margin: -8px 0 18px; color: #1e40af; font-weight: 800; }
.recharge-panel { margin: 0 0 56px; }
.text-button { border: 0; background: #dbeafe; color: #1d4ed8; border-radius: 8px; padding: 8px 10px; font-weight: 800; cursor: pointer; }
.text-button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 760px) { .page-heading, .main-grid, .detail-grid { display: grid; grid-template-columns: 1fr; } .page-heading { padding-top: 28px; } .balance-card { min-width: 0; } .panel { padding: 19px; } }
