  :root{
    --card:#ffffff;
    --ink:#101a2e;
    --muted:#5c6579;
    --line:#e5e1d7;
    --brand:#123a7a;
    --brand-2:#1f5fd0;
    --gold:#b8912f;
    --ok:#1c7a4d;
    --danger:#b3261e;
    --radius:18px;
    
  }

  *,*::before,*::after{box-sizing:border-box}
  [hidden]{display:none !important}

  html,body{height:100%}
  body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif;
    color:var(--ink);
    background:
      radial-gradient(1100px 600px at 12% -10%, #e9eefb 0%, rgba(233,238,251,0) 60%),
      radial-gradient(900px 500px at 100% 0%, #f6ecdd 0%, rgba(246,236,221,0) 55%),
      var(--bg);
    -webkit-font-smoothing:antialiased;
    line-height:1.55;
  }
  .disabled {display:none;}
  .app{
    width:100%;
    
    margin:0 auto;
    
    display:flex;
    flex-direction:column;
   
  }

  /* ---------- Хедер / прогресс ---------- */
  .topbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:44px;
    margin-bottom:22px;
  }
  .brand{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:14px;
    font-weight:650;
    letter-spacing:.02em;
    color:var(--brand);
    white-space:nowrap;
  }
  .brand .mark{
    width:26px;height:26px;border-radius:8px;
    background:linear-gradient(140deg,var(--brand),var(--brand-2));
    display:grid;place-items:center;color:#fff;
    box-shadow:0 6px 14px -6px rgba(18,58,122,.8);
  }
  .brand .mark svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .intro-mark svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .progress{flex:1;max-width:300px;text-align:right}
  .progress-text{font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums;margin:0 0 6px}
  .progress-track{height:6px;border-radius:99px;background:#e6e3da;overflow:hidden}
  .progress-bar{
    height:100%;width:0;border-radius:99px;
    background:linear-gradient(90deg,var(--brand),var(--brand-2));
    transition:width .35s cubic-bezier(.22,.61,.36,1);
  }

  /* ---------- Карточка ---------- */
  .stage{flex:1;display:flex;flex-direction:column;justify-content:center}
  .card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--radius);
    box-shadow:var(--shadow);
    padding:26px 22px;
  }
  .card.enter{animation:rise .38s cubic-bezier(.22,.61,.36,1) both}
  @keyframes rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

  .kicker{
    margin:0 0 8px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;
    color:var(--gold);
  }
  h1{
    margin:0 0 10px;
    font-size:clamp(21px,4.4vw,29px);
    line-height:1.24;
    letter-spacing:-.015em;
    font-weight:750;
  }
  h1:focus,h1:focus-visible{outline:none}
  .subhead{
    margin:0 0 12px;
    font-size:clamp(17px,3.2vw,20px);
    font-weight:650;
    color:#2a3345;
    letter-spacing:-.01em;
    line-height:1.35;
  }
  .lede{margin:0 0 6px;color:var(--muted);font-size:15.5px}
  .note{margin:14px 0 0;font-size:12.5px;color:var(--muted)}

  /* ---------- Интро ---------- */
  .intro-mark{
    width:52px;height:52px;border-radius:15px;
    background:linear-gradient(140deg,var(--brand),var(--brand-2));
    display:grid;place-items:center;margin-bottom:18px;
    box-shadow:0 14px 28px -14px rgba(18,58,122,.9);
  }
  .intro-mark svg{width:26px;height:26px;fill:none;stroke:#fff;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .chips{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0;padding:0;list-style:none}
  .chips li{
    font-size:12.5px;font-weight:600;color:var(--brand);
    background:#eef2fb;border:1px solid #dfe7fa;
    padding:6px 11px;border-radius:99px;
  }

  /* ---------- Варианты ---------- */
  .options{
    border:0;margin:20px 0 0;padding:0;
    display:grid;gap:10px;
  }
  .options.grid{grid-template-columns:1fr}
  .opt{
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:12px;
    padding:14px 16px;
    border:1.5px solid var(--line);
    border-radius:14px;
    background:#fff;
    cursor:pointer;
    transition:border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
  }
  .opt:hover{border-color:#c3d2ee;transform:translateY(-1px);box-shadow:0 10px 20px -16px rgba(16,26,46,.5)}
  .opt input{
    position:absolute;opacity:0;width:1px;height:1px;margin:0;pointer-events:none;
  }
  .dot{
    flex:0 0 auto;
    width:20px;height:20px;margin-top:1px;
    border:2px solid #cfd6e4;border-radius:50%;
    display:grid;place-items:center;
    transition:border-color .16s ease, background .16s ease;
  }
  .dot::after{
    content:"";width:8px;height:8px;border-radius:50%;
    background:#fff;transform:scale(0);opacity:0;
    transition:transform .18s cubic-bezier(.34,1.56,.64,1), opacity .18s ease;
  }
  .opt-text{font-size:15.5px;font-weight:500}
  .opt-hint{display:block;margin-top:2px;font-size:12.5px;font-weight:400;color:var(--muted)}

  .opt:has(input:checked),
  .opt.is-checked{
    border-color:var(--brand-2);
    background:#f4f8ff;
    box-shadow:0 0 0 3px rgba(31,95,208,.12);
  }
  .opt:has(input:focus-visible),
  .opt.is-focused{
    outline:2px solid var(--brand-2);outline-offset:2px;
  }
  .opt:has(input:checked) .dot,
  .opt.is-checked .dot{border-color:var(--brand-2);background:var(--brand-2)}
  .opt:has(input:checked) .dot::after,
  .opt.is-checked .dot::after{transform:scale(1);opacity:1}

  /* поле "другое" */
  .other-wrap{margin-top:12px}
  .other-wrap label{display:block;font-size:13px;font-weight:600;color:var(--muted);margin-bottom:6px}

  /* ---------- Поля ---------- */
  .field{margin-top:18px}
  .field label{display:block;font-size:13.5px;font-weight:600;margin-bottom:6px}
  .field .req{color:var(--danger)}
  .field .opt-mark{font-weight:400;color:var(--muted);font-size:12.5px}
  input[type=text],input[type=tel],input[type=email],textarea{
    width:100%;
    padding:13px 14px;
    font:inherit;
    font-size:15.5px;
    color:var(--ink);
    background:#fcfbf8;
    border:1.5px solid var(--line);
    border-radius:12px;
    transition:border-color .15s ease, background .15s ease, box-shadow .15s ease;
  }
  textarea{min-height:92px;resize:vertical}
  input:focus,textarea:focus{
    outline:none;background:#fff;border-color:var(--brand-2);
    box-shadow:0 0 0 3px rgba(31,95,208,.14);
  }
  input[aria-invalid="true"],textarea[aria-invalid="true"]{border-color:var(--danger);background:#fff7f6}
  .err{margin:6px 0 0;font-size:12.5px;color:var(--danger);font-weight:500}

  .checkbox{
    display:flex;gap:11px;align-items:flex-start;
    margin-top:20px;font-size:14px;color:#333d52;cursor:pointer;
  }
  .checkbox input{
    appearance:none;-webkit-appearance:none;
    flex:0 0 auto;width:21px;height:21px;margin:1px 0 0;
    border:1.5px solid #cbd3e1;border-radius:6px;background:#fff;
    cursor:pointer;position:relative;transition:border-color .15s ease,background .15s ease;
  }
  .checkbox input:checked{background:var(--brand-2);border-color:var(--brand-2)}
  .checkbox input:checked::after{
    content:"";position:absolute;left:6px;top:2px;
    width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;
    transform:rotate(45deg);
  }
  .checkbox input:focus-visible{outline:2px solid var(--brand-2);outline-offset:2px}
  .checkbox input[aria-invalid="true"]{border-color:var(--danger)}
  .checkbox a{color:var(--brand-2);text-decoration:underline;text-underline-offset:2px}

  /* ---------- Кнопки ---------- */
  .actions{display:flex;flex-direction:column;gap:10px;margin-top:22px}
  .btn{
    display:inline-flex;align-items:center;justify-content:center;gap:9px;
    width:100%;
    padding:15px 22px;
    font:inherit;font-size:16px;font-weight:650;
    color:#fff;background:linear-gradient(135deg,var(--brand),var(--brand-2));
    border:0;border-radius:14px;cursor:pointer;
    text-decoration:none;
    box-shadow:0 12px 24px -14px rgba(18,58,122,.95);
    transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  }
  .btn:hover{transform:translateY(-1px);filter:saturate(1.08);box-shadow:0 16px 30px -14px rgba(18,58,122,.95)}
  .btn:active{transform:translateY(0)}
  .btn:focus-visible{outline:3px solid rgba(31,95,208,.45);outline-offset:3px}
  .btn[disabled]{opacity:.62;cursor:progress;transform:none;box-shadow:none}
  .btn--tg{background:linear-gradient(135deg,#1c8ec9,#29a9e0);box-shadow:0 12px 24px -14px rgba(28,142,201,.95)}
  .btn--ghost{
    background:none;color:var(--muted);box-shadow:none;font-weight:600;font-size:14.5px;
    padding:10px;width:auto;align-self:flex-start;
  }
  .btn--ghost:hover{color:var(--brand-2);transform:none;filter:none;box-shadow:none}
  .btn--ghost svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

  .microcopy{margin:14px 0 0;font-size:12.5px;color:var(--muted);text-align:center}
  .other-wrap .err{margin-top:6px}
  .form-error{
    margin:14px 0 0;padding:11px 13px;border-radius:12px;
    background:#fdf1f0;border:1px solid #f3d2cf;color:var(--danger);
    font-size:13.5px;font-weight:500;
  }

  /* ---------- Результат ---------- */
  .badge{
    display:inline-flex;align-items:center;gap:8px;
    padding:7px 13px;border-radius:99px;
    font-size:12.5px;font-weight:700;letter-spacing:.02em;
    margin-bottom:16px;
  }
  .badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
  .badge--a{color:#1c7a4d;background:#e9f6ef}
  .badge--b{color:#9a6b06;background:#fdf3dc}
  .badge--c{color:#1f5fd0;background:#eaf1fe}

  .checklist{list-style:none;margin:10px 0 0;padding:0;display:grid;gap:11px}
  .checklist li{display:flex;gap:11px;align-items:flex-start;font-size:15px;color:#2a3345}
  .tick{
    flex:0 0 auto;width:21px;height:21px;margin-top:1px;border-radius:50%;
    background:#e9f6ef;color:var(--ok);
    display:grid;place-items:center;
  }
  .tick svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
  .divider{height:1px;background:var(--line);margin:20px 0;border:0}
  .relatives-note{
    margin:16px 0 0;padding:13px 15px;border-radius:12px;
    background:#f2f6ff;border:1px solid #dfe8fb;
    font-size:14px;color:#22304a;
  }
  .disclaimer{margin:16px 0 0;font-size:12px;color:var(--muted)}

  /* ---------- Спасибо ---------- */
  .thanks{text-align:center;padding:34px 22px}
  .thanks .big-tick{
    width:64px;height:64px;border-radius:50%;
    background:#e9f6ef;color:var(--ok);
    display:grid;place-items:center;margin:0 auto 20px;
  }
  .thanks .big-tick svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
  .thanks h1{margin-bottom:12px}
  .thanks .lede{max-width:46ch;margin:0 auto}
  .thanks .actions{max-width:420px;margin:24px auto 0}

  .sr-only{
    position:absolute;width:1px;height:1px;padding:0;margin:-1px;
    overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
  }

