/* ===========================================================
   PROTOTYP — kierunek „Przewodnik rodzica"
   Ciepły papier + terakota, Space Grotesk w nagłówkach,
   duże promienie, miękkie cienie. Mobile-first, tylko min-width.
   =========================================================== */

:root {
  --bg: #FDF6EF;
  --bg-alt: #F7EBDD;
  --surface: #FFFFFF;
  --surface-2: #FDF3E9;
  --accent: #B4471F;
  --accent-dark: #8E3616;
  --accent-soft: #FBE9E0;
  --on-accent: #FFFFFF;
  --gold: #C98A2E;
  --gold-soft: #FDF0D9;
  --gold-ink: #6E4C0E;
  --text: #241C16;
  --text-2: #5C5048;
  --text-3: #6E6158;
  --border: #EADCCD;
  --border-strong: #D6C1A9;
  --good: #2C6142;
  --good-soft: #E7F1EA;
  --warn-ink: #8A3B12;
  --track: #EFE3D4;
  --sh-sm: 0 2px 6px rgba(80, 50, 30, .05);
  --sh-md: 0 10px 30px rgba(80, 50, 30, .08);
  --sh-lg: 0 18px 44px rgba(80, 50, 30, .10);
  --r-pill: 999px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --container: 1080px;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; font-weight: 400; line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display); color: var(--text);
  line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em;
}
h1 { font-size: clamp(1.75rem, 5.6vw, 2.85rem); }
h2 { font-size: clamp(1.35rem, 4.2vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.35rem); }
h4 { font-size: 1.02rem; }

p { margin: 0 0 1em; }
a { color: var(--accent-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
strong, b { font-weight: 600; }
small { font-size: 13px; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 18px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--on-accent); padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */

.site-head { position: sticky; top: 0; z-index: 60; background: rgba(253, 246, 239, .97); border-bottom: 1px solid var(--border); }
.nav { display: flex; align-items: center; gap: 10px; min-height: 64px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: 1 1 auto; min-width: 0; }
/* the SVG carries its own rounded corners — no CSS radius, or they get clipped twice */
.logo-mark { flex: 0 0 auto; }
.logo b { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; line-height: 1.2; min-width: 0; }
.logo b span { font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--text-3); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Language dropdown — disclosure pattern, works for 4+ languages.
   Always reachable on mobile without opening the burger menu. */
.lang-dd { position: relative; flex: 0 0 auto; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  color: var(--text); font-family: var(--font-body); font-size: 13.5px; font-weight: 600;
  cursor: pointer;
}
.lang-toggle:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.lang-toggle .globe { flex: 0 0 auto; color: var(--accent); }
.lang-toggle .code { letter-spacing: .03em; }
.lang-toggle .chev { flex: 0 0 auto; transition: transform .18s ease; }
.lang-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .lang-toggle .chev { transition: none; } }

.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  min-width: 208px; margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
}
.lang-menu[hidden] { display: none; }
.lang-menu li + li { margin-top: 2px; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: none;
}
.lang-menu a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.lang-menu a .code { font-size: 13px; font-weight: 600; color: var(--text-3); letter-spacing: .05em; }
.lang-menu a:hover .code { color: var(--accent-dark); }
.lang-menu a[aria-current="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.lang-menu a[aria-current="true"] .code { color: #FDEEE8; }

.nav-burger {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: 0 0 auto;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  color: var(--text); cursor: pointer;
}
/* Menu mobilne: panel wysuwany pod naglowkiem, a nie kolumna wcisnieta
   w rzad naglowka. Kotwiczy sie do .site-head, ktory jest sticky. */
.nav-menu {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0; z-index: 70;
  flex-direction: column; align-items: stretch;
  margin: 0; padding: 8px 18px 14px; list-style: none;
  background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-lg);
}
.nav-menu.is-open { display: flex; }



.nav-menu a {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 6px 10px; border-radius: var(--r-sm);
  font-size: 15.5px; font-weight: 500; color: var(--text-2); text-decoration: none;
}
.nav-menu li + li { border-top: 1px solid var(--border); }
.nav-menu a:hover { color: var(--accent-dark); }

@media (min-width: 900px) {
  .nav-burger { display: none; }
  /* Na desktopie kolejnosc: logo — menu — przelacznik jezyka po prawej.
     W ukladzie mobilnym przelacznik zostaje przy logo, zeby byl dostepny
     bez otwierania hamburgera. */
  .logo { order: 1; }
  .nav-menu { order: 2; }
  .lang-dd { order: 3; margin-left: 14px; }
  .nav-menu {
    display: flex !important; position: static; flex-direction: row; align-items: center;
    gap: 4px; border: 0; padding: 0; margin-left: auto; box-shadow: none; background: none;
  }
  .nav-menu li + li { border-top: 0; }
  .nav-menu a { min-height: 44px; padding: 8px 12px; font-size: 14.5px; border-radius: var(--r-pill); }
  .nav-menu a:hover { background: var(--accent-soft); }
  .logo { flex: 0 0 auto; }
  .logo b { font-size: 16.5px; }
}

