/* =====================================================================
   USK Wrocław – sekcja „Dla pacjenta”. Prototyp bez CMS.
   Tokeny (kolory, typografia, odstępy) odpowiadają przyszłemu theme.json.
   Font: Open Sans (tymczasowo, do potwierdzenia w księdze znaku).
   ===================================================================== */

:root {
  /* marka */
  --navy: #023872;          /* kolor logotypu */
  --navy-700: #0a4a8c;
  --navy-900: #012650;
  --blue: #1458a8;          /* głęboki niebieski – linki, akcenty */
  /* tła dominujące */
  --bg: #fbfaf7;            /* off-white */
  --surface: #ffffff;
  --sky-50: #f1f6fc;
  --sky-100: #e1ecf8;
  --teal-50: #ecf6f4;
  /* akcenty ciepłe / zieleń */
  --mint-100: #dcf1e7;
  --mint-700: #1f6b4c;
  --salmon-100: #fde5dd;
  --salmon-400: #f0937c;
  /* tekst i linie */
  --text: #1b2533;
  --muted: #46536a;
  --line: #e2e6ec;
  --line-strong: #c3cfdd;
  /* kolory funkcjonalne (OPZ 8.6) */
  --red: #ff6961;           /* z briefu – wyłącznie jako akcent/tło */
  --red-600: #b3261e;       /* przyciski alarmowe – kontrast 6,5:1 z bielą */
  --red-50: #fff1ef;
  --yellow: #fdfd96;        /* ostrzeżenia / braki treści */
  --green: #77dd77;
  --green-700: #1e6b34;
  --focus: #1a5fd0;
  /* kształt */
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(2, 56, 114, .05), 0 6px 20px rgba(2, 56, 114, .06);
  --shadow-up: 0 2px 4px rgba(2, 56, 114, .06), 0 12px 28px rgba(2, 56, 114, .10);
  /* typografia */
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-body: 1.125rem;
  --lh: 1.65;
  --gutter: 16px;
  --header-h: 72px;
}

/* wielkość tekstu – 3 kroki (OPZ 4.10) */
html { font-size: 100%; }
html[data-size="1"] { font-size: 112.5%; }
html[data-size="2"] { font-size: 125%; }

