/* Лендинг Checkup Family. Токени — ті самі, що в застосунку (src/theme/tokens.ts). */

@font-face { font-family: Literata; src: url(fonts/Literata_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url(fonts/Manrope_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --bg: #F3F5F4;
  --surface: #FFFFFF;
  --muted: #E6EBE9;
  --ink: #0E1715;
  --ink2: #4A5652;
  --ink3: #5F6B67;
  --line: #E3E8E6;
  --accent: #0B6E63;
  --accent-pressed: #08564D;
  --accent-soft: #DCEFEA;
  --on-accent: #FFFFFF;
  --normal: #2E9E5B;
  --normal-soft: #E1F3E7;
  --normal-text: #15803D;
  --low: #1D4ED8;
  --low-soft: #E0E9FD;
  --low-text: #1E3A8A;
  --high: #C2410C;
  --high-soft: #FDEBDD;
  --high-text: #7C2D12;
  --band: #B7DEC6;
  --phone: #0A1311;
  --emerald: radial-gradient(120% 140% at 12% 0%, #14A88F 0%, #0B7D6B 38%, #06574B 72%, #043F36 100%);
  --emerald-muted: #D4EFE8;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1210;
    --surface: #141D1A;
    --muted: #1D2825;
    --ink: #EEF3F1;
    --ink2: #B4C1BC;
    --ink3: #9AA8A3;
    --line: #26332F;
    --accent: #19A38D;
    --accent-pressed: #2BB8A1;
    --accent-soft: #12332D;
    --on-accent: #04130F;
    --normal: #4CC27B;
    --normal-soft: #143223;
    --normal-text: #8FE0AE;
    --low: #6A93F5;
    --low-soft: #18264A;
    --low-text: #B9CCFB;
    --high: #F08A4B;
    --high-soft: #3A2114;
    --high-text: #FBC6A3;
    --band: #2C5A41;
    --phone: #000;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Manrope, system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.i { flex: none; }
.num { font-variant-numeric: tabular-nums; }
.ac { color: var(--accent); }
.muted { color: var(--ink3); }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

h1, h2 { font-family: Literata, Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
/* Довгі слова перекладів («gezondheidsgegevens», «Laboratoriotulokset») переносимо, а не розпираємо сторінку. */
h1, h2, h3 { overflow-wrap: anywhere; }
h1 { font-size: clamp(42px, 6.4vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
h1 em { font-style: normal; color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px;
  border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: 15px; text-decoration: none; transition: background .15s;
}
.btn:hover { background: var(--accent-pressed); }
.btn.sm { min-height: 40px; padding: 0 18px; }

.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
}

.card { background: var(--surface); border-radius: 24px; }

/* Шапка */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 68px; }
/* Довгі переклади («Laboratorioarvot») не розпирають шапку: посилання стискається з «…». */
.nav-links { display: flex; align-items: center; gap: 2px; min-width: 0; margin-left: auto; }
.nav-r { display: flex; align-items: center; gap: 8px; flex: none; }
.nav .navlink[aria-current] { color: var(--ink); background: var(--muted); }
/* Липкий хедер не повинен закривати заголовок розділу, до якого перейшли за якорем. */
[id] { scroll-margin-top: 84px; }
.nav .navlink { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; white-space: nowrap; }
.brand img { border-radius: 9px; }
.lang { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink2); }
.lang:hover { background: var(--muted); color: var(--ink); }
/* Перемикач мов: <details> без JS; список — під кнопкою, прокручується, якщо не вміщується. */
.langs { position: relative; }
.langs summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink2); cursor: pointer; list-style: none; user-select: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: var(--muted); color: var(--ink); }
.langs summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none; min-width: 190px; max-height: min(70vh, 520px); overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 16px 40px -16px rgba(0,0,0,.28); }
.langs a { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.langs a:hover, .langs a:focus-visible { background: var(--muted); outline: none; }
.langs a[aria-current] { color: var(--accent); background: var(--accent-soft); }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { margin: 20px 0 20px; }
.lead { font-size: 19px; color: var(--ink2); max-width: 34em; }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 24px; color: var(--ink2); font-size: 15px; font-weight: 600; }
.perks li { display: inline-flex; align-items: center; gap: 6px; }
.perks .i { color: var(--normal); }

/* Значки магазинів */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.stores.center { justify-content: center; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  height: 56px; min-width: 176px; padding: 0 18px 0 14px; border-radius: 14px;
  background: #000; color: #fff; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18);
  transition: transform .15s;
}
a.store:hover { transform: translateY(-2px); }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: .02em; }
.store b { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.store.soon { opacity: .9; cursor: default; }
.store em {
  position: absolute; top: -16px; right: -8px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-style: normal; font-size: 11px; font-weight: 800;
  box-shadow: 0 0 0 2px var(--bg);
}

/* Телефон */
.hero-art { position: relative; display: flex; justify-content: center; padding: 10px 0 30px; }
.hero-art::before {
  content: ''; position: absolute; width: 520px; height: 520px; top: 50%; left: 50%; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent) 0%, transparent 65%);
}
.phone {
  position: relative; width: 320px; height: 660px; padding: 11px; border-radius: 52px; background: var(--phone);
  box-shadow: 0 0 0 2px #24332f, 0 40px 80px -20px rgba(6, 40, 34, .45);
}
.screen { position: relative; height: 100%; border-radius: 42px; overflow: hidden; background: var(--bg); padding: 0 14px; font-size: 13px; line-height: 1.35; }
.island { position: absolute; top: 20px; left: 50%; width: 96px; height: 28px; margin-left: -48px; border-radius: 16px; background: #000; }
.sbar { display: flex; justify-content: space-between; align-items: center; height: 50px; padding: 4px 18px 0; font-weight: 700; font-size: 14px; }
.sbar-r { display: flex; gap: 3px; align-items: flex-end; }
.sbar-r i { width: 4px; background: var(--ink); border-radius: 1px; }
.sbar-r i:nth-child(1) { height: 6px; } .sbar-r i:nth-child(2) { height: 9px; } .sbar-r i:nth-child(3) { height: 12px; }
.scr-head { display: flex; gap: 6px; align-items: flex-start; padding: 6px 2px 12px; }
.scr-head .i { margin-top: 3px; color: var(--accent); }
.scr-title { font-family: Literata, serif; font-weight: 600; font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.scr-sub { color: var(--ink3); font-size: 12px; margin-top: 2px; font-weight: 600; }

.mcard { background: var(--surface); border-radius: 20px; padding: 14px; }
.summary { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sum-big { font-size: 14px; font-weight: 600; color: var(--ink2); }
.sum-big b { font-family: Literata, serif; font-weight: 600; font-size: 22px; color: var(--ink); }
.sum-chips { display: flex; gap: 6px; margin-top: 6px; }

.chip { display: inline-flex; align-items: center; gap: 3px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.chip.n { background: var(--normal-soft); color: var(--normal-text); }
.chip.l { background: var(--low-soft); color: var(--low-text); }
.chip.h { background: var(--high-soft); color: var(--high-text); }
.chip.g { background: var(--muted); color: var(--ink2); }

.list { padding: 4px 14px; }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.mrow:first-child { border-top: 0; }
.mrow-main { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.mname { font-weight: 700; font-size: 14px; }
.mrow-val { text-align: right; color: var(--ink3); font-size: 11px; font-weight: 600; }
.mrow-val b { font-family: Literata, serif; font-weight: 600; font-size: 17px; color: var(--ink); margin-right: 3px; }
.refbar { grid-column: 1 / -1; position: relative; height: 6px; margin-top: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--low-soft) 0 25%, var(--band) 25% 75%, var(--high-soft) 75%); }
.refbar i { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; border: 2.5px solid var(--surface); }
.refbar i.n { background: var(--normal); } .refbar i.l { background: var(--low); } .refbar i.h { background: var(--high); }

.tabbar { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; justify-content: space-around; align-items: center; height: 60px; border-radius: 30px; background: var(--surface); color: var(--ink3); box-shadow: 0 8px 24px -10px rgba(0,0,0,.18); }
.tabbar .on { color: var(--accent); }
.tabbar .fab { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }

/* Смарагдові картки, як hero-картки в застосунку */
.hero-card { background: var(--emerald); color: #fff; border-radius: 24px; box-shadow: 0 24px 50px -20px rgba(4, 63, 54, .6); }
.dose { position: absolute; left: max(0px, calc(50% - 250px)); bottom: 60px; width: 220px; padding: 16px 18px 18px; }
.dose-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--emerald-muted); }
.dose-top span { display: inline-flex; align-items: center; gap: 5px; }
.dose-top b { font-family: Literata, serif; font-size: 22px; color: #fff; }
.dose-name { font-weight: 800; font-size: 16px; margin-top: 8px; }
.dose-who { font-size: 13px; color: var(--emerald-muted); font-weight: 600; }
.dose-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: #fff; color: #0B6E63; font-weight: 800; font-size: 13px; }

/* Секції */
.sec { padding: 56px 0; }
.sec-head { max-width: 760px; margin-bottom: 36px; }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--ink2); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { padding: 26px; }
.feat-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.feat p { margin-top: 8px; color: var(--ink2); font-size: 15.5px; }

.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.show.rev .show-copy { order: 2; }
.show-copy h2 { margin: 16px 0; }
.show-copy p { font-size: 18px; color: var(--ink2); max-width: 30em; }
.mock-stack { display: grid; gap: 14px; max-width: 440px; width: 100%; justify-self: center; }
.mock-stack .mcard { padding: 20px; border-radius: 24px; }

.trend-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.trend-val { color: var(--ink3); font-weight: 600; font-size: 14px; }
.trend-val b { font-family: Literata, serif; font-size: 32px; color: var(--ink); font-weight: 600; }
.seg { display: flex; padding: 3px; border-radius: 12px; background: var(--muted); font-size: 12px; font-weight: 700; color: var(--ink2); }
.seg span { padding: 5px 10px; border-radius: 9px; }
.seg .on { background: var(--surface); color: var(--ink); }
.chart { width: 100%; height: 150px; margin-top: 12px; overflow: visible; }
.chart .band { fill: var(--normal-soft); }
.chart .gl { stroke: var(--band); stroke-dasharray: 4 4; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.chart circle.last { fill: var(--accent); }
.cmp-title { font-weight: 800; font-size: 13px; color: var(--ink3); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cmp-row { display: grid; grid-template-columns: 1fr auto auto auto 84px; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.cmp-row:nth-child(2) { border-top: 0; }
.cmp-row b { font-family: Literata, serif; font-size: 17px; font-weight: 600; }
.cmp-row .chip { justify-self: end; }
.cmp-row .flip { transform: rotate(180deg); color: var(--ink3); }

.alarm { padding: 26px; text-align: center; }
.alarm-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.14); }
.alarm-time { font-family: Literata, serif; font-weight: 600; font-size: 64px; line-height: 1.1; margin-top: 8px; }
.alarm-who { margin-top: 6px; font-weight: 700; color: var(--emerald-muted); }
.alarm-med { font-weight: 800; font-size: 22px; }
.alarm-btns { display: grid; gap: 10px; margin-top: 22px; }
.ab { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: 16px; background: rgba(255,255,255,.14); font-weight: 800; }
.ab.primary { background: #fff; color: #0B6E63; }
.course-top { margin-bottom: 12px; }
.segs { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; }
.segs i { height: 10px; border-radius: 5px; background: var(--muted); }
.segs i.done { background: var(--accent); }
.course-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--ink3); font-weight: 600; }
.course-meta b { color: var(--ink); }

/* Приватність */
.priv { background: var(--emerald); color: #fff; border-radius: 32px; padding: 56px; }
.priv-head { max-width: 680px; }
.priv-badge { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: rgba(255,255,255,.14); margin-bottom: 22px; }
.priv-head p { margin-top: 14px; font-size: 18px; color: var(--emerald-muted); }
.priv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.priv-item { background: rgba(255,255,255,.09); border-radius: 20px; padding: 20px; }
.priv-ic { margin-bottom: 14px; color: #8EF0D2; }
.priv-item p { margin-top: 6px; font-size: 15px; color: var(--emerald-muted); }

/* Free / Pro */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan { padding: 28px; }
.plan h3 { display: flex; align-items: center; gap: 10px; font-size: 22px; margin-bottom: 16px; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--accent); }
.pro-badge { padding: 3px 10px; border-radius: 8px; background: var(--emerald); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); font-weight: 600; }
.ticks .i { margin-top: 3px; color: var(--accent); }
/* Часті питання на головній: <details> без JS. */
.faq { max-width: 860px; padding: 8px 32px; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; font-weight: 700; font-size: 18px; line-height: 1.4; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 8px; }
.faq-a { padding: 0 48px 20px 0; color: var(--ink2); }
.faq-a p + p { margin-top: 10px; }
.plans-note { margin-top: 18px; color: var(--ink3); font-size: 15px; }

/* CTA */
.cta { text-align: center; padding: 56px 20px; background: var(--surface); border-radius: 32px; }
.cta-icon { margin: 0 auto 20px; border-radius: 20px; box-shadow: 0 16px 36px -12px rgba(4, 63, 54, .5); }
.cta p { margin-top: 12px; font-size: 18px; color: var(--ink2); }
.disclaimer { max-width: 720px; margin: 28px auto 0; text-align: center; font-size: 14px; color: var(--ink3); }

/* Підвал */
.foot { margin-top: 24px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand p { color: var(--ink3); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 600; font-size: 15px; }
.foot nav a:hover { background: var(--muted); color: var(--ink); }

/* Юридичні сторінки */
.legal { padding: 32px 0 56px; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; color: var(--accent); font-weight: 700; text-decoration: none; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-top: 12px; }
.updated { margin-top: 10px; color: var(--ink3); font-weight: 600; font-size: 15px; }
.legal-card { margin-top: 28px; padding: 36px; }
.legal-card section { margin-top: 32px; }
.legal-card h2 { font-size: 24px; margin-bottom: 12px; }
.legal-card p, .legal-card li { color: var(--ink2); }
.legal-card :is(p, ul, ol, .plat-block) + :is(p, ul, ol, .plat-block) { margin-top: 12px; }
.legal-card ul, .legal-card ol { padding-left: 22px; display: grid; gap: 8px; }
.legal-card strong { color: var(--ink); }
.legal-card a { color: var(--accent); font-weight: 600; }
.intro p:first-child { font-size: 18px; }
.plat-block { padding: 14px 16px; border-radius: 16px; background: var(--bg); }
.plat { display: inline-block; margin-bottom: 6px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 800; }

[hidden] { display: none !important; }
.navlink { color: var(--ink); }
.sec-head .mt { margin-top: 16px; }

/* Популярні показники на головній */
.pill-links { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pill-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); text-decoration: none; font-weight: 700; font-size: 15px; transition: background .15s, color .15s; }
.pill-link:hover { background: var(--accent-soft); color: var(--accent); }

/* Довідник показників */
.bio { padding: 24px 0 56px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; font-weight: 600; color: var(--ink3); margin-bottom: 20px; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.bio h1 { font-size: clamp(36px, 5.4vw, 56px); }
.bio .sec-head { margin-bottom: 28px; }
.bio-sub { margin-top: 10px; font-size: 19px; color: var(--ink2); font-weight: 600; }
.aka { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--ink3); font-weight: 600; }
.aka b { padding: 4px 10px; border-radius: 8px; background: var(--muted); color: var(--ink2); font-weight: 700; }

.bio-search { position: relative; display: flex; align-items: center; max-width: 560px; margin-bottom: 12px; color: var(--ink3); }
.bio-search .i { position: absolute; left: 18px; pointer-events: none; }
.bio-search input { width: 100%; height: 54px; padding: 0 18px 0 50px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.bio-search input:focus { border-color: var(--accent); }
.bio-group { margin-top: 36px; }
.bio-group h2, .related h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 16px; }
.bio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.bio-item { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.bio-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 2px var(--accent-soft); }
.bio-item h3 { font-size: 17px; }
.bio-item p { color: var(--ink2); font-size: 14.5px; line-height: 1.5; }
.bio-norm { margin-top: auto; padding-top: 6px; color: var(--accent); font-size: 13.5px; font-weight: 700; }
.bio-empty { margin-top: 28px; color: var(--ink3); font-weight: 600; }
.standards { margin-top: 48px; padding: 28px; }
.standards h2 { font-size: 22px; margin-bottom: 10px; }
.standards p { color: var(--ink2); font-size: 15.5px; }

.range-card { margin-top: 28px; padding: 28px; }
.range-card h2, .bio-card h2 { font-size: 24px; }
.ranges { width: 100%; margin-top: 14px; border-collapse: collapse; }
.ranges th, .ranges td { padding: 12px 8px; text-align: left; border-top: 1px solid var(--line); }
.ranges thead th { border-top: 0; padding-top: 0; font-size: 14px; font-weight: 800; color: var(--ink3); }
.ranges tbody th { font-weight: 700; }
.ranges td { font-family: Literata, Georgia, serif; font-weight: 600; font-size: 19px; white-space: nowrap; }
.note { margin-top: 12px; color: var(--ink3); font-size: 14px; }

.bio-card { margin-top: 16px; padding: 36px; }
.bio-card section + section { margin-top: 32px; }
.bio-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bio-card p, .bio-card li { color: var(--ink2); }
.bio-card ul { margin-top: 10px; padding-left: 22px; display: grid; gap: 6px; }
.bio-card a { color: var(--accent); font-weight: 600; }
.hl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; }
.hl.h { background: var(--high-soft); color: var(--high); }
.hl.l { background: var(--low-soft); color: var(--low); }
.bio-card details { border-top: 1px solid var(--line); }
.bio-card details:last-child { border-bottom: 1px solid var(--line); }
.bio-card summary { cursor: pointer; padding: 14px 0; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bio-card summary::-webkit-details-marker { display: none; }
.bio-card summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 20px; line-height: 1; }
.bio-card details[open] summary::after { content: '−'; }
.bio-card details p { padding-bottom: 16px; }

.conv { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.conv label { display: flex; align-items: center; gap: 10px; flex: 1 1 200px; min-width: 0; padding: 0 16px; height: 56px; border-radius: 16px; background: var(--bg); font-weight: 700; color: var(--ink3); }
.conv label:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.conv input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 22px Literata, Georgia, serif; outline: none; }
.conv-eq { color: var(--accent); }

.related { margin-top: 40px; }
.related .back { margin-top: 12px; }
.bio-cta { display: flex; gap: 24px; align-items: flex-start; margin-top: 40px; padding: 32px; border-radius: 28px; background: var(--emerald); color: #fff; }
.bio-cta img { flex: none; border-radius: 16px; }
.bio-cta h2 { font-size: clamp(24px, 3vw, 30px); }
.bio-cta p { margin-top: 8px; color: var(--emerald-muted); }
.bio-cta .stores { margin-top: 20px; }
.bio-cta .store em { box-shadow: none; }

.nf + .nf { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.nf h2 { font-size: 26px; }
.nf p { margin-top: 8px; color: var(--ink2); }
.nf-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }

/* Якорі під липкою шапкою */
[id] { scroll-margin-top: 84px; }
.pill-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* «Перевірте весь бланк» на сторінці довідника */
.tool-card { display: flex; align-items: center; gap: 18px; margin-top: 20px; padding: 20px 22px; text-decoration: none; box-shadow: inset 0 0 0 2px var(--accent-soft); transition: box-shadow .15s; }
.tool-card:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.tool-card > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 0; }
.tool-card b { font-size: 17px; }
.tool-card > span:nth-child(2) span { color: var(--ink2); font-size: 14.5px; line-height: 1.5; }
.tool-ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }

