:root {
  --blue: #003d5b;
  --blue-2: #075a7a;
  --aqua: #10a8a0;
  --aqua-soft: #e8f7f5;
  --ink: #15313d;
  --muted: #627985;
  --line: #d9e2e6;
  --surface: #ffffff;
  --bg: #f3f6f7;
  --shadow: 0 18px 50px rgba(0, 45, 66, 0.1);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff 0, var(--bg) 52%, #eef3f4 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input { font: inherit; }
button { color: inherit; }

.topbar {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  color: white;
  background: var(--blue);
}
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--blue); background: white; border-radius: 50%; font-size: 22px; }
.prototype-label { padding: 7px 11px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-size: 12px; }

main { min-height: calc(100vh - 150px); }
.hero { max-width: 980px; margin: 0 auto; padding: 72px 24px 38px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .16em; }
h1 { max-width: 780px; margin: 0 auto; color: var(--blue); font-size: clamp(34px, 6vw, 62px); line-height: 1.04; letter-spacing: -.04em; }
.hero > p:last-child { max-width: 720px; margin: 22px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

.configurator { max-width: 1120px; margin: 0 auto; padding: 0 24px 72px; }
.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 0 18px -1px; }
.progress-step { padding: 14px 10px; border: 0; border-radius: 10px 10px 0 0; color: var(--muted); background: #e7edef; cursor: pointer; }
.progress-step span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 6px; border: 1px solid currentColor; border-radius: 50%; font-size: 12px; }
.progress-step.active { color: white; background: var(--blue); }
.progress-step:disabled { cursor: default; opacity: .55; }

.panel { min-height: 390px; padding: clamp(26px, 5vw, 56px); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.panel-heading { margin-bottom: 30px; }
.step-kicker { margin: 0 0 8px; color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h2 { margin: 0; color: var(--blue); font-size: clamp(27px, 4vw, 40px); letter-spacing: -.025em; }
.panel-heading p:last-child { max-width: 700px; margin: 10px 0 0; color: var(--muted); line-height: 1.55; }

.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.choice-card { min-height: 145px; padding: 23px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: white; cursor: pointer; transition: .18s ease; }
.choice-card:hover, .choice-card:focus-visible { transform: translateY(-2px); border-color: var(--aqua); box-shadow: 0 12px 24px rgba(0, 83, 104, .09); outline: none; }
.choice-card.selected { color: var(--blue); border: 2px solid var(--aqua); background: var(--aqua-soft); }
.choice-card strong { display: block; margin-bottom: 7px; font-size: 20px; }
.choice-card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.45; }
.choice-card.selected small { color: #416b72; }
.application-grid { grid-template-columns: repeat(2, 1fr); }
.application-grid .choice-card { min-height: 92px; }

.priority-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.priority { position: relative; min-height: 118px; }
.priority .order { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; color: white; background: var(--aqua); border-radius: 50%; font-size: 13px; font-weight: 800; }
.selection-hint { display: flex; justify-content: space-between; gap: 20px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); }

.actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 30px; }
.button { min-height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 750; cursor: pointer; }
.button.primary { color: white; background: var(--blue); }
.button.primary:hover { background: var(--blue-2); }
.button.secondary { color: var(--blue); background: #e9eff1; }
.button:disabled { cursor: not-allowed; opacity: .4; }

.summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 28px; }
.summary span { padding: 8px 12px; color: var(--blue); background: var(--aqua-soft); border-radius: 999px; font-size: 13px; font-weight: 700; }
.results { display: grid; gap: 15px; }
.result-card { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
.rank { display: grid; place-items: center; width: 40px; height: 40px; color: white; background: var(--blue); border-radius: 12px; font-weight: 800; }
.result-label { margin: 0 0 5px; color: var(--aqua); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-card h3 { margin: 0; color: var(--blue); font-size: 23px; }
.result-card p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.result-card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink); line-height: 1.5; }
.relevance { white-space: nowrap; padding: 7px 10px; color: var(--blue); background: #edf2f3; border-radius: 999px; font-size: 12px; font-weight: 750; }
.product-link { display: inline-block; margin-top: 13px; color: var(--blue-2); font-size: 13px; font-weight: 750; }
.notice { margin-top: 24px; padding: 16px 18px; color: #4f6872; background: #f1f5f6; border-left: 4px solid var(--aqua); border-radius: 6px; font-size: 13px; line-height: 1.5; }
.loading, .error { display: grid; min-height: 280px; place-items: center; color: var(--muted); }
footer { padding: 26px 24px; color: #78909a; text-align: center; font-size: 12px; }

@media (max-width: 800px) {
  .choice-grid, .priority-grid { grid-template-columns: 1fr 1fr; }
  .progress-step { font-size: 0; }
  .progress-step span { margin: 0; font-size: 12px; }
  .result-card { grid-template-columns: auto 1fr; }
  .relevance { grid-column: 2; justify-self: start; }
}
@media (max-width: 540px) {
  .topbar { padding: 0 18px; }
  .prototype-label { display: none; }
  .hero { padding-top: 50px; }
  .configurator { padding-left: 12px; padding-right: 12px; }
  .panel { padding: 25px 18px; border-radius: 12px; }
  .choice-grid, .priority-grid { grid-template-columns: 1fr; }
  .selection-hint, .actions { align-items: stretch; flex-direction: column; }
  .actions .button { width: 100%; }
}