/* wysoki kontrast */
html[data-contrast="high"] {
  --navy: #ffff00; --navy-700: #ffff00; --navy-900: #000; --blue: #ffff00;
  --bg: #000; --surface: #000; --sky-50: #000; --sky-100: #000; --teal-50: #000;
  --mint-100: #000; --mint-700: #ffff00; --salmon-100: #000; --salmon-400: #ffff00;
  --text: #fff; --muted: #fff; --line: #fff; --line-strong: #fff;
  --red-600: #ffff00; --red-50: #000; --focus: #00ffff; --shadow: none; --shadow-up: none;
}
html[data-contrast="high"] .brand img { filter: brightness(0) invert(1); }
html[data-contrast="high"] .btn-primary, html[data-contrast="high"] .btn-danger { color: #000 !important; }
html[data-contrast="high"] .utility, html[data-contrast="high"] .site-footer { background: #000; border-bottom: 1px solid #fff; }
html[data-contrast="high"] .page-hero { background: #000; border-bottom: 1px solid #fff; }
html[data-contrast="high"] .tool[aria-pressed="true"], html[data-contrast="high"] .drawer-tools .tool[aria-pressed="true"] { background: #ffff00; color: #000; border-color: #ffff00; }
html[data-contrast="high"] .step-n { color: #000; }
html[data-contrast="high"] .dl-missing { background: #000 !important; }
html[data-contrast="high"] mark.todo { background: #ffff00; color: #000; }

/* ograniczenie ruchu */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
html[data-motion="reduced"] *, html[data-motion="reduced"] *::before, html[data-motion="reduced"] *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }

/* ---------------------------------------------------------------- baza */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh); color: var(--text); background: var(--bg); overflow-x: hidden; overflow-wrap: break-word; }
h1, h2, h3, .phone, .dl-link, .acc-q { overflow-wrap: anywhere; hyphens: auto; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; color: var(--navy); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 1.15rem + .9vw, 1.85rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico-inline { width: .85em; height: .85em; margin-left: .25em; vertical-align: -.05em; opacity: .75; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 84px; } }

.skip { position: absolute; left: 12px; top: -100px; z-index: 200; background: var(--navy-900); border: 2px solid #fff; color: #fff; padding: 12px 18px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }

/* ---------------------------------------------------------------- przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: .65em 1.15em;
  border-radius: var(--r-sm); border: 2px solid transparent; font: 600 1rem/1.25 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; text-align: left; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sky-50); border-color: var(--navy); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--sky-50); color: var(--navy); }
.btn-danger { background: var(--red-600); color: #fff; }
.btn-danger:hover { background: #8f1d17; color: #fff; }
.btn-lg { min-height: 56px; font-size: 1.1rem; padding-inline: 1.4em; }
.btn-sm { min-height: 44px; font-size: .95rem; padding: .5em .9em; }
.btn .btn-tail { width: 1em; height: 1em; opacity: .8; transition: transform .15s; }
.btn:hover .btn-tail { transform: translateX(2px); }
.link-btn { background: none; border: 0; color: var(--blue); font: 600 1rem var(--font); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; padding: 0 4px; }

/* ---------------------------------------------------------------- pasek usług */
.utility { background: var(--navy); color: #fff; font-size: .9rem; }
.utility-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; flex-wrap: wrap; }
.utility-phones { display: flex; gap: 4px 14px; list-style: none; margin: 0; padding: 4px 0; flex-wrap: wrap; }
.utility a { color: #fff; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; }
.utility a:hover { text-decoration: underline; }
.utility a .ico { width: 1em; height: 1em; opacity: .85; }
.utility-right { display: none; align-items: center; gap: 8px; }
.test-badge { white-space: nowrap; flex: none; background: var(--yellow); color: #1b2533; font-weight: 700; font-size: .8rem; padding: 2px 10px; border-radius: 999px; }
.a11y-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.utility .a11y-tools { flex-wrap: nowrap; }
.tool { white-space: nowrap; }
.tool-group { display: inline-flex; gap: 2px; }
.tool { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; min-width: 36px; padding: 4px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: inherit; font: 600 .85rem var(--font); cursor: pointer; justify-content: center; }
.tool .ico { width: 1.05em; height: 1.05em; }
.tool[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.tool-size[data-size="1"] { font-size: .95rem; } .tool-size[data-size="2"] { font-size: 1.05rem; }
@media (min-width: 1024px) { .utility-right { display: flex; flex-wrap: wrap; justify-content: flex-end; } .utility-phones { flex-wrap: nowrap; } }
@media (max-width: 639px) { .hide-sm { display: none !important; } }

/* ---------------------------------------------------------------- nagłówek sticky */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--surface); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 6px 18px rgba(2, 56, 114, .08); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: var(--header-h); flex-wrap: wrap; padding-block: 8px; }
.header-ctas { margin-left: auto; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 52px; width: auto; display: block; }
@media (max-width: 359px) { .brand img { height: 44px; } }
@media (min-width: 1024px) { .brand img { height: 64px; } }
.header-ctas { display: flex; align-items: center; gap: 6px; }
.header-ctas .btn { min-height: 48px; padding-inline: .9em; }
.em-label { display: none; }
@media (min-width: 640px) { .em-label { display: inline; } .em-short { display: none; } }
@media (max-width: 479px) { .menu-label { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.lbl-short { display: none; }
@media (max-width: 639px) { .lbl-long { display: none; } .lbl-short { display: inline; } .utility { font-size: .85rem; } .utility-phones { gap: 0 14px; } }
@media (max-width: 1199px) { .hide-md { display: none !important; } }
@media (min-width: 1200px) { .menu-toggle { display: none; } }
.menu-toggle { position: relative; }
.em-wrap { position: relative; }
.em-chev { width: 1em; height: 1em; transition: transform .15s; }
.em-toggle[aria-expanded="true"] .em-chev { transform: rotate(180deg); }
.em-menu { position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 32px)); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-up); padding: 12px; z-index: 70; }
.em-menu-title { font-weight: 700; color: var(--red-600); margin: 4px 8px 8px; }
.em-menu ul { list-style: none; margin: 0; padding: 0; }
.em-menu a { display: flex; gap: 10px; align-items: center; padding: 10px; min-height: 44px; border-radius: var(--r-sm); color: var(--text); text-decoration: none; font-weight: 600; }
.em-menu a:hover { background: var(--sky-50); }
.em-menu a .ico { color: var(--navy); }
.em-call { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
.em-call a { color: var(--red-600); font-weight: 600; }
.em-call a .ico { color: var(--red-600); }

/* nawigacja główna (desktop) */
.main-nav { display: none; background: var(--surface); border-bottom: 1px solid var(--line); }
.main-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 52px; padding: 0 10px; font-size: 1rem; color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--navy); border-bottom-color: var(--line-strong); }
.main-nav a[aria-current] { color: var(--navy); border-bottom-color: var(--navy); }
@media (min-width: 1024px) { .main-nav { display: block; } }
@media (min-width: 1280px) { html:not([data-size]) .utility-in { flex-wrap: nowrap; } .main-nav ul { justify-content: space-between; } }

/* wyszukiwarka */
.search-band { background: var(--sky-50); border-bottom: 1px solid var(--line); padding: 14px 0 16px; }
.search-label { display: block; font-weight: 700; color: var(--navy); font-size: .95rem; margin-bottom: 6px; }
.search-row { position: relative; display: flex; gap: 8px; }
.search-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-row input { flex: 1; min-width: 0; height: 56px; padding: 0 16px 0 50px; border: 2px solid var(--line-strong); border-radius: var(--r); font: 400 1.05rem var(--font); color: var(--text); background: var(--surface); }
.search-row input:focus { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 2px; }
.search-row input::placeholder { color: #6a768a; }
.search-row .btn { height: 56px; padding-inline: 1.4em; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 55; list-style: none; margin: 0; padding: 6px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-up); max-height: 60vh; overflow: auto; }
.suggest li { padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; display: grid; gap: 2px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--sky-100); }
.suggest .s-t { font-weight: 600; color: var(--navy); }
.suggest .s-c { font-size: .85rem; color: var(--muted); }
.suggest .s-k { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--mint-700); }
.suggest .s-all { color: var(--blue); font-weight: 600; }

/* okruszki */
.crumbs { font-size: .95rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 2px 0; list-style: none; margin: 0; padding: 12px 0; }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li + li::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); transform: rotate(45deg); margin: 0 12px 0 8px; opacity: .7; }
.crumbs a { color: var(--muted); min-height: 32px; display: inline-flex; align-items: center; }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- hero */
main:focus { outline: none; }
.page-hero { background: linear-gradient(120deg, #eaf2fb 0%, #eef7f3 55%, var(--bg) 100%); padding: 32px 0 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .page-hero { padding: 48px 0 52px; } }
.page-hero h1 { max-width: 22ch; }
.lead { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); color: var(--text); max-width: 62ch; margin: 0; line-height: 1.6; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 6px 14px 6px 8px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.eyebrow .ico { width: 1.6em; height: 1.6em; padding: 4px; border-radius: 999px; background: var(--mint-100); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3.6fr); gap: 48px; } }
.hub-hero h1 { font-size: clamp(2.3rem, 1.5rem + 3.2vw, 3.6rem); }
.hero-emerg { background: var(--surface); border: 1px solid #f2c9c4; border-top: 6px solid var(--red-600); border-radius: var(--r-lg); padding: 22px 22px 18px; box-shadow: var(--shadow); }
.hero-emerg-title { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--red-600); margin-bottom: 8px; }
.hero-emerg-title .ico { width: 1.6em; height: 1.6em; }
.hero-emerg p { font-size: 1rem; }
.hero-emerg-link { margin: 12px 0 0; }

