/* 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);
}

: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);
  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);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@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;
  overflow-x: hidden;
}

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); }

.mono { font-family: var(--font-mono); 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: 22px var(--gutter);
  max-width: 1440px;
  margin: 0 auto;
  position: relative;
}

.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; justify-self: start; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: grid; place-items: center;
}
.brand-mark span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.brand-name { font-family: var(--font-display); font-weight: 300; font-size: 21px; letter-spacing: 0.18em; text-transform: uppercase; }

.site-nav { display: flex; gap: 30px; font-size: 14px; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.btn):hover { color: var(--accent); }
.nav-cta, .nav-lang { display: none; }

.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); }

.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);
}

/* ── Zdjęcia / miejsca na zdjęcia ───────────────────────── */
.media { margin: 0 auto; padding: clamp(56px, 7vw, 88px) var(--gutter) 0; display: flex; justify-content: center; }
.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 .photo { display: block; height: auto; object-fit: cover; background: var(--slot); }

.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; }

/* ── 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); }

/* ── Triaż: priorytety ──────────────────────────────────── */
.prios {
  display: flex; justify-content: center; gap: 28px;
  padding: 64px var(--gutter) 0;
}
.prio {
  width: 300px; max-width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 0; border: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit;
  opacity: .45; transform: none;
  transition: opacity .3s, transform .3s;
}
.prio:hover { opacity: .75; }
.prio.is-active { opacity: 1; transform: translateY(-6px); }
.prio:focus-visible { outline-offset: 6px; border-radius: 18px; }

.prio-card {
  width: 100%;
  display: flex; flex-direction: column; gap: 14px;
  padding: 22px; border-radius: 16px; text-align: left;
  background: var(--surface); box-shadow: 0 0 0 1px var(--line);
}
.prio-head { display: flex; justify-content: space-between; align-items: center; }
.prio-head .mono { font-size: 11px; color: var(--muted); }
.prio-tag { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--line); color: var(--ink); }
.prio-tag-cito { background: var(--accent); color: #1e2320; }
.prio-study { font-size: 15px; font-weight: 500; }
.prio-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.prio-bar span { display: block; height: 100%; border-radius: 2px; background: var(--muted); }
.prio[data-prio="0"] .prio-bar span { background: var(--accent); }
.prio-foot { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); }
.prio-left { font-size: 13px; color: var(--ink); }
.prio-name { font-family: var(--font-display); font-weight: 300; font-size: 17px; color: var(--accent); }

.prio-details {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 48px;
  margin: 0 auto; padding: 40px var(--gutter) 0;
  font-size: 14px; color: var(--muted);
}
.prio-details div { display: flex; gap: 6px; }
.prio-details dd { margin: 0; color: var(--ink); font-weight: 500; }

/* ── 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; }
.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; gap: 12px; font-size: 11px; 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-sign {
  font-size: 12px; color: var(--muted);
  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: 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: 0; height: 100vh; height: 100svh; }

.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: 12px; color: var(--muted); letter-spacing: .02em; }

.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-ecg-line { fill: none; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.map-ecg-glow { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linejoin: round; opacity: .12; }
.map-ecg-head-core { fill: var(--accent); }
.map-ecg-head-glow { fill: var(--accent); opacity: .25; animation: ecg-head 1.1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ecg-head { 0%, 100% { transform: scale(.7); opacity: .3; } 50% { transform: scale(1.15); opacity: .12; } }
.map-ecg, .map-ecg-head { transition: opacity .6s; }
.map.is-done .map-ecg { opacity: .55; }
.map.is-done .map-ecg-head { opacity: 0; }

.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 w kolorze tekstu, fale „sonaru” i plakietka – kontrast z pomarańczowymi kropkami. */
.map-hq-ring { fill: var(--surface); stroke: var(--ink); stroke-width: 2.4; }
.map-hq-core { fill: var(--accent); }
.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; }
@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);
  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-ecg-head-glow, .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-list { width: 100%; max-width: 720px; text-align: left; }
.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); }

.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, wg wytycznych) ────── */
.eu-band {
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  max-width: calc(1440px - 2 * 48px);
  margin: 0 var(--gutter) 72px; padding: 32px clamp(20px, 3vw, 40px);
  border-radius: 16px; background: #fafaf8; color: #1e2320;
}
@media (min-width: 1440px) { .eu-band { margin-left: auto; margin-right: auto; } }
.eu-band img { height: 72px; width: auto; }
.eu-logos {
  min-height: 72px; display: grid; place-items: center; padding: 8px 20px;
  border: 1px dashed #c3c7c1; border-radius: 8px;
  font-size: 12px; color: #4a504c; text-align: center;
}
.eu-band p { max-width: 760px; text-align: center; font-size: 13px; line-height: 1.6; color: #4a504c; }

/* ── 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-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); }

/* ── Responsywność ──────────────────────────────────────── */
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .features-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; }
}

@media (max-width: 960px) {
  .map-story.is-ready .map-track { height: 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); }
  .lang { display: none; }
  .nav-lang { display: block; }
  .nav-cta { display: inline-flex; margin-top: 8px; }

  .prios { flex-direction: column; align-items: center; gap: 20px; }
  .prio { width: 340px; }
  .prio.is-active { transform: none; }

  .contact { grid-template-columns: minmax(0, 1fr); }
  .report { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .report-copy { align-items: center; }
  .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; }
  .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; }
  .prio-details { flex-direction: column; align-items: center; gap: 8px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
}
