/* Подбор принтера (/quiz.html): шаги теста и экран результата. Разметку рисует tools/quiz.js.
   Панели — белые с тонкой рамкой или серые var(--bg-2); зелёный — только кнопки, цены, отметки. */
.qz-hero .sv-hero__lead { max-width: 60ch; }
.qz { margin-top: 20px; scroll-margin-top: 140px; }
.qz__box { max-width: 940px; margin: 0 auto; padding: clamp(20px, 3.4vw, 40px); border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(17, 20, 24, 0.05); }

/* Прогресс: пять делений */
.qz__progress { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: clamp(18px, 2.6vw, 28px); }
.qz__progress i { height: 6px; border-radius: 999px; background: var(--bg-3, #e6e8eb); transition: background-color 240ms ease; }
.qz__progress i.is-done { background: var(--accent); }
.qz__progress i.is-now { background: var(--ink); }

.qz__card { animation: qz-in 260ms var(--ease) both; }
@keyframes qz-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qz__card { animation: none; } }

.qz-step { color: var(--accent-strong); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.qz-q { margin-top: 8px; font: 700 clamp(22px, 2.6vw, 30px)/1.18 var(--display); letter-spacing: -0.02em; }
.qz-text { margin-top: 12px; max-width: 60ch; font-size: 16px; line-height: 1.55; }
.qz-text a { color: var(--accent-strong); font-weight: 600; }

/* Ответы: крупные плитки */
.qz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.qz-opt { display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 16px 18px 16px 20px; border: 0; border-radius: 14px; background: var(--bg-2); color: var(--ink); text-align: left; cursor: pointer; transition: box-shadow 160ms ease, background-color 160ms ease, transform 120ms var(--ease); }
.qz-opt:active { transform: scale(0.985); }
@media (hover: hover) { .qz-opt:hover { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); } }
.qz-opt.is-picked { background: var(--bg); box-shadow: inset 0 0 0 2px var(--accent); }
.qz-opt__t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qz-opt__t b { font-size: 17px; font-weight: 500; line-height: 1.3; }
.qz-opt__t small { color: var(--muted); font-size: 14px; line-height: 1.35; }
.qz-opt__go { flex: none; color: var(--muted); transition: transform 160ms var(--ease), color 160ms ease; }
@media (hover: hover) { .qz-opt:hover .qz-opt__go { color: var(--accent-strong); transform: translateX(3px); } }

.qz-nav { display: flex; justify-content: flex-start; margin-top: 18px; }
.qz-back { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; }
@media (hover: hover) { .qz-back:hover { background: var(--bg-2); color: var(--ink); } }
#qzRestart { padding-left: 14px; }

/* Результат */
.qz-reco { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(18px, 3vw, 40px); align-items: center; margin-top: 14px; }
.qz-reco__img { display: block; aspect-ratio: 1; padding: 8%; border-radius: var(--r); background: var(--bg-2); }
.qz-photo { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.qz-badge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.qz-reco__name { margin-top: 12px; font: 800 clamp(24px, 3vw, 34px)/1.1 var(--display); letter-spacing: -0.02em; }
.qz-reco__price { margin-top: 10px; font: 800 clamp(24px, 2.6vw, 30px)/1 var(--display); color: var(--accent-strong); letter-spacing: -0.01em; }
.qz-avail { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.qz-avail::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b8bcc2; }
.qz-avail.is-in { color: var(--accent-strong); }
.qz-avail.is-in::before { background: var(--accent); }
.qz-why { margin-top: 16px; gap: 8px; }
.qz-why li { font-size: 15px; }
.qz-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.qz-btns .btn { min-width: 150px; }

.qz-alt { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.qz-alt__img { flex: none; width: 76px; height: 76px; padding: 6px; border-radius: 12px; background: var(--bg-2); }
.qz-alt__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qz-alt__lbl { color: var(--muted); font-size: 13px; }
.qz-alt__name { font-size: 16px; line-height: 1.3; }
.qz-alt__price { color: var(--accent-strong); font-weight: 700; }
.qz-alt__go { flex: none; height: 40px; padding: 0 16px; }

.qz-more { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.qz-more__title { margin: 0; font: 700 20px/1.25 var(--display); }
.qz-more__sub { margin-top: 4px; color: var(--muted); font-size: 14px; }
.qz-more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.qz-more__card { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 14px; background: var(--bg-2); color: var(--ink); text-decoration: none; transition: box-shadow 160ms ease, background-color 160ms ease; }
@media (hover: hover) { .qz-more__card:hover { background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--accent); } }
.qz-more__img { flex: none; width: 72px; height: 72px; padding: 4px; border-radius: 10px; background: #fff; object-fit: contain; }
.qz-more__t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qz-more__name { font-size: 15px; line-height: 1.25; }
.qz-more__gain { color: var(--muted); font-size: 13px; line-height: 1.3; }
.qz-more__price { color: var(--accent-strong); font-size: 15px; font-weight: 700; }
.qz-more__price small { margin-left: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }

/* Что дальше: сравнить, шоурум, Панда */
.qz-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.qz-next__i { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; transition: box-shadow 160ms ease; }
@media (hover: hover) { .qz-next__i:hover { box-shadow: inset 0 0 0 1.5px var(--ink); } }
.qz-next__i b { font-size: 15px; font-weight: 600; }
.qz-next__i small { color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .qz-opts, .qz-more__grid, .qz-next { grid-template-columns: 1fr; }
  .qz-reco { grid-template-columns: 1fr; }
  .qz-reco__img { max-width: 240px; width: 100%; margin: 0 auto; }
  .qz-opt { min-height: 64px; padding: 14px 14px 14px 16px; }
  .qz-btns .btn { flex: 1 1 100%; }
  .qz-alt { flex-wrap: wrap; }
  .qz-alt__go { flex: 1 1 100%; }
}

/* Варианты с картинками (02.11.2026): карточка — иллюстрация сверху, подпись снизу. Рамку рисует ::after
   поверх картинки — inset-тень самой кнопки картинка перекрывала */
.qz-opts--img { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.qz-opts--img.qz-opts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.qz-opt--img { position: relative; flex-direction: column; align-items: stretch; gap: 10px; min-height: 0; padding: 0 0 16px; overflow: hidden; text-align: center; }
.qz-opt--img::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transition: box-shadow 160ms ease; }
@media (hover: hover) { .qz-opt--img:hover { box-shadow: none; background: var(--bg-2); } .qz-opt--img:hover::after { box-shadow: inset 0 0 0 1.5px var(--accent); } .qz-opt--img:hover .qz-opt__img img { transform: translateY(-4px) scale(1.03); } }
.qz-opt--img.is-picked { box-shadow: none; background: var(--bg-2); }
.qz-opt--img.is-picked::after { box-shadow: inset 0 0 0 2px var(--accent); }
.qz-opt__img { display: block; aspect-ratio: 1; padding: 8% 8% 0; }
.qz-opt__img img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: darken; transition: transform 260ms var(--ease); } /* darken: фон картинки сливается с карточкой — сжатие сдвигает его на 1–2 тона */
.qz-opt--img .qz-opt__t { padding: 0 12px; align-items: center; }
.qz-opt--img .qz-opt__t b { font-size: 16px; }
.qz-opt--img .qz-opt__t small { font-size: 13px; }
@media (max-width: 860px) { .qz-opts--img, .qz-opts--img.qz-opts--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .qz-opts--img .qz-opt:last-child:nth-child(odd) { grid-column: span 2; } .qz-opts--img .qz-opt:last-child:nth-child(odd) .qz-opt__img { width: 50%; margin: 0 auto; } }
@media (max-width: 860px) { .qz-opt--img { min-height: 0; padding: 0 0 12px; } }
@media (prefers-reduced-motion: reduce) { .qz-opt__img img { transition: none; } }

/* Телефон: сам инструмент — на первом экране, плитки с цифрами в шапке не нужны */
@media (max-width: 600px) { .sv-hero .sv-facts { display: none; } }
