/* The quiz (ТЗ v0.2 §14): the app's onboarding in a browser, no tabs. */
.quiz { max-width: 460px; gap: 0; min-height: 100vh; min-height: 100dvh; }
.qtop { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.qback {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent;
  color: var(--text); font: inherit; font-size: 26px; line-height: 1; cursor: pointer;
}
.qback[hidden] { display: block; visibility: hidden; }
.qsteps { flex: 1; display: flex; gap: 6px; align-items: center; }
.qsteps i { flex: 1; height: 6px; border-radius: 3px; background: var(--surface2); }
.qsteps i.on { background: var(--accent); }
.qsteps span { flex: none; color: var(--muted); font-size: 14px; margin-left: 4px; }

.qbody { flex: 1; display: flex; flex-direction: column; gap: 17px; padding: 12px 0 20px; }
.qcap { color: var(--accent2); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.qbody h1 { font-size: clamp(26px, 7.4vw, 32px); }
.qbody .lead { font-size: 17px; }
.qfoot { display: flex; flex-direction: column; gap: 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.qfoot .note { text-align: center; color: var(--muted); font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label {
  font-weight: 700; font-size: 16px; color: var(--text); text-transform: none; letter-spacing: 0;
}
.field .hint { color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[inputmode=numeric] {
  width: 100%; min-height: 56px; padding: 0 18px; border-radius: var(--r-md);
  border: 2px solid #686177; background: var(--surface); color: var(--text);
  font: inherit; font-size: 18px; outline: none;
}
input:focus { border-color: var(--accent); }
input.bad { border-color: #FF7267; }
.err { color: #FF7267; font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); color: var(--text);
  font: inherit; font-size: 16px;
}
.chip[aria-pressed=true] { border-color: var(--accent); background: #482726; color: var(--accent); }

.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface2); color: var(--text); font: inherit; font-size: 26px;
}
.stepper output { min-width: 96px; text-align: center; font-weight: 900; font-size: 34px; font-variant-numeric: tabular-nums; }
.stepper small { color: var(--muted); font-size: 15px; }

.big { font-weight: 900; font-size: clamp(22px, 7vw, 30px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--surface); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.tile small { color: var(--muted); font-size: 14px; }
.tile.wide { grid-column: span 2; }

.banner { background: #2A2318; border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.banner.bad { background: #3A1F22; }

/* No style attributes in the markup: the site's CSP allows styles from 'self' only. */
.plans { display: grid; gap: 12px; }
.plan {
  display: flex; align-items: center; gap: 14px; padding: 16px; cursor: pointer; position: relative;
  border-radius: var(--r-md); border: 2px solid var(--border); background: var(--surface);
  color: var(--text); font: inherit; text-align: left; width: 100%;
}
.plan[aria-checked=true] { border-color: var(--accent); background: #482726; }
.plan .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #686177; flex: none; }
.plan[aria-checked=true] .dot { border: 7px solid var(--accent); }
.plan[aria-checked=true] small { color: #BDB6C9; }
.plan b { display: block; font-size: 18px; }
.plan small { color: var(--card-muted); font-size: 14px; }
.plan .price { margin-left: auto; text-align: right; white-space: nowrap; }
.plan .price small { display: block; }
.plan .save {
  position: absolute; right: 16px; top: -11px; background: var(--accent2); color: var(--on-accent);
  border-radius: 999px; padding: 2px 8px; font-weight: 900; font-size: 12px;
}

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: var(--card-muted); font-size: 15px; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.check.bad { color: #FF7267; }

.otp { width: 100%; letter-spacing: .5em; text-align: center; font-size: 28px !important; font-weight: 900; }

.btn {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 20px;
  border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 900; font-size: 16px; text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 5px 0 var(--accent-shadow);
}
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: var(--surface); color: var(--accent); box-shadow: 0 5px 0 #3E374F; border: 2px solid var(--border); }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; padding: 8px; }
.stores { display: grid; grid-template-columns: 1fr; gap: 10px; }
.legal { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.45; }
.legal a { color: var(--muted); }
.spinner {
  width: 44px; height: 44px; border-radius: 50%; margin: 24px auto 0;
  border: 4px solid var(--surface2); border-top-color: var(--accent); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