/* ---------------------------------------------------------------- układ treści 70/30 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 1024px) { .layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 56px; padding-top: 48px; } }
.content > .block { margin-bottom: 40px; }
.hub-body { padding-top: 40px; padding-bottom: 56px; }
.hub-body > .block { margin-bottom: 52px; }
.block-title { margin-bottom: 18px; }
.block-sep { margin-top: 8px; }
.prose { max-width: 70ch; }
.prose p:last-child { margin-bottom: 0; }
.stan { color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* boczny panel */
.side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1024px) { .side { position: sticky; top: calc(var(--header-h) + 20px); } }
.aside-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.aside-title { font-size: 1.1rem; margin-bottom: 10px; }
.shortcuts ul { list-style: none; margin: 0; padding: 0; }
.shortcuts li + li { border-top: 1px solid var(--line); }
.shortcuts a { display: flex; align-items: center; min-height: 48px; padding: 8px 2px; font-weight: 600; text-decoration: none; color: var(--navy); }
.shortcuts a:hover { text-decoration: underline; }
.aside-ctas .btn-row { margin: 0; flex-direction: column; }
.aside-ctas .btn { width: 100%; justify-content: space-between; }
.help p { margin: 0 0 6px; font-size: 1rem; }
.help-sos { margin-top: 12px !important; padding-top: 12px; border-top: 1px solid var(--line); color: var(--red-600); font-weight: 600; }
.help-sos a { color: var(--red-600); }

