/* Provega — strona główna
   Projekt: Claude Design „Przepisanie strony ProVega” (w duchu Berry).
   Tryb ciemny: klasyczna, neutralna czerń (#121212). */

/* ── Tokeny ─────────────────────────────────────────────── */
:root {
  --accent: #F26722;               /* pomarańcz Provega */
  /* Czcionka jak na provega.pl: Poppins, lekkie odmiany (200/300) w nagłówkach. */
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 200;
  --font-mono: ui-monospace, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --gap-xl: clamp(96px, 12vw, 180px);
  --gap-l: clamp(88px, 10vw, 144px);
  --gap-m: clamp(40px, 6vw, 72px);
  --header-h: 76px;   /* wysokość przyklejonego nagłówka (przewijanie do kotwic, mapa) */
}

:root,
:root[data-theme="light"] {
  --bg: #dfe2dc;
  --surface: #eceee9;
  --ink: #1e2320;
  --muted: color-mix(in srgb, #1e2320 66%, transparent);
  --line: color-mix(in srgb, #1e2320 12%, transparent);
  --slot: color-mix(in srgb, #1e2320 6%, transparent);
  --logo-ink: #4D5057;             /* szary z logo Provega */
  --logo-v: #F25C1F;               /* pomarańcz V z logo */
  --cito: #F5C400;  --cito-ink: #8A6A00;   /* CITO: żółty (tło plakietki / tekst) */
  --pilne: #2F6FD6; --pilne-ink: #2F6FD6;  /* Pilne: niebieski */
  --xray-op: .22;
  --photo-filter: brightness(.92) contrast(.88) sepia(.12);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #121212;                   /* klasyczny ciemny: neutralna czerń */
  --surface: #1e1e1e;
  --ink: #ededed;
  --muted: color-mix(in srgb, #ededed 64%, transparent);
  --line: color-mix(in srgb, #ededed 13%, transparent);
  --slot: color-mix(in srgb, #ededed 6%, transparent);
  --logo-ink: #ededed;
  --logo-v: #F25C1F;
  --cito: #F5C400;  --cito-ink: #F5C400;
  --pilne: #3D82F0; --pilne-ink: #6BA3FF;
  --xray-op: .16;
  --photo-filter: brightness(.68) contrast(.9) sepia(.18);
  color-scheme: dark;
}

/* ── Tło: prześwietlenie zatok ─────────────────────────────
   Zdjęcie RTG zatok (assets/img/rtg-zatoki.webp) wybarwione na pomarańczowo, z przezroczystym tłem
   i wygaszonymi brzegami. Duże, na środku okna, przypięte (nie przewija się), bardzo przygaszone (--xray-op). */
.xray { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xray-inner {
  position: absolute; top: 50%; left: 50%;
  height: max(118vh, 760px); aspect-ratio: 837 / 1023;
  transform: translate(-50%, -46%);
  background: url("../img/rtg-zatoki-v2.webp") center / contain no-repeat;
  opacity: var(--xray-op);
}

/* ── Baza ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Strona nie może przesuwać się w bok (szczególnie na telefonie). „clip” ucina wystające elementy,
   ale w odróżnieniu od „hidden” nie tworzy kontenera przewijania, więc przyklejone sekcje (mapa, triaż) działają dalej.
   „hidden” zostaje jako zapas dla starszych przeglądarek. Powiększanie palcami nadal działa. */
html, body { overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s, color .4s;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; }
em { font-style: normal; }       /* wyróżnienia tylko kolorem, bez kursywy */
img { display: block; max-width: 100%; height: auto; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }

/* Dawniej krój maszynowy; teraz Poppins z cyframi o stałej szerokości (numery, liczniki, godziny). */
.mono { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-size: 15px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ── Przyciski ──────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: 15px; line-height: 1.2;
  border-radius: 999px; padding: 12px 22px;
  text-decoration: none; cursor: pointer;
  border: 1px solid var(--ink);
  transition: background-color .2s, color .2s, opacity .2s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { opacity: .86; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--line); }
.btn-sm { font-size: 14px; padding: 8px 16px; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.actions-center { padding: 28px var(--gutter) 0; margin: 0; }

/* ── Nagłówek ───────────────────────────────────────────── */
.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 18px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  position: sticky; top: 0; z-index: 50;
}
/* Tło nagłówka na całą szerokość okna (sam nagłówek ma max-width), półprzezroczyste z rozmyciem. */
.site-header::before {
  content: ""; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background-color .3s;
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); }
html { scroll-padding-top: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; justify-self: start; }
/* Logo Provega: dwie maski (litery + V), kolory z tokenów, więc działa w obu motywach. */
.brand-logo { position: relative; display: block; height: 17px; aspect-ratio: 1200 / 107; }
.brand-logo-ink, .brand-logo-v {
  position: absolute; inset: 0;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
          mask: var(--logo-mask) center / contain no-repeat;
}
.brand-logo-ink { --logo-mask: url("../img/logo/provega-litery.png"); background: var(--logo-ink); }
.brand-logo-v   { --logo-mask: url("../img/logo/provega-v.png");      background: var(--logo-v); }
.brand-logo-v { transform-origin: 50.5% 50.5%; }   /* środek litery V w pliku maski */

/* Logo w nagłówku strony powitalnej zamiast słowa „Provega”: litery logo mają wysokość małych liter Poppins
   (x-height 0,543 em) i stoją na tej samej linii bazowej co tekst. */
.hero-logo { display: inline-block; position: relative; }
.hero-logo .brand-logo { height: .64em; margin-bottom: -.048em; }   /* litery w pliku zajmują 85% wysokości, 7,5% wolnego miejsca pod nimi */
/* Strona powitalna: duże logo w osobnej linii, pod nim hasło. Rozmiar czcionki logo skaluje też cząstki gamma
   (są w em); szerokość logo to ok. 7,2 em, więc 12vw mieści się na telefonie, a 114px daje ok. 820px na komputerze. */
.hero-title .hero-logo { display: block; width: fit-content; margin: 0 auto .18em; font-size: min(114px, 12vw); }
.hero-title .w:has(.hero-logo) { display: block; width: fit-content; margin: -.1em auto -.14em; }

/* Animacja logo: z V jak ze źródła promieniowania wylatują cząstki gamma (krótkie smugi i drobne punkty),
   a samo V lekko się żarzy. Cząstki tworzy main.js; tu tylko ich ruch. */
.brand-logo-glow { position: absolute; inset: 0; }
.hero-logo .brand-logo-glow { animation: v-glow 2.6s ease-in-out 1.6s infinite; }
@keyframes v-glow {
  0%, 100% { filter: drop-shadow(0 0 .02em rgba(242, 92, 31, .35)); }
  50%      { filter: drop-shadow(0 0 .06em rgba(242, 92, 31, .9)) drop-shadow(0 0 .2em rgba(242, 92, 31, .45)); }
}
.gamma { position: absolute; left: 50.5%; top: 52%; width: 0; height: 0; pointer-events: none; }
.gamma i {
  position: absolute; left: 0; top: -.016em; width: .3em; height: .032em; border-radius: 1em;
  background: linear-gradient(90deg, rgba(242, 92, 31, 0), var(--logo-v));
  transform-origin: 0 50%; opacity: 0;
  animation: gamma var(--dur) cubic-bezier(.15, .6, .3, 1) var(--delay) infinite;
}
.gamma i.dot { width: .06em; height: .06em; top: -.03em; background: var(--logo-v); box-shadow: 0 0 .1em var(--logo-v); }
@keyframes gamma {
  0%   { opacity: 0; transform: rotate(var(--a)) translateX(.14em) scaleX(.3); }
  12%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) scaleX(1); }
}
/* Słowo z logo jest przycięte na czas wysuwania; potem odsłaniamy je, żeby poświata nie była ucięta. */
.reveal-words.is-in .w:has(.hero-logo) { animation: w-unclip 1.6s forwards; }
@keyframes w-unclip { 0%, 99% { overflow: hidden; } 100% { overflow: visible; } }

/* Logo w nagłówku strony i w stopce: V „uderza” raz po najechaniu. */
@keyframes v-beat {
  0%, 100% { transform: none; }
  18% { transform: scale(1.18); }
  40% { transform: scale(.98); }
  60% { transform: scale(1.1); }
}
.brand:hover .brand-logo-v, .footer-logo:hover .brand-logo-v { animation: v-beat .9s cubic-bezier(.3, .7, .4, 1); }
@media (prefers-reduced-motion: reduce) {
  .hero-logo .brand-logo-glow, .gamma i, .brand:hover .brand-logo-v, .footer-logo:hover .brand-logo-v { animation: none; }
  .gamma { display: none; }
}

.site-nav { display: flex; gap: 30px; font-size: 14px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.site-nav a:not(.btn) { position: relative; transition: color .25s; }
.site-nav a.is-current { color: var(--accent); }
.site-nav a.is-current::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.nav-cta, .nav-lang { display: none; }
.header-cta, .site-nav a { white-space: nowrap; }
/* Odnośnik do Provega AI w menu: „AI” w niebieskim kolorze marki Provega AI */
:root { --ai-blue: #2058E6; --ai-neon: #1F5BFF; }
:root[data-theme="dark"] { --ai-blue: #5B86F7; --ai-neon: #2F6BFF; }
.nav-ai span { color: var(--ai-blue); transition: text-shadow .3s; }
.site-nav a.nav-ai:hover { color: var(--ink); }
.nav-ai:hover span { text-shadow: 0 0 10px color-mix(in srgb, var(--ai-neon) 70%, transparent); }

/* Odnośnik pod triażem: jeden wiersz z cienkimi liniami, bez karty */
.ai-teaser {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 36px;
  max-width: 1040px; margin: var(--gap-m) auto 0; padding: 22px 4px;
  border-block: 1px solid var(--line); color: inherit; text-decoration: none;
  width: calc(100% - 2 * var(--gutter));
}
.ai-teaser-brand { font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.ai-teaser-brand span { color: var(--ai-blue); }
.ai-teaser-text { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.ai-teaser-more { display: inline-flex; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ai-blue); white-space: nowrap; }
.ai-teaser-more span { transition: transform .3s var(--ease-out); }
.ai-teaser:hover .ai-teaser-more span { transform: translateX(4px); }
.ai-teaser:hover .ai-teaser-text { color: var(--ink); }
.ai-teaser:focus-visible { outline: 2px solid var(--ai-blue); outline-offset: 4px; }
@media (max-width: 760px) {
  .ai-teaser { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px 2px; }
}

.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }

.tone-switch { display: flex; padding: 3px; border-radius: 999px; background: var(--line); }
.tone-switch button {
  font: inherit; font-size: 12px; padding: 5px 12px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--ink);
  transition: background-color .2s, box-shadow .2s;
}
.tone-switch button[aria-pressed="true"] { background: var(--bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.lang { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 4px 3px; border-radius: 4px; }
.lang a:hover { color: var(--accent); }
.lang a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.menu-toggle {
  display: none;
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--ink); cursor: pointer;
  place-items: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 16px; height: 1.5px; background: currentColor;
  transition: transform .2s, opacity .2s;
}
.menu-toggle span { position: relative; }
.menu-toggle span::before,
.menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* ── Sekcje i typografia ────────────────────────────────── */
.section {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 18px;
  padding: var(--gap-xl) var(--gutter) 0;
  max-width: 1440px; margin: 0 auto;
}

.display {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(40px, 5.6vw, 76px); line-height: 1.08; letter-spacing: -0.03em;
  max-width: 980px; text-wrap: balance;
}
.title {
  font-family: var(--font-display); font-weight: var(--display-weight);
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.12; letter-spacing: -0.025em;
  text-wrap: balance;
}
.display em, .title em, .stat-num em { color: var(--accent); }
/* Nadtytuł w nagłówku H2: fraza dla wyszukiwarek (usługi, tryby opisów) nad sloganem, w stylu „kicker”. */
.title .title-kicker {
  display: block; margin-bottom: 14px;
  font-family: var(--font-body); font-size: 13px; font-weight: 400; line-height: 1.5;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

.hero-sub { font-family: var(--font-body); font-size: clamp(19px, 2vw, 22px); font-weight: 400; letter-spacing: -0.01em; line-height: 1.3; }
.lead { max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }

.hero { gap: 22px; padding-top: clamp(56px, 8vw, 112px); }
.hero .hero-sub { margin-top: 18px; }

.section-rule { position: relative; padding-top: var(--gap-l); }
.section-rule::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line);
}

/* ── Licznik opisanych badań (pod triażem) i liczba specjalistów (na stronie powitalnej) ── */
.live-wrap { display: flex; justify-content: center; padding: 40px var(--gutter) 0; }
/* Ramka z cienką linią: etykieta „Na żywo” u góry, pod nią duża liczba i podpis */
.live-counter {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "dot label" "num num" "unit unit";
  align-items: center; gap: 0 10px;
  width: min(100%, 640px); margin: 0; padding: 22px 28px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px; color: var(--muted);
  transition: border-color .3s;
}
.live-dot {
  grid-area: dot; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent);
  animation: live-dot 1.8s ease-out infinite;
}
@keyframes live-dot { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.live-label { grid-area: label; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.live-num {
  grid-area: num; display: inline-flex; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(44px, 9vw, 64px); font-weight: 200; line-height: 1; color: var(--ink);
  font-variant-numeric: tabular-nums; letter-spacing: -0.03em;
}
.live-unit { grid-area: unit; margin-top: 10px; }
@media (min-width: 640px) {
  /* szerzej: podpis po prawej, na linii bazowej liczby */
  .live-counter { grid-template-columns: auto auto 1fr; grid-template-areas: "dot label label" "num num unit"; }
  .live-num { padding-right: 24px; }
  .live-unit { align-self: end; justify-self: end; text-align: right; white-space: nowrap; margin: 0 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
}
.live-digit { display: inline-block; text-align: center; }   /* równą szerokość cyfr daje tabular-nums */
.live-digit.is-rolling { animation: live-roll .45s var(--ease-out); }
@keyframes live-roll { from { transform: translateY(-.7em); opacity: 0; color: var(--accent); } to { transform: none; opacity: 1; } }
/* przy każdym nowym opisie ramka na chwilę łapie kolor akcentu */
.live-counter.is-bump { animation: live-bump .8s var(--ease-out); }
@keyframes live-bump { 30% { border-color: color-mix(in srgb, var(--accent) 55%, transparent); } }
.hero-stat {
  display: inline-flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 4px 10px;
  margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center;
}
.hero-stat strong { font-family: var(--font-display); font-size: 28px; font-weight: 300; letter-spacing: -0.02em; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .live-dot, .live-digit.is-rolling, .live-counter.is-bump { animation: none; } }

/* ── Zdjęcia / miejsca na zdjęcia ───────────────────────── */
.media { margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 0; display: flex; justify-content: center; overflow-x: clip; }   /* zdjęcie powiększone przed odsłonięciem nie wystaje poza ekran */
.media .slot, .media .photo { width: 100%; }
.media-hero :is(.slot, .photo)   { max-width: 1040px; aspect-ratio: 1040 / 560; border-radius: 18px; }
.media-ris          { padding-top: var(--gap-m); }
.media-ris :is(.slot, .photo)    { max-width: 880px; aspect-ratio: 880 / 440; border-radius: 16px; }
.media-doctor       { padding-top: var(--gap-m); }
.media-doctor :is(.slot, .photo) { max-width: 1040px; aspect-ratio: 1040 / 520; border-radius: 18px; }
.media picture { display: contents; }   /* <picture> z WebP: obrazek zachowuje się jak bezpośrednie dziecko */
.media .photo { display: block; height: auto; object-fit: cover; background: var(--slot); }
/* Stonowanie zdjęć: przyciemnienie i lekko ciepły, „kliszowy” odcień (w ciemnym motywie mocniej),
   a dół zdjęcia łagodnie wtapia się w tło strony zamiast kończyć się ostrą krawędzią. */
.media .photo {
  filter: var(--photo-filter);
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .25) 100%);
          mask-image: linear-gradient(to bottom, #000 62%, rgba(0, 0, 0, .25) 100%);
  transition: filter .6s var(--ease-out);
}
.media:hover .photo { filter: none; }   /* po najechaniu pełne zdjęcie */

.slot {
  display: grid; place-items: center; text-align: center;
  padding: 24px;
  background: var(--slot);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted); font-size: 13px;
  overflow: hidden;
}
.slot > span { max-width: 320px; }

/* ── Wyróżnienia (Diamenty Forbesa) ─────────────────────── */
.awards {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  max-width: 1040px; margin: 0 auto; padding: var(--gap-m) var(--gutter) clamp(56px, 7vw, 88px);
}
.awards-lead { font-size: 15px; color: var(--muted); }
.awards-list {
  list-style: none; margin: 18px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(16px, 3.5vw, 40px);
  width: 100%; max-width: 900px;
}
.awards-list li { display: flex; justify-content: center; }
.awards-list img {
  width: auto; height: clamp(72px, 9vw, 110px); opacity: .82;
  transition: opacity .3s, transform .4s var(--ease-out);
}
.awards-list li:hover img { opacity: 1; transform: translateY(-4px) scale(1.04); }
:root[data-theme="dark"] .awards-list img { filter: invert(1); }

/* ── Kolumny cech ───────────────────────────────────────── */
.features {
  display: grid; gap: clamp(32px, 4vw, 56px);
  max-width: 960px; margin: 0 auto;
  padding: 64px var(--gutter) 0;
}
.features-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1160px; gap: 48px; padding-top: var(--gap-m); }
.feature { display: flex; flex-direction: column; gap: 8px; }
.feature h3 { font-size: 16px; font-weight: 500; }
.feature p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* ── Certyfikaty i zgodność (dla placówek) ────────────────── */
.certs {
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  max-width: 1040px; margin: 0 auto; padding: var(--gap-m) var(--gutter) 0;
}
.certs-lead { max-width: 560px; font-size: 15px; color: var(--muted); }
/* Trzy kolumny rozdzielone cienkimi liniami, bez kart i ikon; numer normy cienkim krojem jak licznik „140+”. */
.cert-list {
  list-style: none; margin: 30px 0 0; padding: 0; width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.cert {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 30px 30px 28px; text-align: left;
  transition: background-color .35s var(--ease-out);
}
.cert + .cert { border-left: 1px solid var(--line); }
.cert p { margin: 0; }
.cert-std { display: flex; flex-direction: column; gap: 6px; }
.cert-std-pre { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.cert-std-num {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(46px, 4.6vw, 62px);
  line-height: .95; letter-spacing: -0.03em; color: var(--ink);
}
.cert-desc { max-width: 26ch; font-size: 14px; line-height: 1.5; color: var(--muted); }
/* Jednostka certyfikująca: na dole kolumny, oddzielona krótką linią. */
.cert-by {
  margin-top: auto !important; padding-top: 14px; position: relative;
  display: flex; flex-direction: column; gap: 3px;
  font-size: 13px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.cert-by::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 1px; background: var(--line); }
.cert-by-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Podgląd skanu: lupa pojawia się tylko, gdy plik istnieje; klikalny jest cały kafel. */
.cert.is-previewable { cursor: zoom-in; }
.cert.is-previewable:hover { background: color-mix(in srgb, var(--ink) 3%, transparent); }
.cert-zoom {
  position: absolute; top: 24px; right: 24px;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted);
  cursor: zoom-in; transition: color .25s, border-color .25s;
}
.cert-zoom svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.cert.is-previewable:hover .cert-zoom, .cert-zoom:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.cert-zoom:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .cert-list { grid-template-columns: minmax(0, 1fr); }
  .cert { padding: 24px 6px; }
  .cert + .cert { border-left: 0; border-top: 1px solid var(--line); }
  .cert-zoom { top: 22px; right: 6px; }
  .cert-desc { max-width: 34ch; }
}

/* Znak certyfikacji CCJ + symbol akredytacji PCA w stopce (zasady CCJ ed. 8): grafiki bez zmian i w pełnych kolorach,
   norma wpisana w białe pole znaku CCJ, numer akredytacji pod symbolem PCA, oba Arialem.
   Symbol PCA ma 80×120 px, czyli więcej niż wymagane minimum 20×30 mm. */
.certs-mark { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 18px 0 8px; }
.certs-mark figcaption { font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.cert-mark {
  display: inline-flex; align-items: flex-start; gap: 6px; padding: 7px 7px 4px; border: 0;
  border-radius: 8px; background: #fff; color: #000;
  font-family: Arial, Helvetica, sans-serif; line-height: 1.15;
}
.cert-mark img { display: block; height: 120px; width: auto; }
.cert-mark-ccj { position: relative; }
.cert-mark-norm {
  position: absolute; left: 5%; right: 5%; top: 3%; height: 32%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11.5px; font-weight: 700; color: #005b2c;
}
.cert-mark-pca { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cert-mark-ac { font-size: 12px; }

.cert-dialog {
  max-width: min(92vw, 860px); max-height: 92svh; padding: 0; border: 0; border-radius: 12px;
  background: #fff; overflow: visible;   /* krzyżyk wystaje poza róg, żeby nie zasłaniał skanu */
}
.cert-dialog::backdrop { background: rgba(10, 12, 11, .72); backdrop-filter: blur(4px); }
.cert-dialog img { display: block; border-radius: 12px; max-width: 100%; max-height: 92svh; width: auto; height: auto; }   /* cały skan mieści się na ekranie */
.cert-dialog-close {
  position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%;
  background: #1e2320; color: #fff; font-size: 20px; line-height: 1; cursor: pointer;
}

/* NIS2: kafel bez skanu otwiera okno z opisem (plus zamiast lupy). Okno w kolorach motywu, cienkie linie jak w sekcji. */
.cert.is-info { cursor: pointer; }
.cert-more { cursor: pointer; }
.info-dialog {
  width: min(92vw, 620px); max-height: 88svh; overflow: auto;
  padding: clamp(28px, 4vw, 44px); border: 0; border-radius: 16px;
  background: var(--bg); color: var(--ink); text-align: left;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, .28);
}
.info-dialog::backdrop { background: rgba(10, 12, 11, .72); backdrop-filter: blur(4px); }
.info-dialog p { margin: 0; }
.info-dialog-close {
  position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted);
  font-size: 20px; line-height: 1; cursor: pointer; transition: color .25s, border-color .25s;
}
.info-dialog-close:hover, .info-dialog-close:focus-visible { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.info-dialog-kicker { padding-right: 44px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.info-dialog-title {
  margin: 8px 0 0; font-family: var(--font-display); font-weight: 200; font-size: clamp(44px, 5vw, 60px);
  line-height: .95; letter-spacing: -0.03em; color: var(--ink);
}
.info-dialog-lead { margin-top: 20px !important; font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.info-dialog-label { margin-top: 30px !important; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.info-dialog-list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.info-dialog-list li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--ink); }
.info-dialog-note { margin-top: 18px !important; font-size: 13px; line-height: 1.55; color: var(--muted); }
.info-dialog-wide { width: min(92vw, 760px); }
/* Opis projektu FE: zwykłe akapity między listami */
.info-dialog-text { margin-top: 18px !important; font-size: 15px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.info-dialog-title + .info-dialog-text { margin-top: 20px !important; color: var(--ink); }
.info-dialog-text + .info-dialog-list { margin-top: 14px; }

/* ── Triaż: priorytety ──────────────────────────────────── */
/* Trzy kolumny z cienkimi liniami (jak certyfikaty). Czas opisu to główny element; aktywny priorytet ma kolorową
   kreskę na górnej linii i pełny kontrast, pozostałe są przygaszone. Aktywny wybiera przewijanie (main.js). */
.prios {
  list-style: none; margin: 44px auto 0; padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: 1040px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.prio { --prio-c: var(--accent); --prio-ink: var(--accent); }
.prio[data-prio="0"] { --prio-c: var(--cito); --prio-ink: var(--cito-ink); }
.prio[data-prio="1"] { --prio-c: var(--pilne); --prio-ink: var(--pilne-ink); }
.prio {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: 28px 28px 26px; text-align: left;
  opacity: .55; transition: opacity .6s var(--ease-out);
}
.prio + .prio { border-left: 1px solid var(--line); }
.prio::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--prio-c); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .7s var(--ease-out);
}
.prio.is-active { opacity: 1; }
.prio.is-active::before { transform: none; }
.prio p { margin: 0; }

.prio-name { display: flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--prio-ink); }
.prio-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--prio-c); }
.prio.is-active .prio-dot { animation: prio-pulse 1.8s ease-in-out infinite; }
@keyframes prio-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--prio-c) 22%, transparent); } }
.prio-limit {
  font-family: var(--font-display); font-weight: 200; font-size: clamp(44px, 4.4vw, 60px);
  line-height: .95; letter-spacing: -0.03em; color: var(--ink);
}
.prio-limit-text { font-size: clamp(32px, 3.2vw, 42px); line-height: 1.05; }   /* „wg umowy” zamiast liczby */
.prio-limit-sub { display: block; margin-top: 8px; font-family: var(--font-body); font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.prio-case { display: flex; flex-direction: column; gap: 8px; }
.prio-study { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--ink); }
/* W triażu bez kroju maszynowego: numery i odliczanie Poppinsem z cyframi o stałej szerokości. */
.prio .mono { font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.prio-study .mono { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.prio-bar { display: block; height: 1px; background: var(--line); }
.prio-bar span { display: block; height: 100%; background: var(--prio-c); }
.prio-left-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.prio-left { font-size: 14px; font-weight: 400; color: var(--ink); }
.prio-who { display: flex; flex-direction: column; gap: 3px; margin-top: auto !important; font-size: 13px; line-height: 1.4; color: color-mix(in srgb, var(--ink) 78%, transparent); }
.prio-who span { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.title .t-cito { color: var(--cito-ink); }
.title .t-pilne { color: var(--pilne-ink); }

.prio-note { margin: 22px auto 0; padding: 0 var(--gutter); text-align: center; font-size: 13px; color: var(--muted); }
.prio-note strong { font-weight: 500; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .prio.is-active .prio-dot { animation: none; } }

/* Scrollytelling triażu: sekcja przykleja się pod nagłówkiem, a przewijanie podświetla kolejno CITO, Pilne i Planowe.
   Klasę is-sticky dodaje main.js tylko wtedy, gdy całość mieści się na ekranie (i bez „ograniczenia ruchu”). */
.triage-story { padding-top: var(--gap-xl); overflow-anchor: none; }
.triage-story .triage-head { padding-top: 0; }
.triage-story.is-sticky .triage-track { height: 235vh; }   /* 3.12.2026: krótsza bezwładność (było 280vh) */
.triage-story.is-sticky .triage-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center;
}

/* ── Przykładowy opis ───────────────────────────────────── */
.report {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px); align-items: center;
  max-width: 1180px; text-align: left;
}
.report-copy { display: flex; flex-direction: column; gap: 18px; }
/* Licznik „Na żywo” w lewej kolumnie, pod tekstem: tytuł równa się z górą karty opisu, licznik z jej dołem */
.report { row-gap: 36px; }
.report-copy { grid-column: 1; grid-row: 1; align-self: start; }
.report-card { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; }
.report > .live-wrap { grid-column: 1; grid-row: 2; align-self: end; justify-content: flex-start; padding: 0; }
.report .live-counter { width: 100%; grid-template-columns: auto 1fr; grid-template-areas: "dot label" "num num" "unit unit"; }
.report .live-num { padding-right: 0; }
.report .live-unit { justify-self: start; text-align: left; white-space: normal; margin: 10px 0 0; padding-top: 0; border-top: 0; }
.report-copy .title { font-size: clamp(38px, 4.3vw, 56px); }
.report-copy .lead { max-width: 440px; }

.report-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: clamp(24px, 3vw, 36px) clamp(22px, 3vw, 40px);
  border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.report-meta {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding-bottom: 12px; border-bottom: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--ink);
}
.report-meta span:last-child { font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.report-card p { font-family: var(--font-display); font-weight: 300; font-size: 18px; line-height: 1.6; text-wrap: pretty; }
.report-card p em { color: var(--accent); }
.report-body { display: flex; flex-direction: column; gap: 16px; min-height: 13.5em; transition: opacity .35s; }
.report-body.is-out { opacity: 0; }
.report-meta [data-report-title] { transition: opacity .3s; }
.is-typing::after {
  content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -.15em;
  background: var(--accent); animation: caret .8s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.report-sign {
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums;
  padding-top: 12px; border-top: 1px solid var(--line);
}

/* ── Scrollytelling: mapa placówek ──────────────────────── */
.stat-num {
  margin: 0;
  font-family: var(--font-display); font-weight: 100; font-size: clamp(96px, 12vw, 160px);
  line-height: .95; letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}

.map-story { padding-top: var(--gap-l); overflow-anchor: none; }
.map-track { position: relative; }
.map-story.is-ready .map-track { height: 265vh; }   /* było 320vh */

.map-sticky {
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center; gap: clamp(32px, 5vw, 72px);
  max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter);
}
.map-story.is-ready .map-sticky { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); }