/* Перевірка свого результату на сторінці показника */
.check { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.check h3 { font-size: 18px; margin-bottom: 12px; }
.check-in, .dec-in { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px; border-radius: 16px; background: var(--bg); }
.check-in:focus-within, .dec-in:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.check-in input, .dec-in input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 600 22px Literata, Georgia, serif; outline: none; }
.check-in input::placeholder { font: 600 17px Manrope, system-ui, sans-serif; color: var(--ink3); }
.check-in select, .dec-in select { flex: none; height: 40px; padding: 0 10px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: 700 15px Manrope, system-ui, sans-serif; cursor: pointer; }
.check-u, .dec-u { flex: none; padding-right: 8px; font-weight: 700; color: var(--ink3); }
.seg-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--ink3); }
.seg-pick button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--muted); color: var(--ink2); font: 700 14px Manrope, system-ui, sans-serif; cursor: pointer; }
.seg-pick button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.check-out { margin-top: 18px; }
.refbar.big { height: 10px; border-radius: 5px; margin-top: 0; }
.refbar.big i { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-width: 3px; transition: left .2s; }
.refbar.up { background: linear-gradient(90deg, var(--band) 0 75%, var(--high-soft) 75%); }
.refbar.from { background: linear-gradient(90deg, var(--low-soft) 0 25%, var(--band) 25%); }
.check-res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; font-weight: 600; color: var(--ink2); }
.check-res .chip { font-size: 13px; padding: 4px 12px; }
.check-out a { display: inline-block; margin-top: 8px; color: var(--accent); font-weight: 700; text-decoration: none; }
.check-all { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 700; text-decoration: none; }
.check-all:hover, .check-out a:hover { text-decoration: underline; }