/* Menu poziome wlacza sie od 900 px — czyli okno 919 px z paskiem przewijania
   (widok ~904 px) juz nie pokazuje hamburgera. Przy tej szerokosci pelne
   odstepy sie nie mieszcza, wiec do 1023 px menu jest zwezone. */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav { gap: 6px; }
  .nav-menu { gap: 0; }
  .nav-menu a { padding: 8px 6px; font-size: 14px; }
  .logo b { font-size: 15.5px; }
}


/* ---------- Hero ---------- */

.hero { padding: 30px 0 10px; }
.kicker {
  display: inline-block; margin: 0 0 14px; padding: 5px 14px;
  font-size: 13px; font-weight: 600; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: var(--r-pill);
}
.hero-lead { font-size: 17.5px; color: var(--text-2); }
.byline { font-size: 14px; color: var(--text-3); margin-bottom: 22px; }
.byline a { color: var(--text-2); }

.leader { margin: 0 0 20px; }
.leader-label {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px;
  margin: 0 0 10px; font-size: 13.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-3);
}
.leader-label a { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-transform: none; color: var(--accent-dark); }

.top3 { display: grid; grid-template-columns: 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 620px) { .top3 { grid-template-columns: repeat(3, 1fr); } }
.top3 li {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--sh-sm);
}
@media (min-width: 620px) { .top3 li { flex-direction: column; text-align: center; gap: 9px; padding: 18px 14px; } }
.mono {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 19px; font-weight: 700;
}
.mono svg { width: 23px; height: 23px; }
.top3 div b { display: block; font-family: var(--font-display); font-size: 15px; line-height: 1.25; margin-bottom: 2px; }
.top3 div span { display: block; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }

.facts-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--border); }
.facts-strip li { font-size: 14px; color: var(--text-2); }
.facts-strip strong { font-family: var(--font-display); font-size: 17px; color: var(--accent-dark); margin-right: 5px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 12px 22px;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; border-radius: var(--r-pill); cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-sm); }
.btn-primary:hover { background: var(--accent-dark); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--accent-dark); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-dark); }
.btn-block { width: 100%; }
@media (min-width: 600px) { .btn-block { width: auto; } }

/* ---------- Sections ---------- */

.section { padding: 34px 0; }
.section + .section { border-top: 1px solid var(--border); }
.section-lead { font-size: 16.5px; color: var(--text-2); }
.section-note { font-size: 14px; color: var(--text-3); }

/* ---------- Clinic cards ---------- */

.clinics { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }

.clinic-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 20px 18px;
}
.clinic-card.is-first { border-color: var(--gold); box-shadow: var(--sh-lg); }

.card-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.badge {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 23px; font-weight: 700;
}
.is-first .badge { background: var(--gold); color: #2B1D05; }
.card-name { margin: 0 0 2px; font-size: clamp(1.15rem, 4vw, 1.42rem); }
.card-name a { color: var(--text); text-decoration: none; }
.card-name a:hover { color: var(--accent-dark); text-decoration: underline; }
.card-loc { margin: 0; font-size: 13.5px; color: var(--text-3); }

.pills { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; }
.pill { font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: var(--r-pill); color: var(--accent-dark); background: var(--accent-soft); }
.pill-gold { color: var(--gold-ink); background: var(--gold-soft); }
.pill-flag { color: var(--warn-ink); background: #FBEDE3; }

.bluf { font-size: 16px; margin: 0 0 16px; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0 0 16px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; gap: 20px; } }
.col-head { display: flex; align-items: center; gap: 7px; margin: 0 0 8px; font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.col-pro .col-head { color: var(--good); }
.col-att .col-head { color: var(--warn-ink); }
.two-col ul { margin: 0; padding-left: 20px; font-size: 14.5px; color: var(--text-2); }
.two-col li { margin-bottom: 6px; }
.two-col li::marker { color: var(--border-strong); }

.card-facts { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); border-radius: var(--r-md); overflow: hidden; margin: 0 0 16px; }
@media (min-width: 620px) { .card-facts { grid-template-columns: 1fr 1fr; } }
.card-facts div { background: var(--surface-2); padding: 10px 14px; display: flex; justify-content: space-between; gap: 12px; }
.card-facts dt { font-size: 13.5px; color: var(--text-2); margin: 0; }
.card-facts dd { font-size: 14px; font-weight: 600; margin: 0; text-align: right; }
.nodata { font-weight: 500; color: var(--text-3); font-style: italic; }

.card-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.card-cta .btn { flex: 1 1 100%; }
@media (min-width: 600px) { .card-cta .btn { flex: 0 0 auto; } }

/* ---------- Comparison: row-cards on mobile, table-like grid on desktop ---------- */

.cmp { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cmp-head { display: none; }

.cmp-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 16px; box-shadow: var(--sh-sm);
}
.cmp-row h3 { font-size: 1.05rem; margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.rank-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 9px; flex: 0 0 auto;
  background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700;
}
.cmp-cell { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-top: 1px dashed var(--border); font-size: 14px; }
.cmp-cell .k { color: var(--text-2); }
.cmp-cell .v { font-weight: 600; text-align: right; }

@media (min-width: 940px) {
  .cmp { gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
  .cmp-head, .cmp-row {
    display: grid; grid-template-columns: 1.5fr .9fr 1fr 1.7fr 1.4fr;
    gap: 14px; align-items: start;
    background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 12px 16px;
  }
  .cmp-head { background: var(--bg-alt); font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
  .cmp-row { border-top: 1px solid var(--border); }
  .cmp-row h3 { margin: 0; font-size: .98rem; }
  .cmp-cell { display: block; padding: 0; border: 0; font-size: 14px; }
  .cmp-cell .k { display: none; }
  .cmp-cell .v { display: block; text-align: left; font-weight: 500; }
}

/* ---------- Criteria table ---------- */

.crit-table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-sm); }
.crit-table th, .crit-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.crit-table thead th { background: var(--bg-alt); font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; }
.crit-table tbody th { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.crit-table tbody tr:last-child th, .crit-table tbody tr:last-child td { border-bottom: 0; }
.weight { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gold-ink); background: var(--gold-soft); border-radius: var(--r-pill); padding: 2px 11px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--surface); }
.data-table th, .data-table td {
  padding: 10px 10px; text-align: left; border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.data-table thead th { background: var(--bg-alt); font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--text-2); }
