/* ═══ Тесты: каталог, рубрика, тест, билет (inc/tests.php, inc/tests-view.php) ═══ */
.tst-page {
    --tst-navy: #0d3060;
    --tst-blue: #1a6ef1;
    --tst-blue-hover: #0f58cc;
    --tst-blue-soft: #eef4ff;
    --tst-gold: #f2dbb2;
    --tst-gold-hover: #e6c88e;
    --tst-bg: #f5f8fc;
    --tst-line: #e3e9f2;
    --tst-text: #172338;
    --tst-muted: #66758c;
    --tst-ok: #16a34a;
    --tst-ok-bg: #ecfdf3;
    --tst-err: #dc2626;
    --tst-err-bg: #fef2f2;
    --tst-radius: 14px;
    --tst-shadow: 0 4px 18px rgba(13, 48, 96, .06);
    color: var(--tst-text);
    background: #fff;
}
.tst-page [hidden] { display: none !important; }
.tst-section { padding: 36px 0 48px; }
.tst-section--tight { padding-top: 8px; }
.tst-h2 { margin: 0 0 20px; font-size: 26px; font-weight: 800; color: var(--tst-navy); }

/* ─── Кнопки и мелочи ─── */
.tst-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 700; font-size: 14px; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.tst-btn svg { width: 16px; height: 16px; }
.tst-btn--blue { background: var(--tst-blue); color: #fff; }
.tst-btn--blue:hover { background: var(--tst-blue-hover); color: #fff; }
.tst-btn--soft { background: var(--tst-blue-soft); color: var(--tst-blue); }
.tst-btn--soft:hover { background: #dfe9ff; color: var(--tst-blue-hover); }
.tst-btn--gold { background: var(--tst-gold); color: var(--tst-navy); }
.tst-btn--gold:hover { background: var(--tst-gold-hover); }
.tst-btn--white { background: #fff; color: var(--tst-navy); }
.tst-btn--white:hover { background: var(--tst-blue-soft); }
.tst-link {
    padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600;
    color: var(--tst-blue); cursor: pointer; text-decoration: none;
}
.tst-link:hover { color: var(--tst-blue-hover); }
.tst-eyebrow {
    margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--tst-blue);
}
.tst-eyebrow--light { color: #9cc3ff; }

/* ─── Шапка ─── */
.tst-hero { padding: 22px 0 28px; background: linear-gradient(180deg, var(--tst-bg), #fff); }
.tst-hero .hero-breadcrumbs { margin-bottom: 18px; padding-top: 0; padding-bottom: 12px; border-bottom: 1px solid var(--tst-line); }
.tst-hero .hero-breadcrumbs .breadcrumbs li a, .tst-hero .hero-breadcrumbs .breadcrumbs li span { color: var(--tst-muted); }
.tst-hero .hero-breadcrumbs .breadcrumbs li a:hover { color: var(--tst-blue); }
.tst-hero .hero-breadcrumbs .breadcrumbs li:last-child span { color: var(--tst-navy); }
.tst-hero__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.tst-hero__title {
    margin: 0 0 10px; font-size: 38px; line-height: 1.15; font-weight: 800; color: var(--tst-navy);
}
.tst-hero__lead { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.55; color: var(--tst-muted); }
.tst-hero__cta { flex-shrink: 0; margin-top: 6px; padding: 14px 26px; }
.tst-hero--compact .tst-hero__title { font-size: 32px; }

/* ─── Раскладка: фильтры / список / боковая колонка ─── */
.tst-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
.tst-layout--side-right { grid-template-columns: minmax(0, 1fr) 330px; }
.tst-main { min-width: 0; }

/* Фильтры */
.tst-filters { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.tst-filters__box {
    padding: 18px; border: 1px solid var(--tst-line); border-radius: var(--tst-radius); background: #fff;
    box-shadow: var(--tst-shadow);
}
.tst-filters__head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--tst-line);
}
.tst-filters__head b { display: inline-flex; align-items: center; gap: 8px; color: var(--tst-blue); font-size: 15px; }
.tst-filters__label { display: block; margin-bottom: 10px; font-size: 14px; color: var(--tst-navy); }
.tst-check {
    display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; line-height: 1.35;
}
.tst-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--tst-blue); flex-shrink: 0; }
.tst-check__name { flex: 1; }
.tst-check__count { color: var(--tst-muted); font-size: 13px; }
.tst-check.is-extra { display: none; }
.is-filters-open .tst-check.is-extra { display: flex; }
.tst-filters__more { margin-top: 6px; }

.tst-promo {
    padding: 20px; border-radius: var(--tst-radius); background: var(--tst-navy); color: #fff;
}
.tst-promo__icon {
    display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center;
    border-radius: 10px; background: rgba(255, 255, 255, .12); margin-bottom: 12px;
}
.tst-promo__title { display: block; font-size: 18px; margin-bottom: 6px; }
.tst-promo p { margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .8); }

/* Панель инструментов */
.tst-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 14px; }
.tst-search {
    flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 14px;
    border: 1px solid var(--tst-line); border-radius: 10px; background: #fff; color: var(--tst-muted);
}
.tst-search:focus-within { border-color: var(--tst-blue); box-shadow: 0 0 0 3px rgba(26, 110, 241, .12); }
.tst-search input { flex: 1; min-width: 0; padding: 12px 0; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; }
.tst-select {
    padding: 11px 36px 11px 14px; border: 1px solid var(--tst-line); border-radius: 10px; background: #fff;
    font: inherit; font-size: 14px; color: var(--tst-text); cursor: pointer;
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2366758c' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.tst-views { display: flex; gap: 6px; }
.tst-views button {
    display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
    border: 1px solid var(--tst-line); border-radius: 10px; background: #fff; color: var(--tst-muted); cursor: pointer;
}
.tst-views button.is-active { background: var(--tst-blue); border-color: var(--tst-blue); color: #fff; }
.tst-found { margin: 0 0 16px; font-size: 14px; color: var(--tst-muted); }
.tst-found b { color: var(--tst-text); }

/* ─── Карточки (каталог) ─── */
.tst-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tst-cards[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
.tst-card {
    display: flex; flex-direction: column; gap: 16px; padding: 22px;
    border: 1px solid var(--tst-line); border-radius: var(--tst-radius); background: #fff;
    box-shadow: var(--tst-shadow); transition: border-color .2s, box-shadow .2s;
}
.tst-card:hover { border-color: #c9d8f3; box-shadow: 0 10px 28px rgba(13, 48, 96, .10); }
.tst-card__top { display: flex; gap: 16px; align-items: flex-start; }
.tst-card__body { flex: 1; min-width: 0; }
.tst-card__title { margin: 10px 0 6px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.tst-card__title a { color: var(--tst-navy); text-decoration: none; }
.tst-card__title a:hover { color: var(--tst-blue); }
.tst-card__desc {
    margin: 0; font-size: 14px; line-height: 1.5; color: var(--tst-muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tst-card__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 14px;
}
.tst-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tst-cards[data-view="list"] .tst-card { flex-direction: row; flex-wrap: wrap; align-items: center; }
.tst-cards[data-view="list"] .tst-card__top { flex: 1 1 420px; }
.tst-cards[data-view="list"] .tst-card__actions { margin-top: 0; }

.tst-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--tst-muted); }
.tst-meta li { display: inline-flex; align-items: center; gap: 6px; }
.tst-meta svg { width: 16px; height: 16px; color: var(--tst-blue); }
.tst-meta--hero { margin-top: 14px; font-size: 14px; }

/* Плашки и тона рубрик */
.tst-badge {
    display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 700; line-height: 1.3;
    background: var(--tst-blue-soft); color: var(--tst-blue);
}
.tst-tone--promyshlennaya-bezopasnost, .tst-badge--promyshlennaya-bezopasnost { background: #e7f6ef; color: #0f8a5f; }
.tst-tone--elektrobezopasnost, .tst-badge--elektrobezopasnost { background: #eaf2ff; color: #1a6ef1; }
.tst-tone--ohrana-truda, .tst-badge--ohrana-truda { background: #f2ecff; color: #6d3fd8; }
.tst-tone--pozharnaya-bezopasnost, .tst-badge--pozharnaya-bezopasnost { background: #fdecec; color: #d43c3c; }
.tst-tone--pervaya-pomoshch, .tst-badge--pervaya-pomoshch { background: #fdeef5; color: #c23b7c; }
.tst-tone--go-i-chs, .tst-badge--go-i-chs { background: #fff2e6; color: #d06a12; }
.tst-tone--dopog, .tst-badge--dopog { background: #fff6dc; color: #a87400; }
.tst-tone--teplovye-energoustanovki, .tst-badge--teplovye-energoustanovki { background: #eef1f6; color: #4a5d7e; }
.tst-tone--ekologicheskaya-bezopasnost, .tst-badge--ekologicheskaya-bezopasnost { background: #eaf7e6; color: #3b8a24; }
.tst-tone--bdd, .tst-badge--bdd { background: #ecebff; color: #4b47c9; }
.tst-tone--rabochie-professii, .tst-badge--rabochie-professii { background: #edf3f7; color: #3a6582; }

/* ─── Строки (рубрика) ─── */
.tst-rows { display: flex; flex-direction: column; gap: 12px; }
.tst-row {
    display: flex; align-items: center; gap: 18px; padding: 18px 20px;
    border: 1px solid var(--tst-line); border-radius: var(--tst-radius); background: #fff;
    box-shadow: var(--tst-shadow); color: var(--tst-text); text-decoration: none; transition: border-color .2s, box-shadow .2s;
}
.tst-row:hover { border-color: #c9d8f3; box-shadow: 0 10px 28px rgba(13, 48, 96, .10); }
.tst-row__badge {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    min-width: 64px; height: 64px; padding: 0 8px; border-radius: 12px; font-weight: 800; font-size: 16px;
}
.tst-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tst-row__title { font-size: 17px; font-weight: 800; line-height: 1.3; color: var(--tst-navy); }
.tst-row__desc { font-size: 14px; color: var(--tst-muted); line-height: 1.45; }
.tst-chip-tag {
    align-self: flex-start; margin-top: 4px; padding: 3px 10px; border-radius: 20px;
    background: var(--tst-blue-soft); color: var(--tst-blue); font-size: 12px; font-weight: 700;
}
.tst-row__meta { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--tst-muted); }
.tst-row__meta span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tst-row__meta svg { width: 16px; height: 16px; color: var(--tst-blue); }
.tst-row__arrow { flex-shrink: 0; color: var(--tst-blue); }

/* Пагинация, ссылки разделов */
.tst-pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 28px 0 8px; }
.tst-pages button {
    min-width: 40px; height: 40px; padding: 0 10px; border: 1px solid var(--tst-line); border-radius: 10px;
    background: #fff; font: inherit; font-weight: 700; color: var(--tst-navy); cursor: pointer;
}
.tst-pages button:hover:not(:disabled) { border-color: var(--tst-blue); color: var(--tst-blue); }
.tst-pages button.is-current { background: var(--tst-navy); border-color: var(--tst-navy); color: #fff; }
.tst-pages button:disabled { opacity: .4; cursor: default; }
.tst-pages span { color: var(--tst-muted); padding: 0 4px; }
.tst-empty { margin: 20px 0; color: var(--tst-muted); }
.tst-sections { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: 14px; }
.tst-sections b { margin-right: 4px; color: var(--tst-navy); }
.tst-sections a {
    padding: 6px 12px; border-radius: 20px; background: var(--tst-bg); color: var(--tst-navy); text-decoration: none;
}
.tst-sections a:hover { background: var(--tst-blue-soft); color: var(--tst-blue); }
.tst-back { margin-top: 18px; }
.tst-back a { color: var(--tst-blue); text-decoration: none; font-weight: 600; }

/* ─── Боковая колонка рубрики ─── */
.tst-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.tst-side__box {
    padding: 20px; border: 1px solid var(--tst-line); border-radius: var(--tst-radius); background: var(--tst-bg);
}
.tst-side__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tst-side__head b, .tst-side__title { font-size: 17px; color: var(--tst-navy); }
.tst-side__title { display: block; margin-bottom: 14px; }
.tst-side__ico {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px; background: var(--tst-blue-soft); color: var(--tst-blue);
}
.tst-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.tst-steps li { display: flex; align-items: center; gap: 12px; }
.tst-steps span {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1px solid var(--tst-line);
    font-weight: 800; color: var(--tst-blue); font-size: 13px;
}
.tst-why { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tst-why li { display: flex; gap: 12px; }
.tst-why b { display: block; font-size: 14px; color: var(--tst-navy); }
.tst-why p { margin: 2px 0 0; font-size: 13px; line-height: 1.45; color: var(--tst-muted); }
.tst-side__dark {
    padding: 22px; border-radius: var(--tst-radius); color: #fff;
    background: radial-gradient(circle at 85% 20%, rgba(26, 110, 241, .45), transparent 55%), var(--tst-navy);
}
.tst-side__dark b { display: block; font-size: 19px; line-height: 1.3; margin-bottom: 8px; }
.tst-side__dark p { margin: 0 0 16px; font-size: 14px; color: rgba(255, 255, 255, .8); line-height: 1.5; }

/* ─── Страница теста ─── */
.tst-single { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.tst-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin: 22px 0 0; padding: 0; list-style: none; }
.tst-facts li { display: flex; align-items: center; gap: 10px; }
.tst-facts svg { color: var(--tst-blue); }
.tst-facts span { display: flex; flex-direction: column; font-size: 13px; color: var(--tst-muted); }
.tst-facts b { font-size: 15px; color: var(--tst-text); }
.tst-single__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tst-visual {
    position: relative; min-height: 320px; border-radius: 18px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .9);
    background:
        radial-gradient(circle at 80% 15%, rgba(26, 110, 241, .55), transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(242, 219, 178, .25), transparent 45%),
        linear-gradient(135deg, #0d3060, #123d7a);
}
.tst-visual::before {
    content: ""; position: absolute; inset: 0; opacity: .18;
    background-image: radial-gradient(rgba(255, 255, 255, .7) 1px, transparent 1px); background-size: 18px 18px;
}
.tst-visual__icon { position: relative; transform: translateY(-24px); }
.tst-visual__icon svg { width: 140px; height: 140px; stroke-width: 1.2; }
.tst-visual__card {
    position: absolute; left: 20px; right: 20px; bottom: 20px; display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; border-radius: 12px; background: #fff; color: var(--tst-text); box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.tst-visual__card b { display: block; font-size: 15px; color: var(--tst-navy); }
.tst-visual__card p { margin: 3px 0 0; font-size: 13px; line-height: 1.45; color: var(--tst-muted); }

.tst-tickets { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tst-ticket {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px;
    border: 1px solid var(--tst-line); border-radius: 12px; background: #fff; box-shadow: var(--tst-shadow);
    color: var(--tst-text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.tst-ticket:hover { border-color: var(--tst-blue); transform: translateY(-2px); }
.tst-ticket__icon {
    display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 8px; background: var(--tst-blue-soft); color: var(--tst-blue); flex-shrink: 0;
}
.tst-ticket__num { flex: 1; font-weight: 700; font-size: 15px; color: var(--tst-navy); }
.tst-ticket__arrow { color: var(--tst-muted); }
.tst-ticket:hover .tst-ticket__arrow { color: var(--tst-blue); }

/* Синяя плашка с формой */
.tst-band-wrap { padding: 8px 0 36px; }
.tst-band {
    display: grid; grid-template-columns: 1.2fr .9fr 1.1fr; gap: 28px; align-items: center;
    padding: 28px 32px; border-radius: 18px; color: #fff;
    background: radial-gradient(circle at 15% 0%, rgba(255, 255, 255, .18), transparent 40%), linear-gradient(120deg, #1556d4, #1a6ef1);
}
.tst-band__lead { display: flex; gap: 16px; align-items: flex-start; }
.tst-band__icon {
    flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .16);
}
.tst-band__icon svg { width: 26px; height: 26px; }
.tst-band__title { display: block; font-size: 20px; line-height: 1.3; }
.tst-band__lead p { margin: 6px 0 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.tst-band__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.tst-band__list li { display: flex; align-items: center; gap: 8px; }
.tst-band__list svg { flex-shrink: 0; padding: 3px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.tst-band__form .d-form__input-course, .tst-band__form .d-form__title, .tst-band__form .d-form__text { display: none; }
.tst-band__form .d-form__row { display: flex; gap: 10px; margin: 0 0 10px; }
.tst-band__form .d-form__input { flex: 1; margin: 0; }
.tst-band__form input[type="text"], .tst-band__form input[type="tel"] {
    width: 100%; height: 48px; padding: 12px 14px 12px 44px; border: 0; border-radius: 10px; background: #fff; font: inherit; font-size: 14px;
}
.tst-band__form input[type="submit"], .tst-band__form button[type="submit"] {
    width: 100%; padding: 13px; border: 0; border-radius: 10px; background: #fff; color: var(--tst-blue);
    font: inherit; font-weight: 800; cursor: pointer;
}
.tst-band__form, .tst-band__form a, .tst-band__form label { color: rgba(255, 255, 255, .85); font-size: 12px; }

/* Преимущества */
.tst-features { padding: 8px 0 24px; }
.tst-features__list {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none;
}
.tst-features__list b { display: block; margin: 12px 0 6px; font-size: 15px; color: var(--tst-navy); }
.tst-features__list p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--tst-muted); }
.tst-about { max-width: 920px; }
.tst-about h2 { text-transform: none; }
.tst-ticket-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.tst-ticket-layout .tst-side { position: sticky; top: 20px; }

/* ─── Билет: вопросы ─── */
.tst-quiz { max-width: 920px; }
.tst-q {
    padding: 22px 24px; margin-bottom: 16px; background: #fff;
    border: 1px solid var(--tst-line); border-left: 4px solid var(--tst-line); border-radius: 12px; box-shadow: var(--tst-shadow);
}
.tst-q.is-right { border-left-color: var(--tst-ok); }
.tst-q.is-wrong { border-left-color: var(--tst-err); }
.tst-q__num { font-size: 13px; font-weight: 700; color: var(--tst-muted); text-transform: uppercase; letter-spacing: .03em; }
.tst-q__hint {
    margin-left: 8px; padding: 2px 8px; border-radius: 20px; background: var(--tst-blue-soft);
    color: var(--tst-blue); text-transform: none; letter-spacing: 0; font-weight: 600;
}
.tst-q__text { margin: 8px 0 14px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--tst-navy); }
.tst-q__opts { display: flex; flex-direction: column; gap: 8px; }
.tst-opt {
    display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; cursor: pointer;
    border: 1px solid var(--tst-line); border-radius: 10px; line-height: 1.45; transition: border-color .15s, background .15s;
}
.tst-opt:hover { border-color: var(--tst-blue); }
.tst-opt input { margin-top: 3px; flex-shrink: 0; accent-color: var(--tst-blue); }
.tst-opt.is-correct { border-color: var(--tst-ok); background: var(--tst-ok-bg); }
.tst-opt.is-mistake { border-color: var(--tst-err); background: var(--tst-err-bg); }
.tst-q__answer { margin-top: 12px; font-size: 15px; }
.tst-q__answer summary { cursor: pointer; color: var(--tst-blue); font-weight: 600; }
.tst-q__answer ul { margin: 8px 0 0; padding-left: 20px; color: var(--tst-ok); font-weight: 600; }
.tst-quiz__bar {
    position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    padding: 14px 0; background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
}
.tst-result { flex-basis: 100%; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.tst-result.is-good { background: var(--tst-ok-bg); color: var(--tst-ok); }
.tst-result.is-bad { background: var(--tst-err-bg); color: var(--tst-err); }
.tst-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 28px 0 18px; }
.tst-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tst-chip {
    min-width: 40px; padding: 8px 10px; text-align: center; border-radius: 8px;
    background: var(--tst-bg); color: var(--tst-navy); font-weight: 700; text-decoration: none; font-size: 14px;
}
.tst-chip:hover { background: var(--tst-blue-soft); }
.tst-chip.is-current { background: var(--tst-navy); color: #fff; }

/* ─── Адаптив ─── */
@media (max-width: 1200px) {
    .tst-tickets { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .tst-band { grid-template-columns: 1fr 1fr; }
    .tst-band__form { grid-column: 1 / -1; }
    .tst-features__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .tst-layout, .tst-layout--side-right { grid-template-columns: minmax(0, 1fr); }
    .tst-filters, .tst-side { position: static; }
    .tst-layout--side-right .tst-side { order: 2; }
    .tst-ticket-layout { grid-template-columns: minmax(0, 1fr); }
    .tst-ticket-layout .tst-side { position: static; }
    .tst-single { grid-template-columns: minmax(0, 1fr); }
    .tst-visual { min-height: 240px; }
    .tst-tickets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .tst-page .container { padding-left: 16px; padding-right: 16px; }
    .tst-hero .hero-breadcrumbs, .tst-hero .hero-breadcrumbs .breadcrumbs,
    .tst-hero .hero-breadcrumbs .breadcrumbs li { text-align: left; justify-content: flex-start; }
    .tst-toolbar .tst-select { flex: 1 1 100%; width: 100%; min-width: 0; max-width: 100%; text-overflow: ellipsis; }
    .tst-hero__row { flex-direction: column; }
    .tst-hero__title, .tst-hero--compact .tst-hero__title { font-size: 26px; }
    .tst-hero__lead { font-size: 15px; }
    .tst-cards { grid-template-columns: minmax(0, 1fr); }
    .tst-views { display: none; }
    .tst-card { padding: 18px; }
    .tst-card__icon { width: 52px; height: 52px; }
    .tst-row { flex-wrap: wrap; gap: 12px; }
    .tst-row__meta { flex-direction: row; gap: 14px; width: 100%; padding-left: 82px; }
    .tst-row__arrow { display: none; }
    .tst-tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tst-band { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
    .tst-band__form .d-form__row { flex-direction: column; }
    .tst-features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tst-q { padding: 16px; }
    .tst-q__text { font-size: 16px; }
    .tst-h2 { font-size: 22px; }
}
@media (max-width: 480px) {
    .tst-row__badge { min-width: 52px; height: 52px; font-size: 14px; }
    .tst-row__meta { padding-left: 64px; }
    .tst-features__list { grid-template-columns: minmax(0, 1fr); }
    .tst-card__actions .tst-btn { flex: 1; }
}