/* Як пишуть у бланках */
.spell { display: grid; gap: 10px; margin-top: 14px; }
.spell div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: baseline; }
.spell dt { font-size: 14px; font-weight: 800; color: var(--ink3); }
.spell dd { display: flex; flex-wrap: wrap; gap: 6px; }
.spell b { padding: 3px 10px; border-radius: 8px; background: var(--muted); color: var(--ink2); font-size: 14.5px; font-weight: 700; }
.spell-h { margin-top: 20px; font-size: 16px; }

/* /check */
.safe-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 14px; border-radius: 999px; background: var(--normal-soft); color: var(--normal-text); font-size: 14px; font-weight: 700; }
.dec { margin-top: 28px; }
.dec-box { padding: 28px; }
.dec-box + .dec-box { margin-top: 16px; }
.dec-box h2, .dec-h { font-size: 24px; }
.dec-h { margin: 36px 0 14px; }
.dec-who { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; margin-top: 14px; }
.seg-radio { display: flex; gap: 6px; border: 0; }
.seg-radio legend { margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--ink3); }
.seg-radio label { position: relative; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--muted); color: var(--ink2); font-weight: 700; }
.seg-radio input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg-radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }
.dec-age { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--bg); font-weight: 700; color: var(--ink3); }
.dec-age:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.dec-age input { width: 56px; border: 0; background: transparent; color: var(--ink); font: 700 18px Manrope, system-ui, sans-serif; outline: none; text-align: center; }
#paste { width: 100%; margin-top: 12px; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--bg); color: var(--ink); font: 500 16px/1.5 Manrope, system-ui, sans-serif; resize: vertical; outline: none; }
#paste:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.dec-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dec-actions button { border: 0; cursor: pointer; font-family: inherit; }
.dec-actions .lang { background: transparent; }
.dec-group + .dec-group { margin-top: 10px; }
.dec-group summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; cursor: pointer; list-style: none; font-weight: 800; font-size: 17px; }
.dec-group summary::-webkit-details-marker { display: none; }
.dec-group summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.dec-group[open] summary::after { content: '−'; }
/* minmax(0, …) і width: 100% — інакше поле вводу розтягує колонку під свою природну ширину і сторінка їде вбік на телефоні. */
.dec-rows { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 0 24px 24px; }
.dec-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); align-items: center; gap: 4px 16px; min-width: 0; }
.dec-in, .check-in { min-width: 0; }
.dec-in input, .check-in input { width: 100%; }
.dec-row label { font-weight: 700; font-size: 15.5px; }
.dec-row .dec-in { height: 48px; }
.dec-row .dec-in input { font-size: 19px; }
.dec-row.filled .dec-in { box-shadow: inset 0 0 0 2px var(--accent-soft); }
.auto-note { grid-column: 1 / -1; justify-self: end; color: var(--ink3); font-size: 13px; }
.dec-results { margin-top: 40px; }
.dec-results h2 { font-size: clamp(24px, 3vw, 30px); margin: 28px 0 12px; }
.res-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.res-sum .chip { font-size: 13px; padding: 5px 12px; }
.res-list { padding: 8px 0; }
.res-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 2px 10px; padding: 12px 22px; text-decoration: none; }
.res-row + .res-row { border-top: 1px solid var(--line); }
a.res-row:hover { background: var(--bg); }
.res-name { font-weight: 700; }
.res-row b { font: 600 19px Literata, Georgia, serif; }
.res-u { color: var(--ink3); font-size: 14px; font-weight: 600; }
.res-ref { grid-column: 1 / -1; color: var(--ink3); font-size: 13.5px; }
.lead-s { color: var(--ink2); }
.idx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.idx { padding: 22px; }
.idx-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.idx h3 { font-size: 16.5px; }
.idx-val { margin: 8px 0 6px; color: var(--ink3); font-weight: 600; }
.idx-val b { font: 600 30px Literata, Georgia, serif; color: var(--ink); }
.idx p { color: var(--ink2); font-size: 14.5px; }
.idx .note { font-size: 13px; }
.idx-more { margin-top: 12px; padding: 22px; }
.idx-more ul { margin-top: 8px; padding-left: 20px; display: grid; gap: 4px; color: var(--ink2); font-size: 15px; }
.how { margin-top: 6px; padding-left: 20px; display: grid; gap: 8px; color: var(--ink2); font-size: 15.5px; }

