/* Тренажёр билетов ПДД (14.11.2026) — к /v2/ux/quiz.js. Цвета через переменные сайта: работает и в тёмной теме. */

.qz-hub { display: grid; gap: 18px; }
.qz-modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.qz-mode {
    display: grid; gap: 8px; align-content: start; text-align: left; cursor: pointer;
    padding: 20px; border: 1px solid var(--line, #e2e7ef); border-radius: 22px;
    background: var(--card, #fff); color: var(--ink, #1c2333); font: inherit;
    box-shadow: var(--shadow-sm, 0 10px 24px -18px rgba(56, 78, 130, .35));
    transition: transform .2s, box-shadow .2s;
}
.qz-mode:hover:not(:disabled) { transform: translateY(-3px); }
.qz-mode:focus-visible { outline: 3px solid var(--violet, #7b61ff); outline-offset: 2px; }
.qz-mode:disabled { opacity: .55; cursor: default; }
.qz-mode b { font-size: 18px; font-weight: 800; }
.qz-mode small { color: var(--muted, #7c869a); font-size: 14px; line-height: 1.4; min-height: 2.8em; }
.qz-mode .qz-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--bg-2, #f3f5f9); }
.qz-mode em { font-style: normal; font-weight: 700; color: var(--violet, #7b61ff); font-size: 14px; }

.qz-prog { padding: 20px; border-radius: 22px; background: var(--card, #fff); border: 1px solid var(--line, #e2e7ef); }
.qz-prog-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: baseline; margin-bottom: 12px; }
.qz-prog-h b { font-size: 18px; }
.qz-prog-h span { color: var(--muted, #7c869a); font-weight: 600; }
.qz-bars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 22px; }
.qz-tb { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; color: var(--ink, #1c2333); text-decoration: none; font-size: 14px; }
@media (max-width: 600px) {
    .qz-modes { grid-template-columns: 1fr 1fr; gap: 10px; }
    .qz-mode { padding: 14px; border-radius: 18px; gap: 6px; }
    .qz-mode b { font-size: 16px; }
    .qz-mode small { font-size: 13px; min-height: 0; }
    .qz-mode .qz-ico { width: 34px; height: 34px; font-size: 18px; border-radius: 11px; }
}
.qz-tb span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qz-tb b { font-variant-numeric: tabular-nums; }
.qz-tb i { grid-column: 1 / -1; height: 7px; border-radius: 9px; background: var(--bg-2, #eef1f6); overflow: hidden; }
.qz-tb u { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, var(--violet, #7b61ff), var(--green, #16b364)); transition: width .6s; }
.qz-hub:not(.is-ready) [data-qz-wrong], .qz-hub:not(.is-ready) [data-qz-mar], .qz-hub:not(.is-ready) [data-qz-day] { color: transparent; }

.qz-bar { height: 6px; border-radius: 6px; background: var(--bg-2, #eef1f6); overflow: hidden; margin: 10px 0 14px; }
.qz-bar i { display: block; height: 100%; background: var(--violet, #7b61ff); transition: width .3s; }
.qz-note { color: var(--muted, #7c869a); }
.qz-stop { margin: 14px 0 0; text-align: center; }
.qz-link { border: 0; background: none; color: var(--muted, #7c869a); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; }
.qz-page { font-size: 14px; }

.qz-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 16px; }
.qz-share-img { display: block; width: 100%; max-width: 480px; border-radius: 16px; box-shadow: var(--shadow-sm, 0 10px 24px -18px rgba(56, 78, 130, .35)); }
.qz-share-st { width: 100%; text-align: center; color: var(--muted, #7c869a); font-size: 14px; }

/* Страница одного вопроса */
.qz-one { max-width: 820px; }
.qz-one .pdd-opts { margin: 16px 0; }
.qz-one [data-verdict] { font-weight: 800; }
.qz-one [data-verdict].ok { color: var(--green, #16b364); }
.qz-one [data-verdict].bad { color: var(--red, #f0325a); }
.qz-one-ans { margin-top: 10px; padding: 16px 18px; border-radius: 18px; background: var(--card, #fff); border: 1px solid var(--line, #e2e7ef); }
.qz-one-ans summary { cursor: pointer; font-weight: 700; }
.qz-one-ans q { display: block; margin-top: 8px; color: var(--ink-2, #3b4458); font-style: italic; }
.qz-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.qz-more { margin-top: 28px; }
.qz-more ul { padding-left: 18px; display: grid; gap: 6px; }
.qz-all h2 { margin-top: 30px; }
.qz-all ol { display: grid; gap: 6px; padding-left: 22px; }
.qz-qlink { display: inline-block; margin-top: 8px; font-size: 14px; }