.map-copy { display: flex; flex-direction: column; gap: 12px; }
.kicker { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.map-copy .hero-sub { max-width: 380px; }
.map-caption { min-height: 3.2em; max-width: 380px; font-size: 16px; color: var(--muted); transition: opacity .3s; }
.map-meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-meta-num { font-weight: 500; color: var(--ink); }

.map-figure { position: relative; display: flex; justify-content: center; }
.map { width: 100%; max-height: 82vh; height: auto; overflow: visible; }
.map-land { fill: var(--surface); }
.map-edge { fill: none; stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1.2; stroke-linejoin: round; }
.map-scanned { fill: color-mix(in srgb, var(--accent) 7%, transparent); }

.map-dot-core { fill: color-mix(in srgb, var(--ink) 30%, transparent); transition: fill .35s; }
.map-dot-ring { fill: none; stroke: var(--accent); stroke-width: 1.2; opacity: 0; transform: scale(.4); transform-box: fill-box; transform-origin: center; }
.map-dot.is-lit .map-dot-core { fill: var(--accent); }
.map-dot.is-lit .map-dot-ring { animation: map-ping 1.1s ease-out 1; }
/* Centrala (Lublin): znak Provegi (koło z V) w kolorze tekstu, fale „sonaru” i plakietka – kontrast z pomarańczowymi kropkami. */
.map-hq-ring { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.map-hq-v { fill: none; stroke: var(--logo-v); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.map-hq-glow { transform-box: fill-box; transform-origin: center; animation: hq-glow 2.4s ease-in-out infinite; }
@keyframes hq-glow { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }
.map-hq-wave {
  fill: none; stroke: var(--ink); stroke-width: 1.6; opacity: 0;
  transform-box: fill-box; transform-origin: center;
  animation: hq-wave 2.4s cubic-bezier(.2, .6, .35, 1) infinite;
}
.map-hq-wave-2 { animation-delay: 1.2s; }
@keyframes hq-wave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.6); opacity: 0; } }
.map-hq-pill { fill: var(--ink); }
.map-hq-label { fill: var(--bg); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
/* Piktogramy anatomiczne: spadają do zapalanej placówki, odbijają się i „wsiąkają” w kropkę. */
.map-picto-fall { animation: picto-drop 1.8s cubic-bezier(.45, 0, .55, 1) both; }
.map-picto-bg { fill: var(--surface); stroke: var(--accent); stroke-width: 1.6; }
.map-picto-icon { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@keyframes picto-drop {
  0%   { transform: translateY(-64px) scale(.7); opacity: 0; }
  15%  { opacity: 1; }
  38%  { transform: translateY(0) scale(1); animation-timing-function: ease-out; }
  46%  { transform: translateY(-6px) scale(1); animation-timing-function: ease-in; }
  54%  { transform: translateY(0) scale(1); opacity: 1; }
  80%  { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(.15); opacity: 0; }
}
@keyframes map-ping {
  0%   { opacity: .9; transform: scale(.4); }
  100% { opacity: 0;  transform: scale(1); }
}

/* ── Animacje wejścia i przejścia (klasy dodaje main.js) ── */
.has-reveal .reveal {
  opacity: 0; transform: translateY(44px); filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: var(--rd, 0ms);
}
.has-reveal .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Zespół: zdjęcie dodatkowo odsłania się z przycięcia, razem z wjazdem karty. */
.has-reveal .person.reveal .person-photo {
  clip-path: inset(14% 12% round 28px);
  transition: clip-path 1.2s var(--ease-out); transition-delay: var(--rd, 0ms);
}
.has-reveal .person.reveal.is-in .person-photo { clip-path: inset(0 round 14px); }

/* Nagłówki: słowa wysuwają się spod maski, jedno po drugim. */
.reveal-words .w {
  display: inline-block; overflow: hidden; vertical-align: top;
  padding: .1em .03em .14em; margin: -.1em -.03em -.14em;
}
.reveal-words .w > span {
  display: inline-block; transform: translateY(115%) rotate(6deg); transform-origin: 0 100%;
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--wi, 0) * 60ms + 80ms);
}
.reveal-words.is-in .w > span { transform: none; }