/* Адаптив */
/* Вузько для одного рядка: розділи — другим рядком хедера, прокручуються вбік, якщо не вміщаються. */
@media (max-width: 1000px) {
  .nav-in { flex-wrap: wrap; height: auto; padding-top: 12px; row-gap: 0; }
  .nav-r { margin-left: auto; }
  .nav-links { order: 3; width: calc(100% + 40px); margin: 4px -20px 0; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav .navlink { flex: none; overflow: visible; }
  [id] { scroll-margin-top: 124px; }
}
@media (max-width: 640px) {
  .nav-links { padding: 0 10px 8px; }
  .nav .nav-links .navlink { padding: 0 10px; }
}
@media (max-width: 960px) {
  .hero-in, .show { grid-template-columns: 1fr; gap: 40px; }
  .show.rev .show-copy { order: 0; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .stores, .perks { justify-content: center; }
  .grid { grid-template-columns: 1fr 1fr; }
  .priv-grid { grid-template-columns: 1fr 1fr; }
  .show-copy { text-align: center; }
  .show-copy p { margin: 0 auto; }
  .bio-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: 32px; }
  .lead, .sec-head p, .show-copy p { font-size: 17px; }
  .grid, .plans, .priv-grid { grid-template-columns: 1fr; }
  .sec { padding: 40px 0; }
  .priv { padding: 32px 22px; border-radius: 28px; }
  .phone { width: 280px; height: 580px; border-radius: 46px; }
  .screen { border-radius: 36px; }
  .list .mrow:nth-child(n+5) { display: none; }
  .mname { font-size: 13px; }
  .mrow .chip { padding: 2px 6px; font-size: 10px; }
  .mrow-val b { font-size: 15px; }
  .hero-art { padding-bottom: 64px; }
  .dose { left: 0; bottom: 0; width: 196px; padding: 14px 16px 16px; }
  .hero-art::before { width: 360px; height: 360px; }
  .legal-card { padding: 24px 20px; }
  .cmp-row { grid-template-columns: 1fr auto auto auto 76px; gap: 6px; font-size: 14px; }
  .nav .btn { display: none; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .store { min-width: 160px; height: 52px; }
  .bio-cards { grid-template-columns: 1fr; }
  .bio-card, .range-card { padding: 24px 20px; }
  .ranges td { font-size: 17px; }
  .ranges th, .ranges td { padding: 10px 6px; }
  .bio-cta { flex-direction: column; padding: 26px 22px; }
  .tool-card { flex-wrap: wrap; }
  .spell div { grid-template-columns: 1fr; gap: 6px; }
  .dec-box { padding: 24px 20px; }
  .dec-rows { padding: 0 16px 20px; }
  .dec-group summary { padding: 16px 18px; }
  .faq { padding: 4px 20px; }
  .faq summary { font-size: 17px; min-height: 56px; }
  .faq-a { padding-right: 0; }
  .dec-row { grid-template-columns: minmax(0, 1fr); }
  .idx-grid { grid-template-columns: 1fr; }
  .res-row { padding: 12px 16px; }
  .nav .lang { padding: 0 10px; font-size: 14px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
}
@media (max-width: 400px) {
  .nav .navlink, .nav .lang { padding: 0 8px; font-size: 13px; }
  .nav .nav-links .navlink { padding: 0 8px; }
  .nav-links { padding: 0 12px 8px; }
  .langs summary { padding: 0 8px; gap: 4px; font-size: 13px; }
  .hero-copy h1 { font-size: 34px; }
  .brand { font-size: 16px; gap: 6px; }
  .brand img { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
