:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: #101b33;
  background: #101b33;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 7% 78%, #263f80 0, transparent 51%),
    radial-gradient(ellipse at 80% 5%, #1e2e57 0, transparent 48%),
    #101b33;
}

.layout {
  width: min(100%, 1100px);
  display: grid;
  grid-template-columns: minmax(0, .77fr) minmax(0, 1.23fr);
  align-items: start;
  gap: clamp(38px, 6vw, 85px);
  padding: 48px 28px;
}

.brand { color: #f6f8ff; padding-top: 17px; }
.brand img { display: block; object-fit: contain; object-position: left center; }
.brand-message { margin-top: clamp(54px, 9vw, 130px); }

.brand-headline {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.18rem);
  font-weight: 670;
  line-height: 1.12;
  letter-spacing: -.048em;
}

.brand-services {
  margin: 22px 0 0;
  font-size: .94rem;
  color: #becff1;
  line-height: 1.6;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 525px;
  padding: clamp(24px, 4.8vw, 51px);
  background: #fff;
  border: 1px solid #e6ebf6;
  border-radius: 23px;
  box-shadow: 0 26px 80px #080d2350;
}

.card:has(.start-step) { justify-content: center; }
.card:has(.done-step) { justify-content: center; }
.progress { display: grid; gap: 9px; margin-bottom: 35px; }
.progress span { color: #435578; font-size: .81rem; font-weight: 650; }

progress {
  width: 100%;
  height: 5px;
  appearance: none;
  border: 0;
  overflow: hidden;
  background: #e4ebf8;
  border-radius: 999px;
  color: #2257d3;
}

progress::-webkit-progress-bar { background: #e4ebf8; border-radius: 999px; }
progress::-webkit-progress-value { background: #2257d3; border-radius: 999px; }
progress::-moz-progress-bar { background: #2257d3; border-radius: 999px; }

.step h1 {
  margin: 0 0 20px;
  color: #111d37;
  font-size: clamp(1.52rem, 3.2vw, 2rem);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.22;
}

.step h1:focus { outline: none; }
.start-step h1, .done-step h1 { font-size: clamp(2.04rem, 4vw, 2.8rem); }
.step p { margin: 0; color: #435578; line-height: 1.65; }
.step p + p { margin-top: 14px; }
.intro-note { font-size: .9rem; }

.answer {
  display: block;
  width: 100%;
  min-height: 54px;
  padding: 13px 15px;
  background: #f9fbff;
  color: #101b33;
  border: 1px solid #aebbd2;
  border-radius: 9px;
  font: inherit;
}

.answer::placeholder { color: #61708b; }
.answer[aria-invalid="true"] { border-color: #bc2839; }

.choices { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.choice {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid #aebbd2;
  border-radius: 9px;
  background: #f9fbff;
  cursor: pointer;
  font-size: .96rem;
}

.choice input { margin: 0; accent-color: #2356ce; width: 17px; height: 17px; flex: none; }
.choice:hover { background: #edf3ff; }
.choice:has(input:checked) { border-color: #2257d3; background: #eaf0ff; }
.choice:has(input:focus-visible) { outline: 2px solid #2257d3; outline-offset: 2px; }

.actions { display: flex; align-items: center; gap: 10px; margin-top: 28px; }
.actions button {
  min-height: 48px;
  border-radius: 9px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 670;
  cursor: pointer;
}

.primary {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border: 1px solid #064b97;
  background: #075ab5;
  color: #fff;
}

.primary:hover { background: #084f9b; }
.secondary { border: 1px solid #d5def0; background: #f1f5fc; color: #20365f; }
.secondary:hover { background: #e7eefb; }
.actions button:disabled { cursor: wait; opacity: .68; }

button:focus-visible, .answer:focus-visible {
  outline: 2px solid #2257d3;
  outline-offset: 3px;
}

.data-note { color: #4d5b73; font-size: .78rem; line-height: 1.55; margin: 24px 0 0; }
.error { margin: 14px 0 0; color: #a21f30; font-size: .92rem; line-height: 1.4; }
.trap { position: absolute; width: 1px; height: 1px; clip-path: inset(100%); overflow: hidden; }

.done-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin: 0 0 19px;
  border-radius: 50%;
  background: #eaf0ff;
  color: #184ab9;
  font-size: 1.6rem;
}

@media (max-width: 740px) {
  :root { background: #f2f6fc; }
  body { place-items: start center; background: linear-gradient(150deg, #e5effb, #f5f8fd 45%); }
  .layout { max-width: 575px; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 26px 16px 40px; }
  .brand { padding: 0 5px; }
  .brand img { width: 130px; height: 36px; }
  .brand-message { display: none; }
  .card { min-height: 0; border-radius: 17px; box-shadow: 0 10px 35px #0d2d5a0e; }
  .progress { margin-bottom: 24px; }
  .actions button { min-height: 52px; }
}