/* Zdjęcia: odsłonięcie z przycięcia; paralaksa przez właściwość translate (ustawia main.js). */
.has-reveal .reveal-media { opacity: 0; transition: opacity .8s var(--ease-out); }
.has-reveal .reveal-media .photo {
  clip-path: inset(12% 14% round 32px); transform: scale(1.14);
  transition: clip-path 1.4s var(--ease-out), transform 1.8s var(--ease-out), filter .6s var(--ease-out);
  will-change: translate;
}
.has-reveal .reveal-media.is-in { opacity: 1; }
.has-reveal .reveal-media.is-in .photo { clip-path: inset(0 round 0); transform: none; }

/* Przejścia między sekcjami: linia z jednym uderzeniem serca. */
.has-pulse { position: relative; }
.has-pulse.section-rule::before { display: none; }
.pulse-divider {
  position: absolute; left: 50%; top: calc(var(--gap-xl) * .48);
  width: min(560px, 76vw); transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.section-rule > .pulse-divider { top: calc(var(--gap-l) * .48); }
.pulse-divider svg { display: block; width: 100%; height: auto; overflow: visible; }
.pulse-divider path { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.pulse-base {
  stroke: color-mix(in srgb, var(--ink) 30%, transparent); stroke-width: 1.2;
  stroke-dasharray: 1 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.4s var(--ease-out);
}
.pulse-beat {
  stroke: var(--accent); stroke-width: 2.2;
  stroke-dasharray: .16 1.2; stroke-dashoffset: .16;
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--accent) 70%, transparent));
}
.pulse-divider.is-in .pulse-base { stroke-dashoffset: 0; }
.pulse-divider.is-in .pulse-beat { animation: pulse-run 4.8s .5s cubic-bezier(.45, .05, .35, 1) infinite; }
@keyframes pulse-run {
  0%   { stroke-dashoffset: .16; }
  38%  { stroke-dashoffset: -1; }
  100% { stroke-dashoffset: -1; }
}

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .map-story.is-ready .map-track { height: auto; }
  .map-story.is-ready .map-sticky { position: static; height: auto; padding-top: 24px; }
  .map-dot.is-lit .map-dot-ring, .map-hq-glow, .map-hq-wave { animation: none; }
}

