/*
  Сторінки тестів у тому ж стилі, що й тест Томаса-Кілманна, DISC і тест особистості:
  білий фон, шрифт Geologica, темно-графітові кнопки, варіанти з квадратною міткою.
  Підключається після site.css лише на сторінках тестів (body.tpage).
*/
@font-face { font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geologica-cyrillic-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/geologica-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

body.tpage {
  --paper: #FFFFFF;
  --white: #FFFFFF;
  --ink: #1A2130;
  --ink-2: #465062;
  --muted: #6B7484;
  --line: #D8DEE6;
  --line-2: #C9D0DA;
  --soft: #EEF1F4;
  --mist-2: #E2E7ED;
  --accent: #1A2130;
  --accent-dark: #2F64A8;
  --display: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geologica', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 350; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
html:has(body.tpage) { scrollbar-color: #A9B2BF #FFFFFF; }
.tpage ::-webkit-scrollbar-thumb { background: #A9B2BF; border-color: #FFFFFF; }
.tpage ::selection { background: #DDE7F4; color: var(--ink); }
.tpage :focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; border-radius: 6px; }
.tpage b, .tpage strong { font-weight: 600; }
.tpage h1, .tpage h2 { font-weight: 650; letter-spacing: -0.03em; }
.tpage h3 { font-weight: 600; letter-spacing: -0.015em; }

/* кнопки як у тестах з розсилкою */
.tpage .btn { min-height: 56px; padding: 0 30px; border: 0; border-radius: 14px; background: var(--ink); color: #FFFFFF; font-weight: 550; font-size: 17px; transition: background-color .15s, transform .1s; }
.tpage .btn:hover { background: #2C3548; color: #FFFFFF; transform: none; }
.tpage .btn:active { transform: translateY(1px); }
.tpage .btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.tpage .btn-ghost:hover { background: var(--soft); color: var(--ink); }
.tpage .btn-text, .tpage .q-home { color: var(--muted); font-weight: 400; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tpage .btn-text:hover, .tpage .q-home:hover { color: var(--ink); }

/* шапка біла, прилипає під час прокрутки */
.tpage .top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.tpage .top .wrap { min-height: 68px; }
.tpage .logo { font-weight: 650; font-size: 17px; }
.tpage .nav a { color: var(--ink-2); font-weight: 400; font-size: 15px; }
.tpage .nav a:hover { color: var(--ink); }

/* вступ */
.tpage .test { max-width: 720px; padding-top: clamp(28px, 5vw, 56px); }
.tpage .crumbs { font-size: 14px; margin-bottom: 22px; }
.tpage .intro-card { background: none; border: 0; border-radius: 0; padding: 0; }
.tpage .intro-card h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.04; }
.tpage .intro-about { font-size: 19px; line-height: 1.5; margin: 22px 0 26px; }
.tpage .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; }
.tpage .facts li { padding: 7px 14px; border-radius: 999px; background: var(--soft); font-size: 15px; font-weight: 450; color: var(--ink-2); }
.tpage .facts li::before { display: none; }
.tpage .intro-act .btn { min-width: 230px; }
.tpage .privacy { font-size: 15px; line-height: 1.45; margin-top: 18px; max-width: 34em; }
.tpage .method { font-size: 14px; border-top-color: var(--line); margin-top: 34px; padding-top: 20px; }
.tpage .care { border-radius: 18px; }

/* питання */
.tpage .q-top { margin-bottom: 14px; }
.tpage .q-count { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tpage .q-bar { height: 5px; background: var(--mist-2); border-radius: 3px; margin-bottom: 30px; }
.tpage .q-bar i { background: var(--ink); border-radius: 3px; }
.tpage .q-card { background: none; border: 0; border-radius: 0; padding: 0; }
.tpage .q-prompt { font-size: 16px; margin-bottom: 10px; }
.tpage .q-text { font-size: clamp(26px, 3.4vw, 36px); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 26px; }
.tpage .q-opts { gap: 12px; }
.tpage .opt {
  position: relative; min-height: 72px; padding: 16px 20px 16px 66px; gap: 0;
  background: #FFFFFF; border: 0; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 18px; font-weight: 400; line-height: 1.4; transition: box-shadow .12s, background-color .12s, color .12s;
}
.tpage .opt:hover { box-shadow: inset 0 0 0 1.5px #A9B2BF; border: 0; }
.tpage .opt-k { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 15px; font-weight: 600; }
.tpage .opt[aria-checked='true'] { background: var(--ink); color: #FFFFFF; box-shadow: none; font-weight: 400; }
.tpage .opt[aria-checked='true'] .opt-k { background: rgba(255, 255, 255, .16); color: #FFFFFF; }
/* шкала з цифр в один рядок */
.tpage .q-opts.is-compact { gap: 8px; }
.tpage .q-opts.is-compact .opt { padding: 0; min-height: 58px; justify-content: center; border-radius: 14px; font-weight: 600; font-size: 18px; }
.tpage .q-opts.is-compact .opt-k { display: none; }
.tpage .q-ends { font-size: 14px; margin-top: 12px; }
.tpage .q-opts.is-pair .opt { min-height: 120px; padding: 18px 20px 18px 66px; align-items: center; font-size: 17px; }
.tpage .q-opts.is-pair .opt .opt-k { top: 20px; transform: none; }
@media (max-width: 560px) {
  .tpage .opt { min-height: 64px; padding-left: 60px; font-size: 17px; }
  .tpage .opt-k { left: 14px; width: 30px; height: 30px; }
  .tpage .q-opts.is-compact .opt { min-height: 52px; font-size: 16px; }
  .tpage .q-opts.is-pair .opt { min-height: 84px; }
}
.tpage .chk { min-height: 60px; padding: 14px 18px; border: 0; border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); background: #FFFFFF; font-size: 17px; }
.tpage .chk:hover { box-shadow: inset 0 0 0 1.5px #A9B2BF; }
.tpage .chk[aria-pressed='true'] { box-shadow: inset 0 0 0 2px var(--ink); }
.tpage .chk-box { border-color: var(--line-2); border-radius: 8px; }
.tpage .q-nav { margin-top: 26px; }
.tpage .q-hint { font-size: 14px; }
/* розподіл балів (мотиваційний профіль) */
.pts-pool { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: -6px 0 22px; }
.pts-toks { display: flex; gap: 6px; }
.pts-toks i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .15s, box-shadow .15s; }
.pts-toks i.on { background: var(--ink); box-shadow: none; }
.pts-left { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pts { display: grid; gap: 12px; }
.pts-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; background: #FFFFFF; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .12s; }
.pts-row:hover { box-shadow: inset 0 0 0 1.5px #A9B2BF; }
.pts-row.has { box-shadow: inset 0 0 0 2px var(--ink); }
.tpage .pts-main { min-height: 76px; flex-direction: column; align-items: flex-start; justify-content: center; background: none; box-shadow: none; border-radius: 18px; }
.tpage .pts-main:hover { box-shadow: none; }
.tpage .pts-row.has .opt-k { background: var(--ink); color: #FFFFFF; }
.pts-dots { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pts-dots:empty { display: none; }
.pts-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.pts-step { display: flex; align-items: center; gap: 4px; padding: 0 14px 0 6px; }
.pts-btn { width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font: 500 22px/1 var(--font); cursor: pointer; transition: background-color .12s; }
.pts-btn:hover:not(:disabled) { background: #DDE2E8; }
.pts-btn:disabled { opacity: .35; cursor: default; }
.pts-val { min-width: 30px; text-align: center; font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tpage .pts-hint { color: var(--ink); font-weight: 500; }
.tpage .btn[aria-disabled='true'] { opacity: .4; }
@media (max-width: 560px) {
  .pts-row { grid-template-columns: minmax(0, 1fr); }
  .tpage .pts-main { min-height: 60px; padding-bottom: 6px; }
  .pts-step { justify-content: flex-end; padding: 0 12px 12px; }
  .pts-btn { width: 40px; height: 40px; }
}

/* «Назад» під питанням, такою ж кнопкою, як була «На головну» */
.q-foot { margin-top: 26px; }
.q-foot .q-back { min-width: 160px; }

/* результат */
.tpage .r-card { background: none; border: 0; border-radius: 0; padding: 0; }
.tpage .r-card > * + * { margin-top: 0; }
.tpage .r-head { padding-bottom: 36px; }
.tpage .r-title { font-size: clamp(36px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.tpage .r-lead { font-size: 19px; line-height: 1.5; margin-top: 16px; }
.tpage .r-card > .meter, .tpage .r-card > .bars, .tpage .r-card > .quad, .tpage .r-card > .r-sec, .tpage .r-card > .alert, .tpage .r-card > .r-actions { border-top: 1px solid var(--line); padding: 32px 0; }
.tpage .r-card > .r-note { padding: 0 0 28px; font-size: 14px; }
.tpage .m-score b { font-weight: 650; letter-spacing: -0.03em; }
.tpage .m-score span, .tpage .b-val { font-size: 14px; color: var(--muted); }
.tpage .b-val { color: var(--ink); font-weight: 600; }
.tpage .bars-title, .tpage .r-sec h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.tpage .b-track { height: 12px; background: var(--soft); border-radius: 7px; }
.tpage .b-track i { background: #8A93A3; border-radius: 7px; }
.tpage .bar-row.is-lead .b-track i { background: var(--ink); }
.tpage .r-sec p, .tpage .r-sec li { color: var(--ink-2); }
.tpage .alert-box { border-radius: 18px; }
.tpage .r-actions { border-top: 1px solid var(--line); }
.tpage .share { min-height: 44px; border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 12px; font-size: 15px; font-weight: 450; }
.tpage .share:hover { box-shadow: inset 0 0 0 1.5px #A9B2BF; background: var(--soft); }
.tpage .share.is-native { background: var(--ink); color: #FFFFFF; box-shadow: none; }

/* інші тести: рамка на всю ширину */
.tpage .more { padding-top: clamp(48px, 7vw, 88px); }
.tpage .more-head { width: auto; }
.tpage .frame { border: 1.5px solid var(--ink); border-radius: 20px; background: #FFFFFF; }
.tpage .bar { background: var(--ink); }
.tpage .more h2 { font-size: clamp(28px, 3.4vw, 40px); }
.tpage .tile-a { background: #FFFFFF; border: 0; border-radius: 20px; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s, color .2s, box-shadow .2s; }
.tpage a.tile-a:hover { background: var(--ink); color: #FFFFFF; box-shadow: none; transform: none; }
.tpage a.tile-a:hover .tile-cat, .tpage a.tile-a:hover .tile-m { color: #B9C1CE; }
.tpage a.tile-a:hover .tile-d, .tpage a.tile-a:hover .tile-m b { color: #FFFFFF; }
.tpage .tile-t { font-weight: 600; letter-spacing: -0.02em; }
body.tpage.is-quiz .more { display: none; }

/* «Хочете такий тест» завжди в самому низу сторінки */
.dev-cta { max-width: var(--wrap); margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(18px, 4vw, 40px) clamp(48px, 6vw, 80px); }
.dev-cta-in { background: var(--ink); color: #FFFFFF; border-radius: 24px; padding: clamp(28px, 5vw, 56px); }
.dev-cta h2 { color: #FFFFFF; font-size: clamp(28px, 3.6vw, 44px); max-width: 16em; }
.dev-cta p { color: #C9D0DA; font-size: 18px; max-width: 36em; margin: 18px 0 28px; }
.dev-cta .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.tpage .dev-cta .btn { background: #FFFFFF; color: var(--ink); }
.tpage .dev-cta .btn:hover { background: var(--soft); color: var(--ink); }
.dev-cta .btn-link { color: #FFFFFF; font-weight: 450; text-underline-offset: 4px; }
.dev-cta .btn-link:hover { color: #C9D0DA; }

/* підвал */
.tpage .foot { border-top: 1px solid var(--line); background: #FFFFFF; font-size: 14px; }
