/* Квиз «Рассчитать столешницу» (19.10.2026) — модалка #modal-quiz и блок-приглашение .qz-cta */
.qz-box { max-width: 560px; padding: 1.6rem 1.6rem 1.3rem; }
.qz-head { padding-right: 2.4rem; margin-bottom: 1.1rem; }
.qz-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.qz-progress { height: 6px; border-radius: 6px; background: var(--surface2, #ececef); margin: .55rem 0 .35rem; overflow: hidden; }
.qz-progress i { display: block; height: 100%; width: 20%; background: var(--accent-dark); border-radius: 6px; transition: width .3s ease; }
.qz-stepno { font-size: .8rem; color: var(--text-muted); }

.qz-step { display: none; }
.qz-step.is-active { display: block; animation: qzIn .25s ease; }
@keyframes qzIn { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
.qz-q { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin: 0 0 .9rem; line-height: 1.25; }
.qz-hint { margin: -.5rem 0 .8rem; color: var(--text-muted); font-size: .85rem; }

.qz-opts { display: grid; gap: .55rem; }
.qz-opts--row { grid-template-columns: repeat(3, 1fr); }
.qz-opts--sm { grid-template-columns: repeat(2, 1fr); margin-top: .9rem; }
.qz-opts--grid { grid-template-columns: repeat(2, 1fr); }
.qz-opts[hidden], .qz-opt[hidden] { display: none; }
.qz-opt { position: relative; cursor: pointer; display: block; }
.qz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.qz-opt > span {
  display: flex; flex-direction: column; gap: .15rem;
  padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color .15s, background .15s, box-shadow .15s;
}
.qz-opt b { font-weight: 700; font-size: .95rem; }
.qz-opt small { color: var(--text-muted); font-size: .8rem; }
.qz-opt:hover > span { border-color: var(--text-muted); }
.qz-opt input:checked + span { border-color: var(--accent-dark); background: var(--accent-light); box-shadow: inset 0 0 0 1px var(--accent-dark); }
.qz-opt input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.qz-opt--pic > span { align-items: center; text-align: center; padding: .7rem .4rem; }
.qz-opt--pic svg { width: 48px; height: 32px; fill: var(--text-muted); }
.qz-opt--pic input:checked + span svg { fill: var(--accent-dark); }
.qz-opt--chk > span { flex-direction: row; align-items: center; gap: .55rem; }
.qz-opt--chk > span::before {
  content: ''; flex: 0 0 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border); background: var(--surface);
}
.qz-opt--chk input:checked + span::before {
  border-color: var(--accent-dark); background: var(--accent-dark)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}

.qz-len { margin-top: 1rem; }
.qz-len label { font-weight: 700; font-size: .9rem; }
.qz-len-row { display: flex; align-items: center; gap: .9rem; margin: .35rem 0 .2rem; }
.qz-len-row input[type=range] { flex: 1; accent-color: var(--accent-dark); height: 28px; }
.qz-len-row output { min-width: 4.2rem; text-align: right; font-weight: 800; font-size: 1.15rem; }
.qz-len small { color: var(--text-muted); font-size: .78rem; }

.qz-result { background: var(--bg); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin-bottom: 1rem; }
.qz-result-label { font-size: .8rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.qz-result-sum { font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin: .15rem 0 .5rem; }
.qz-result-sum--two { font-size: 1.05rem; }
.qz-result-range { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin: .1rem 0 .5rem; }
.qz-result-sum--two div + div { margin-top: .2rem; }
.qz-result-lines { list-style: none; margin: 0 0 .5rem; padding: 0; font-size: .84rem; }
.qz-result-lines li { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-top: 1px dashed var(--border); }
.qz-result-lines b { white-space: nowrap; font-weight: 700; }
.qz-result-note { margin: 0; font-size: .78rem; color: var(--text-muted); }

.qz-send { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .2rem 0 .8rem; }
.qz-send-l { width: 100%; font-size: .85rem; font-weight: 700; }
.qz-send label { cursor: pointer; }
.qz-send input { position: absolute; opacity: 0; pointer-events: none; }
.qz-send label span { display: inline-block; padding: .4rem .8rem; border: 1.5px solid var(--border); border-radius: 999px; font-size: .85rem; }
.qz-send input:checked + span { border-color: var(--accent-dark); background: var(--accent-dark); color: #fff; }
.qz-send input:focus-visible + span { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.qz-more { margin-bottom: .7rem; font-size: .88rem; }
.qz-more summary { cursor: pointer; color: var(--text-muted); margin-bottom: .5rem; }

.qz-nav { display: flex; gap: .6rem; margin-top: 1.1rem; }
.qz-nav[hidden] { display: none; }
.qz-next { flex: 1; }
.qz-back[hidden] { display: none; }
.qz-done { text-align: center; padding: 1rem 0 .5rem; }
.qz-done[hidden] { display: none; }
.qz-done p { color: var(--text-muted); margin: 0 0 1.2rem; }
.qz-done-ico { width: 56px; height: 56px; border-radius: 50%; margin: 0 auto .8rem; display: flex; align-items: center; justify-content: center; background: #1f8f4e; color: #fff; font-size: 1.8rem; font-weight: 800; }

/* Блок-приглашение на страницах */
.qz-cta { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.4rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: var(--shadow); }
.qz-cta-k { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.qz-cta h2 { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 600; margin: .3rem 0 .4rem; line-height: 1.2; }
.qz-cta p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.qz-cta-opts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.qz-cta-opts button {
  font: inherit; text-align: left; cursor: pointer; padding: .75rem .9rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-weight: 700; font-size: .9rem;
  transition: border-color .15s, transform .15s;
}
.qz-cta-opts button:hover { border-color: var(--accent-dark); transform: translateY(-1px); }
.qz-cta-opts button:focus-visible { outline: 2px solid var(--accent-dark); outline-offset: 2px; }
.qz-cta-opts button span { display: block; font-weight: 400; font-size: .78rem; color: var(--text-muted); }

@media (max-width: 720px) {
  .qz-box { padding: 1.2rem 1rem 0; }
  .qz-nav { position: sticky; bottom: 0; background: var(--surface); padding: .7rem 0 1rem; margin-top: .6rem; box-shadow: 0 -10px 14px -10px rgba(0,0,0,.12); z-index: 2; }
  .qz-done { padding-bottom: 1.2rem; }
  .qz-q { font-size: 1.2rem; }
  .qz-opts--grid { grid-template-columns: 1fr 1fr; }
  .qz-opt > span { padding: .7rem .8rem; }
  .qz-cta { grid-template-columns: 1fr; padding: 1.2rem 1rem; gap: 1rem; }
}
@media (max-width: 380px) {
  .qz-opts--row { grid-template-columns: 1fr 1fr 1fr; gap: .4rem; }
  .qz-opt--pic b { font-size: .8rem; }
  .qz-cta-opts { grid-template-columns: 1fr; }
}