/* ── Zespół ─────────────────────────────────────────────── */
.team { max-width: 1240px; margin: 0 auto; padding: var(--gap-m) var(--gutter) 0; }
.team-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; margin-bottom: clamp(40px, 5vw, 64px); }
.team-group { margin-top: clamp(48px, 6vw, 72px); }
.team-head + .team-group { margin-top: 0; }
.team-group-title {
  display: flex; align-items: center; gap: 16px; margin: 0 0 28px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.team-group-title::before, .team-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.team-grid {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 24px;
}
.team-grid > .person { flex: 0 1 172px; }
.person { display: flex; flex-direction: column; gap: 4px; }
.person-photo {
  display: block; width: 100%; aspect-ratio: 4 / 5; margin-bottom: 12px;
  border-radius: 14px; object-fit: cover; object-position: center 22%;
  background: var(--slot); box-shadow: inset 0 0 0 1px var(--line);
}
.person-initials {
  display: grid; place-items: center;
  font-size: 34px; font-weight: 200; letter-spacing: .06em; color: var(--muted);
}
.person-name { font-size: 16px; font-weight: 500; line-height: 1.3; }
.person-role { display: flex; flex-direction: column; font-size: 11px; line-height: 1.45; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.person-note { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }


/* ── Chipsy ─────────────────────────────────────────────── */
.chips {
  list-style: none; margin: 0 auto; padding: 64px var(--gutter) 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 820px;
}
.chips li { font-size: 13px; padding: 7px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }

/* ── FAQ ────────────────────────────────────────────────── */
.faq { gap: 40px; }
.faq-panels, .faq-list { width: 100%; max-width: 720px; text-align: left; }
/* Zakładki FAQ: przełącznik w stylu przełącznika motywu, wyśrodkowany nad listą. */
.faq-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--line); }
.faq-tabs[hidden] { display: none; }
.faq-tabs [role="tab"] {
  font: inherit; font-size: 14px; padding: 8px 18px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted);
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.faq-tabs [role="tab"]:hover { color: var(--ink); }
.faq-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.faq-list[role="tabpanel"] { animation: faq-in .35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .faq-list[role="tabpanel"] { animation: none; } }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font: inherit; }
.faq-item button {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; border: 0; background: transparent; cursor: pointer;
  font: 500 17px var(--font-body); color: var(--ink); text-align: left;
}
.faq-item button:hover > span:first-child { color: var(--accent); }
.faq-sign { position: relative; flex: none; width: 14px; height: 14px; color: var(--muted); }
.faq-sign::before, .faq-sign::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 1.5px;
  background: currentColor; transition: transform .2s;
}
.faq-sign::after { transform: rotate(90deg); }
.faq-item button[aria-expanded="true"] .faq-sign::after { transform: rotate(0deg); }
.faq-answer p { margin: 0 0 22px; max-width: 600px; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* ── CTA ────────────────────────────────────────────────── */
.cta { gap: 22px; padding-bottom: clamp(80px, 9vw, 120px); }
.display-cta { font-size: clamp(42px, 5.4vw, 72px); }

/* ── Kontakt ────────────────────────────────────────────── */
.contact {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 96px); align-items: start;
  max-width: 1180px; margin: 0 auto;
  padding: var(--gap-m) var(--gutter) clamp(80px, 9vw, 120px);
  scroll-margin-top: 24px;
}
.contact-intro { display: flex; flex-direction: column; gap: 18px; }
.contact-intro .lead { max-width: 420px; }
.contact-details { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-details li { display: flex; flex-direction: column; gap: 2px; font-size: 16px; }
.contact-details span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--accent); }