.data-table tbody th { font-family: var(--font-body); font-weight: 600; }
.data-table .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Steps / flags / checklist ---------- */

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li { counter-increment: s; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 16px 15px 58px; box-shadow: var(--sh-sm); }
.steps li::before {
  content: counter(s); position: absolute; left: 15px; top: 15px;
  display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 11px;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 1rem; }
.steps p { margin: 0; font-size: 14.5px; color: var(--text-2); }

.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .flags { grid-template-columns: 1fr 1fr; } }
.flag { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 16px; box-shadow: var(--sh-sm); }
.flag-icon { flex: 0 0 auto; color: var(--warn-ink); margin-top: 3px; }
.flag h3 { margin: 0 0 4px; font-size: 1rem; }
.flag p { margin: 0; font-size: 14.5px; color: var(--text-2); }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
@media (min-width: 760px) { .checklist { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 11px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; font-size: 14.5px; }
.check { flex: 0 0 auto; color: var(--good); margin-top: 3px; }

/* ---------- Author / add / changelog ---------- */

.author-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 22px 18px; }
.author-box h3 { margin-top: 20px; }
.author-links { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 14.5px; }
.author-links a { display: inline-flex; align-items: center; min-height: 44px; }

.add-box { background: var(--accent-soft); border-radius: var(--r-lg); padding: 22px 18px; }
.add-box h2 { margin-top: 0; }
.add-box p { color: var(--text-2); }

.changelog { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.changelog li { font-size: 14.5px; color: var(--text-2); padding-left: 16px; border-left: 3px solid var(--border-strong); }
.changelog time { font-weight: 600; color: var(--text); }

/* ---------- FAQ (native details, numbered) ---------- */

.faq-list { display: grid; gap: 10px; counter-reset: q; }
.faq-list details { counter-increment: q; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); box-shadow: var(--sh-sm); }
.faq-list summary {
  display: flex; align-items: flex-start; gap: 12px; min-height: 46px;
  padding: 14px 16px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 700;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: counter(q, decimal-leading-zero); flex: 0 0 auto;
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--accent);
  background: var(--accent-soft); border-radius: var(--r-pill); padding: 2px 9px; margin-top: 2px;
}
.faq-list details[open] summary { border-bottom: 1px solid var(--border); }
.faq-body { padding: 14px 16px 4px 16px; font-size: 15px; color: var(--text-2); }
.faq-body p:last-child { margin-bottom: 14px; }

/* ---------- Sticky CTA ---------- */

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; display: none;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 22px rgba(80, 50, 30, .10);
}
.sticky-cta.is-visible { display: block; }
@media (min-width: 900px) { .sticky-cta, .sticky-cta.is-visible { display: none; } }

/* ---------- Footer: 2 columns + disclosure ---------- */

.site-foot { background: var(--bg-alt); border-top: 1px solid var(--border); margin-top: 40px; padding: 30px 0 26px; }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.15fr 1fr; } }
.foot-col h2 { font-family: var(--font-body); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); margin-bottom: 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; color: var(--text-2); text-decoration: none; }
.foot-col a:hover { color: var(--accent-dark); text-decoration: underline; }
.foot-lang {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 28px 0 0; padding-top: 24px; border-top: 1px solid var(--border-strong);
}
.foot-lang a, .foot-lang span { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; padding: 7px 16px; border-radius: var(--r-pill); text-decoration: none; }
.foot-lang span { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.foot-lang a { background: var(--surface); border: 1px solid var(--border); color: var(--text-2); }
.disclosure { margin: 24px 0 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); font-size: 14px; color: var(--text-2); }
.disclosure strong { color: var(--text); }
.foot-note { font-size: 13.5px; color: var(--text-3); margin: 16px 0 0; }

