/* Квіз «Підберемо велосипед за 30 секунд» (app/features/quiz.php) — префікс .qz */
.v-quiz .promo-band { display: none; }

.qz { max-width: 980px; margin: 8px auto 40px; scroll-margin-top: 120px; }
.qz.is-res { max-width: none; }
.qz__head { max-width: 760px; margin: 0 0 18px; }
.qz__kick, .qz-ban__kick { display: inline-block; font: 600 .74rem/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--cta-deep); margin-bottom: 10px; }
.qz__head h1 { margin: 0 0 8px; }
.qz__lead { margin: 0; color: var(--ink-2); max-width: 640px; }
.qz.is-res .qz__head { display: none; }

.qz__box { background: var(--panel); border: 1px solid var(--line); border-radius: 3px; padding: 18px 16px 22px; }
.qz__top { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.qz__back { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 8px 8px 8px 0; font: 600 .92rem var(--text); color: var(--ink); cursor: pointer; }
.qz__back[hidden] { display: none; }
.qz__back:hover { color: var(--cta-deep); }
.qz__n { margin-left: auto; font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.qz__bar { height: 4px; background: var(--bg-2); margin: 8px 0 22px; overflow: hidden; }
.qz__bar i { display: block; height: 100%; width: 0; background: var(--cta); transition: width .45s var(--ease); }

.qz__step[hidden] { display: none; }
.qz__step.is-on { animation: qzIn .35s var(--ease) both; }
@keyframes qzIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qz__q { font-size: clamp(1.3rem, 1vw + 1.05rem, 1.8rem); margin: 0 0 16px; }

.qz__opts { display: grid; gap: 10px; }
.qz__opts--3, .qz__opts--2 { grid-template-columns: 1fr; }
.qz__opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; text-align: left; background: var(--panel); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 3px; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); -webkit-tap-highlight-color: transparent; }
.qz__opt:hover { border-color: var(--ink); }
.qz__opt:active { transform: scale(.985); }
.qz__opt.is-sel { border-color: var(--cta); background: var(--cta-soft); }
.qz__opt:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.qz__ic { flex: none; color: var(--ink); }
.qz__opt.is-sel .qz__ic { color: var(--cta-deep); }
.qz__ot { display: flex; flex-direction: column; min-width: 0; }
.qz__ot b { font: 600 1.05rem/1.25 var(--display); letter-spacing: -.01em; }
.qz__ot small { color: var(--muted); font-size: .85rem; line-height: 1.35; margin-top: 2px; }
.qz__opt.is-few small { color: var(--muted); font-style: italic; }
.qz__opt--any { border-style: dashed; }
.qz__note { margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
.qz__note:empty { display: none; }

/* Зріст */
.qz__h { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 4px 0 14px; }
.qz__hv { font: 700 1.2rem var(--display); color: var(--muted); min-width: 150px; text-align: center; }
.qz__hv b { font-size: 3.4rem; line-height: 1; color: var(--ink); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.qz__pm { width: 52px; height: 52px; border: 1.5px solid var(--line); background: var(--panel); border-radius: 3px; font: 500 1.6rem/1 var(--text); color: var(--ink); cursor: pointer; }
.qz__pm:hover { border-color: var(--ink); }
.qz__range { --p: 50%; width: 100%; height: 36px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.qz__range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(to right, var(--cta) var(--p), var(--bg-2) var(--p)); }
.qz__range::-moz-range-track { height: 6px; background: var(--bg-2); }
.qz__range::-moz-range-progress { height: 6px; background: var(--cta); }
.qz__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 3px; background: var(--panel); border: 3px solid var(--cta); box-shadow: 0 2px 8px rgba(15, 26, 44, .2); }
.qz__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 3px; background: var(--panel); border: 3px solid var(--cta); }
.qz__scale { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.qz__hint { text-align: center; margin: 12px 0 18px; color: var(--ink-2); font-size: .92rem; min-height: 1.4em; }
.qz__next { width: 100%; min-height: 52px; font-size: 1rem; }

/* Результат */
.qz__load { display: flex; align-items: center; gap: 12px; padding: 40px 0; justify-content: center; color: var(--muted); }
.qz__load[hidden], .qz__res[hidden] { display: none; }
.qz__load i { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--cta); border-radius: 50%; animation: qzSpin .8s linear infinite; }
@keyframes qzSpin { to { transform: rotate(360deg); } }
.qz__rhead { display: grid; gap: 12px; align-items: center; padding: 0 0 16px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.qz__size { display: flex; flex-direction: column; }
.qz__size span { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.qz__size b { font: 700 clamp(1.6rem, 1.4vw + 1.2rem, 2.3rem)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.qz__why { margin: 0; color: var(--ink-2); font-size: .95rem; }
.qz__relax { margin: 0 0 12px; padding: 10px 12px; background: var(--bg-2); border-left: 3px solid var(--ink); font-size: .9rem; }
.qz__relax[hidden], .qz__empty[hidden] { display: none; }
.qz__cnt { margin: 0 0 12px; font-size: .88rem; color: var(--muted); }
.qz__cnt:empty { display: none; }
.qz__grid { margin-bottom: 18px; }
.qz__empty { padding: 16px 0; }
.qz__ctas { display: flex; flex-direction: column; gap: 10px; }
.qz__ctas .btn { min-height: 50px; justify-content: center; text-align: center; }
.qz__ctas .btn[hidden] { display: none; }
.qz__again { border: 0; background: none; padding: 12px; font: 600 .95rem var(--text); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.qz__again:hover { color: var(--cta-deep); }
.qz__nojs { padding: 12px 0; }
.qz-ride .ride__form select[name=product] { width: 100%; }

/* SEO-блок під квізом */
.qz-info { max-width: 980px; margin: 0 auto 48px; }
.qz-info__cols { display: grid; gap: 24px; }
.qz-info ul { margin: 0; padding-left: 18px; }
.qz-info li { margin: 0 0 6px; }
.qz-info li a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.qz-info li a:hover { color: var(--cta-deep); text-decoration-color: currentColor; }
.qz-info__tbl { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 10px; background: var(--panel); }
.qz-info__tbl th, .qz-info__tbl td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; }
.qz-info__tbl thead th { background: var(--bg-2); font-weight: 600; }
.qz-info p a { text-decoration: underline; text-underline-offset: 3px; }

/* Банер на головній */
.qz-ban { position: relative; display: grid; gap: 22px; margin: 28px 0; padding: 26px 20px; background: var(--night); color: #fff; border-radius: 3px; overflow: hidden; }
.qz-ban::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border: 38px solid rgba(0, 166, 100, .14); transform: rotate(18deg); pointer-events: none; }
.qz-ban__txt { position: relative; z-index: 1; }
.qz-ban__kick { color: var(--cta); }
.qz-ban__h { color: #fff; font-size: clamp(1.35rem, 1.4vw + 1rem, 2.1rem); margin: 0 0 10px; max-width: 620px; }
.qz-ban__p { margin: 0 0 18px; color: rgba(255, 255, 255, .72); max-width: 560px; font-size: .95rem; }
.qz-ban__btn { min-height: 50px; padding-inline: 24px; }
.qz-ban__steps { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 8px; align-content: center; }
.qz-ban__steps li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 3px; font-size: .9rem; color: rgba(255, 255, 255, .86); background: rgba(255, 255, 255, .03); }
.qz-ban__steps b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 2px; border: 1px solid rgba(255, 255, 255, .3); font: 600 .78rem var(--display); color: #fff; }
.qz-ban__steps .qz-ban__res { border-color: var(--cta); color: #fff; }
.qz-ban__steps .qz-ban__res b { background: var(--cta); border-color: var(--cta); }

/* Смужка-запрошення в списках велосипедів: темна плитка, «циферблат», кроки-точки, кнопка */
.qz-slim { position: relative; display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 10px 10px 10px 10px; background: var(--night, #0b1118);
  color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s cubic-bezier(.16,1,.3,1); }
.qz-slim::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 120px at 88% 50%, rgba(0,135,81,.35), transparent 70%); }
.qz-slim:hover { color: #fff; transform: translateY(-1px); }
.qz-slim__dial { flex: none; position: relative; display: grid; place-items: center; width: 52px; height: 52px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); color: #6fd3a0; }
.qz-slim__dial svg { margin-top: -8px; }
.qz-slim__dial em { position: absolute; bottom: 5px; left: 0; right: 0; text-align: center; font: 700 .66rem/1 'Geologica', sans-serif; font-style: normal; color: #fff; letter-spacing: .02em; }
.qz-slim__t { min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.qz-slim__t b { font-family: 'Geologica', sans-serif; font-size: 1rem; color: #fff; letter-spacing: -.01em; }
.qz-slim__t span { font-size: .84rem; color: rgba(255,255,255,.66); }
.qz-slim__dots { margin-left: auto; display: flex; gap: 5px; align-items: center; }
.qz-slim__dots i { width: 18px; height: 3px; background: rgba(255,255,255,.22); }
.qz-slim__dots i.is-end { width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.qz-slim__go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--cta); color: #fff; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: background .2s; }
.qz-slim:hover .qz-slim__go { background: #00a062; }
@media (max-width: 760px) {
  .qz-slim { gap: 10px; padding: 8px; }
  .qz-slim__dial { width: 44px; height: 44px; }
  .qz-slim__dots { display: none; }
  .qz-slim__t b { font-size: .9rem; }
  .qz-slim__t span { font-size: .74rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .qz-slim__go { margin-left: auto; padding: 10px 12px; font-size: .84rem; }
}

@media (min-width: 640px) {
  .qz__box { padding: 24px 28px 30px; }
  .qz__opts--3 { grid-template-columns: repeat(3, 1fr); }
  .qz__opts--2 { grid-template-columns: repeat(2, 1fr); }
  .qz__opts--3 .qz__opt, .qz__opts--2 .qz__opt { flex-direction: column; align-items: flex-start; min-height: 132px; justify-content: space-between; }
  .qz__opts--where, .qz__opts--budget, .qz__opts--age { grid-template-columns: repeat(2, 1fr); }
  .qz__next { width: auto; min-width: 220px; display: flex; margin: 0 auto; }
  .qz__ctas { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .qz__rhead { grid-template-columns: auto 1fr; gap: 28px; }
  .qz__size { padding-right: 28px; border-right: 1px solid var(--line); }
  .qz-info__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (min-width: 1024px) {
  .qz-ban { grid-template-columns: 1.25fr 1fr; align-items: center; padding: 38px 44px; gap: 40px; }
  .qz-ban__steps { grid-template-columns: 1fr 1fr; }
  .qz-ban__steps .qz-ban__res { grid-column: 1 / -1; }
  .qz__opts--budget { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  /* .qz-slim — див. новий дизайн вище */
}
@media (prefers-reduced-motion: reduce) {
  .qz__step.is-on { animation: none; }
  .qz__bar i { transition: none; }
}
@media (max-width: 639px) {
  .qz { margin-top: 0; }
  .qz__head { margin-bottom: 12px; }
  .qz__head .qz__kick { display: none; }
  .qz__head h1 { font-size: 1.45rem; }
  .qz__lead { font-size: .92rem; line-height: 1.45; }
  .qz__box { padding: 12px 14px 18px; }
  .qz__bar { margin-bottom: 16px; }
  .qz__q { font-size: 1.25rem; margin-bottom: 12px; }
  .qz__opt { min-height: 58px; padding: 12px 14px; }
}
.qz-ban__steps .qz-ban__res { grid-column: 1 / -1; }
@media (max-width: 639px) {
  .qz-ban { margin: 20px 0; padding: 22px 18px; gap: 0; }
  .qz-ban__steps { display: none; }
  .qz-ban__p { font-size: .9rem; margin-bottom: 14px; }
  .qz-ban__btn { width: 100%; justify-content: center; }
  /* .qz-slim — див. новий дизайн вище */
}
@media (min-width: 640px) {
  .qz__opts--3 .qz__ic { width: 40px; height: 40px; }
}

@media (max-width: 760px) { .qz-slim { flex-direction: row !important; flex-wrap: nowrap !important; align-items: center !important; } .qz-slim__t { flex: 1 1 auto; } }

/* хрестик «закрити плашку» */
.qz-slim-w { position: relative; margin: 0 0 16px; }
.qz-slim-w > .qz-slim { margin: 0; padding-right: 44px; }
.qz-slim__x { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  background: transparent; border: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.7); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.qz-slim__x:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
@media (max-width: 760px) {
  .qz-slim-w > .qz-slim { padding-right: 8px; }
  .qz-slim__x { top: -9px; right: -6px; transform: none; width: 24px; height: 24px; background: var(--night, #0b1118); border-color: rgba(255,255,255,.35); color: #fff; }
}
