:root {
  --accent: #0057b7;
  --accent-dark: #00468f;
  --yellow: #ffd500;
  --ink: #1d232b;
  --muted: #7b8490;
  --line: #e4e7eb;
  --ok: #16a34a;
  --ok-bg: #e8f7ee;
  --bad: #e5484d;
  --bad-bg: #fdecec;
  --glass: rgba(255, 255, 255, .9);
  --shadow: 0 6px 22px rgba(24, 34, 44, .14);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #edf1f6; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.app { display: flex; flex-direction: column; min-height: 100%; }

/* ---------- Stage ---------- */
.stage {
  position: relative;
  height: 64svh;
  min-height: 460px;
  overflow: hidden;
  background: #a9d58f;
  touch-action: manipulation;
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hud-top, .hud-bottom {
  position: absolute; left: 0; right: 0;
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.hud-top { top: 0; padding-top: max(12px, calc(env(safe-area-inset-top) + var(--pdr-tg-top, 0px))); }
.hud-bottom { bottom: 0; padding-bottom: 30px; }
.hud-top > *, .hud-bottom > * { pointer-events: auto; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }

.chip {
  background: var(--glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.brand .dot { width: 16px; height: 11px; border-radius: 2px; background: linear-gradient(#0057b7 50%, #ffd500 50%); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.muted { color: var(--muted); font-weight: 500; }
.home-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.home-btn { flex: none; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); text-decoration: none; }
.home-btn svg { width: 18px; height: 18px; }
@media (hover: hover) { .home-btn:hover { color: var(--accent); } }
/* компактний перемикач питань у верхньому рядку; смужку програвача прибрано */
.q-nav { flex: none; padding: 3px; }
.q-nav .icon { width: 32px; height: 32px; }
.q-nav .picker { padding: 0 4px; font-size: 14px; gap: 5px; white-space: nowrap; }
.q-nav #navTitle { display: none; }
.q-nav #navCount { color: var(--ink); font-weight: 700; }
.player { display: none !important; }
/* номер питання вже є у верхньому рядку — рядок розділу, крапки й лічильник у панелі прибрано */
.panel .meta, .panel .dots, .panel .stats { display: none; }
.panel h1 { margin-top: 4px; }

.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--glass); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.seg button { white-space: nowrap; border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--ink); color: #fff; }

.nav { display: flex; align-items: center; justify-content: space-between; padding: 4px; }
.icon { width: 38px; height: 38px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.icon svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon:hover { background: rgba(0, 0, 0, .05); } }
.picker { position: relative; display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 0 10px; cursor: pointer; }
.picker .chev { width: 16px; height: 16px; color: var(--muted); }
.picker select { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 16px; }

.caption { display: flex; align-items: center; gap: 10px; }
.caption p {
  flex: 1; margin: 0;
  background: var(--glass); backdrop-filter: blur(10px);
  border-radius: 14px; box-shadow: var(--shadow);
  padding: 9px 14px; font-size: 13.5px; line-height: 1.35; text-align: center;
  min-height: 40px; display: grid; place-items: center;
}
.rule {
  flex: none; display: grid; place-items: center; text-align: center;
  min-width: 56px; height: 44px; padding: 0 10px; border-radius: 22px;
  background: var(--yellow); color: #1d232b; font-size: 12px; font-weight: 700; line-height: 1.1;
  box-shadow: 0 6px 16px rgba(255, 196, 0, .4);
}

.look-hint {
  align-self: center; border: 0; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--ink);
}
.stage.driver #scene, .stage.orbit #scene { touch-action: none; cursor: grab; }
.stage.driver.grabbing #scene, .stage.orbit.grabbing #scene { cursor: grabbing; }
.help-btn {
  width: 38px; height: 38px; padding: 0; display: grid; place-items: center; flex: none;
  align-self: flex-end; color: var(--ink);
}
.help-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.stage.schema #scene { touch-action: none; }

/* Екран перед тренажером: пояснюємо керування, поки сцена ще не потрібна */
.intro {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: grid; place-items: center; padding: 20px; overflow-y: auto;
}
.intro-card {
  width: min(380px, 100%); padding: 22px; border-radius: 24px; background: #fff;
  box-shadow: 0 16px 40px rgba(16, 24, 32, .18); display: grid; gap: 12px; justify-items: start;
}
.intro-logo { display: block; }
.intro-card > b { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.intro-lead { margin: -4px 0 0; font-size: 14px; line-height: 1.45; color: #4a5361; }
.intro-card ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; width: 100%; }
.intro-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: #3b4452; }
.intro-card li b { color: var(--ink); }
.intro-ic {
  flex: none; width: 32px; height: 32px; border-radius: 50%; background: #eef1f6;
  display: grid; place-items: center; font-size: 16px;
}
.intro-modes {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #eef1f6; width: 100%;
}
.intro-modes span {
  flex: 1; text-align: center; padding: 7px 8px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.intro-modes span.on { background: var(--ink); color: #fff; }
.intro-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.pay-badge {
  padding: 5px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  background: linear-gradient(135deg, #f7b733, #fc4a1a); color: #fff;
}
.pay-sub { margin: 2px 0 -4px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pay-kinds { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.pay-kinds span {
  display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 11px; border-radius: 999px;
  background: #eef1f6; font-size: 12.5px; color: #3b4452;
}
.pay-kinds b { font-weight: 700; color: var(--ink); }
.intro-ghost {
  width: 100%; border: 0; border-radius: 999px; padding: 12px 18px; background: #eef1f6;
  color: var(--ink); font-size: 14px; font-weight: 600;
}
.coach-ok {
  display: block; text-align: center; text-decoration: none; width: 100%; border: 0; border-radius: 999px; padding: 14px 18px; margin-top: 4px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 700;
}

/* Перемикач вигляду підсвічуємо, поки ним не скористалися */
.seg.hl { animation: segPulse 1.8s ease-in-out 3; }
.seg.hl button:not(.on) { color: var(--ink); }
@keyframes segPulse {
  0%, 100% { box-shadow: var(--shadow); }
  50% { box-shadow: 0 0 0 6px rgba(255, 196, 0, .35), var(--shadow); }
}

.track-seg { align-self: center; }
.track-seg button.on[data-track="crash"] { background: var(--bad); }
.track-seg button.on[data-track="correct"] { background: var(--ok); }
.stage.danger .caption p { background: rgba(229, 72, 77, .94); color: #fff; font-weight: 600; }
.stage.danger .rule { background: #1d232b; color: #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.stage.danger .fill { background: var(--bad); }
.ghost {
  margin-top: 10px; border: 1.5px solid var(--line); background: #fff; border-radius: 12px;
  padding: 9px 14px; font-size: 14px; font-weight: 600;
}
@media (hover: hover) { .ghost:hover { border-color: #c4cad1; } }

.player { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; }
.play { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.play svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.track { position: relative; flex: 1; height: 22px; cursor: pointer; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: #e2e5e9; }
.fill { position: absolute; left: 0; top: 8px; height: 6px; border-radius: 3px; background: var(--accent); width: 0; }
.marks span { position: absolute; top: 5px; width: 2px; height: 12px; margin-left: -1px; border-radius: 1px; background: rgba(29, 35, 43, .35); }
.time { font-size: 12px; color: var(--muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Panel ---------- */
.panel { position: relative; margin-top: -22px; flex: 1; }
.card {
  background: #fff; border-radius: 22px 22px 0 0;
  padding: 18px 18px 24px; min-height: 100%;
  box-shadow: 0 -8px 30px rgba(24, 34, 44, .08);
}
.tests-link {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding: 10px 14px; border-radius: 12px;
  background: #eef3fb; color: var(--accent); font-size: 14px; font-weight: 700; text-decoration: none;
}
@media (hover: hover) { .tests-link:hover { background: #e2ecfa; } }
.meta { display: flex; justify-content: space-between; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.meta span:last-child { color: var(--ink); text-transform: none; letter-spacing: 0; }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 8px; }
.dots button { width: 12px; height: 12px; border: 0; padding: 0; border-radius: 50%; background: #e3e6ea; }
.dots button.ok { background: var(--ok); }
.dots button.bad { background: var(--bad); }
.dots button.cur { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }
.stats { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.link { border: 0; background: none; padding: 0; color: var(--muted); text-decoration: underline; font-size: 12.5px; }

h1 { font-size: 19px; line-height: 1.35; margin: 14px 0 12px; font-weight: 650; }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; font-size: 13px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 11px; height: 11px; border-radius: 3px; }
.legend em { font-style: normal; color: var(--muted); }

.options { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.options button {
  width: 100%; text-align: left; display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--line); background: #fff; border-radius: 14px;
  padding: 12px 14px; font-size: 15px; line-height: 1.3;
  transition: border-color .15s, background .15s;
}
@media (hover: hover) { .options button:hover:not(:disabled) { border-color: #c4cad1; background: #fafbfc; } }
.options button:disabled { cursor: default; }
.options .num { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #eef0f3; font-size: 12px; font-weight: 700; }
.options button.ok { border-color: var(--ok); background: var(--ok-bg); }
.options button.ok .num { background: var(--ok); color: #fff; }
.options button.bad { border-color: var(--bad); background: var(--bad-bg); }
.options button.bad .num { background: var(--bad); color: #fff; }
.options button.dim { opacity: .55; }

.explain { margin-top: 14px; padding: 14px; border-radius: 14px; background: #f5f6f8; font-size: 14px; line-height: 1.5; }
.explain .verdict { font-weight: 700; margin-bottom: 4px; }
.explain .verdict.ok { color: var(--ok); }
.explain .verdict.bad { color: var(--bad); }
.explain p { margin: 0 0 8px; }
.explain .refs { font-size: 12px; color: var(--muted); }

.cta {
  position: sticky; bottom: 14px; margin-top: 16px;
  width: 100%; border: 0; border-radius: 16px; padding: 15px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 87, 183, .3);
}

/* смужка орнаменту у стилі вишиванки */
.ornament {
  height: 12px; margin: -18px -18px 14px; border-radius: 22px 22px 0 0;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M6 1l5 5-5 5-5-5z' fill='%23c8102e'/%3E%3Cpath d='M6 4.2l1.8 1.8L6 7.8 4.2 6z' fill='%23fff'/%3E%3Cpath d='M18 3l3 3-3 3-3-3z' fill='%231d232b'/%3E%3C/svg%3E") repeat-x center;
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) { .cta:hover { background: var(--accent-dark); } }

@media (max-width: 1180px) {
  .brand .muted { display: none; }
}

@media (max-width: 520px) {
  .brand .muted { display: none; }
  .brand { padding: 8px 12px; }
  .seg button { padding: 6px 10px; }
}

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: minmax(0, 1fr) 460px; height: 100vh; }
  .stage { height: 100vh; min-height: 0; }
  .panel { margin: 0; overflow: auto; background: #eef0ea; padding: 20px; }
  .card { border-radius: 22px; min-height: 0; box-shadow: var(--shadow); padding: 22px; }
  .ornament { margin: -22px -22px 16px; }
  .panel { background: #edf1f6; }
  .hud-top, .hud-bottom { max-width: 640px; margin: 0 auto; }
  .hud-bottom { padding-bottom: 20px; }
}

/* Телефон: над сценою лише найпотрібніше, щоб перехрестя не закривалося */
@media (max-width: 600px) {
  .hud-top { padding: 8px 10px; padding-top: max(8px, calc(env(safe-area-inset-top) + var(--pdr-tg-top, 0px))); gap: 6px; }
  .hud-top .brand { display: none; }
  .look-hint { display: none; }
  .home-btn, .help-btn { width: 34px; height: 34px; }
  .help-btn svg { width: 18px; height: 18px; }
  .seg button { padding: 5px 9px; font-size: 12px; }
  .nav { padding: 2px; }
  .icon { width: 32px; height: 32px; }
  .picker { font-size: 13px; gap: 5px; }
  .q-nav .chev { display: none; }
  .q-nav .icon { width: 28px; height: 28px; }
  .q-nav .picker { padding: 0 2px; }
  .hud-top .row { gap: 6px; }
  .hud-bottom { padding: 8px 10px 10px; gap: 6px; }
  .track-seg button { padding: 5px 10px; font-size: 12px; }
  .cta { position: static; }
}

/* Фон першого екрана головної (?embed=1&scene=1): лише сцена, без панелі з питанням */
body.embed.embed-scene .panel { display: none !important; }
body.embed.embed-scene .stage { height: 100% !important; }

/* Фон першого екрана з питанням поверх сцени (?embed=1&side=1) */
body.embed.embed-side .app { display: block; height: 100%; }
body.embed.embed-side .stage { position: relative !important; height: 100% !important; }
body.embed.embed-side .panel {
  position: absolute; z-index: 5; right: 18px; top: 50%; transform: translateY(-50%);
  width: min(430px, 44%); max-height: 86%; margin: 0; padding: 0; display: flex; background: none;
}
body.embed.embed-side .card {
  flex: 1 1 auto; overflow-y: auto; border-radius: 22px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .18);
}
body.embed.embed-side .panel h1 { font-size: 16px; line-height: 1.3; margin: 0 0 8px; }
body.embed.embed-side .panel .cta#nextQ { position: static; width: 100%; margin-top: 10px; }
/* телефон: сцена блоком 4:3, перемикач видів унизу сцени, під нею питання з варіантами відповіді */
@media (max-width: 860px) {
  body.embed.embed-side .app { display: flex; flex-direction: column; height: 100%; }
  body.embed.embed-side .stage { position: relative !important; height: auto !important; aspect-ratio: 4 / 3; flex: none; }
  body.embed.embed-side .hud-top { top: auto; bottom: 10px; padding: 0 10px; }
  body.embed.embed-side .hud-top .row { justify-content: center; }
  /* повітря під перемикачем видів, щоб він не закривав перехрестя (як відступ згори під меню) */
  body.embed.embed-side { --scene-bot: 40px; }
  /* картка з питанням — по висоті вмісту, без прокручування: висоту кадру підганяє сторінка */
  body.embed.embed-side .app { height: auto; min-height: 100%; }
  body.embed.embed-side .panel {
    position: static; transform: none; width: auto; max-height: none; flex: none;
    margin: 0; padding: 10px; overflow: visible;
  }
  body.embed.embed-side .card { height: auto; margin: 0; overflow: visible; border-radius: 18px; padding: 12px 14px; }
}

/* Прев'ю тренажера на головній (iframe із ?embed=1): сцена зверху, питання з варіантами відповіді знизу */
body.embed .hud-bottom, body.embed .home-row, body.embed .look-hint, body.embed .help-btn { display: none !important; }
body.embed .app { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
/* !important — бо для телефона висоту сцени скрипт задає інлайном (--stage-h) */
/* relative, а не static: полотно #scene позиціюється саме від .stage і має обрізатися по ній */
body.embed .stage { position: relative !important; top: auto !important; flex: none; height: 52% !important; min-height: 0 !important; }
body.embed .hud-top { padding: 8px 10px; }
body.embed .panel {
  position: static; flex: 1 1 auto; min-height: 0; margin: 0; padding: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch; background: transparent; z-index: auto;
  display: flex; flex-direction: column;
}
/* біла картка займає всю висоту під сценою, щоб знизу не світився сірий фон */
body.embed .card { flex: 1 1 auto; }
body.embed .card {
  border-radius: 18px 18px 0 0; min-height: 0;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 16px rgba(24, 34, 44, .12);
}
body.embed .card::before { display: none; }
body.embed .panel h1 { font-size: 15px; line-height: 1.3; margin: 2px 0 8px; }
body.embed .legend { font-size: 12px; margin-bottom: 8px; }
body.embed .options button { padding: 9px 11px; font-size: 13.5px; }
body.embed .explain { font-size: 13px; padding: 10px; }
body.embed .panel .cta#nextQ { position: static; width: 100%; margin-top: 10px; padding: 11px; font-size: 14px; }

/* Без підпису над сценою та орнаменту */
.caption, .ornament { display: none !important; }

/* Телефон і планшет: відповіді внизу екрана, анімація — на всю висоту, що лишилась */
@media (max-width: 959px) {
  /* без «потягніть, щоб оновити» та відскоку сторінки, коли тягнеш панель */
  html, body { overscroll-behavior-y: none; }
  /* сцена стоїть на весь екран, біла панель — «язик», що при прокручуванні наїжджає на неї знизу */
  .app { display: block; height: auto; min-height: 0; overflow: visible; }
  /* висота сцени фіксується скриптом (--stage-h) і не стрибає, коли браузер ховає адресний рядок */
  .stage { position: sticky; top: 0; z-index: 1; height: var(--stage-h, 100vh); min-height: 0; }
  .hud-bottom { bottom: var(--peek, 0px); }
  .panel { position: relative; z-index: 2; margin-top: calc(-1 * var(--peek, 45vh)); max-height: none; overflow: visible; }
  /* без запасу висоти: прокручувати можна лише тоді, коли під панеллю справді є вміст */
  .card {
    border-radius: 22px 22px 0 0; min-height: 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 28px rgba(24, 34, 44, .18);
  }
  body.answered .card { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  /* поки йде анімація після відповіді, кнопка не закриває варіанти */
  body.anim-wait .panel .cta#nextQ { opacity: 0; pointer-events: none; transform: translateY(20px); }
  .panel .cta#nextQ { transition: opacity .25s, transform .25s; }
  /* «Наступне питання» після відповіді — поверх усього, внизу екрана */
  .panel .cta#nextQ {
    position: fixed; z-index: 30; left: 16px; right: 16px; width: auto; margin: 0;
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
  .card::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: #d4d9df; margin: 0 auto 10px; }
  .panel h1 { margin: 0 0 8px; font-size: 17px; }
  .legend { margin-bottom: 10px; }
}

/* екран-заглушка для платних 3D-ситуацій */
body.lock-page { min-height: 100dvh; background: var(--bg, #efeeee); }
.lock-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.lock-card { background: #fff; border-radius: 2rem; max-width: 460px; }
.lock-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lock-card { text-align: center; padding: 28px 22px; display: grid; gap: 12px; justify-items: center; }
.lock-card h1 { font-size: 20px; line-height: 1.25; }
.lock-card p { color: var(--muted, #6b6a6a); font-size: 14px; line-height: 1.5; max-width: 32em; }
.lock-card .cta { position: static; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; margin: 0 4px; }
.lock-card .cta.ghost { background: var(--bg, #efeeee); color: var(--ink, #0a0a0a); }

/* банер після безкоштовних ситуацій */
.promo { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg, #efeeee); display: grid; gap: 6px; }
.promo b { font-size: 15px; }
.promo p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--muted, #6b6a6a); }
.promo-btn {
  justify-self: start; margin-top: 4px; padding: 10px 18px; border-radius: 999px;
  background: var(--ink, #0a0a0a); color: #fff; text-decoration: none; font-size: 14px; font-weight: 600;
}
@media (hover: hover) { .promo-btn:hover { background: #272727; } }

/* Таймер знижки під кнопкою оплати на екрані Premium */
.pay-promo {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #9a3412;
  background: rgba(245, 158, 11, .14);
  border: 1px solid rgba(245, 158, 11, .32);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
}
.pay-promo s { color: rgba(154, 52, 18, .6); }

/* Кнопка оплати на екрані блокування: той самий зелений, що й на інших сторінках */
.lock-card .btn-buy {
  background: linear-gradient(135deg, #16a34a, #08b529);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(8, 181, 41, .28);
}
@media (hover: hover) { .lock-card .btn-buy:hover { background: linear-gradient(135deg, #15803d, #0a9c26); } }
