:root {
  --ink: #ffffff; --panel: #f2f5fb; --line: #c8d8ed; --txt: #0a1428; --dim: #3d5f8f; --faint: #6b8bb5;
  --steel: #4c9aff; --steel-dark: #3d7fd9; --steel-darker: #2e5fa8; --steel-light: #e5f0ff;
  --moss: #4caf7d; --moss-light: #e5f5ed; --rust: #c8452d; --rust-light: #ffe5e0; --amber-light: #fff4e5;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--txt); background: var(--panel); line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2 { margin: 0; letter-spacing: -0.4px; line-height: 1.2; }
a { color: var(--steel-darker); }
.canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(900px 520px at 85% 10%, rgba(76,154,255,0.20), transparent 70%), radial-gradient(700px 480px at 5% 90%, rgba(76,175,125,0.12), transparent 70%), linear-gradient(180deg, #f7faff 0%, #e8f0fb 100%); }
.canvas::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(61,95,143,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(61,95,143,0.06) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(circle at 55% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(circle at 55% 40%, #000 0%, transparent 75%); }
.skip { position: absolute; left: 16px; top: -48px; background: var(--txt); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.stage { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px 24px; }
.layout { width: 100%; max-width: 1060px; display: grid; grid-template-columns: 1fr 460px; gap: 56px; align-items: center; }
.layout > * { min-width: 0; }
.logo { height: 34px; width: auto; display: block; margin-bottom: 28px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel-darker); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); box-shadow: 0 0 0 3px rgba(76,154,255,0.25); }
.intro h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -1px; }
.lead { margin: 16px 0 0; font-size: 17px; color: var(--dim); max-width: 34em; }
.points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; max-width: 34em; }
.points li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--dim); }
.points strong { color: var(--txt); font-weight: 600; }
.tick { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--moss-light); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--moss); border-width: 0 2px 2px 0; transform: rotate(40deg); }
.card { background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 50px rgba(76,154,255,0.16), 0 0 0 1px rgba(255,255,255,0.6) inset; padding: 32px 32px 28px; animation: cardIn 0.5s var(--ease) backwards; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: 24px; font-weight: 700; }
.subhead { margin: 6px 0 22px; font-size: 14px; color: var(--dim); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 16px; min-width: 0; }
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--txt); }
input, select { width: 100%; font: inherit; font-size: 16px; color: var(--txt); background: #fff; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; min-height: 46px; transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
input:hover, select:hover { border-color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 4px rgba(76,154,255,0.22); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--rust); background: #fffafa; }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(200,69,45,0.16); }
.phone { display: grid; grid-template-columns: 128px 1fr; gap: 8px; }
.phone select { padding-right: 4px; }
.hint { margin: 6px 0 0; font-size: 12.5px; color: var(--dim); }
.err { margin: 6px 0 0; min-height: 0; font-size: 13px; font-weight: 500; color: var(--rust); }
.err:empty { display: none; }
.alert { margin-bottom: 16px; padding: 12px 14px; border-radius: 10px; font-size: 14px; background: var(--rust-light); color: #8a2a18; border: 1px solid #f3b8ac; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; line-height: 1.45; cursor: pointer; }
.consent .check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: currentColor; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px; padding: 12px 22px; font: inherit; font-size: 16px; font-weight: 600; color: #fff; text-decoration: none; background: linear-gradient(135deg, #4c9aff 0%, #3d7fd9 100%); border: 0; border-radius: 12px; cursor: pointer; box-shadow: 0 6px 16px rgba(61,127,217,0.35); transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), filter 0.15s; }
.btn:hover { filter: brightness(1.04); box-shadow: 0 8px 20px rgba(61,127,217,0.42); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, .skip:focus-visible { outline: 3px solid var(--txt); outline-offset: 3px; }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.btn-ghost { background: transparent; color: var(--steel-darker); border: 1.5px solid var(--line); box-shadow: none; }
.btn-ghost:hover { border-color: var(--steel); }
.spin { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.45); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fine { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); }
.privacy { padding-top: 14px; border-top: 1px solid var(--line); }
.done { text-align: center; padding: 14px 0 6px; }
.done:focus { outline: none; }
.done h2 { margin-top: 18px; }
.done .lead { margin: 12px auto 0; font-size: 16px; }
.badge { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; }
.badge svg { width: 30px; height: 30px; }
.badge-ok { background: var(--moss-light); color: #2f8a5c; }
.badge-warn { background: var(--amber-light); color: #b97800; }
.foot { margin-top: 28px; font-size: 12.5px; color: var(--dim); text-align: center; }
/* result pages */
.result-card { max-width: 480px; width: 100%; text-align: center; }
.result-card .logo { margin: 0 auto 22px; }
.result-card h1 { margin-top: 18px; font-size: 24px; font-weight: 700; }
.result-card .lead { margin: 12px auto 0; font-size: 15.5px; }
.actions { margin-top: 24px; display: grid; gap: 10px; }
.actions:empty { display: none; }
@media (max-width: 920px) {
  .layout { grid-template-columns: 1fr; gap: 28px; max-width: 520px; }
  .logo { margin-bottom: 18px; }
  .stage { justify-content: flex-start; padding-top: 28px; }
}
@media (max-width: 480px) {
  .card { padding: 24px 18px 22px; border-radius: 16px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .phone { grid-template-columns: 112px 1fr; }
}
@media (prefers-reduced-motion: reduce) { .card { animation: none; } .spin { animation-duration: 2s; } * { transition: none !important; } }
.req { color: #e5484d; font-weight: 700; margin-left: 2px; }