/* ---------------------------------------------------------------- kafelki */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hub-body .tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1360px) { .content .tiles.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 22px 52px; box-shadow: var(--shadow);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.tile:hover, .tile:focus-within { z-index: 3; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--line-strong); }
.tile:focus-within { border-color: var(--navy); }
.tile-ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--navy); margin-bottom: 14px; }
.tile-ico .ico { width: 28px; height: 28px; }
.tint-mint { background: var(--mint-100); } .tint-sky { background: var(--sky-100); } .tint-salmon { background: var(--salmon-100); }
.tile-title { font-size: 1.2rem; margin: 0 0 6px; }
.tile-title a { color: var(--navy); text-decoration: none; }
.tile-title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.tile-title a:focus-visible { outline: none; }
.tile-title a:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.tile:hover .tile-title a { text-decoration: underline; }
.tile-desc { color: var(--muted); margin: 0; font-size: 1rem; }
.tile-arrow { position: absolute; right: 20px; bottom: 18px; color: var(--navy); transition: transform .18s; }
.tile:hover .tile-arrow { transform: translateX(4px); }
.tile-ext { width: 1.1em; height: 1.1em; }
/* popup „on event” z pierwszą pomocą (OPZ 10.1) */
.tile-pop { display: none; }
@media (hover: hover) and (min-width: 640px) {
  .tile.has-pop:not(.pop-off):hover .tile-pop, .tile.has-pop:not(.pop-off):focus-within .tile-pop { display: block; }
  .tile-pop { position: absolute; z-index: 20; left: 12px; right: 12px; top: calc(100% - 10px); background: var(--surface); border: 2px solid var(--red-600);
    border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-up); font-size: .95rem; }
  .tile-pop ol { margin: 0; padding-left: 1.2em; }
  .tile-pop-title { display: flex; align-items: center; gap: 6px; color: var(--red-600); font-weight: 700; margin: 0 0 6px; }
}

/* ---------------------------------------------------------------- accordion Q&A */
.faq-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-h { margin: 0; font-size: 1.08rem; }
.acc-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; min-height: 64px; background: none; border: 0;
  text-align: left; font: 600 1.08rem/1.4 var(--font); color: var(--navy); cursor: pointer; }