/* ===========================================================
   ETAP 1 + 2 — nowe bloki
   =========================================================== */

/* ---------- 1.1 pytania-kotwice ---------- */

.jump { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }
@media (min-width: 620px) { .jump { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .jump { grid-template-columns: repeat(4, 1fr); } }
.jump a {
  display: flex; align-items: center; gap: 10px; min-height: 58px; height: 100%;
  padding: 12px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--sh-sm);
  font-size: 14.5px; font-weight: 500; color: var(--text); text-decoration: none;
}
.jump a:hover { border-color: var(--accent); color: var(--accent-dark); }
.jump a::after { content: "\2192"; margin-left: auto; color: var(--accent); font-size: 17px; }

/* ---------- 1.6 podnawigacja + przycisk do góry ---------- */

.subnav {
  position: sticky; top: 64px; z-index: 55;
  display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -18px 4px; padding: 10px 18px;
  background: rgba(253, 246, 239, .97); border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px;
  padding: 6px 15px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13.5px; font-weight: 500; color: var(--text-2); text-decoration: none; white-space: nowrap;
}
.subnav a:hover { border-color: var(--accent); color: var(--accent-dark); }
@media (min-width: 900px) { .subnav { display: none; } }

.to-top {
  position: fixed; right: 16px; bottom: 84px; z-index: 52;
  display: none; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--accent-dark);
  box-shadow: var(--sh-md); cursor: pointer;
}
.to-top.is-visible { display: flex; }
@media (min-width: 900px) { .to-top { bottom: 24px; right: 24px; } }

/* ---------- 1.2 dla kogo ---------- */

.for-whom {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px;
  background: var(--gold-soft); border-radius: var(--r-md);
  font-size: 14.5px; color: var(--gold-ink);
}
.for-whom svg { flex: 0 0 auto; margin-top: 3px; }
.for-whom b { color: var(--text); }

/* ---------- 1.3 sedacja vs narkoza ---------- */

.versus { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 880px) { .versus { grid-template-columns: 1fr auto 1fr; align-items: stretch; } }
.vs-side {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 20px 18px;
}
.vs-side h3 { margin: 0 0 4px; font-size: 1.2rem; }
.vs-sub { margin: 0 0 14px; font-size: 13.5px; color: var(--text-3); }
.vs-icon {
  width: 46px; height: 46px; border-radius: 15px; margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark);
}
.vs-side.is-deep .vs-icon { background: var(--gold-soft); color: var(--gold-ink); }
.vs-rows { margin: 0; }
.vs-rows > div { padding: 9px 0; border-top: 1px dashed var(--border); }
.vs-rows > div:first-child { border-top: 0; padding-top: 0; }
.vs-rows dt { margin: 0 0 2px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.vs-rows dd { margin: 0; font-size: 14.5px; color: var(--text-2); }
.vs-rows dd strong { color: var(--text); }
.vs-mid { display: flex; align-items: center; justify-content: center; }
.vs-mid span {
  display: flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border-radius: 50%; background: var(--bg-alt); border: 1px solid var(--border-strong);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-2);
}
.vs-note {
  margin: 16px 0 0; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warn-ink);
  border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 14.5px; color: var(--text-2);
}
.vs-note strong { color: var(--text); }

/* ---------- 1.4 ścieżka dziecka ---------- */

.path { list-style: none; counter-reset: pathstep; margin: 0; padding: 0; }
.path li { position: relative; padding: 0 0 22px 48px; }
.path li:last-child { padding-bottom: 0; }
.path li::before {
  content: counter(pathstep); counter-increment: pathstep;
  position: absolute; left: 0; top: 0;
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 11px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.path li::after {
  content: ""; position: absolute; left: 15px; top: 38px; bottom: 4px; width: 2px; background: var(--border-strong);
}
.path li:last-child::after { display: none; }
.path h3 { margin: 3px 0 4px; font-size: 1.05rem; }
.path p { margin: 0 0 7px; font-size: 14.5px; color: var(--text-2); }
.path-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.path-meta span {
  font-size: 13px; padding: 3px 11px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
}
.path-total { margin: 18px 0 0; padding: 14px 16px; background: var(--accent-soft); border-radius: var(--r-md); font-size: 14.5px; }

/* ---------- 1.5 pytania do kliniki ---------- */

.ask { list-style: none; counter-reset: q2; margin: 0; padding: 0; display: grid; gap: 9px; }
@media (min-width: 820px) { .ask { grid-template-columns: 1fr 1fr; } }
.ask li {
  counter-increment: q2; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 13px 15px 13px 54px; box-shadow: var(--sh-sm); font-size: 14.5px;
}
.ask li::before {
  content: counter(q2, decimal-leading-zero); position: absolute; left: 14px; top: 13px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft); border-radius: var(--r-pill); padding: 2px 8px;
}

