/* Веб-воронка /start: вид шагов онбординга приложения — заголовок сверху,
   варианты карточками с картинкой, одна кнопка снизу. Токены — из site.css. */
body.quiz { background: var(--grouped); min-height: 100dvh; display: flex; flex-direction: column; margin: 0; }
.q-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + env(safe-area-inset-top)) 16px 8px; background: var(--grouped); }
.q-back { flex: none; width: 36px; height: 36px; border: 0; border-radius: 18px; background: var(--inset);
  color: var(--label); display: grid; place-items: center; cursor: pointer; }
/* Без «назад» место остаётся: полоса прогресса не прыгает. */
.q-back[hidden] { display: grid; visibility: hidden; }
.q-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--inset); overflow: hidden; }
.q-progress span { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .35s ease; }
.q-main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 8px 16px 24px; box-sizing: border-box;
  display: flex; flex-direction: column; gap: 16px; }
.q-main.enter { animation: q-in .28s ease; }
@keyframes q-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-title { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; color: var(--label); white-space: pre-line; }
.q-sub { margin: 0; font-size: 17px; line-height: 1.4; color: var(--label2); }
.q-center { text-align: center; }
.q-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.q-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; border: 2px solid transparent;
  border-radius: 18px; background: var(--card); color: var(--label); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 0 0 1px var(--hairline); transition: border-color .15s, background .15s; }
.q-opt img { flex: none; width: 52px; height: 52px; object-fit: contain; }
.q-opt b { display: block; font-size: 17px; font-weight: 600; }
.q-opt small { display: block; font-size: 14px; color: var(--label2); margin-top: 2px; }
.q-opt[aria-pressed="true"] { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 7%, var(--card)); }
.q-opt .q-check { margin-left: auto; flex: none; width: 24px; height: 24px; border-radius: 12px; border: 2px solid var(--label3); box-sizing: border-box; }
.q-opt[aria-pressed="true"] .q-check { border: 0; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.q-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.q-grid .q-opt { flex-direction: column; text-align: center; padding: 10px 6px; gap: 6px; }
.q-grid .q-opt img { width: 64px; height: 64px; }
.q-grid .q-opt b { font-size: 15px; }
.q-fan { position: relative; height: 210px; margin: 12px auto; width: 300px; }
.q-fan img { position: absolute; width: 150px; height: 150px; object-fit: contain; top: 30px; filter: drop-shadow(0 10px 18px rgba(0,0,0,.14)); }
.q-fan img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.q-fan img:nth-child(2) { left: 75px; top: 0; z-index: 2; width: 160px; height: 160px; }
.q-fan img:nth-child(3) { right: 0; transform: rotate(10deg); }
.q-card { background: var(--card); border-radius: 18px; padding: 16px; box-shadow: 0 0 0 1px var(--hairline); }
.q-field { display: flex; gap: 10px; justify-content: center; margin-top: 12px; }
.q-field select, .q-field input { font: inherit; font-size: 22px; font-weight: 600; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--hairline); background: var(--card); color: var(--label); min-width: 0; }
.q-big { text-align: center; font-size: 40px; font-weight: 700; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.q-delta { text-align: center; font-weight: 600; color: var(--saving); margin: 0; }
.q-range { width: 100%; margin: 12px 0; accent-color: var(--blue); }
.q-note { font-size: 13px; color: var(--label2); text-align: center; margin: 0; }
.q-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 17px; }
.q-toggle input { width: 22px; height: 22px; accent-color: var(--blue); }
.q-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.q-tile { background: var(--card); border-radius: 16px; padding: 14px 8px; text-align: center; box-shadow: 0 0 0 1px var(--hairline); }
.q-tile b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.q-tile small { color: var(--label2); font-size: 13px; }
.q-checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.q-checks li { display: flex; gap: 12px; align-items: center; font-size: 17px; opacity: .3; transition: opacity .3s; }
.q-checks li.done { opacity: 1; }
.q-checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 12px; background: var(--inset); }
.q-checks li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.q-checks li span { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.q-empty { text-align: center; padding: 32px 20px; border: 2px dashed var(--label3); border-radius: 20px; color: var(--label2); }
.q-empty b { display: block; color: var(--label); font-size: 20px; margin-bottom: 6px; }
.q-foot { position: sticky; bottom: 0; margin: 0; border: 0; padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--grouped) 70%, transparent); }
.q-foot > * { display: block; width: 100%; max-width: 488px; margin: 0 auto; }
.q-btn { border: 0; border-radius: 16px; padding: 17px; font: inherit; font-size: 17px; font-weight: 600; text-align: center;
  background: var(--blue); color: #fff; cursor: pointer; text-decoration: none; box-sizing: border-box; }
.q-btn[disabled] { opacity: .35; cursor: default; }
.q-link { background: none; border: 0; color: var(--blue); font: inherit; font-size: 17px; padding: 12px; cursor: pointer; margin-top: 4px; }
