/* Сторінка тестів ПДР — доповнює style.css */

/* style.css тримає html, body заввишки 100% заради 3D-тренажера; на сторінці тестів
   через це тіло було заввишки з екран, і липка шапка «відклеювалася» після першого екрана */
html { height: auto; min-height: 100%; }
.test-page { height: auto; min-height: 100%; background: #edf1f6; }

.t-top {
  position: sticky; top: 0; z-index: 5;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px; padding-top: max(12px, calc(env(safe-area-inset-top) + var(--pdr-tg-top, 0px)));
  background: rgba(237, 241, 246, .92); backdrop-filter: blur(10px);
}
.t-top .brand { text-decoration: none; color: inherit; }
.seg a {
  white-space: nowrap; padding: 6px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
}
.seg a.on { background: var(--ink); color: #fff; }

.t-main { max-width: 860px; margin: 0 auto; padding: 4px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.t-main .card { border-radius: 22px; box-shadow: var(--shadow); min-height: 0; }
.t-main .ornament { margin: -18px -18px 16px; }
.t-loading { text-align: center; color: var(--muted); padding: 40px 18px; }

.t-hero h1 { margin: 0 0 6px; font-size: 24px; }
.t-lead { margin: 0 0 16px; color: #4a5361; line-height: 1.45; }
.t-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.t-mode {
  border: 1.5px solid var(--line); border-radius: 18px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.t-mode h2 { margin: 0; font-size: 18px; }
.t-mode p { margin: 0; color: #4a5361; font-size: 14px; line-height: 1.45; flex: 1; }
.t-mode .cta, .t-mode .ghost { position: static; margin: 0; width: 100%; }
.t-mode-exam { border-color: var(--accent); background: linear-gradient(180deg, #f3f8ff, #fff); }
.ghost:disabled { opacity: .5; cursor: default; }

.t-topics-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.t-topics-head h2 { margin: 0; font-size: 18px; }
.t-switch { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.t-search {
  width: 100%; margin: 12px 0; padding: 11px 14px; font: inherit; font-size: 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
}
.t-search:focus { outline: none; border-color: var(--accent); }
.t-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.t-list button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 14.5px;
}
@media (hover: hover) { .t-list button:hover:not(:disabled) { border-color: #c4cad1; background: #fafbfc; } }
.t-code { flex: none; min-width: 42px; font-weight: 700; color: var(--accent); }
.t-title { flex: 1; line-height: 1.3; }
.t-count { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); background: #eef0f3; border-radius: 999px; padding: 2px 8px; }

.t-source { text-align: center; font-size: 12.5px; color: var(--muted); margin: 0; }
.t-source a { color: var(--accent); }
.t-badge { display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700; }

/* ---------- Питання ---------- */
.t-quiz-head { display: flex; align-items: center; gap: 10px; }
.t-quiz-head .t-back { margin: 0; padding: 7px 12px; }
.t-quiz-title { flex: 1; font-size: 15px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.t-timer, .t-progress {
  flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px;
  padding: 6px 12px; border-radius: 999px; background: #eef3fb; color: var(--accent);
}
.t-timer.t-warn { background: var(--bad-bg); color: var(--bad); }

.t-grid { display: flex; gap: 6px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: thin; }
.t-grid button {
  flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 700; color: var(--muted);
}
.t-grid button.done { background: #eef3fb; border-color: #b8cdea; color: var(--accent); }
.t-grid button.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.t-grid button.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }
.t-grid button.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
/* до 30 питань (іспит) — усі номери в один ряд на всю ширину, без прокрутки */
.t-grid.fit { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); overflow: visible; padding: 12px 4px 6px; }
.t-grid.fit button { width: auto; min-width: 0; padding: 0; }

.t-meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; margin-top: 6px; }
.t-figure { margin: 12px 0 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* усі ілюстрації в єдиній рамці 16:10: кадри img-frame заповнюють її, оригінали вписуються з полями */
.t-figure img {
  width: 100%; max-width: 672px; height: auto; aspect-ratio: 16 / 10; object-fit: contain;
  border-radius: 12px; cursor: zoom-in; background: #f4f6f8;
}
.t-figure figcaption { font-size: 11.5px; color: var(--muted); }
.t-question { font-size: 19px; line-height: 1.4; margin: 14px 0 12px; font-weight: 650; }
.t-expl { margin: 8px 0 6px; line-height: 1.55; }
.t-review .t-expl { font-size: 13.5px; color: #3b4452; }
.t-draft {
  display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px;
  background: #fff4cc; color: #7a5b00; font-size: 11px; font-weight: 700;
}
.t-options button.picked { border-color: var(--accent); background: #eef3fb; }
.t-options button.picked .num { background: var(--accent); color: #fff; }

.t-nav { display: flex; gap: 8px; margin-top: 16px; align-items: stretch; }
.t-nav .ghost { margin: 0; flex: none; }
.t-nav .cta { position: static; margin: 0; flex: 1; width: auto; padding: 13px; }

/* ---------- Результат ---------- */
.t-verdict { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.t-pass .t-verdict { color: var(--ok); }
.t-fail .t-verdict { color: var(--bad); }
.t-rule { font-size: 13px; color: var(--muted); margin: -8px 0 14px; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.t-actions .cta { position: static; margin: 0; width: auto; padding: 12px 22px; }
.t-actions .ghost { margin: 0; }
.t-sub { font-size: 17px; margin: 22px 0 10px; }
.t-review { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.t-review > li { display: flex; gap: 12px; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px; }
.t-review img { flex: none; width: 160px; max-width: 38%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; background: #f4f6f8; align-self: flex-start; border-radius: 10px; cursor: zoom-in; }
.t-review p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
.t-review-q { font-weight: 600; }
.t-given { color: var(--bad); }
.t-right { color: var(--ok); }

.t-lightbox {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 20, 28, .85);
  display: grid; place-items: center; padding: 16px; cursor: zoom-out;
}
.t-lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* розбір відповідей */
.t-sub .muted { font-size: 13px; font-weight: 600; margin-left: 6px; }
.t-review > li.is-ok { border-left: 4px solid var(--ok); }
.t-review > li.is-bad { border-left: 4px solid var(--bad); }
.t-review .refs { font-size: 12px; color: var(--muted); margin-top: 4px; }

@media (max-width: 520px) {
  .t-top .brand .muted { display: none; }
  .t-hero h1 { font-size: 21px; }
  .t-review > li { flex-direction: column; }
  .t-review img { width: 100%; max-width: 100%; }
}

/* Телефон: екран питання повністю в одну висоту без прокрутки.
   Ілюстрація забирає вільне місце й стискається, решта елементів компактні. */
@media (max-width: 700px) {
  body.in-quiz .t-top { display: none; }
  body.in-quiz .t-main { padding: 0; max-width: none; gap: 0; }
  body.in-quiz .t-quiz {
    height: 100vh; height: 100dvh;
    display: flex; flex-direction: column; gap: 6px;
    border-radius: 0; box-shadow: none;
    padding: max(8px, calc(env(safe-area-inset-top) + var(--pdr-tg-top, 0px))) 12px max(8px, env(safe-area-inset-bottom));
    overflow-y: auto;
  }
  .t-quiz-head { flex: none; gap: 8px; }
  .t-quiz-head .t-back { padding: 5px 10px; font-size: 13px; }
  .t-quiz-title { font-size: 13px; -webkit-line-clamp: 1; }
  .t-timer, .t-progress { font-size: 13px; padding: 4px 10px; }
  .t-grid { flex: none; padding: 2px 2px 4px; gap: 4px; }
  .t-grid button { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }
  /* на телефоні: до 24 питань — у два ряди; більше — прокрутка */
  .t-grid.fit:not(.fit-m) { display: flex; overflow-x: auto; }
  .t-grid.fit-m { display: grid; grid-template-columns: repeat(var(--half), minmax(0, 1fr)); gap: 5px 4px; padding: 4px 3px; }
  .t-grid.fit-m button { width: auto; height: 28px; }
  .t-quiz > .t-meta { display: none; }
  /* картинка одразу під номерами; вільне місце йде в розпірку перед кнопками */
  .t-figure { flex: 0 1 auto; min-height: 0; margin: 2px 0 0; display: flex; justify-content: center; gap: 6px; }
  /* висота кадру 16:10: не більше 40% екрана і не ширше за екран */
  .t-figure img {
    width: auto; max-width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px;
    height: min(40vh, calc((100vw - 24px) * 0.625)); height: min(40dvh, calc((100vw - 24px) * 0.625));
  }
  .t-figure figcaption { display: none; }
  .t-spacer { flex: 1 1 0; }
  .t-question { flex: none; font-size: 15px; line-height: 1.3; margin: 2px 0 0; }
  .t-options { flex: none; gap: 5px; }
  .t-options button { padding: 8px 10px; font-size: 13.5px; line-height: 1.25; border-radius: 10px; gap: 8px; }
  .t-options .num { width: 20px; height: 20px; font-size: 11px; }
  .t-nav { flex: none; margin-top: 2px; gap: 6px; flex-wrap: nowrap; }
  .t-nav .ghost { padding: 10px 14px; }
  .t-nav .cta { padding: 11px; font-size: 15px; box-shadow: none; }
  .t-lbl { display: none; }
}

/* ---------- Що ще є на сайті ---------- */
.t-explore h2 { margin: 0 0 12px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.t-explore-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.t-tile {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 14px;
  border-radius: 18px; background: var(--t-bg, #efeeee); border: 1px solid transparent;
  color: inherit; text-decoration: none; text-align: left; font: inherit; cursor: pointer;
  transition: border-color .15s ease;
}
@media (hover: hover) { .t-tile:hover:not(:disabled) { border-color: var(--t-stroke-dark, #d2d1d1); } }
.t-tile:disabled { cursor: default; opacity: .55; }
/* головна дія — іспит */
.t-tile-main { background: var(--t-ink, #0a0a0a); color: #fff; }
@media (hover: hover) { .t-tile-main:hover { border-color: transparent; background: var(--t-ink-soft, #272727); } }
.t-tile-main .t-tile-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.t-tile-main .t-tile-tx i { color: rgba(255, 255, 255, .72); }
.t-tile-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; }
.t-tile-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.t-tile-ic.ic-blue { color: var(--t-blue, #0856b5); background: var(--t-blue-10, #c7d8ec); }
.t-tile-ic.ic-green { color: #067a1c; background: var(--t-green-10, #c7ecce); }
.t-tile-ic.ic-red { color: var(--t-red, #d33a26); background: var(--t-red-10, #f6d5d1); }
.t-tile-ic.ic-yellow { color: #a35b06; background: var(--t-yellow-10, #f0dfc3); }
.t-tile-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-tile-tx b { font-weight: 600; font-size: 15px; }
.t-tile-tx i { font-style: normal; font-size: 12.5px; color: var(--t-muted, #6b6a6a); }
@media (max-width: 480px) {
  .t-explore-grid { grid-template-columns: 1fr; }
}

/* ---------- Пояснення до відповіді у тренуванні ---------- */
.t-answer-expl {
  margin-top: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--t-bg, #efeeee); color: var(--t-ink-soft, #272727);
}
.t-answer-expl .t-expl { margin: 0; font-size: 14px; line-height: 1.5; }
.t-answer-expl .refs { margin-top: 6px; font-size: 12px; color: var(--t-muted, #6b6a6a); display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 700px) {
  /* пояснення прокручується саме в собі, а ілюстрація трохи меншає, щоб екран не «їхав» */
  .t-answer-expl { flex: 0 1 auto; min-height: 0; overflow-y: auto; margin-top: 6px; padding: 8px 10px; }
  .t-answer-expl .t-expl { font-size: 13px; line-height: 1.45; }
  .t-quiz.has-expl .t-figure img { height: min(24dvh, calc((100vw - 24px) * 0.4)); }
}

/* плитка, закрита підпискою */
.t-tile.is-locked { color: var(--t-muted, #6b6a6a); }
.t-tile.is-locked b { color: var(--t-ink, #0a0a0a); }
.t-tile.is-locked .t-tile-ic { opacity: .75; }

/* ---------- Великі розділи з картинками ---------- */
.t-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-bottom: 10px; }
.t-card {
  display: block; width: 100%; padding: 0; overflow: hidden; text-align: left; font: inherit; cursor: pointer;
  border: 1px solid transparent; border-radius: 20px; background: var(--t-bg, #efeeee); color: inherit; text-decoration: none;
  transition: border-color .15s ease;
}
@media (hover: hover) { .t-card:hover { border-color: var(--t-stroke-dark, #d2d1d1); } }
.t-card-img { display: block; aspect-ratio: 16 / 9; background: #dfe3e6; }
.t-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-card-tx { display: block; padding: 12px 14px 14px; }
.t-card-tx b { display: block; font-size: 16px; font-weight: 600; }
.t-card-tx i { display: block; margin-top: 3px; font-style: normal; font-size: 13px; color: var(--t-muted, #6b6a6a); }

/* заголовок і опис на головній тестів — по центру */
.t-hero { text-align: center; }
/* заголовок лишаємо в розмітці для пошуку, але не показуємо: він уже є в шапці */
.t-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.t-hero .t-lead { margin-bottom: 0; font-size: 15px; }
.t-hero .t-rule { margin: 10px 0 0; }
.t-hero .t-lead b { font-weight: 600; color: var(--t-ink, #0a0a0a); }
.t-lead-sub { margin-top: 8px; font-size: 13.5px; }
.t-hero h1 { text-wrap: balance; }
.t-hero .t-lead, .t-hero .t-rule { margin-left: auto; margin-right: auto; max-width: 42em; }
.t-explore h2, .t-topics-head h2 { text-align: left; }

/* ---------- Марафон ---------- */
.t-marathon { padding: 14px 16px; margin-bottom: 10px; border-radius: 20px; background: var(--t-bg, #efeeee); display: grid; gap: 10px; }
.t-mar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-mar-top b { font-size: 16px; font-weight: 600; }
.t-mar-top span { font-size: 13px; color: var(--t-muted, #6b6a6a); }
.t-mar-bar { position: relative; height: 10px; border-radius: 999px; background: #fff; overflow: hidden; }
.t-mar-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; }
.t-mar-bar i.seen { background: var(--t-blue, #0856b5); opacity: .35; }
.t-mar-bar i.known { background: var(--t-green, #08b529); z-index: 2; }
.t-marathon .cta { justify-self: start; padding: 10px 18px; font-size: 14px; }

/* ---------- Порівняння з іншими (Premium) ---------- */
.t-community {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 12px;
  background: var(--t-bg, #efeeee); font-size: 13px; line-height: 1.4;
}
.t-community b { font-weight: 600; }
.t-community.ok b { color: #067a1c; }
.t-community.mid b { color: #a35b06; }
.t-community.bad b { color: #c0392b; }
.t-community .muted { color: #6b6a6a; }
.t-rank {
  margin: 10px 0 0; padding: 10px 14px; border-radius: 14px;
  background: var(--t-bg, #efeeee); font-size: 13.5px; line-height: 1.45;
}
.t-rank b { font-weight: 600; }
.t-rank.is-up b { color: #067a1c; }
.t-rank.is-down b { color: #a35b06; }
.t-rank.is-wait, .t-rank .muted { color: #6b6a6a; }

/* ---------- План до іспиту (Premium) ---------- */
.t-plan { padding: 12px 16px; margin-bottom: 10px; border-radius: 20px; background: var(--t-bg, #efeeee); display: grid; gap: 8px; }
.t-plan-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.t-plan-top b { font-size: 15px; font-weight: 600; }
.t-plan-top span { font-size: 13px; color: var(--t-muted, #6b6a6a); }
.t-plan-bar { height: 8px; border-radius: 999px; background: #fff; overflow: hidden; }
.t-plan-bar i { display: block; height: 100%; border-radius: 999px; background: var(--t-blue, #0856b5); }
.t-plan.is-done .t-plan-bar i { background: var(--t-green, #08b529); }

/* ---------- Розбір: варіанти як у тесті ---------- */
.t-rev-options { margin: 8px 0 0; }
.t-rev-options button { cursor: default; opacity: 1; }
.t-rev-options button.dim { opacity: .55; }
.t-rev-tag {
  margin-left: auto; padding-left: 8px; font-style: normal; font-size: 11px;
  font-weight: 600; letter-spacing: .01em; white-space: nowrap; align-self: center;
}
@media (max-width: 520px) {
  .t-rev-options button { padding: 8px 10px; font-size: 13px; flex-wrap: wrap; row-gap: 2px; }
  .t-rev-options button > span:not(.num) { flex: 1 1 0; min-width: 0; }
  /* мітка окремим рядком під текстом, щоб не стискати варіант відповіді */
  .t-rev-tag { order: 3; flex-basis: 100%; margin-left: 0; padding-left: var(--rev-tag-indent, 28px);
               font-size: 10.5px; white-space: normal; align-self: auto; }
}

/* ---------- Пропозиція Premium замість розбору ---------- */
.t-sell { margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--t-bg, #efeeee); }
.t-sell-h { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.t-sell-lead { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--t-muted, #6b6a6a); }
.t-sell-lead b { color: var(--t-ink, #0a0a0a); font-weight: 600; }
.t-sell-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.t-sell-list li {
  position: relative; padding-left: 26px; font-size: 13.5px; line-height: 1.45; color: var(--t-muted, #6b6a6a);
}
.t-sell-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t-green, #08b529); color: #fff; font-size: 11px; font-weight: 700;
}
.t-sell-list b { color: var(--t-ink, #0a0a0a); font-weight: 600; }
.t-sell-form { margin: 14px 0 0; }
.t-sell .t-sell-cta {
  position: static; margin: 14px 0 0; width: 100%; display: flex;
  align-items: center; justify-content: center; padding: 15px 22px; font-size: 15.5px; text-decoration: none;
}
.t-sell-form .t-sell-cta { margin: 0; }
.t-sell-note { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--t-muted, #6b6a6a); text-align: center; }

/* ---------- Картка користувача на головній ---------- */
.t-user {
  display: flex; align-items: center; gap: 10px; margin: 14px auto 0; padding: 10px 12px;
  max-width: 34em; border-radius: 999px; background: var(--t-bg, #efeeee);
  color: inherit; text-decoration: none; text-align: left;
}
@media (hover: hover) { .t-user:hover { background: #e6e5e5; } }
.t-user-ava {
  flex: none; width: 38px; height: 38px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: #fff; font-size: 16px; font-weight: 600;
}
.t-user-tx { flex: 1; min-width: 0; display: grid; }
.t-user-tx b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-user-tx i { font-style: normal; font-size: 12.5px; color: var(--t-muted, #6b6a6a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-user-plan {
  flex: none; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 4px 10px;
  border-radius: 999px; background: #fff; color: var(--t-muted, #6b6a6a);
}
.t-user-plan.is-prem { background: #f0dfc3; color: #a35b06; }
.t-user-go { flex: none; color: var(--t-muted, #6b6a6a); font-size: 15px; }

/* ---------- Поради ---------- */
.t-tips { padding-bottom: 8px; }
.t-tips-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.t-tips-head h2 { margin: 0; font-size: 18px; }
.t-tips-head .muted { font-size: 12.5px; color: var(--t-muted, #6b6a6a); }
.t-tips-row {
  display: flex; gap: 10px; margin: 12px -20px 0; padding: 0 0 4px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scroll-padding-left: 20px; scrollbar-width: none;
}
.t-tips-row .t-tip:first-child { margin-left: 20px; }
.t-tips-row .t-tip:last-child { margin-right: 20px; }
.t-tips-row::-webkit-scrollbar { display: none; }
.t-tip {
  flex: 0 0 clamp(230px, 74%, 280px); scroll-snap-align: start;
  padding: 14px 16px; border-radius: 18px; background: var(--t-bg, #efeeee);
}
.t-tip-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff;
  font-size: 11px; font-weight: 600; color: var(--t-muted, #6b6a6a);
}
.t-tip b { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.t-tip p { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--t-muted, #6b6a6a); }

/* ---------- Плаваюча кнопка «Почати тест» ---------- */
.t-fab {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20;
  border: 0; border-radius: 999px; padding: 15px 30px;
  background: var(--t-ink, #0a0a0a); color: #fff; font: inherit; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 10px 28px rgba(16, 24, 32, .28); cursor: pointer;
}
@media (hover: hover) { .t-fab:hover { background: var(--t-ink-soft, #272727); } }
body.has-fab .t-main { padding-bottom: 88px; }
@media (min-width: 860px) {
  .t-fab { left: auto; right: 24px; transform: none; }
}

/* Таймер загальної знижки біля цін */
.t-promo {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: #9a3412;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .3);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.t-promo s { color: rgba(154, 52, 18, .6); font-weight: 600; }
.t-promo b { font-weight: 800; }
.t-promo-left { font-variant-numeric: tabular-nums; }
.t-promo.is-line { margin: 8px auto 0; max-width: 520px; }

/* Офлайн-режим: картка на головній */
.t-off { display: block; padding: 18px 20px; text-decoration: none; color: inherit; }
.t-off-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.t-off-head b { font-size: 17px; font-weight: 700; }
.t-off-ic { font-size: 20px; line-height: 1; }
.t-off-tag { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #7c4a03;
  background: linear-gradient(135deg, #fde68a, #f59e0b); padding: 4px 10px; border-radius: 999px; }
.t-off p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted, #64748b); }
.t-off p b { color: inherit; }
.t-off-ok { color: #067a1c !important; }
.t-off-btn { margin-top: 12px; width: 100%; }
.t-off-act { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.t-off-link { margin-top: 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted, #64748b);
  text-decoration: underline; cursor: pointer; padding: 4px; }
.t-off-bar { margin-top: 12px; height: 8px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.t-off-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #16a34a, #08b529); transition: width .2s; }
.t-off.is-offline { background: #fff7ed; border: 1px solid rgba(245, 158, 11, .35); }
.t-tile.is-off { opacity: .45; }

/* ---------- Відеорозбори тем (кнопка «▶ Відео» біля теми й вікно з плеєром YouTube) ---------- */
.t-list li.has-vid { display: flex; gap: 6px; align-items: stretch; }
.t-list li.has-vid > button[data-section] { flex: 1; min-width: 0; }
.t-list button.t-vid { flex: none; width: auto; gap: 6px; padding: 0 12px; border-color: transparent; background: #e11d2e; color: #fff;
  font-weight: 800; font-size: 13px; white-space: nowrap; }
.t-list button.t-vid i { font-style: normal; font-weight: 600; opacity: .85; }
@media (hover: hover) { .t-list button.t-vid:hover { background: #c81625; border-color: transparent; transform: none; } }
.t-vmodal { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 12, 22, .78); display: grid; place-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px) + var(--pdr-tg-top, 0px)) 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.t-vbox { width: min(960px, 100%); background: #0b1220; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.t-vhead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #fff; }
.t-vhead b { flex: 1; font-size: 14.5px; line-height: 1.35; }
.t-vclose { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 16px; cursor: pointer; }
.t-vbox iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.t-vfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.t-vfoot .cta { width: auto; padding: 10px 16px; }
.t-vfoot a { color: #93c5fd; font-size: 13.5px; font-weight: 600; }

.t-vlist { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px 0; }
.t-vlist button { flex: none; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #e2e8f0; border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.t-vlist button.on { background: #16a34a; border-color: #16a34a; color: #fff; }

/* ---------- Відео-тести: вертикальна стрічка на весь екран ---------- */
body.in-shorts { overflow: hidden; }
.t-sfeed { position: fixed; inset: 0; z-index: 1100; background: #000; overflow-y: auto; scroll-snap-type: y mandatory;
  overscroll-behavior: contain; -webkit-user-select: none; user-select: none; scrollbar-width: none; }
.t-sfeed::-webkit-scrollbar { display: none; }
.t-sitem { position: relative; height: 100vh; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; display: grid; place-items: center; overflow: hidden; }
.t-sitem video { width: 100%; height: 100%; max-width: calc(100dvh * 9 / 16); object-fit: contain; background: #0b1220; -webkit-touch-callout: none; }
.t-sbtn { position: fixed; z-index: 3; top: calc(12px + env(safe-area-inset-top, 0px) + var(--pdr-tg-top, 0px)); width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; cursor: pointer; backdrop-filter: blur(6px); }
.t-sclose { left: 12px; }
.t-ssound { right: 12px; }
.t-shint { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); background: rgba(0, 0, 0, .6); color: #fff; font-size: 14px; font-weight: 600;
  padding: 9px 14px; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.t-sfeed.has-sound .t-shint { display: none; }
.t-sinfo { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px calc(18px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .75)); color: #fff; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
  max-width: calc(100dvh * 9 / 16); margin: 0 auto; }
.t-sinfo b { font-size: 15px; line-height: 1.35; font-weight: 700; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.t-strain { border: 0; background: #16a34a; color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; cursor: pointer; }
.t-sprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); max-width: calc(100dvh * 9 / 16); margin: 0 auto; }
.t-sprog i { display: block; height: 100%; width: 0; background: #22c55e; }
.t-send > div, .t-sload { color: #fff; text-align: center; padding: 24px; max-width: 360px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.t-send b { font-size: 22px; line-height: 1.25; }
.t-send p { margin: 0; color: #cbd5e1; font-size: 15px; line-height: 1.5; }
.t-send .cta, .t-sload .cta { width: auto; padding: 12px 20px; text-decoration: none; }
.t-sload { position: absolute; inset: 0; margin: auto; height: fit-content; }
.t-sswipe { position: absolute; left: 50%; top: 58vh; top: 58dvh; transform: translateX(-50%); z-index: 2; pointer-events: none; display: flex; flex-direction: column;
  align-items: center; gap: 4px; color: #fff; background: rgba(0, 0, 0, .55); padding: 14px 22px 12px; border-radius: 22px; backdrop-filter: blur(6px);
  animation: t-sswipe-in .4s ease-out; }
.t-sswipe .hand { font-size: 46px; line-height: 1; animation: t-sswipe-hand 1.4s ease-in-out infinite; }
.t-sswipe b { font-size: 17px; font-weight: 800; }
.t-sswipe i { font-style: normal; font-size: 13px; color: #cbd5e1; }
@keyframes t-sswipe-hand { 0% { transform: translateY(26px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(-26px); opacity: 1; } 100% { transform: translateY(-34px); opacity: 0; } }
@keyframes t-sswipe-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Курс як в автошколі ---------- */
/* тема сайту (body.test-page .card) прибирає фон карток — тож специфічність вища */
body.test-page .card.t-course-card, .t-course-card { background: linear-gradient(135deg, #14532d, #16a34a); background-image: linear-gradient(135deg, #14532d, #16a34a); color: #fff; }
body.test-page .t-course-card b, body.test-page .t-course-card .t-cc-badge { color: #fff; }
.t-cc-top { display: flex; flex-direction: column; gap: 6px; }
.t-cc-badge { align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .18);
  padding: 4px 10px; border-radius: 999px; }
.t-cc-top b { font-size: 20px; line-height: 1.25; }
.t-cc-sub { margin: 8px 0 12px; color: #dcfce7; font-size: 14px; line-height: 1.45; }
.t-cc-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .25); overflow: hidden; margin: 0 0 14px; }
.t-cc-bar i { display: block; height: 100%; background: #fde047; border-radius: 999px; transition: width .4s; }
body.test-page .t-course-card .cta, .t-course-card .cta { background: #fff; color: #14532d; }
.t-course-head h1, .t-lesson-head h1 { font-size: 24px; margin: 10px 0 8px; }
.t-course-head p, .t-lesson-head p { color: var(--muted, #64748b); font-size: 14.5px; line-height: 1.5; margin: 0 0 12px; }
.t-course-head .t-cc-bar, .t-ltest .t-cc-bar { background: #e5e7eb; }
.t-course-head .t-cc-bar i, .t-ltest .t-cc-bar i { background: #16a34a; }
.t-cc-num { font-size: 13px; font-weight: 700; color: #15803d; }
.t-back { padding: 6px 10px; font-size: 13.5px; }
body.test-page .card.t-module.is-current, .t-module.is-current { box-shadow: 0 0 0 2px #16a34a inset, 0 10px 30px rgba(17, 24, 39, .05); }
.t-module-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.t-module-n { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #15803d; }
.t-module-head b { font-size: 17px; flex: 1; }
.t-module-head i { font-style: normal; font-size: 12.5px; color: var(--muted, #64748b); font-weight: 600; }
.t-lessons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.t-lesson { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 1.5px solid var(--line, #e5e7eb); background: #fff;
  border-radius: 12px; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.t-lesson-ic { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: #eef1f6; }
.t-lesson.is-passed .t-lesson-ic { background: #16a34a; color: #fff; }
.t-lesson.is-open { border-color: #16a34a; background: #f0fdf4; }
.t-lesson.is-open .t-lesson-ic { background: #16a34a; color: #fff; }
.t-lesson.is-locked, .t-lesson.is-premium { opacity: .62; }
.t-lesson-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t-lesson-tx b { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.t-lesson-tx i { font-style: normal; font-size: 12.5px; color: var(--muted, #64748b); }
.t-course-pay { text-align: center; } .t-course-pay p { color: var(--muted, #64748b); font-size: 14px; line-height: 1.5; }
.t-course-pay .cta { display: inline-flex; width: auto; padding: 12px 22px; text-decoration: none; }
.t-steps { display: flex; flex-direction: column; gap: 16px; }
.t-step { display: flex; gap: 14px; align-items: flex-start; }
.t-step-n { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #eef1f6; display: grid; place-items: center; font-weight: 800; }
.t-step.is-done .t-step-n { background: #16a34a; color: #fff; font-size: 0; }
.t-step.is-done .t-step-n::before { content: '✓'; font-size: 16px; }
.t-step b { font-size: 16px; } .t-step p { margin: 4px 0 8px; color: var(--muted, #64748b); font-size: 14px; line-height: 1.45; }
.t-step-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.t-step-btns .ghost, .t-step-btns .cta { width: auto; padding: 9px 14px; font-size: 14px; text-decoration: none; }
.t-ltest-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted, #64748b); font-weight: 700; margin: 0 0 8px; }
.t-ltest-top b { color: #111827; }
.t-ltest-q { font-size: 18px; line-height: 1.35; margin: 12px 0; }
.t-ltest-opts { display: flex; flex-direction: column; gap: 8px; margin: 0 0 14px; }
.t-ltest-opts button { display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 2px solid transparent; background: #eef1f6; border-radius: 14px;
  padding: 12px 14px; font: inherit; font-size: 15px; line-height: 1.4; cursor: pointer; color: inherit; }
.t-ltest-opts button span { flex: 0 0 26px; height: 26px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 13px; }
.t-ltest-opts button.is-picked { border-color: #16a34a; background: #dcfce7; }

/* ---------- Telegram: сторіс і «на головний екран» на результаті іспиту ---------- */
.t-tgx { display: flex; flex-direction: column; gap: 10px; }
.t-tgx .t-story { background: linear-gradient(135deg, #7c3aed, #db2777); color: #fff; }
.t-home-ask p { margin: 4px 0 10px; color: var(--muted, #64748b); font-size: 14px; }
.t-tgx-btns { display: flex; gap: 8px; } .t-tgx-btns .cta, .t-tgx-btns .ghost { width: auto; padding: 10px 16px; }
.t-scount { position: fixed; z-index: 3; left: 50%; transform: translateX(-50%); top: calc(18px + env(safe-area-inset-top, 0px) + var(--pdr-tg-top, 0px));
  background: rgba(0, 0, 0, .5); color: #fff; font-size: 12.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; backdrop-filter: blur(6px); white-space: nowrap; }
.t-sseen { display: inline-block; font-size: 12px; font-weight: 800; color: #86efac; background: rgba(22, 163, 74, .25); padding: 3px 9px; border-radius: 999px; }
.t-send .ghost { color: #cbd5e1; background: rgba(255, 255, 255, .08); width: auto; padding: 10px 18px; }
.t-vbox video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }

/* ---------- Серії: дні поспіль, правильні поспіль ---------- */
.t-streak { display: flex; align-items: center; gap: 10px; margin: 10px auto 0; padding: 9px 14px; max-width: 34em;
  border-radius: 999px; background: var(--t-bg, #efeeee); text-align: left; }
.t-streak-ic { flex: none; font-size: 22px; line-height: 1; filter: grayscale(1); opacity: .55; }
.t-streak.is-on .t-streak-ic, .t-streak.is-risk .t-streak-ic { filter: none; opacity: 1; }
.t-streak.is-on { background: #fff4e5; }
.t-streak.is-risk { background: #fff1f0; }
.t-streak-tx { display: grid; min-width: 0; }
.t-streak-tx b { font-size: 14.5px; font-weight: 600; }
.t-streak-tx i { font-style: normal; font-size: 12.5px; color: var(--t-muted, #6b6a6a); }
.rs-streak { display: grid; gap: 8px; margin: 12px 0; }
.rs-streak p { margin: 0; padding: 12px 16px; border-radius: 18px; background: #fff4e5; display: grid; gap: 2px; text-align: center; }
.rs-streak b { font-size: 16px; font-weight: 700; }
.rs-streak span { font-size: 13px; color: var(--t-muted, #6b6a6a); }
.t-toast { position: fixed; z-index: 80; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  padding: 10px 16px; border-radius: 999px; background: #111827; color: #fff; font-size: 14px; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25); white-space: nowrap; animation: t-toast-in .25s ease-out; transition: opacity .35s, transform .35s; }
.t-toast.is-out { opacity: 0; transform: translate(-50%, 8px); }
@keyframes t-toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Відео уроку на сторінці ---------- */
.t-step-body { flex: 1; min-width: 0; }
.t-lvideo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0f172a; margin: 4px 0 10px; }
.t-lvideo iframe, .t-lvideo video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.t-lv-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: #0f172a center / cover no-repeat; display: grid; place-items: center; }
.t-lv-poster::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.t-lv-play { position: relative; z-index: 1; width: 68px; height: 48px; border-radius: 14px; background: #ff0000; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .15s; }
.t-lv-play::before { content: ''; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
@media (hover: hover) { .t-lv-poster:hover .t-lv-play { transform: scale(1.08); } }
.t-lv-cap { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; display: flex; justify-content: flex-end; align-items: flex-end; gap: 10px; color: #fff; text-align: left; }
.t-lv-cap b { font-size: 15px; font-weight: 700; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.t-lv-cap i { font-style: normal; font-size: 12.5px; font-weight: 700; background: rgba(0, 0, 0, .6); padding: 3px 8px; border-radius: 8px; }
.t-lv-tabs .ghost.on { background: var(--ink, #111827); color: #fff; }

/* ---------- Кабінет і серія в один ряд (для тих, хто увійшов, замість вступного тексту) ---------- */
.t-me-row { display: flex; gap: 10px; align-items: stretch; max-width: 46em; margin: 4px auto 0; }
.t-me-row .t-user { flex: 1; min-width: 0; margin: 0; max-width: none; }
.t-me-row .t-streak { flex: 0 1 auto; margin: 0; max-width: none; }
@media (max-width: 560px) {
  .t-me-row .t-streak { padding: 9px 12px; }
  .t-me-row .t-streak-tx i { display: none; }
  .t-me-row .t-streak-tx b { white-space: nowrap; }
  .t-me-row .t-streak-more { display: none; }
  .t-me-row .t-streak-ic { font-size: 20px; }
  .t-me-row .t-user-go { display: none; }
}

/* ---------- Головна блоками: Сьогодні / Навчання / Тренування / Довідник ---------- */
.t-block .t-course-card { padding: 18px; border-radius: 20px; margin-bottom: 10px; }
.t-block .t-cards { margin-bottom: 0; }
.t-block .t-plan { margin-bottom: 10px; }
.t-ref-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.t-exam-chip { display: flex; align-items: center; justify-content: center; gap: 4px; width: fit-content; margin: 10px auto 0; padding: 7px 14px;
  border-radius: 999px; background: #e8f0fe; color: #1d4ed8; font-size: 13.5px; }
.t-exam-chip b { font-weight: 700; }
.t-exam-chip.is-near { background: #fef3c7; color: #92400e; }
.t-block .t-card-img { aspect-ratio: 2 / 1; }

.site-nav a.nav-out { color: var(--t-muted, #6b6a6a); display: inline-flex; align-items: center; gap: 6px; }
.site-nav a.nav-out svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-nav a.nav-out .nav-out-t { display: none; }
@media (max-width: 640px) { .site-nav a.nav-out .nav-out-t { display: inline; }
}
.site-nav a[hidden] { display: none !important; }

/* Головна тренажера: фото й імʼя тепер у шапці сайту, тут лише серія й відлік до іспиту */
.t-me-row.is-chips { justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 0; }
.t-me-row.is-chips .t-streak, .t-me-row.is-chips .t-exam-chip { margin: 0; }
.t-me-row.is-chips .t-exam-chip { align-self: center; }

.t-ready-chip { text-decoration: none; }
.t-ready-chip.is-ok { background: #dcfce7; color: #166534; }
.t-ready-chip.is-mid { background: #fef3c7; color: #92400e; }
.t-ready-chip.is-low { background: #fee2e2; color: #991b1b; }

/* ---------- Головна: панель «серія · до іспиту · готовність» (замість різнокольорових плашок) ---------- */
.t-stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; margin: 0 auto; }
.t-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px 12px; border-radius: 18px;
  background: var(--t-bg, #efeeee); color: var(--t-ink, #0a0a0a); text-decoration: none; text-align: center; min-width: 0; }
.t-stat b { font-size: 28px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.t-stat span { font-size: 13px; font-weight: 600; }
.t-stat i { font-style: normal; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--t-muted, #6b6a6a); }
.t-stat.is-on i { color: #15803d; }
.t-stat.is-risk i { color: #c2410c; }
.t-stat.is-near b { color: #b45309; }
.t-stat-bar { display: block; width: 70%; max-width: 120px; height: 5px; margin-top: 6px; border-radius: 9px; background: rgba(0, 0, 0, .08); overflow: hidden; }
.t-stat-bar u { display: block; height: 100%; border-radius: inherit; background: var(--t-ink, #0a0a0a); }
@media (hover: hover) { a.t-stat:hover { background: #e6e5e5; } }
@media (max-width: 420px) {
  .t-stats { gap: 6px; }
  .t-stat { padding: 12px 4px 10px; border-radius: 16px; }
  .t-stat b { font-size: 24px; }
  .t-stat span { font-size: 12px; }
  .t-stat i { font-size: 11px; }
}

/* ---------- Відео теми для безплатного плану: замок і пропозиція Premium ---------- */
.t-list button.t-vid.is-locked { background: #1f2937; }
@media (hover: hover) { .t-list button.t-vid.is-locked:hover { background: #111827; } }
.t-vid-lock { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.t-vlock { position: relative; aspect-ratio: 16 / 9; background: #0f172a center / cover no-repeat; display: grid; place-items: center; }
.t-vlock::before { content: ''; position: absolute; inset: 0; background: rgba(2, 6, 23, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.t-vlock-in { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 30em; padding: 20px; text-align: center; color: #fff; }
.t-vlock-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.t-vlock-ic svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-vlock-in b { font-size: 19px; line-height: 1.25; }
.t-vlock-in p { margin: 0; font-size: 14px; line-height: 1.5; color: #cbd5e1; }
.t-vmodal .t-vlock-in a.cta, .t-lvideo .t-vlock-in a.cta { width: auto; margin-top: 4px; padding: 12px 22px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #0a9c3d); color: #fff; font-weight: 700; text-decoration: none; }
@media (hover: hover) { .t-vmodal .t-vlock-in a.cta:hover { filter: brightness(1.06); background: linear-gradient(135deg, #22c55e, #0a9c3d); } }
.t-vfoot .ghost { width: auto; padding: 10px 16px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; }
.t-vlock-note { font-size: 12.5px; color: #94a3b8; }
@media (max-width: 560px) {
  .t-vlock { aspect-ratio: auto; min-height: 300px; }
  .t-vlock-in b { font-size: 17px; }
  .t-vlock-in p { font-size: 13px; }
}

/* відеоурок курсу для безплатного плану */
.t-lvideo.is-locked .t-vlock { position: absolute; inset: 0; aspect-ratio: auto; }
.t-lvideo.is-locked .t-vlock-in { gap: 8px; padding: 16px; }
.t-lvideo.is-locked .t-vlock-in b { font-size: 17px; }
.t-lvideo.is-locked .t-vlock-in p { font-size: 13px; }
@media (max-width: 560px) {
  .t-lvideo.is-locked { aspect-ratio: auto; min-height: 270px; }
  .t-lvideo.is-locked .t-vlock-in { padding: 14px 12px; }
  .t-lvideo.is-locked .t-vlock-ic { width: 40px; height: 40px; }
  .t-lvideo.is-locked .t-vlock-in b { font-size: 16px; }
  .t-lvideo.is-locked .t-vlock-in a.cta { padding: 11px 16px; font-size: 14.5px; white-space: nowrap; }
}

/* кнопки в картках головної не «прилипають» до низу екрана (липка .cta — лише для «Далі» в тесті) */
.t-explore .cta, .t-course-card .cta, .t-marathon .cta { position: relative; bottom: auto; }

/* ---------- Гість після іспиту: «перевіряємо відповіді» і розмитий рахунок до входу ---------- */
.t-counting { text-align: center; }
.t-count-ring { width: 54px; height: 54px; margin: 6px auto 12px; border-radius: 50%; border: 5px solid #e5e7eb; border-top-color: #111827; animation: t-spin .8s linear infinite; }
@keyframes t-spin { to { transform: rotate(360deg); } }
.t-count-bar { height: 8px; max-width: 320px; margin: 14px auto 4px; border-radius: 9px; background: #e5e7eb; overflow: hidden; }
.t-count-bar i { display: block; height: 100%; width: 0; background: #16a34a; border-radius: inherit; animation: t-count 1.5s ease-out forwards; }
@keyframes t-count { to { width: 100%; } }
.t-blur-score { position: relative; display: inline-flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; padding: 6px 18px; }
.t-blur-score b { font-size: 54px; font-weight: 800; filter: blur(10px); user-select: none; }
.t-blur-score span { font-size: 22px; color: var(--t-muted, #6b6a6a); filter: blur(3px); }
.t-blur-score i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: 30px; }

/* ---------- Free: розбір під замком ---------- */
.rs-lock { position: relative; margin-top: 12px; border-radius: 14px; overflow: hidden; background: var(--t-bg, #efeeee); }
.rs-lock-fake { padding: 14px 16px; font-size: 14px; line-height: 1.55; filter: blur(5px); user-select: none; pointer-events: none; }
.rs-lock-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px;
  text-align: center; font-size: 13.5px; font-weight: 600; background: rgba(255, 255, 255, .45); }
.rs-lock-form { margin: 0; }
.rs-lock-btn { display: inline-block; border: 0; border-radius: 999px; padding: 9px 16px; background: linear-gradient(135deg, #22c55e, #0a9c3d); color: #fff !important;
  font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.t-plans { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin: 14px 0; text-align: left; }
.t-plan-col { display: grid; align-content: start; gap: 6px; padding: 14px; border-radius: 16px; background: var(--t-bg, #efeeee); font-size: 13.5px; line-height: 1.4; }
.t-plan-col > b { font-size: 15px; }
.t-plan-col.is-prem { background: #ecfdf3; box-shadow: inset 0 0 0 1.5px #86efac; }
@media (max-width: 560px) { .t-plans { grid-template-columns: 1fr; } }

/* A/B варіант B: екран-вступ перед іспитом — обіцянка, живий білет, одна велика кнопка */
.t-intro { text-align: center; padding-top: 22px; }
.t-intro-h { margin: 0 0 6px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.t-intro-sub { margin: 0 0 16px; font-size: 15.5px; color: var(--t-muted, #6b6a6a); }
.t-intro-q { max-width: 460px; margin: 0 auto 16px; padding: 10px; border-radius: 22px; background: var(--t-bg, #efeeee); text-align: left;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .10); transform: rotate(-1deg); }
.t-intro-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; background: #d9dde3; }
.t-intro-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t-intro-chip, .t-intro-timer { position: absolute; top: 8px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .92); color: #111827; }
.t-intro-chip { left: 8px; } .t-intro-timer { right: 8px; }
.t-intro-qt { margin: 10px 4px 8px; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.t-intro-opt { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; padding: 9px 12px; border-radius: 12px; background: #fff; font-size: 13.5px; }
.t-intro-opt i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cbd5e1; font-style: normal; font-size: 11px; color: #64748b; }
.t-intro-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 460px; margin: 0 auto; padding: 18px 22px;
  border: 0; border-radius: 18px; background: linear-gradient(135deg, #22c55e, #0a9c3d); color: #fff; font: inherit; font-size: 19px; font-weight: 800;
  box-shadow: 0 12px 28px rgba(10, 156, 61, .35); cursor: pointer; animation: t-cta-pulse 2.4s ease-in-out infinite; }
.t-intro-cta span { font-size: 22px; transition: transform .15s; }
@media (hover: hover) { .t-intro-cta:hover span { transform: translateX(4px); } }
@keyframes t-cta-pulse { 0%, 100% { box-shadow: 0 12px 28px rgba(10, 156, 61, .35); } 50% { box-shadow: 0 12px 34px rgba(10, 156, 61, .55); } }
.t-intro-meta { margin: 10px 0 14px; font-size: 13.5px; font-weight: 600; color: var(--t-muted, #6b6a6a); }
.t-intro-list { max-width: 460px; margin: 0 auto 10px; padding: 0; list-style: none; text-align: left; display: grid; gap: 8px; }
.t-intro-list li { position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.t-intro-list li::before { content: '✓'; position: absolute; left: 4px; top: 0; color: #16a34a; font-weight: 800; }
.t-intro-alt { margin-top: 4px; border: 0; background: none; color: var(--t-muted, #6b6a6a); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 8px; }
@media (max-width: 420px) { .t-intro-h { font-size: 23px; } .t-intro-cta { font-size: 18px; padding: 17px 18px; } }

/* A/B варіант C: посадкова з усіма плюсами */
.t-land { padding: 26px 24px; }
.t-land-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.t-land-eyebrow { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: #e3f4e9; color: #0f7a36; font-size: 12.5px; font-weight: 700; }
.t-land-h { margin: 0 0 10px; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }
.t-land-sub { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: var(--t-muted, #5b626c); max-width: 34em; }
.t-land-cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 420px; padding: 18px 22px; border: 0; border-radius: 18px;
  background: linear-gradient(135deg, #22c55e, #0a9c3d); color: #fff; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer;
  box-shadow: 0 12px 28px rgba(10, 156, 61, .35); animation: t-cta-pulse 2.4s ease-in-out infinite; }
.t-land-cta span { font-size: 22px; }
.t-land-micro { margin: 10px 0 0; font-size: 13px; font-weight: 600; color: var(--t-muted, #5b626c); }
.t-land-phone { justify-self: center; width: 240px; padding: 8px; border-radius: 34px; background: #0e1012; box-shadow: 0 20px 44px rgba(15, 23, 42, .22); transform: rotate(2deg); }
.t-land-phone img, .t-land-shot img { display: block; width: 100%; height: auto; border-radius: 26px; }
.t-land-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.t-land-facts div { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--t-bg, #efeeee); }
.t-land-facts b { font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.t-land-facts span { font-size: 12.5px; color: var(--t-muted, #5b626c); line-height: 1.35; }
.t-land-h2 { margin: 0 0 18px; font-size: 24px; font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
.t-land-feats { display: grid; gap: 26px; }
.t-land-feats .t-land-h2 { margin-bottom: 0; }
.t-land-feat { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: center; }
.t-land-feat:nth-child(odd) { grid-template-columns: minmax(0, 1fr) 170px; }
.t-land-feat:nth-child(odd) .t-land-shot { order: 2; }
.t-land-shot { padding: 6px; border-radius: 26px; background: #0e1012; box-shadow: 0 14px 30px rgba(15, 23, 42, .16); }
.t-land-shot img { border-radius: 20px; }
.t-land-ftx h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.t-land-ftx p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--t-muted, #5b626c); }
.t-land-ftx ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.t-land-ftx li { position: relative; padding-left: 22px; font-size: 14px; font-weight: 600; }
.t-land-ftx li::before { content: '✓'; position: absolute; left: 2px; color: #16a34a; font-weight: 800; }
.t-land-end { text-align: center; }
.t-land-end .t-land-sub { margin-inline: auto; }
@media (max-width: 720px) {
  .t-land { padding: 22px 18px; }
  .t-land-hero { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .t-land-sub { margin-inline: auto; }
  .t-land-cta { max-width: none; }
  .t-land-phone { width: 220px; transform: none; }
  .t-land-h { font-size: 27px; }
  .t-land-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-land-feat, .t-land-feat:nth-child(odd) { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
  .t-land-feat:nth-child(odd) .t-land-shot { order: 0; }
  .t-land-shot { border-radius: 18px; padding: 4px; } .t-land-shot img { border-radius: 14px; }
}

/* посадкова: закріплена кнопка внизу під час прокрутки */
.t-land-sticky { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; justify-items: center; gap: 4px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -8px 24px rgba(15, 23, 42, .10); animation: t-sticky-in .25s ease-out; }
.t-land-sticky .t-land-cta { max-width: 460px; padding: 15px 20px; font-size: 18px; animation: none; box-shadow: 0 8px 20px rgba(10, 156, 61, .30); }
.t-land-sticky small { font-size: 12.5px; font-weight: 600; color: var(--t-muted, #5b626c); }
.t-land-sticky[hidden] { display: none; }
@keyframes t-sticky-in { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .t-land-sticky { animation: none; } }
/* посадкові D–G: біль, демо-питання, стек цінності, план */
.t-land-phone.is-tall img { aspect-ratio: 480 / 720; object-fit: cover; object-position: top; }
.t-land-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.t-land-pains div { display: grid; align-content: start; gap: 6px; padding: 16px; border-radius: 16px; background: var(--t-bg, #efeeee); }
.t-land-pains b { font-size: 16.5px; }
.t-land-pains p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--t-muted, #5b626c); }
.t-land-pains span { position: relative; padding-left: 22px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.t-land-pains span::before { content: '✓'; position: absolute; left: 2px; color: #16a34a; font-weight: 800; }
.t-land-try { justify-self: center; width: 100%; max-width: 400px; padding: 10px; border-radius: 22px; background: var(--t-bg, #efeeee); text-align: left; box-shadow: 0 14px 30px rgba(15, 23, 42, .12); }
.t-land-opt { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 0; padding: 12px; border: 2px solid transparent; border-radius: 12px; background: #fff; color: inherit; font: inherit; font-size: 14.5px; font-weight: 600; text-align: left; cursor: pointer; }
.t-land-opt i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cbd5e1; font-style: normal; font-size: 12px; color: #64748b; }
.t-land-try:not(.is-done) .t-land-opt:hover { border-color: #16a34a; }
.t-land-opt.is-ok { border-color: #16a34a; background: #e3f4e9; } .t-land-opt.is-ok i { background: #16a34a; border-color: #16a34a; color: #fff; }
.t-land-opt.is-bad { border-color: #dc2626; background: #fde8e8; } .t-land-opt.is-bad i { background: #dc2626; border-color: #dc2626; color: #fff; }
.t-land-opt.is-off { opacity: .6; }
.t-land-expl { margin-top: 8px; padding: 12px; border-radius: 12px; background: #fff; font-size: 14px; line-height: 1.5; }
.t-land-expl b { display: block; margin-bottom: 2px; }
.t-land-expl span { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #e3f4e9; color: #0f7a36; font-size: 12px; font-weight: 700; }
.t-land-cta.is-pulse { animation: tLandPulse 1.6s ease-in-out 2; }
@keyframes tLandPulse { 50% { transform: scale(1.03); } }
.t-land-stack { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-land-stack li { position: relative; padding-left: 28px; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.t-land-stack li::before { content: '✓'; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #16a34a; color: #fff; font-size: 12px; font-weight: 800; }
.t-land-plan { justify-self: center; width: 100%; max-width: 320px; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.t-land-plan li { position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 18px; border-radius: 16px; background: var(--t-bg, #efeeee); border-left: 4px solid #cbd5e1; text-align: left; }
.t-land-plan li.is-now { background: #e3f4e9; border-left-color: #16a34a; }
.t-land-plan span { font-size: 12px; font-weight: 700; color: var(--t-muted, #5b626c); text-transform: uppercase; letter-spacing: .04em; }
.t-land-plan b { font-size: 17px; }
.t-land-plan p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--t-muted, #5b626c); }
.t-land-E .t-land-hero { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; text-align: center; }
.t-land-E .t-land-sub { margin-inline: auto; } .t-land-E .t-land-try { margin: 0 auto 16px; } .t-land-E .t-land-cta { margin-inline: auto; }
.t-land-G .t-land-hero { grid-template-columns: minmax(0, 1fr) 320px; }
@media (max-width: 720px) {
  .t-land-pains { grid-template-columns: 1fr; }
  .t-land-G .t-land-hero { grid-template-columns: 1fr; }
  .t-land-stack { text-align: left; max-width: 420px; margin-inline: auto; }
}
/* плаваюча кнопка «Почати тест» не перекриває футер із соцмережами */
body.has-fab .site-foot { padding-bottom: 96px; }

/* «Що далі» на екрані результату іспиту */
.t-next { padding: 22px 20px; }
.t-next-h { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.t-next-sub { margin: 0 0 12px; font-size: 14.5px; line-height: 1.5; color: var(--t-muted, #5b626c); }
.t-next-topics { display: grid; gap: 8px; }
.t-next-topic { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px;
  background: var(--t-bg, #efeeee); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.t-next-topic span { display: grid; gap: 2px; min-width: 0; }
.t-next-topic b { font-size: 15.5px; font-weight: 700; }
.t-next-topic i { font-style: normal; font-size: 13px; color: #b42318; }
.t-next-topic em { flex: none; font-style: normal; font-weight: 800; color: #0f7a36; font-size: 14.5px; }
.t-next-when { margin-top: 18px; }
.t-next-when h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.t-next-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.t-next-chip { padding: 10px 14px; border: 1.5px solid #d0d5dd; border-radius: 999px; background: #fff; color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.t-next-chip.is-on { border-color: #16a34a; background: #e3f4e9; color: #0f7a36; }
.t-next-chip:disabled:not(.is-on) { opacity: .5; }
.t-next-tip { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #f0fdf4; font-size: 14.5px; line-height: 1.55; }
.t-next-buy { margin: 12px 0 0; }
.t-next-buybtn { width: 100%; padding: 13px 16px; border: 0; border-radius: 14px; background: #16a34a; color: #fff; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.t-next-tg { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(15, 23, 42, .08); }
.t-next-tg p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--t-muted, #5b626c); }
.t-next-tgbtn { padding: 12px 18px; border: 0; border-radius: 14px; background: #229ED9; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.t-next-tg small { display: block; margin-top: 6px; font-size: 13px; color: var(--t-muted, #5b626c); }

/* бриф після іспиту (до входу) */
.t-brief { padding: 22px 20px; }
.t-brief-top { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: #e3f4e9; color: #0f7a36; font-weight: 700; font-size: 15px; line-height: 1.4; }
.t-brief-q { margin: 0 0 18px; }
.t-brief-q h3 { margin: 0 0 10px; font-size: 17px; font-weight: 800; }
.t-brief-go { margin-top: 6px; max-width: none; }
.t-brief-go:disabled { opacity: .45; animation: none; }
.t-brief-hint { margin: 10px 0 0; text-align: center; font-size: 13.5px; color: var(--t-muted, #5b626c); }
.rs-free { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff7e6; font-size: 14.5px; line-height: 1.5; }

/* продаж після невдалого іспиту */
.t-rescue { padding: 22px 20px; }
.t-rescue-h { margin: 0 0 8px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.t-rescue-lead { margin: 0 0 14px; font-size: 15px; line-height: 1.55; color: #1f2937; }
.t-rescue-how-old { display: grid; gap: 6px; margin: 0 0 14px; padding: 14px 16px; border-radius: 16px; background: #f0fdf4; font-size: 14.5px; line-height: 1.45; }
.t-rescue-how b { font-size: 15.5px; }
.t-rescue-cmp { display: grid; margin: 0 0 14px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 16px; overflow: hidden; }
.t-rescue-row { display: grid; grid-template-columns: 1fr 1fr; }
.t-rescue-row span { padding: 10px 12px; font-size: 13.5px; line-height: 1.4; border-top: 1px solid rgba(15, 23, 42, .06); }
.t-rescue-row span:first-child { color: #8a3a32; background: #fdf3f2; }
.t-rescue-row span:last-child { color: #0f5a2a; background: #f0fdf4; font-weight: 600; }
.t-rescue-row.is-head span { border-top: 0; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em; }
.t-rescue-row span:first-child::before { content: '✕ '; } .t-rescue-row span:last-child::before { content: '✓ '; }
.t-rescue-row.is-head span::before { content: ''; }
.t-rescue-key { margin: 0 0 14px; font-size: 14.5px; line-height: 1.5; }
.t-rescue-cta { max-width: none; }
.t-rescue-form { margin: 0; }
.t-rescue-note { margin: 8px 0 0; text-align: center; font-size: 13px; color: var(--t-muted, #5b626c); }

.t-rescue-top { display: flex; gap: 16px; align-items: center; }
.t-rescue-top > div { flex: 1; min-width: 0; }
.t-rescue-hero { flex: none; width: 170px; height: 170px; border-radius: 22px; }
.t-rescue-sub { display: block; margin: 4px 0 10px; font-size: 16px; font-weight: 800; }
.t-rescue-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 16px; }
.t-rescue-steps div { display: grid; justify-items: center; gap: 8px; padding: 12px 10px 14px; border-radius: 16px; background: #f0fdf4; text-align: center; font-size: 13.5px; line-height: 1.4; }
.t-rescue-steps img { width: 84px; height: 84px; border-radius: 14px; }
.t-rescue-row.is-pic span { display: grid; place-items: center; padding: 10px; border-top: 0; }
.t-rescue-row.is-pic span::before { content: ''; }
.t-rescue-row.is-pic img { width: 96px; height: 96px; border-radius: 14px; mix-blend-mode: multiply; }
@media (max-width: 560px) {
  .t-rescue-top { flex-direction: column-reverse; align-items: flex-start; }
  .t-rescue-hero { width: 120px; height: 120px; }
  .t-rescue-steps { grid-template-columns: 1fr; }
  .t-rescue-steps div { grid-template-columns: 64px 1fr; justify-items: start; align-items: center; text-align: left; }
  .t-rescue-steps img { width: 64px; height: 64px; }
}

/* порівняння на 3 колонки: самостійно / безкоштовно / Premium */
.t-rescue-cmp.is-3 .t-rescue-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-rescue-cmp.is-3 .t-rescue-row span { font-size: 13px; }
.t-rescue-cmp.is-3 .t-rescue-row span::before { content: none; }
.t-rescue-cmp.is-3 .t-rescue-row span:nth-child(2) { background: #f7f9fc; color: #1f2937; font-weight: 500; }
.t-rescue-cmp.is-3 .t-rescue-row.is-head span:nth-child(2) { color: #334155; }
.t-rescue-cmp i { font-style: normal; font-weight: 800; margin-right: 4px; }
.t-rescue-cmp i.no { color: #c0392b; } .t-rescue-cmp i.yes { color: #16a34a; } .t-rescue-cmp i.part { color: #d97706; }
.t-rescue-cmp.is-3 .t-rescue-row.is-pic img { width: 84px; height: 84px; }
@media (max-width: 560px) {
  .t-rescue-cmp.is-3 .t-rescue-row span { padding: 9px 7px; font-size: 12px; }
  .t-rescue-cmp.is-3 .t-rescue-row.is-head span { font-size: 11px; }
  .t-rescue-cmp.is-3 .t-rescue-row.is-pic img { width: 64px; height: 64px; }
}

/* шапка невдалого іспиту: розрив до складання */
.rs-gap { margin: 14px 0 6px; }
.rs-gap-bar { position: relative; height: 14px; border-radius: 999px; background: #eceef2; }
.rs-gap-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f97316); }
.rs-gap-bar em { position: absolute; top: -6px; bottom: -6px; left: var(--at); width: 3px; border-radius: 2px; background: #16a34a; }
.rs-gap-bar em b { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; color: #16a34a; }
.rs-gap-l { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--t-muted, #5b626c); }
.rs-gap-l b { color: #111; }
.rs-gap-t { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; }
.rs-duel-sm { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--t-muted, #5b626c); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
/* 4 плитки «рівняння цінності» */
.t-rescue-value { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 16px; }
.t-rescue-value div { display: grid; gap: 3px; padding: 12px 14px; border-radius: 14px; background: #f7f9fc; font-size: 13.5px; line-height: 1.4; }
.t-rescue-value b { font-size: 14.5px; }
/* стек «що ви отримуєте» */
.t-rescue-stack { margin: 0 0 14px; border: 1px solid rgba(15, 23, 42, .08); border-radius: 16px; overflow: hidden; }
.t-rs-row { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr); }
.t-rs-row span { padding: 10px 12px; border-top: 1px solid rgba(15, 23, 42, .06); font-size: 13.5px; line-height: 1.35; }
.t-rs-row span:first-child { font-weight: 600; color: #1f2937; }
.t-rs-row span:nth-child(2) { background: #f7f9fc; }
.t-rs-row span:nth-child(3) { background: #f0fdf4; color: #0f5a2a; font-weight: 600; }
.t-rs-row.is-head span { border-top: 0; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.t-rs-row.is-head span:nth-child(3) { color: #0f7a36; }
.t-rs-row.is-pic span { display: grid; place-items: center; padding: 10px 6px 0; border-top: 0; }
.t-rs-row.is-pic img { width: 80px; height: 80px; border-radius: 12px; mix-blend-mode: multiply; }
.t-rs-row:last-child span { font-size: 14.5px; }
.t-rs-row i { font-style: normal; font-weight: 800; margin-right: 4px; }
.t-rs-row i.yes { color: #16a34a; } .t-rs-row i.part { color: #d97706; } .t-rs-row i.no { color: #c0392b; }
.t-rescue-anchor { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: #fff7e6; font-size: 14px; line-height: 1.5; }
@media (max-width: 560px) {
  .t-rs-row span { padding: 9px 7px; font-size: 12.5px; }
  .t-rs-row.is-head span { font-size: 10.5px; }
  .t-rs-row.is-pic img { width: 60px; height: 60px; }
  .t-rescue-value div { padding: 10px 11px; font-size: 12.5px; }
}

/* невдалий іспит: головна кнопка «Як скласти з першого разу» на всю ширину, «Новий білет» під нею */
.rs-actions:has(#goPlan) { grid-template-columns: 1fr; }
/* «До складання +N» у плитці — спокійний акцент, без окремої шкали */
.rs-stats .is-gap dd { color: #0f7a36; }
.rs-hero .rs-note b { color: #111; }
/* шкала «де ви зараз → де треба бути» (повернуто) */
.rs-gap { margin: 22px 0 4px; }
.rs-gap-bar { position: relative; height: 12px; margin-top: 26px; border-radius: 999px; background: #eceef2; }
.rs-gap-bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #ef4444, #f97316); }
.rs-gap-bar i b { position: absolute; right: 0; top: 18px; transform: translateX(50%); font-style: normal; font-size: 12.5px; font-weight: 700; color: #b42318; white-space: nowrap; }
.rs-gap-bar em { position: absolute; top: -7px; bottom: -7px; left: var(--at); width: 3px; border-radius: 2px; background: #16a34a; }
.rs-gap-bar em b { position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12.5px; font-weight: 800; color: #0f7a36; white-space: nowrap; }
.rs-gap-rank { margin: 30px 0 0; font-size: 14px; color: #334155; }
.rs-gap-rank b { color: #0f7a36; }
.rs-gap-bar em b { left: auto; right: -2px; transform: none; }

/* гарячий лід: план до іспиту */
.t-hot { padding: 20px; border: 2px solid #fdba74; background: #fffbf5; }
.t-hot-tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: #ffedd5; color: #c2410c; font-weight: 800; font-size: 13px; }
.t-hot-h { margin: 10px 0 6px; font-size: 22px; font-weight: 800; }
.t-hot-lead { margin: 0 0 12px; font-size: 15px; line-height: 1.5; }
.t-hot-plan { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.t-hot-plan li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: #fff; border-left: 4px solid #f97316; }
.t-hot-plan b { font-size: 14px; color: #c2410c; }
.t-hot-plan span { font-size: 14.5px; line-height: 1.45; }

/* банер пробного Premium */
.t-trial { display: grid; gap: 6px; padding: 16px 18px; border: 2px solid #86efac; background: #f0fdf4; }
.t-trial b { font-size: 16.5px; color: #0f5a2a; }
.t-trial span { font-size: 14px; line-height: 1.5; color: #1f2937; }

/* варіанти перемішуються, тож номери не показуємо: кружок як у радіокнопки, після відповіді ✓ / ✕ */
.t-options .num { font-size: 0; }
.t-options button.picked .num::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.t-options button.ok .num::before { content: '✓'; font-size: 13px; color: #fff; }
.t-options button.bad .num::before { content: '✕'; font-size: 12px; color: #fff; }

/* смуга номерів у довгих темах: без смуги прокрутки, краї плавно зникають, як у тестах на 20 питань */
.t-grid:not(.fit) { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); padding-left: 20px; padding-right: 20px; scroll-behavior: smooth; }
.t-grid:not(.fit)::-webkit-scrollbar { display: none; }

/* посадкова з реклами (renderLanding, renderExamIntro): лише значок у шапці, без назви проєкту, меню, Premium і кабінету */
html.ad-land .site-nav .brand-name, html.ad-land .site-nav .nav-drop, html.ad-land .site-nav .nav-burger { display: none !important; }
html.ad-land .site-nav .brand { pointer-events: none; }
html.ad-land #u2side, html.ad-land #u2tabs, html.ad-land #u2sheet, html.ad-land #u2top .u2acc, html.ad-land #u2top .brand-name { display: none !important; }
html.ad-land #u2top .u2brand { pointer-events: none; }
html.ad-land.ui2 body { padding-left: 0 !important; padding-bottom: 0 !important; }
html.ad-land .site-nav, html.ad-land .site-nav::before, html.ad-land .site-nav .nav-inner { background: transparent !important; box-shadow: none !important; border-color: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
/* власник: на посадковій з реклами шапки немає зовсім, навіть значка */
html.ad-land .site-nav, html.ad-land #u2top { display: none !important; }
html.ad-land .t-main { padding-top: 16px !important; margin-top: 0 !important; }
/* нижнього меню на посадковій немає, тож липка кнопка — у самому низу екрана (ui2.css піднімав її на 66px над меню) */
html.ad-land .t-land-sticky { bottom: 0 !important; }