/* ---------- 2.1 filtr sytuacji ---------- */

.f-radio { position: absolute; width: 1px; height: 1px; opacity: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.filter-bar label {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer;
}
.filter-bar label:hover { border-color: var(--accent); color: var(--accent-dark); }
#f-all:checked  ~ .filter-bar label[for="f-all"],
#f-prof:checked ~ .filter-bar label[for="f-prof"],
#f-lek:checked  ~ .filter-bar label[for="f-lek"],
#f-nar:checked  ~ .filter-bar label[for="f-nar"],
#f-nfz:checked  ~ .filter-bar label[for="f-nfz"],
#f-ru:checked   ~ .filter-bar label[for="f-ru"] {
  background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600;
}
#f-all:focus-visible  ~ .filter-bar label[for="f-all"],
#f-prof:focus-visible ~ .filter-bar label[for="f-prof"],
#f-lek:focus-visible  ~ .filter-bar label[for="f-lek"],
#f-nar:focus-visible  ~ .filter-bar label[for="f-nar"],
#f-nfz:focus-visible  ~ .filter-bar label[for="f-nfz"],
#f-ru:focus-visible   ~ .filter-bar label[for="f-ru"] { outline: 3px solid var(--accent); outline-offset: 2px; }
.filter-note { font-size: 14px; color: var(--text-2); margin: 0 0 16px; min-height: 22px; }
.filter-note span { display: none; }
#f-all:checked  ~ .filter-note span[data-n="all"],
#f-prof:checked ~ .filter-note span[data-n="prof"],
#f-lek:checked  ~ .filter-note span[data-n="lek"],
#f-nar:checked  ~ .filter-note span[data-n="nar"],
#f-nfz:checked  ~ .filter-note span[data-n="nfz"],
#f-ru:checked   ~ .filter-note span[data-n="ru"] { display: inline; }

/* karty poza filtrem zostają w DOM — tylko wygaszone, nigdy ukryte */
#kliniki:has(#f-prof:checked) .clinic-card:not([data-prof]),
#kliniki:has(#f-lek:checked)  .clinic-card:not([data-lek]),
#kliniki:has(#f-nar:checked)  .clinic-card:not([data-nar]),
#kliniki:has(#f-nfz:checked)  .clinic-card:not([data-nfz]),
#kliniki:has(#f-ru:checked)   .clinic-card:not([data-ru]) { opacity: .45; filter: grayscale(.4); }

#kliniki:has(#f-prof:checked) .clinic-card:not([data-prof]) .off-tag,
#kliniki:has(#f-lek:checked)  .clinic-card:not([data-lek]) .off-tag,
#kliniki:has(#f-nar:checked)  .clinic-card:not([data-nar]) .off-tag,
#kliniki:has(#f-nfz:checked)  .clinic-card:not([data-nfz]) .off-tag,
#kliniki:has(#f-ru:checked)   .clinic-card:not([data-ru]) .off-tag { display: inline-flex; }
.off-tag {
  display: none; align-items: center; margin-left: auto; align-self: center;
  font-size: 13px; font-weight: 600; color: var(--warn-ink);
  background: #FBEDE3; border-radius: var(--r-pill); padding: 5px 12px; white-space: nowrap;
}

/* ---------- 2.3 zwijane szczegóły karty ---------- */

.card-more { margin: 0 0 16px; border-top: 1px dashed var(--border); }
.card-more > summary {
  display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 12px 0 0;
  cursor: pointer; list-style: none;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--accent-dark);
}
.card-more > summary::-webkit-details-marker { display: none; }
.card-more > summary::after { content: "\002B"; font-size: 19px; line-height: 1; color: var(--accent); }
.card-more[open] > summary::after { content: "\2212"; }
.card-more[open] > summary { margin-bottom: 14px; }

/* ---------- 2.2 checklista z licznikiem ---------- */

.check-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 14px; }
.check-count {
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--accent-dark);
  background: var(--accent-soft); border-radius: var(--r-pill); padding: 6px 15px;
}
.check-reset {
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border-strong);
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500; color: var(--text-2); cursor: pointer;
}
.check-reset:hover { border-color: var(--accent); color: var(--accent-dark); }
.checklist li { padding: 0; border: 0; background: none; }
.checklist label {
  display: flex; gap: 11px; align-items: flex-start; width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 14.5px; cursor: pointer;
}
.checklist label:hover { border-color: var(--border-strong); }
.checklist input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }
.checklist input:checked ~ span { color: var(--text-3); text-decoration: line-through; }

/* ---------- 2.4 wykres opinii wg źródeł ---------- */

.srcbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.srcbars li { display: grid; grid-template-columns: 1fr; gap: 5px; }
@media (min-width: 760px) { .srcbars li { grid-template-columns: 200px 1fr 150px; align-items: center; gap: 14px; } }
.sb-name { font-size: 14.5px; font-weight: 600; }
.sb-track { position: relative; height: 32px; background: var(--track); border-radius: var(--r-pill); }
.sb-fill { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: var(--r-pill); background: var(--accent); }
.sb-fill.s4 { background: var(--good); }
.sb-fill.s3 { background: var(--accent); }
.sb-fill.s1 { background: var(--gold); }
.sb-fill.s0 { background: var(--border-strong); }
.sb-val { position: absolute; top: 0; left: 13px; height: 32px; display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--on-accent); }
.sb-val.outside { left: auto; right: 13px; color: var(--text-2); }
.sb-src { font-size: 13.5px; color: var(--text-2); }
.sb-src.sb-warn { color: var(--warn-ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 16px 0 0; font-size: 13.5px; color: var(--text-2); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 7px; vertical-align: -2px; }

/* ---------- formularz opinii ---------- */

.opinion-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-md); padding: 20px 18px; }
.opinion-empty {
  margin: 0 0 18px; padding: 14px 16px; background: var(--surface-2);
  border: 1px dashed var(--border-strong); border-radius: var(--r-md);
  font-size: 14.5px; color: var(--text-2);
}
.form-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }
@media (min-width: 700px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field > label, .stars-label { display: block; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 11px 13px; font-family: var(--font-body); font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { margin: 6px 0 0; font-size: 13px; color: var(--text-3); }
.counter { float: right; font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--low); font-weight: 600; }

.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.stars label { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; cursor: pointer; color: var(--border-strong); }
.stars label svg { width: 27px; height: 27px; }
.stars input:checked ~ label, .stars label:hover, .stars label:hover ~ label { color: var(--gold); }
.stars input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }

.consent { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.consent input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.form-error { margin: 0; font-size: 14px; color: var(--low); font-weight: 600; }
.form-done { display: flex; gap: 11px; align-items: flex-start; margin: 15px 0 0; padding: 14px 16px; background: var(--good-soft); border-radius: var(--r-md); font-size: 14.5px; color: #1D4633; }
.form-done svg { flex: 0 0 auto; margin-top: 2px; }

/* ---------- ryzyka złego wyboru ---------- */

.risks { list-style: none; counter-reset: rk; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .risks { grid-template-columns: 1fr 1fr; } }
.risks li {
  counter-increment: rk; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--warn-ink);
  border-radius: 0 var(--r-md) var(--r-md) 0; padding: 15px 16px 15px 56px; box-shadow: var(--sh-sm);
}
.risks li::before {
  content: counter(rk, decimal-leading-zero); position: absolute; left: 15px; top: 15px;
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
  color: var(--warn-ink); background: #FBEDE3; border-radius: var(--r-pill); padding: 3px 9px;
}
.risks h3 { margin: 0 0 5px; font-size: 1.02rem; }
.risks p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.risks strong { color: var(--text); }

/* ---------- segmentacja odbiorców ---------- */

.aud { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .aud { grid-template-columns: 1fr 1fr; } }
.aud li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; box-shadow: var(--sh-sm); }
.aud h3 { margin: 0 0 6px; font-size: 1.05rem; }
.aud p { margin: 0 0 10px; font-size: 14.5px; color: var(--text-2); }
.aud .goto {
  display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px;
  background: var(--accent-soft); border-radius: var(--r-sm); font-size: 14px; color: var(--accent-dark);
}
.aud .goto b { color: var(--text); }
.aud .goto svg { flex: 0 0 auto; margin-top: 3px; }

/* ---------- wymagania wobec kliniki ---------- */

.req { list-style: none; counter-reset: rq; margin: 0; padding: 0; display: grid; gap: 10px; }
.req li {
  counter-increment: rq; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 14px 16px 14px 54px; position: relative; box-shadow: var(--sh-sm);
}
.req li::before {
  content: counter(rq); position: absolute; left: 15px; top: 14px;
  display: flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 9px; background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 13px; font-weight: 700;
}
.req .req-text { flex: 1 1 260px; font-size: 14.5px; }
.req .req-score {
  flex: 0 0 auto; font-size: 13px; font-weight: 600; white-space: nowrap;
  border-radius: var(--r-pill); padding: 4px 12px;
  color: var(--good); background: var(--good-soft);
}
.req .req-score.mid { color: var(--gold-ink); background: var(--gold-soft); }
.req .req-score.low { color: var(--warn-ink); background: #FBEDE3; }

/* ---------- jak sprawdzić samemu ---------- */

.sources { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sources li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 15px 16px; box-shadow: var(--sh-sm); }
.sources h3 { margin: 0 0 2px; font-size: 1.02rem; }
/* to główne działanie w tym bloku — musi mieć pełny cel dotykowy, nie 21px */
.sources h3 a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-dark); }
.sources p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.sources .src-what { display: block; margin-top: 7px; font-size: 13.5px; color: var(--text-3); }
.sources .src-what b { color: var(--text-2); }

