@font-face {
  font-family: Montserrat;
  src: url('../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Montserrat, Arial, sans-serif;
  color: #030712;
  background: #fff;
  --theme: #19a34a;
  --theme-dark: #13833b;
  --track: #e4f2e8;
  --muted: #6b7280;
  --width: 448px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

.step {
  width: min(calc(100% - 32px), var(--width));
  margin-inline: auto;
  padding-block: 24px;
  outline: none;
}

.intro .step-content { margin-top: 106px; }
.intro .rich:last-child { color: var(--muted); }
.intro .rich:last-child p { line-height: 1.4; }
.logo {
  display: block;
  width: 126px;
  height: auto;
  margin: -10px auto 12px;
}

progress {
  display: block;
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  appearance: none;
  background: var(--track);
  color: var(--theme);
}
progress::-webkit-progress-bar { background: var(--track); }
progress::-webkit-progress-value { background: var(--theme); }
progress::-moz-progress-bar { background: var(--theme); }

.step-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 36px;
}
.step-content > * { grid-column: 1 / -1; min-width: 0; }
.step-content > .half-width { grid-column: auto; }
.rich { line-height: 1.35; overflow-wrap: anywhere; }
.rich h1, .rich h2, .rich h3, .rich p { margin: 0; }
.rich h1, .rich h2, .rich h3 { font-weight: 750; line-height: 1.12; }
.rich h1 { font-size: 32px; margin-bottom: 8px; }
.rich h2 { font-size: 25px; }
.rich h3 { font-size: 21px; }
.rich p + p, .rich h3 + p { margin-top: 10px; }
.rich h3 + p { color: var(--muted); }
.ql-align-center { text-align: center; }
.ql-align-right { text-align: right; }
.ql-size-small { font-size: .8em; }
.step:not(.intro) .rich h3 + p .ql-size-small { font-size: 12px; }
.ql-size-large { font-size: 1.35em; }
.ql-size-huge { font-size: 1.65em; }

.action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  border: 0;
  border-radius: 16px;
  background: var(--theme);
  color: #fff;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.action:hover { background: var(--theme-dark); }
.action:disabled { cursor: wait; opacity: .65; }
.has-fixed { padding-bottom: 100px; }
.fixed-action {
  position: fixed;
  z-index: 1;
  bottom: 12px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(calc(100% - 32px), var(--width));
  transform: translateX(-50%);
}
.fixed-action .action { box-shadow: 0 6px 0 var(--theme-dark); }
.spacer { height: 32px; }

.choices { display: grid; align-content: start; gap: 8px; }
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 9px 12px;
  border: 1px solid #d4d4d4;
  border-radius: 16px;
  color: inherit;
  background: #fff;
  text-align: left;
  font-size: 16px;
  line-height: 1.3;
  cursor: pointer;
}
.choice:hover, .choice:has(input:checked) { border-color: var(--theme); background: #f3fbf5; }
.choice input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--theme); }
.choice-icon { font-size: 27px; line-height: 1; }
.field { display: grid; gap: 6px; font-weight: 650; }
.field input {
  width: 100%;
  border: 1px solid #d4d4d4;
  border-radius: 12px;
  padding: 12px 14px;
  min-height: 52px;
  font-weight: 400;
}
.contact-note, .form-error { margin: 4px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.form-error { color: #a31515; }
.stage-image { display: block; max-width: 100%; height: auto; margin-inline: auto; }
.alert {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 16px;
  background: #fef2f2;
  color: #991b1b;
  text-align: center;
}
.alert-success { background: var(--track); border-color: #bbf7d0; color: #14532d; }
.alert.compact { padding: 7px; }
.alert-icon { flex: none; }
.loading { display: grid; justify-items: center; text-align: center; gap: 12px; }

.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.score { display: grid; gap: 8px; justify-items: center; text-align: center; font-size: .85rem; }
.score-circle {
  display: grid;
  place-items: center;
  width: 75px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, white 78%, transparent 80%), conic-gradient(var(--score-color) var(--score), var(--track) 0);
}

@media (max-width: 480px) {
  .step { width: min(calc(100% - 32px), 360px); padding-top: 16px; }
  .step-content { margin-top: 27px; }
  .intro .step-content { margin-top: 86px; }
  .intro .rich h1 { font-size: clamp(25px, 7vw, 32px); }
  .rich h3 { font-size: 18px; }
  .logo { width: 112px; }
  .choice { font-size: 14px; min-height: 48px; border-radius: 12px; gap: 8px; }
  .choice-icon { font-size: 24px; }
  .fixed-action { width: min(calc(100% - 32px), 360px); }
}

@media (max-width: 350px) {
  .step-content > .half-width { grid-column: 1 / -1; }
}
