:root {
  color-scheme: light;
  --blue: #0d47a1;
  --ink: #2d3c41;
  --white: #fff;
  --focus: #72aaff;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; background: var(--blue); font-family: Arial, Helvetica, sans-serif; }
button, input, textarea, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, .choice:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { min-height: 100svh; padding: 33px 22px 72px; border-top: 3px solid #333; }
.container { width: 100%; max-width: 1150px; margin-inline: auto; }
.topbar { display: flex; justify-content: flex-end; align-items: center; margin-bottom: 35px; }
.call-button { min-width: 200px; height: 45px; display: inline-flex; align-items: center; justify-content: center; background: #fff; color: #0d0d0d; border-radius: 5px; text-decoration: none; font-size: 14px; font-weight: 700; transition: box-shadow .18s, transform .18s; }
.call-button:hover { box-shadow: 0 7px 22px #002c7044; transform: translateY(-1px); }
.hero { display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 20px; align-items: start; }
.hero-copy { height: 527px; border-radius: 29px; background: #fff; padding: 31px 26px 28px; display: flex; flex-direction: column; }
.hero-copy h1 { margin: 0; color: var(--ink); font-size: 36px; font-weight: 700; letter-spacing: -.5px; line-height: 1.32; }
.hero-offer { display: flex; align-items: center; justify-content: space-between; gap: 11px; margin: 29px 0 17px; min-height: 99px; }
.hero-statements { color: var(--blue); font-size: 14px; line-height: 1.48; }
.hero-statements p { margin: 0 0 20px; }
.hero-statements p:last-child { margin-bottom: 0; }
.hero-statements strong { font-weight: 700; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; position: relative; left: -13px; top: 12px; min-width: 228px; flex: 0 0 228px; padding: 8px 8px 7px; min-height: 54px; background: var(--blue); color: #fff; border: none; border-radius: 99px; font-size: 14px; font-weight: 700; line-height: 1.21; text-align: center; transition: background .18s, transform .18s; }
.primary-button:hover { background: #07367e; transform: translateY(-2px); }
.promise-box { margin-left: 3px; margin-right: 13px; display: flex; align-items: center; flex: 1; min-height: 175px; border: 2px dashed #1559c5; border-radius: 16px; padding: 19px 20px; color: var(--blue); font-size: 16px; line-height: 1.53; }
.promise-box p { margin: 0; }
.hero-visual { height: 533px; border-radius: 20px; overflow: hidden; background: #eee; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.benefit-card { background: #fff; height: 141px; min-height: 141px; border-radius: 18px; padding: 22px 24px 0; display: flex; flex-direction: column; align-items: flex-start; }
.benefit-icon { width: 33px; height: 33px; flex: 0 0 33px; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; }
.benefit-icon svg { width: 33px; height: 33px; display: block; }
.benefit-icon.circle-icon { width: 33px; height: 33px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 23px; font-weight: 400; line-height: 1; }
.benefit-card p { margin: 13px 0 0; color: var(--blue); font-size: 16px; line-height: 1.48; }

/* Wizard */
body.quiz-is-open { overflow: hidden; }
.quiz-overlay[hidden]:target { display: flex !important; } /* резервное открытие без JS в мобильном HTML-просмотрщике */
.quiz-fallback { margin: 18px 0; color: var(--ink); font-size: 16px; line-height: 1.65; }
.quiz-fallback h2 { margin: 12px 0 16px; font-size: 27px; }
.quiz-overlay { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 22px; background: rgba(9, 22, 41, .75); backdrop-filter: blur(3px); }
.quiz-dialog { position: relative; background: #fff; color: var(--ink); width: min(100%, 810px); max-height: min(760px, calc(100svh - 44px)); min-height: min(550px, calc(100svh - 44px)); overflow-y: auto; border-radius: 20px; box-shadow: 0 20px 80px #031b43b0; padding: 40px 54px 34px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.quiz-close { position: absolute; top: 17px; right: 17px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: #f1f4f9; color: #364b61; height: 33px; width: 33px; border-radius: 50%; }
.quiz-close:hover { background: #e2eaf5; }
.quiz-close svg { width: 18px; height: 18px; }
.quiz-topline { margin: 3px 30px 13px 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; color: #5a6b79; font-size: 13px; }
.quiz-topline strong { color: var(--blue); font-size: 14px; }
.quiz-track { height: 7px; background: #eaf0f8; width: 100%; overflow: hidden; border-radius: 99px; }
.quiz-progress { height: 100%; width: 0; background: var(--blue); border-radius: inherit; transition: width .24s; }
.quiz-heading { color: var(--ink); margin: 32px 0 23px; font-size: clamp(22px, 2.7vw, 29px); line-height: 1.26; font-weight: 700; }
.quiz-caption { color: #758396; font-size: 13px; margin: -9px 0 17px; }
.quiz-options { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.choice { display: flex; align-items: center; min-height: 64px; padding: 14px 16px; gap: 11px; color: #233749; border: 1.5px solid #dce4ed; border-radius: 11px; text-align: left; background: #fff; font-size: 16px; line-height: 1.35; font-weight: 500; transition: .17s background, .17s border-color; }
.choice:hover { border-color: #658ecb; background: #f6f9fe; }
.choice.selected { background: #eef5ff; border-color: var(--blue); }
.choice-marker { width: 21px; height: 21px; flex: 0 0 21px; border: 2px solid #b4c3d4; border-radius: 50%; display: flex; justify-content: center; align-items: center; }
.choice.selected .choice-marker { border: 6px solid var(--blue); background: white; }
.quiz-field-label { display: block; color: #334c5f; font-weight: 700; margin-bottom: 10px; font-size: 14px; }
.quiz-input { width: 100%; height: 60px; border: 1.5px solid #d0dce9; border-radius: 11px; background: #fff; font-size: 18px; color: #263e50; padding: 0 17px; }
.quiz-input::placeholder { color: #8b9bad; }
.quiz-input:focus { border-color: var(--blue); outline: 3px solid #d5e4ff; outline-offset: 0; }
.quiz-error { color: #bd2636; font-size: 14px; margin: 11px 0 0; min-height: 19px; }
.quiz-bottom { display: flex; justify-content: flex-start; gap: 12px; align-items: center; margin-top: 31px; flex-wrap: wrap; }
.quiz-next, .quiz-back, .quiz-restart { min-height: 48px; border-radius: 8px; font-weight: 700; padding: 11px 27px; font-size: 16px; }
.quiz-next, .quiz-restart { background: var(--blue); color: white; border: 1px solid var(--blue); }
.quiz-next:hover, .quiz-restart:hover { background: #07367e; }
.quiz-back { color: var(--blue); background: white; border: 1px solid #c6d4e5; }
.quiz-back:hover { background: #f4f8fd; }
.quiz-enter-hint { font-size: 12px; color: #8290a0; }
.quiz-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 13px; line-height: 1.5; color: #5d6c79; cursor: pointer; }
.quiz-consent input { accent-color: var(--blue); height: 18px; width: 18px; margin: 0; flex: 0 0 auto; }
.quiz-consent a { color: var(--blue); text-decoration: underline; }
.quiz-final { text-align: center; padding: 37px 8px 9px; }
.quiz-final .done-icon { display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); font-size: 34px; height: 64px; width: 64px; border-radius: 50%; }
.quiz-final h2 { margin: 19px 0 13px; font-size: 27px; }
.quiz-final p { color: #596f80; line-height: 1.65; max-width: 490px; margin: 0 auto 20px; }
.quiz-final .quiz-bottom { justify-content: center; }
.quiz-final a { color: var(--blue); font-weight: 700; }

@media (max-width: 1200px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-copy h1 { font-size: clamp(26px,3vw,36px); }
  .desktop-break { display: none; }
  .hero-copy { min-height: 527px; height: auto; }
  .hero-offer { flex-wrap: wrap; }
  .primary-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; position: relative; left: -13px; top: 12px; min-width: 200px; flex: 1 1 200px; max-width: 250px; }
}
@media (max-width: 850px) {
  .page-shell { padding: 19px 18px 45px; }
  .topbar { margin-bottom: 22px; }
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero-copy { height: auto; min-height: unset; padding: 26px; }
  .hero-copy h1 { font-size: clamp(27px, 4.4vw, 36px); }
  .hero-offer { margin-top: 24px; }
  .promise-box { margin-inline: 0; min-height: 145px; }
  .hero-visual { height: min(55vw, 490px); }
  .benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .page-shell { padding: 14px 12px 38px; border-top-width: 2px; }
  .call-button { min-width: 164px; height: 41px; }
  .topbar { margin-bottom: 18px; }
  .hero { gap: 13px; }
  .hero-copy { padding: 25px 20px 20px; border-radius: 23px; }
  .hero-copy h1 { font-size: clamp(25px, 7vw, 32px); letter-spacing: -.5px; line-height: 1.26; }
  .hero-offer { align-items: flex-start; flex-direction: column; gap: 17px; margin: 22px 0 19px; }
  .hero-statements p { margin-bottom: 15px; }
  .primary-button { left: 0; top: 0; width: 100%; max-width: none; min-height: 51px; flex: auto; }
  .promise-box { font-size: 15px; min-height: 145px; padding: 15px; }
  .hero-visual { height: 78vw; max-height: 360px; border-radius: 20px; }
  .benefits { gap: 12px; margin-top: 13px; }
  .benefit-card { height: auto; padding: 17px 14px; min-height: 151px; }
  .benefit-card p { font-size: 14px; line-height: 1.43; }
  .quiz-overlay { padding: 0; align-items: stretch; }
  .quiz-dialog { width: 100%; height: 100vh; min-height: 100vh; max-height: 100vh; height: 100dvh; min-height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 52px 22px max(26px, env(safe-area-inset-bottom)); }
  .quiz-heading { margin-top: 29px; }
  .quiz-options { grid-template-columns: 1fr; gap: 9px; }
  .choice { min-height: 55px; }
  .quiz-enter-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition: none !important; scroll-behavior: auto !important; } }

/* Legal footer and privacy note */
.legal-footer { margin-top: 26px; color: rgba(255,255,255,.82); font-size: 12px; line-height: 1.55; text-align: center; }
.legal-footer__links { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.legal-footer a { color: #fff; text-underline-offset: 2px; }
.legal-footer p { margin: 4px 0; }
.quiz-privacy-note { margin: 7px 0 0 28px; color: #768594; font-size: 12px; line-height: 1.45; }
.quiz-privacy-note a { color: var(--blue); text-decoration: underline; }
@media (max-width: 520px) {
  .legal-footer { margin-top: 20px; font-size: 11px; }
  .legal-footer__links { gap: 9px 14px; }
  .quiz-privacy-note { margin-left: 28px; }
}