/* ---------- wniosek ---------- */

.takeaway {
  background: var(--surface); border: 1px solid var(--border-strong);
  border-top: 5px solid var(--accent); border-radius: var(--r-lg);
  box-shadow: var(--sh-md); padding: 24px 20px;
}
.takeaway .tk-kicker {
  display: inline-block; margin: 0 0 12px; padding: 4px 13px;
  font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft); border-radius: var(--r-pill);
}
.takeaway h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 4vw, 1.85rem); }
.takeaway p { font-size: 16.5px; }
.takeaway p:last-child { margin-bottom: 0; }
.takeaway .tk-num {
  display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0;
  list-style: none; padding: 0;
}
@media (min-width: 700px) { .takeaway .tk-num { grid-template-columns: repeat(3, 1fr); } }
.takeaway .tk-num li { background: var(--bg-alt); border-radius: var(--r-md); padding: 14px; text-align: center; }
.takeaway .tk-num strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); line-height: 1.1; }
.takeaway .tk-num span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--text-2); }

/* ---------- strony tekstowe (dokumenty, 404) ---------- */
/* pelna szerokosc bloku — bez ograniczenia dlugosci wiersza */

.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: .45em; }
.prose .updated { font-size: 14px; color: var(--text-3); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 1px 6px;
}
.prose table { margin: 18px 0; }

/* ---------- karta autorki ---------- */

.author-head { display: flex; gap: 15px; align-items: center; margin: 0 0 16px; }
.author-ava {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--on-accent);
  font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: .02em;
}
.author-name { margin: 0; font-family: var(--font-display); font-size: 1.28rem; font-weight: 700; line-height: 1.2; }
.author-name span {
  display: block; margin-top: 3px;
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--text-3); letter-spacing: 0;
}
.author-box h2 { margin-bottom: 14px; }

/* ---------- status weryfikacji medycznej ---------- */

.review-status {
  display: flex; gap: 11px; align-items: flex-start;
  margin: 0 0 1em; padding: 14px 16px; border-radius: var(--r-md); font-size: 14.5px;
}
.review-status svg { flex: 0 0 auto; margin-top: 3px; }
.review-status b { color: var(--text); }
.review-status.is-pending { background: var(--gold-soft); color: var(--gold-ink); }
.review-status.is-done { background: var(--good-soft); color: #1D4633; }
/* odnośnik jest w zdaniu, więc zwolniony z reguły 44px — ale dokładamy trochę pola trafienia */
.review-status a { display: inline-block; padding: 3px 0; }

/* zdjęcie autorki w miejscu monogramu */
img.author-ava { object-fit: cover; background: none; }

/* ---------- skąd pochodzą dane: lista źródeł per klinika ---------- */

.srclist { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .srclist { grid-template-columns: 1fr 1fr; } }
.srclist li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 9px;
  padding: 6px 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); font-size: 14.5px;
}
.srclist a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.srclist .src-host { color: var(--text-2); font-size: 13.5px; word-break: break-word; }
.srclist .src-note { flex: 1 0 100%; color: var(--text-3); font-size: 13.5px; margin-bottom: 6px; }
.srclist-h3 { margin: 22px 0 10px; font-size: 1.05rem; }

/* ---------- plakietka „wybór redakcji" ---------- */

.clinic-card { position: relative; }
.clinic-card.is-first { margin-top: 22px; padding-top: 34px; }
.editor-pick {
  position: absolute; top: -15px; left: 18px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--gold); color: #2B1D05;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--sh-sm);
}
.editor-pick svg { flex: 0 0 auto; }

/* ---------- stopka: kolumna „przewodnik" w dwóch kolumnach ---------- */

@media (min-width: 460px) {
  .foot-col:first-child ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
}


/* ---- rozbudowana karta nr 1 ---- */
.blk-h {
  font-family: var(--font-display); font-size: 17px; font-weight: 600;
  color: var(--text); margin: 24px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}

.plist { list-style: none; margin: 0 0 16px; padding: 0; border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.plist li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 14px; background: var(--surface); }
.plist li + li { border-top: 1px solid var(--border); }
.plist li:nth-child(even) { background: var(--surface-2); }
.pl-n { font-size: 14.5px; color: var(--text-2); }
.pl-v { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; }
.plist-note { font-size: 13.5px; color: var(--text-3); margin: -8px 0 16px; }

