:root {
  --blue: #315ddd;
  --blue-deep: #123eae;
  --blue-dark: #193a7a;
  --blue-soft: #edf4ff;
  --ink: #102140;
  --muted: #5d6c86;
  --line: #d8e3f7;
  --panel: #ffffff;
  --bg: #f4f7fb;
  --success: #16794f;
  --warning: #8c5d00;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
a { color: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(112deg, #0f4fd9 0%, #2d64df 53%, #4c80ea 100%);
  min-height: 330px;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 55%;
  background:
    linear-gradient(90deg, #2d64df 0%, rgba(45,100,223,.74) 15%, rgba(45,100,223,.08) 60%),
    url('assets/hero-right.jpg') right center/cover no-repeat;
  pointer-events: none;
}
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 80px;
  background: linear-gradient(to top, rgba(8,45,132,.23), transparent);
  pointer-events: none;
}

.hero-inner, .main, .footer-inner {
  width: min(1400px, calc(100% - 48px));
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 190px minmax(0, 830px);
  gap: 28px;
  align-items: center;
  padding: 46px 0 118px;
}
.logo-link {
  display: block;
  width: 180px;
  text-decoration: none;
  border-radius: 16px;
  outline-offset: 5px;
}
.logo-link img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: .97;
}
.hero-copy h1 {
  color: #fff;
  font-size: clamp(36px, 4.1vw, 66px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 800;
}
.hero-copy p {
  color: rgba(255,255,255,.95);
  font-size: clamp(17px, 1.55vw, 25px);
  line-height: 1.48;
  margin: 0;
  max-width: 900px;
  font-weight: 400;
}

.main {
  position: relative;
  z-index: 3;
  margin-top: -88px;
  padding-bottom: 42px;
}
.wizard {
  background: rgba(255,255,255,.985);
  border: 1px solid rgba(215,226,245,.9);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(18,54,123,.14);
  padding: 34px 36px 30px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
}
.progress-dots { display: flex; gap: 10px; }
.progress-dot {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #eef1f5;
  color: #72809a;
  font-weight: 700;
}
.progress-dot.active { background: var(--blue); color: #fff; }
.progress-dot.done { background: #dfeafe; color: var(--blue-deep); }
.progress-label { font-weight: 700; color: #263a62; font-size: 15px; }

.step h2 {
  margin: 0 0 10px;
  font-size: clamp(27px, 2.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}
.step-lead {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.58;
  max-width: 900px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.option-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.option-grid.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.option-card {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  min-height: 166px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  color: inherit;
  width: 100%;
}
.option-card:hover { border-color: #aac2ff; box-shadow: 0 10px 30px rgba(38,91,210,.10); transform: translateY(-1px); }
.option-card.selected { border-color: var(--blue); background: #f5f8ff; box-shadow: inset 0 0 0 1px var(--blue); }
.option-radio {
  flex: 0 0 28px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid #aab7ca;
  display: grid; place-items: center;
  margin-top: 1px;
}
.option-card.selected .option-radio { border-color: var(--blue); }
.option-card.selected .option-radio::after { content: ''; width: 13px; height: 13px; background: var(--blue); border-radius: 50%; }
.option-copy { flex: 1 1 auto; min-width: 0; }
.option-title { display:block; font-weight: 800; color: #1753d0; line-height: 1.25; margin-bottom: 9px; font-size: 18px; }
.option-text { display:block; color: var(--muted); line-height: 1.48; font-size: 14px; }
.option-image {
  flex: 0 0 120px;
  width: 120px; height: 112px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}
.help-visual {
  flex: 0 0 96px;
  width: 96px; height: 96px;
  border-radius: 26px;
  display: grid; place-items: center;
  font-size: 54px; font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #1670f8, #345cdd);
  box-shadow: inset -8px -10px 0 rgba(0,0,0,.08);
}

.info-box {
  display: grid;
  grid-template-columns: 54px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  background: var(--blue-soft);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 16px;
}
.info-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; background: var(--blue);
  font-weight: 800; font-size: 25px;
}
.info-title { color: #1753d0; font-weight: 800; margin-bottom: 3px; }
.info-text { color: var(--muted); line-height: 1.45; font-size: 14px; }

.control-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  margin-bottom: 14px;
}
.control-label { display: block; font-weight: 800; margin-bottom: 8px; }
.control-help { color: var(--muted); line-height: 1.5; margin: -2px 0 12px; font-size: 14px; }
select, input[type='text'], input[type='number'] {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #cdd9ec;
  border-radius: 13px;
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  outline: none;
}
select:focus, input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49,93,221,.12); }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; color: var(--muted); line-height: 1.45; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--blue); }

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.btn {
  border: 0;
  border-radius: 999px;
  min-height: 50px;
  padding: 12px 24px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid rgba(49,93,221,.24); outline-offset: 3px; }
.btn-primary { background: linear-gradient(135deg, #315ddd, #0e67f3); color: #fff; box-shadow: 0 12px 28px rgba(39,91,222,.24); }
.btn-secondary { background: #fff; border: 1.5px solid var(--blue); color: var(--blue); }
.btn-ghost { background: #eef3fb; color: #36527f; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid #edf1f7;
  padding-top: 22px;
}
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 12px; padding: 0 20px; border-right: 1px solid #e0e7f1; }
.feature:first-child { padding-left: 0; }
.feature:last-child { border-right: 0; }
.feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 12px; color: var(--blue); font-weight: 800; }
.feature-title { color: #1753d0; font-weight: 800; font-size: 14px; margin-bottom: 3px; }
.feature-text { color: #76839a; font-size: 12px; line-height: 1.4; }

.explainer {
  background: #f8faff;
  border: 1px solid #dfe8f8;
  border-radius: 16px;
  padding: 16px 18px;
  margin-top: 14px;
  color: #52627e;
  line-height: 1.55;
  font-size: 14px;
}
.explainer strong { color: var(--ink); }

.result-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,.6fr); gap: 18px; align-items: start; }
.result-card {
  border: 1.5px solid #cfe0ff;
  border-radius: 20px;
  padding: 22px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}
.result-kicker { color: var(--success); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.result-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.22; }
.result-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.pill { padding: 7px 11px; border-radius: 999px; background: #edf4ff; color: #244eaa; font-size: 12px; font-weight: 700; }
.result-copy { color: var(--muted); line-height: 1.55; margin-bottom: 17px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.result-note { margin-top: 12px; font-size: 12px; color: #79869b; line-height: 1.45; }
.warning { background: #fff8e7; border: 1px solid #f0deb0; color: #6a5116; padding: 13px 15px; border-radius: 12px; margin-top: 12px; line-height: 1.45; font-size: 13px; }

.contact-card {
  border-radius: 20px;
  background: #0f4fd9;
  color: #fff;
  padding: 22px;
}
.contact-card h3 { margin: 0 0 10px; font-size: 23px; }
.contact-card p { color: rgba(255,255,255,.86); line-height: 1.55; margin: 0 0 18px; }
.contact-card .btn { width: 100%; margin-top: 8px; background: #fff; color: #174fc7; }
.contact-card .btn.mail { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); }

.footer { background: linear-gradient(90deg, #0e4ccd, #2463e5); color: #fff; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 22px 0; flex-wrap: wrap; }
.footer-phones { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; font-weight: 700; }
.footer-phones a { text-decoration: none; }
.footer-phones a:hover { text-decoration: underline; }
.footer-copy { color: rgba(255,255,255,.74); font-size: 12px; }

.hidden { display: none !important; }
.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; }

@media (max-width: 980px) {
  .hero::after { width: 50%; opacity: .52; }
  .hero-inner { grid-template-columns: 130px 1fr; padding-top: 34px; }
  .logo-link { width: 125px; }
  .option-grid, .option-grid.four { grid-template-columns: 1fr 1fr; }
  .option-grid .option-card:last-child:nth-child(3) { grid-column: 1 / -1; }
  .info-box { grid-template-columns: 50px 1fr; }
  .info-box .btn { grid-column: 1 / -1; justify-self: start; }
  .features { grid-template-columns: 1fr; gap: 16px; }
  .feature { border-right: 0; padding: 0; }
  .result-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .hero { min-height: 385px; }
  .hero::after { width: 100%; opacity: .32; background: linear-gradient(90deg, rgba(26,86,216,.95), rgba(26,86,216,.34)), url('assets/hero-right.jpg') right center/cover no-repeat; }
  .hero-inner { width: min(100% - 28px, 1400px); grid-template-columns: 84px 1fr; gap: 14px; padding: 26px 0 128px; align-items: start; }
  .logo-link { width: 82px; margin-top: 4px; }
  .hero-copy h1 { font-size: 34px; }
  .hero-copy p { font-size: 15px; }
  .main { width: min(100% - 18px, 1400px); margin-top: -102px; }
  .wizard { padding: 22px 16px; border-radius: 20px; }
  .progress-row { gap: 10px; }
  .progress-dots { gap: 6px; }
  .progress-dot { width: 32px; height: 32px; font-size: 12px; }
  .progress-label { font-size: 12px; }
  .option-grid, .option-grid.two, .option-grid.four { grid-template-columns: 1fr; }
  .option-grid .option-card:last-child:nth-child(3) { grid-column: auto; }
  .option-card { min-height: auto; padding: 16px; }
  .option-image { width: 90px; height: 86px; flex-basis: 90px; }
  .help-visual { width: 74px; height: 74px; flex-basis: 74px; font-size: 42px; }
  .info-box { grid-template-columns: 42px 1fr; padding: 15px; }
  .info-icon { width: 40px; height: 40px; }
  .actions { align-items: stretch; }
  .actions .btn { flex: 1 1 100%; }
  .footer-inner { width: min(100% - 28px, 1400px); }
  .footer-phones { gap: 12px; flex-direction: column; align-items: flex-start; }
}