/* Dwa formularze z przełącznikiem (wygląd jak zakładki FAQ). */
.contact-forms { display: flex; flex-direction: column; align-items: stretch; gap: 16px; min-width: 0; }
.form-tabs { display: flex; align-self: flex-start; padding: 4px; border-radius: 999px; background: var(--line); }
.form-tabs[hidden] { display: none; }
.form-tabs [role="tab"] {
  font: inherit; font-size: 14px; padding: 8px 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted); transition: background-color .25s, color .25s, box-shadow .25s;
}
.form-tabs [role="tab"]:hover { color: var(--ink); }
.form-tabs [role="tab"] { display: flex; flex-direction: column; align-items: center; line-height: 1.25; border-radius: 14px; padding: 8px 18px 7px; }
.form-tabs { border-radius: 18px; }
.form-tabs [role="tab"] small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.form-tabs [role="tab"][aria-selected="true"] small { color: var(--accent); }
.form-tabs [role="tab"][aria-selected="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .18); }
.contact-form[role="tabpanel"]:not([hidden]) { animation: faq-in .35s var(--ease-out); }
.contact-form[hidden] { display: none; }

/* Pola wyboru: tematy (placówki) i „Jestem rezydentem” (lekarze). */
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; border-radius: 12px; }
.choice-row.is-invalid { box-shadow: 0 0 0 1px #c2410c; padding: 6px; }
:root[data-theme="dark"] .choice-row.is-invalid { box-shadow: 0 0 0 1px #fb923c; }
.choice { position: relative; display: inline-flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; }
.choice-row .choice {
  padding: 9px 14px 9px 12px; border-radius: 999px; background: var(--bg);
  border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); transition: border-color .2s, background-color .2s;
}
.choice-row .choice:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.choice-row .choice:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.choice input {
  appearance: none; flex: none; width: 18px; height: 18px; margin: 1px 0 0; border-radius: 5px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 45%, transparent); background: var(--bg); cursor: pointer;
  display: grid; place-items: center; transition: background-color .2s, border-color .2s;
}
.choice input::after { content: ""; width: 9px; height: 5px; border: 2px solid #1e2320; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.choice input:checked { background: var(--accent); border-color: var(--accent); }
.choice input:checked::after { opacity: 1; }
.choice input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.choice-single { padding: 2px 0; }
[data-temat-text][hidden] { display: none; }
[data-temat-text]:not([hidden]) { animation: faq-in .35s var(--ease-out); }

.contact-form {
  display: flex; flex-direction: column; gap: 20px;
  padding: clamp(22px, 3vw, 36px); border-radius: 16px;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field-group legend { font-size: 14px; font-weight: 400; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; font-weight: 300; color: var(--ink);
  padding: 12px 14px; border-radius: 10px;
  background: var(--bg); border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.55; }
.field input:hover, .field textarea:hover { border-color: color-mix(in srgb, var(--ink) 45%, transparent); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent);
}
.field [aria-invalid="true"] { border-color: #c2410c; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #fb923c; }
.field-error { margin: 0; min-height: 0; font-size: 13px; color: #b23a0a; }
:root[data-theme="dark"] .field-error { color: #fdba74; }
.field-error:empty { display: none; }

.field-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field-group legend { padding: 0; margin-bottom: 2px; }
.field-hint { font-size: 13px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: 6px; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13px; color: var(--muted); }
.form-note a { color: inherit; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.form-actions .btn:disabled { opacity: .6; cursor: progress; }
.form-status { font-size: 14px; }
.form-status[data-state="ok"] { color: var(--ink); font-weight: 400; }
.form-status[data-state="ok"]::before { content: "✓ "; color: var(--accent); }
.form-status[data-state="error"] { color: #b23a0a; }
:root[data-theme="dark"] .form-status[data-state="error"] { color: #fdba74; }

/* ── Pasek funduszy UE (zawsze jasny i na białym tle, wg zasad oznaczania projektów FE) ── */
.eu-band {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: calc(1440px - 2 * 48px);
  margin: 0 var(--gutter) 72px; padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 48px);
  border-radius: 16px; background: #fff; color: #1e2320; text-align: center;
}
@media (min-width: 1440px) { .eu-band { margin-left: auto; margin-right: auto; } }
.eu-band .eu-logos { display: block; width: 100%; max-width: 900px; height: auto; }
.eu-title { max-width: 860px; font-size: 15px; font-weight: 500; line-height: 1.55; color: #1e2320; }
.eu-band p { max-width: 760px; font-size: 14px; line-height: 1.6; color: #3f4541; }
.eu-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin: 0; font-size: 14px; }
.eu-amounts div { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 6px; }
.eu-amounts dt { color: #3f4541; }
.eu-amounts dt::after { content: ":"; }
.eu-amounts dd { margin: 0; font-weight: 500; color: #1e2320; }
/* Przycisk „Pełny opis projektu” w pasku FE, otwiera okno #ue-info (pasek ma zawsze białe tło, więc kolory są stałe) */
.eu-ai-link {
  font: inherit; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border-radius: 999px;
  border: 1px solid #1e2320; color: #1e2320; font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .3s, color .3s;
}
.eu-ai-link span { transition: transform .3s var(--ease-out); }
.eu-ai-link:hover { background: #1e2320; color: #fff; }
.eu-ai-link:hover span { transform: translateX(3px); }
.eu-ai-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.eu-more { max-width: 760px; width: 100%; text-align: left; font-size: 14px; color: #3f4541; }
.eu-more summary {
  cursor: pointer; text-align: center; font-weight: 500; color: #1e2320; list-style: none;
}
.eu-more summary::-webkit-details-marker { display: none; }
.eu-more summary::after { content: " +"; color: var(--accent); }
.eu-more[open] summary::after { content: " –"; }
.eu-more summary:focus-visible { outline-offset: 4px; }
.eu-more p, .eu-more ul { margin: 12px 0 0; line-height: 1.6; text-align: left; }
.eu-more ul { padding-left: 20px; }
.eu-more li + li { margin-top: 6px; }

/* ── Podstrony dokumentów (polityka prywatności) ─────────── */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(64px, 8vw, 110px); }
.legal .title { margin: 10px 0 8px; }
.legal-meta { font-size: 13px; color: var(--muted); margin-bottom: 36px; }
.legal h2 { margin: 40px 0 12px; font-size: 20px; font-weight: 500; }
.legal h3 { margin: 24px 0 8px; font-size: 16px; font-weight: 500; }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.legal p + p { margin-top: 10px; }
.legal ul { margin: 8px 0 0; padding-left: 20px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }
.legal code { font-family: var(--font-mono); font-size: .9em; }

/* ── Stopka ─────────────────────────────────────────────── */
.site-footer {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 0 var(--gutter) 40px;
  font-size: 13px; color: var(--muted); text-align: center;
}
.footer-logo { display: block; margin-bottom: 6px; text-decoration: none; }
.footer-logo .brand-logo { height: 14px; }
.footer-tagline { font-family: var(--font-display); font-weight: 300; font-size: 17px; color: var(--accent); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
/* żartobliwy podpis autorów: najmniejszy i najcichszy element stopki */
.footer-credit { margin: 4px 0 0; font-size: 11px; letter-spacing: .02em; color: var(--muted); opacity: .7; }
/* motto ukryte pod podpisem: pojawia się po najechaniu myszką, na telefonie po dotknięciu (klasa is-open z main.js), z klawiatury po Tab */
.footer-credit { position: relative; cursor: default; }
.footer-motto {
  position: absolute; left: 50%; top: calc(100% + 4px); transform: translate(-50%, -4px);
  white-space: nowrap; font-style: italic; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.footer-credit:hover .footer-motto, .footer-credit:focus-visible .footer-motto, .footer-credit.is-open .footer-motto { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .footer-motto { transition: none; } }

/* ── Responsywność ──────────────────────────────────────── */
/* menu z odnośnikiem Provega AI: na średnich szerokościach ciaśniej, żeby przycisk w nagłówku mieścił się na ekranie */
@media (max-width: 1320px) {
  .site-nav { gap: 22px; font-size: 13.5px; }
}
@media (max-width: 1200px) {
  .site-nav { gap: 20px; }
  .header-cta { display: none; }   /* nie mieści się obok menu; „Kontakt” w menu prowadzi do tego samego formularza */
}
@media (max-width: 1100px) {
  .site-nav { gap: 16px; }
  .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
}

@media (max-width: 960px) {
  .map-story.is-ready .map-track { height: 220vh; }   /* było 260vh */
  .map-sticky {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr);
    align-content: center; gap: 12px; text-align: center;
  }
  .map-copy { align-items: center; gap: 6px; padding-top: 16px; }
  .map-copy .stat-num { font-size: clamp(72px, 20vw, 110px); }
  .map-copy .hero-sub { font-size: 17px; }
  .map-caption { font-size: 14px; min-height: 2.8em; }
  .map-figure { min-height: 0; height: 100%; align-items: center; }
  .map { max-height: 52svh; }
  .map-hq-label { font-size: 21px; }
  .map-story:not(.is-ready) .map-copy { padding-bottom: 24px; }
  .site-header { grid-template-columns: 1fr auto; }
  .header-cta { display: none; }
  .menu-toggle { display: grid; }

  .site-nav {
    display: none;
    position: absolute; top: 100%; left: var(--gutter); right: var(--gutter); z-index: 50;
    flex-direction: column; gap: 4px;
    padding: 12px; border-radius: 16px;
    background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 16px 40px rgba(0, 0, 0, .18);
    font-size: 16px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 14px; border-radius: 10px; }
  .site-nav a:not(.btn):hover { background: var(--line); color: var(--ink); }
  .site-nav a.is-current::after { display: none; }
  .lang { display: none; }
  .nav-lang { display: block; }
  .nav-cta { display: inline-flex; margin-top: 8px; }

  /* Telefon: priorytety jeden pod drugim; nieaktywne zwinięte do nazwy i czasu, szczegóły ma tylko aktywny. */
  .prios { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
  .prio { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0 12px; padding: 16px 2px; }
  .prio + .prio { border-left: 0; border-top: 1px solid var(--line); }
  .prio-name { grid-column: 1; }
  .prio-limit, .prio-limit-text { grid-column: 2; grid-row: 1; font-size: 30px; text-align: right; }
  .prio-limit-sub { display: none; }
  .prio-case, .prio-who { grid-column: 1 / -1; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .6s var(--ease-out), opacity .4s, margin .6s var(--ease-out); }
  .prio.is-active .prio-case { max-height: 90px; opacity: 1; margin-top: 14px; }
  .prio.is-active .prio-who { max-height: 60px; opacity: 1; margin-top: 12px !important; }
  .prio-note { margin-top: 16px; font-size: 12px; }
  .triage-head .lead { display: none; }   /* na telefonie zwalnia miejsce, żeby przyklejona sekcja zmieściła się na ekranie */
  .triage-story.is-sticky .triage-track { height: 240vh; }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .report { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .report-copy { align-items: center; }
  .report-copy, .report-card, .report > .live-wrap { grid-column: auto; grid-row: auto; }
  .report > .live-wrap { justify-content: center; }
  .report .live-counter { width: min(100%, 640px); text-align: left; }
  .report-card { text-align: left; }

}

@media (max-width: 640px) {
  .tone-switch button { padding: 5px 10px; }
  .features-3, .features-4 { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .team-grid { gap: 32px 16px; }
  .awards-list { gap: 24px 20px; max-width: 360px; }
  .awards-list img { height: 84px; }
  .site-header .brand-logo { height: 14px; }
  .team-grid > .person { flex-basis: calc(50% - 8px); max-width: 172px; }
  .person-note { font-size: 13px; }
  .media-hero :is(.slot, .photo), .media-doctor :is(.slot, .photo) { aspect-ratio: 4 / 3; }
  .media-ris :is(.slot, .photo) { aspect-ratio: 16 / 10; }
  .report-card p { font-size: 18px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}

/* ── Informacja o ciasteczkach (main.js, pierwsza wizyta) ── */
.cookie-info {
  position: fixed; z-index: 60; left: 50%; bottom: 16px;
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 16px 24px;
  padding: 14px 16px 14px 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--line); border-radius: 16px;
  font-size: 14px; line-height: 1.5; color: var(--muted);
  transform: translate(-50%, 24px); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .4s;
}
.cookie-info.is-in { transform: translate(-50%, 0); opacity: 1; }
.cookie-info.is-hiding { transform: translate(-50%, 24px); opacity: 0; }
.cookie-info p { margin: 0; flex: 1; }
.cookie-info a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.cookie-info .btn { flex: none; }
@media (max-width: 560px) {
  .cookie-info { flex-direction: column; align-items: stretch; padding: 16px; }
  .cookie-info .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .cookie-info { transition: none; } }