.cpros { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cpros li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.cpros li svg { flex: 0 0 auto; margin-top: 2px; color: var(--good); }
.cpros b { color: var(--text); }

.vsteps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: vstep; }
.vsteps li {
  counter-increment: vstep; position: relative;
  padding: 0 0 18px 44px; font-size: 14.5px; color: var(--text-2);
}
.vsteps li::before {
  content: counter(vstep); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft); color: var(--accent-dark);
  font-family: var(--font-display); font-size: 14px; font-weight: 700;
}
.vsteps li::after {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 1px; background: var(--border-strong);
}
.vsteps li:last-child { padding-bottom: 0; }
.vsteps li:last-child::after { display: none; }
.vsteps b { display: block; color: var(--text); margin-bottom: 3px; }

.getthere {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 18px; padding: 13px 15px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-md);
  font-size: 14.5px; color: var(--text-2);
}
.getthere svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent); }

.srcline { font-size: 13px; color: var(--text-3); margin: 14px 0 0; }

@media (min-width: 720px) {
  .plist li { padding: 12px 18px; }
  .cpros { grid-template-columns: 1fr 1fr; gap: 14px 26px; }
}


/* ---- strona kontaktowa ---- */
.notice {
  padding: 14px 16px; margin: 0 0 16px;
  background: var(--accent-soft); border-left: 4px solid var(--accent);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.prose .notice strong { color: var(--accent-dark); }

.field select {
  width: 100%; min-height: 46px; padding: 10px 13px;
  font-family: inherit; font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.contact-form { margin-top: 20px; }


/* ---- okruszki (wszystkie strony poza glowna) ---- */
.crumbs { margin: 0 0 18px; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.crumbs li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text-3); }
.crumbs li + li::before {
  content: "/"; color: var(--border-strong); font-size: 14px;
}
.crumbs a { color: var(--text-2); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.crumbs a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--text); font-weight: 600; }


/* Tabele: na waskich ekranach ciasniej, zeby zmiescily sie bez przewijania;
   od 560 px wracaja pelne odstepy. Owijka .table-wrap i tak nie pozwoli
   tabeli rozepchac strony. */
@media (min-width: 560px) {
  .data-table { font-size: 14.5px; }
  .data-table th, .data-table td { padding: 11px 14px; }
}
.table-wrap { margin: 0 0 20px; }
.prose .table-wrap { margin: 0 0 24px; }


/* ---- infografika: drabina znieczulenia (pierwszy ekran) ---- */
.pain-ladder {
  margin: 0 0 20px; padding: 15px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.pain-ladder figcaption {
  font-family: var(--font-display); font-size: 15px; font-weight: 600;
  color: var(--text); margin: 0 0 14px;
}
.pl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pl-row {
  display: grid; align-items: center; gap: 5px 9px;
  grid-template-columns: 18px 1fr auto;
  grid-template-areas: "ico name num" "track track cnt";
}
.pl-ico { grid-area: ico; color: var(--accent); display: flex; }
.pl-name { grid-area: name; font-size: 14.5px; }
.pl-name a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border-strong); }
.pl-name a:hover { color: var(--accent-dark); border-bottom-color: var(--accent); }
.pl-num { grid-area: num; font-size: 14.5px; font-weight: 700; white-space: nowrap; }
.pl-cnt { grid-area: cnt; font-size: 13px; color: var(--text-3); white-space: nowrap; }
.pl-track {
  grid-area: track; position: relative; display: block;
  height: 10px; border-radius: var(--r-pill); background: var(--track);
}
.pl-track i {
  position: absolute; top: 0; bottom: 0;
  left: var(--from); right: calc(100% - var(--to));
  min-width: 4px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.pl-note {
  display: flex; gap: 9px; align-items: flex-start;
  margin: 14px 0 0; padding: 10px 12px;
  background: var(--accent-soft); border-radius: var(--r-md);
  font-size: 14px; color: var(--text-2);
}
.pl-note svg { flex: 0 0 auto; margin-top: 2px; color: var(--accent-dark); }
.pl-note strong { color: var(--accent-dark); }
.pl-src { margin: 10px 0 0; font-size: 13px; color: var(--text-3); }

@media (min-width: 620px) {
  .pain-ladder { padding: 22px 24px; }
  .pl-row {
    grid-template-columns: 18px minmax(160px, 1fr) minmax(120px, 2fr) auto auto;
    grid-template-areas: "ico name track num cnt";
    gap: 14px;
  }
  .pl-cnt { text-align: right; white-space: nowrap; }
}


/* ---- pierwszy ekran w dwoch kolumnach: tekst + infografika ---- */
.hero-split { display: grid; gap: 18px; margin: 0 0 20px; }
.hero-split .hero-lead { margin-bottom: 14px; }
.hero-split .byline { margin-bottom: 0; }

@media (min-width: 900px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 30px; align-items: start;
  }
}


/* ---- ilustracja na pierwszym ekranie ---- */
.hero-art {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; max-width: 560px;
  margin: 0 auto; border-radius: var(--r-lg);
  border: 1px solid var(--border); box-shadow: var(--sh-sm);
}
@media (min-width: 900px) { .hero-art { max-width: none; } }