.acc-btn:hover { background: var(--sky-50); }
.acc-btn:focus-visible { outline-offset: -3px; }
.acc-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 999px; background: var(--sky-100); color: var(--navy); transition: transform .2s, background-color .2s; }
.acc-ico .ico { width: 20px; height: 20px; }
.acc-btn[aria-expanded="true"] .acc-ico { transform: rotate(180deg); background: var(--navy); color: #fff; }
.acc-btn[aria-expanded="true"] { background: var(--sky-50); }
.acc-inner { padding: 4px 20px 20px; max-width: 72ch; }
.acc-inner p:last-child, .acc-inner ul:last-child { margin-bottom: 0; }
.acc-item:target .acc-btn { background: var(--mint-100); }
@media (min-width: 640px) { .acc-btn { padding: 20px 24px; } .acc-inner { padding: 4px 24px 24px; } }

/* ---------------------------------------------------------------- komunikaty */
.emerg { display: flex; gap: 16px; background: var(--red-50); border: 1px solid #f2c9c4; border-left: 6px solid var(--red-600); border-radius: var(--r); padding: 18px 20px; }
.emerg-ico { color: var(--red-600); flex: none; } .emerg-ico .ico { width: 34px; height: 34px; }
.emerg-body p { margin-bottom: 12px; font-weight: 600; }
.emerg-calls { display: flex; gap: 10px; flex-wrap: wrap; }
.callout { display: flex; gap: 14px; background: var(--sky-50); border: 1px solid var(--sky-100); border-radius: var(--r); padding: 18px 20px; }
.callout-ico { color: var(--navy); flex: none; } .callout-ico .ico { width: 28px; height: 28px; }
.callout-title { font-size: 1.15rem; margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }
mark.todo { background: var(--yellow); color: #1b2533; padding: 1px 6px; border-radius: 4px; border: 1px dashed #8a7a00; font-size: .92em; }
mark.todo-verify { background: #ffe0d6; border-color: #b3261e; }
.todo-label { font-weight: 700; }
.highlight { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 700; color: var(--navy); background: var(--teal-50); border-left: 6px solid var(--mint-700); padding: 18px 22px; border-radius: var(--r); }

/* ---------------------------------------------------------------- przyciski w treści */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------------------------------------------------------- karty kontaktowe */
.place-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.place-rows span, .place-mail a, .loc-addr span { overflow-wrap: anywhere; min-width: 0; }
@media (min-width: 640px) { .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .phones-band .place-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.place { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); }
.single .place { border-left: 6px solid var(--navy); }
.place-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.place-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--mint-100); color: var(--navy); flex: none; }
.place-name { font-size: 1.15rem; margin: 0; }
.single .place-name { font-size: 1.25rem; }
.place-rows { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; font-size: 1rem; }
.place-rows li { display: flex; gap: 10px; }
.place-rows .ico { color: var(--muted); margin-top: .2em; width: 1.15em; height: 1.15em; }
.phones { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 1.25rem; font-weight: 700; color: var(--navy); text-decoration: none; }
.phone:hover { text-decoration: underline; }
.phone .ico { width: 34px; height: 34px; padding: 7px; border-radius: 999px; background: var(--sky-100); }
.phone-note { display: block; font-size: .9rem; color: var(--muted); margin-left: 42px; margin-top: -4px; }
.place-mail { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.place-mail a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; }
.place-note { font-size: 1rem; color: var(--muted); }
.place-map { margin: 12px 0 0; }

/* ---------------------------------------------------------------- pliki */
.downloads { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.downloads li { position: relative; display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.downloads li:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.dl-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--salmon-100); color: var(--navy); flex: none; }
.dl-body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.dl-link { font-weight: 600; color: var(--navy); text-decoration: none; }
.dl-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.dl-link:focus-visible { outline: none; } .dl-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 2px; }
.downloads li:hover .dl-link { text-decoration: underline; }
.dl-meta, .dl-desc { font-size: .9rem; color: var(--muted); }
.dl-go { color: var(--navy); flex: none; }
.dl-missing { background: #fffef0 !important; border-style: dashed !important; }
.dl-name { font-weight: 600; }

/* ---------------------------------------------------------------- kroki RKO */
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.step-n { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--red-600); color: #fff; font-weight: 700; font-size: 1.3rem; }
.step-title { font-size: 1.15rem; margin: 6px 0 6px; }
.step p { margin: 0; }

/* lista z ikonami */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; }
.checklist .ico { color: var(--mint-700); margin-top: .2em; }

/* udar */
.fast-grid { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 800px) { .fast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fast-card { display: grid; gap: 4px; justify-items: start; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.fast-card:last-child { border-top-color: var(--red-600); }
.fast-ico { color: var(--navy); } .fast-ico .ico { width: 32px; height: 32px; }
.fast-k { font-weight: 700; font-size: 1.3rem; color: var(--navy); }
.fast-v { color: var(--text); font-size: 1rem; }
.fast-foot { display: flex; gap: 10px; align-items: center; background: var(--red-50); border-radius: var(--r); padding: 12px 16px; color: var(--red-600); }

/* prawa małego pacjenta */
.rights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rights li { display: flex; gap: 12px; align-items: center; background: var(--teal-50); border-radius: var(--r); padding: 14px 18px; font-size: 1.2rem; font-weight: 700; color: var(--navy); }
.rights .ico { color: var(--mint-700); width: 1.4em; height: 1.4em; }

/* słowniczek */
.term { position: relative; display: inline; }
.term-btn { display: inline; padding: 0; margin: 0; background: none; border: 0; font: inherit; color: inherit; cursor: help;
  text-decoration: underline dotted var(--blue); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.term-btn[aria-expanded="true"] { background: var(--sky-100); border-radius: 4px; }
.term-pop { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; width: min(320px, 80vw); background: var(--navy); color: #fff; padding: 12px 14px; border-radius: var(--r-sm);
  font-size: .95rem; line-height: 1.5; font-weight: 400; box-shadow: var(--shadow-up); }
.term-pop strong { display: block; color: #fff; }
html[data-contrast="high"] .term-pop { background: #000; border: 2px solid #fff; }

/* pasek skrótów (hub) */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; min-height: 48px; padding: 8px 18px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line-strong);
  color: var(--navy); font-weight: 600; text-decoration: none; }
.chip:hover { background: var(--sky-50); border-color: var(--navy); color: var(--navy); }

/* powiązane */
.related { background: var(--surface); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .related-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.related-list a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--navy); font-weight: 600; text-decoration: none; background: var(--bg); }
.related-list a:hover { border-color: var(--navy); background: var(--sky-50); }
.related-list .ico { flex: none; color: var(--navy); }

/* wyszukiwarka – strona wyników */
.search-page { padding-top: 28px; padding-bottom: 56px; }
.search-page .results { max-width: 900px; }
.filters { border: 0; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.filters legend { font-weight: 700; color: var(--navy); margin-bottom: 6px; float: left; margin-right: 12px; }
.filters label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.filters input { width: 24px; height: 24px; accent-color: var(--navy); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.results li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.results .r-k { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mint-700); margin-bottom: 2px; }
.results h2 { font-size: 1.15rem; margin: 0 0 4px; }
.results .r-c { font-size: .9rem; color: var(--muted); margin: 0 0 6px; }
.results .r-x { margin: 0; font-size: 1rem; }
.results mark { background: var(--yellow); color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------------------------------------------------------------- stopka */
.site-footer { background: var(--navy); color: #fff; padding: 48px 0 28px; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: 12px; }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer ul { gap: 0; }
.site-footer li a, .site-footer p > a { display: inline-block; padding: 10px 0; line-height: 1.4; }
.foot-phones span { opacity: .85; }
.subfoot { border-top: 1px solid rgba(255, 255, 255, .25); margin-top: 32px; padding-top: 18px; font-size: .9rem; opacity: .95; }
.subfoot p { margin: 0 0 6px; }

/* ---------------------------------------------------------------- dolny pasek (mobile) */
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(2, 56, 114, .08); padding-bottom: env(safe-area-inset-bottom); }
.bottom-bar a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 60px; color: var(--navy); text-decoration: none; font-size: .78rem; font-weight: 600; text-align: center; }
.bottom-bar a .ico { width: 24px; height: 24px; }
.bottom-bar a:hover { background: var(--sky-50); }
body { padding-bottom: 68px; }
@media (min-width: 1024px) { .bottom-bar { display: none; } body { padding-bottom: 0; } }

/* ---------------------------------------------------------------- menu mobilne */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(1, 20, 45, .45); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); z-index: 100; background: var(--surface); overflow-y: auto; padding: 16px 20px 32px; box-shadow: -10px 0 30px rgba(0, 0, 0, .15); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-title { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.drawer-ctas { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.drawer-ctas .btn { width: 100%; justify-content: flex-start; }
.drawer-sub { font-weight: 700; color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 6px; }
.drawer-list { list-style: none; margin: 0; padding: 0; }
.drawer-list li + li { border-top: 1px solid var(--line); }
.drawer-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; color: var(--navy); font-weight: 600; text-decoration: none; }
.drawer-tools .a11y-tools { color: var(--navy); }
.drawer-tools .tool { border-color: var(--line-strong); min-height: 44px; }
.drawer-tools .tool[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------------------------------------------------------------- komunikat kryzysowy (OPZ 11) */
.crisis { background: var(--red-600); color: #fff; }
.crisis .container { display: flex; gap: 12px; align-items: flex-start; padding-block: 12px; }
.crisis .ico { width: 28px; height: 28px; flex: none; }
.crisis p { margin: 0; }
.crisis a { color: #fff; font-weight: 700; }
.crisis-title { font-weight: 700; }
.ticker { background: #8f1d17; color: #fff; overflow: hidden; display: flex; align-items: center; }
.ticker-track { white-space: nowrap; display: inline-block; padding: 8px 0; animation: ticker 28s linear infinite; font-weight: 600; }
.ticker.paused .ticker-track { animation-play-state: paused; }
.ticker-btn { flex: none; background: #fff; color: #8f1d17; border: 0; font: 700 .85rem var(--font); min-height: 36px; padding: 0 12px; margin: 4px 8px; border-radius: 8px; cursor: pointer; }
.ticker-wrap { flex: 1; overflow: hidden; }
@keyframes ticker { from { transform: translateX(-100%); } to { transform: translateX(100vw); } }

/* ---------------------------------------------------------------- druk */
@media print {
  .utility, .site-header, .main-nav, .search-band, .bottom-bar, .side, .related, .site-footer, .drawer, [data-expand-all], .acc-ico { display: none !important; }
  .acc-panel { display: block !important; content-visibility: visible !important; }
  .page-hero { background: none; }
  body { padding: 0; font-size: 12pt; }
  a::after { content: ""; }
}

/* ---------------------------------------------------------------- lokalizacje i mapy (Kontakt i dojazd) */
.layout.wide { grid-template-columns: minmax(0, 1fr); }
.loc { display: grid; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow); height: 100%; }
@media (min-width: 900px) { .loc-wrap .loc { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding: 28px; gap: 32px; } }
.loc-name { margin: 0 0 8px; }
.loc-addr { display: flex; gap: 10px; align-items: flex-start; font-size: 1.15rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.loc-addr .ico { color: var(--navy); margin-top: .2em; }
.loc-gps { font-size: .95rem; color: var(--muted); margin-bottom: 12px; }
.loc-sub { font-size: 1.05rem; margin: 16px 0 8px; }
.loc-units { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 1rem; }
.loc-units li { display: flex; gap: 8px; }
.loc-units .ico { color: var(--mint-700); width: 1em; height: 1em; margin-top: .35em; }
.loc-btns { margin-top: 16px; }
.loc-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .loc-grid .loc { grid-template-rows: 1fr auto; } }
.map { position: relative; border-radius: var(--r); overflow: hidden; min-height: 300px; background: linear-gradient(135deg, var(--sky-100), var(--mint-100)); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { display: grid; justify-items: center; align-content: center; text-align: center; gap: 8px; padding: 24px; min-height: 300px; }
.map-ph-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.map-ph-ico .ico { width: 30px; height: 30px; }
.map-ph-addr { font-weight: 700; color: var(--navy); margin: 0; }
.map-ph-note { font-size: .9rem; color: var(--muted); max-width: 40ch; margin: 0; }
.map-ph-alt { margin: 0; font-size: .95rem; }
.map-ph-alt a { display: inline-block; padding: 10px 0; }
html[data-contrast="high"] .map { background: #000; }

/* ---------------------------------------------------------------- Kontakt v3: notatka, plan, tabela jednostek */
.loc-note { display: flex; gap: 8px; font-size: .95rem; color: var(--muted); margin: -4px 0 12px; }
.loc-note .ico { flex: none; color: var(--navy); margin-top: .2em; }
.phones .phone-note { margin-left: 42px; }
.plan { margin: 0; }
.plan-img { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--shadow); }
.plan-img img { display: block; width: 100%; height: auto; border-radius: var(--r); }
.plan figcaption { color: var(--muted); font-size: .95rem; margin: 10px 0 8px; }
.plan-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .95rem; }
.plan-legend li { display: inline-flex; align-items: center; gap: 8px; }
.pl-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 5px; font-weight: 700; font-size: .8rem; color: #fff; }
.pl-badge .ico { width: 16px; height: 16px; }
.pl-wc { background: #023872; } .pl-sor { background: #b3261e; } .pl-amb { background: #1b2533; } .pl-p { background: #2d5aa0; }
.pl-heli { background: #fff; color: #b3261e; border: 2px solid #b3261e; border-radius: 999px; width: 26px; height: 26px; }
.units-intro { color: var(--muted); max-width: 70ch; }
.units-filter { margin: 0 0 14px; max-width: 520px; }
.units-filter label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.uf-row { position: relative; }
.uf-row .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.uf-row input { width: 100%; height: 52px; padding: 0 14px 0 44px; border: 2px solid var(--line-strong); border-radius: var(--r); font: 400 1rem var(--font); background: var(--surface); color: var(--text); }
.uf-row input:focus { border-color: var(--navy); outline: 3px solid var(--focus); outline-offset: 2px; }
.uf-count { font-size: .9rem; color: var(--muted); margin: 6px 0 0; min-height: 1.2em; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow-x: auto; }
.units-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.units-table th, .units-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.units-table thead th { font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--sky-50); }
.units-table tbody th[scope="row"] { font-weight: 600; color: var(--text); }
.units-table .grp th { background: var(--teal-50); color: var(--navy); font-weight: 700; font-size: 1rem; }
.units-table td:nth-child(2), .units-table td:nth-child(3) { white-space: nowrap; }
.bchip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.bdot { width: 14px; height: 14px; border-radius: 4px; flex: none; }
@media (max-width: 639px) {
  .units-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .units-table tr:not(.grp) { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .units-table tr:not(.grp) th[scope="row"] { grid-column: 1 / -1; padding: 0; border: 0; }
  .units-table tr:not(.grp) td { padding: 0; border: 0; white-space: normal; }
  .units-table tr:not(.grp) td:nth-child(2)::before { content: "Budynek: "; color: var(--muted); font-weight: 400; }
  .units-table tr:not(.grp) td:nth-child(3)::before { content: "Piętro: "; color: var(--muted); }
  .units-table .grp th { display: block; }
}
html[data-contrast="high"] .units-table .grp th, html[data-contrast="high"] .units-table thead th { background: #000; }
@media (min-width: 1100px) { .wide .place-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plan { max-width: 920px; }
.units-table a { display: inline-block; padding: 4px 0; }
.checklist li > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- przyciski akcji i „Do góry” */
.action-btns { margin-bottom: 14px; }
.action-btns.stack { flex-direction: column; margin-bottom: 10px; }
.action-btns.stack .btn { width: 100%; justify-content: flex-start; }
.action-btns.stack .btn .btn-tail { margin-left: auto; }
.to-top { position: fixed; right: 16px; bottom: 84px; z-index: 64; display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px 0 12px;
  border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; box-shadow: var(--shadow-up);
  border: 2px solid #fff; transition: opacity .2s, transform .2s; }
.to-top:hover { background: var(--navy-700); color: #fff; transform: translateY(-2px); }
.to-top[hidden] { display: none; }
.to-top-ico { transform: rotate(180deg); width: 22px; height: 22px; }
@media (min-width: 1024px) { .to-top { bottom: 24px; right: 24px; } }
html[data-contrast="high"] .to-top { background: #ffff00; color: #000; border-color: #000; }
@media print { .to-top { display: none !important; } }
.shortcuts .action-btns a.btn { min-height: 48px; padding: 10px 16px; text-decoration: none; }
.shortcuts .action-btns a.btn-primary, .shortcuts .action-btns a.btn-primary:hover { color: #fff; }
.shortcuts .action-btns a.btn-secondary { color: var(--navy); }
html[data-contrast="high"] .shortcuts .action-btns a.btn-primary { color: #000; }
/* plan kampusu MCS */
.pl-badge.pl-bld { background: #ec6450; color: #111; border-radius: 999px; min-width: 30px; }
.pl-tri { display: inline-block; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 16px solid #e00000; flex: none; }
.pl-tri-violet { border-bottom-color: #a020f0; }

/* ---------------------------------------------------------------- wyniki badania opinii */
.stats-intro { margin: 0 0 14px; color: var(--muted); }
.stats-head { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 18px 22px; border-radius: var(--r-lg);
  background: var(--navy); color: #fff; }
.stats-head-v { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stats-head-l { font-weight: 600; font-size: 1.1rem; }
.stats-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 4px; box-shadow: var(--shadow); }
.stat-v { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-l { font-size: .95rem; overflow-wrap: anywhere; }
.stats-scale { margin-top: 14px; }
.stats-scale-t { font-size: 1rem; margin: 0 0 6px; }
.stats-scale ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stats-scale li { padding: 4px 12px; border-radius: 999px; font-size: .9rem; background: var(--sky-50); border: 1px solid var(--line); border-left-width: 6px; }
.stats-scale .sc-bad { border-left-color: #c62828; } .stats-scale .sc-ok { border-left-color: #f2b705; }
.stats-scale .sc-good { border-left-color: #7cb342; } .stats-scale .sc-best { border-left-color: #2e7d32; }
.nps-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; margin: 4px 0 16px; }
.nps-seg.nps-pos { background: #2e9e5b; } .nps-seg.nps-neu { background: #f2c230; } .nps-seg.nps-neg { background: #d9473f; }
.nps-cols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }
.nps-col { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid; border-radius: var(--r-lg); padding: 14px 16px; }
.nps-col.nps-pos { border-top-color: #2e9e5b; } .nps-col.nps-neu { border-top-color: #f2c230; } .nps-col.nps-neg { border-top-color: #d9473f; }
.nps-pct { margin: 0 0 8px; font-weight: 700; } .nps-pct span { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-right: 4px; }
.nps-q { margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--line); font-style: italic; }
.nps-q p { margin: 0; }
.nps-note { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }
html[data-contrast="high"] .stats-head { background: #000; color: #ff0; border: 2px solid #ff0; }
.pl-w { background: #6d6e70; } .pl-pg { background: #cfcfcf; color: #333 !important; border: 1px solid #999; }
