/* ==========================================================================
   TRAUMA.PL — Design System "Salus" v1.0
   Kolorystyka: Teal + Miękka Lawenda | WCAG AA
   ========================================================================== */

/* --- Zmienne globalne --- */
:root {
  /* Teal — zaufanie, spokój, bezpieczeństwo */
  --t900: #083d47;
  --t800: #0a5260;
  --t700: #0d7a8a;
  --t600: #1a95a8;
  --t500: #25afc5;
  --t300: #7ad4e1;
  --t100: #d9f1f5;
  --t50:  #eef9fb;

  /* Lawenda — odkrywanie, uzdrawianie */
  --l700: #5248a8;
  --l600: #6558c0;
  --l500: #7c6fd4;
  --l400: #9589dc;
  --l100: #ebe8f8;
  --l50:  #f5f3fc;

  /* Kryzys — TYLKO dla nagłych przypadków */
  --crisis:    #b91c1c;
  --crisis-bg: #fef2f2;
  --crisis-bd: #fca5a5;

  /* Neutralne */
  --ink:    #192233;
  --ink2:   #3b4a5e;
  --muted:  #637288;
  --border: #dde5ef;
  --bg:     #ffffff;
  --bgs:    #f3f7fb;
  --bgt:    #eef9fb;

  /* Typografia */
  --font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  /* Promień */
  --rs: 8px;
  --r:  14px;
  --rl: 24px;

  /* Cień */
  --sh:   0 2px 12px rgba(13,122,138,.08);
  --shm:  0 6px 24px rgba(13,122,138,.12);
  --shl:  0 16px 48px rgba(13,122,138,.16);

  /* Rozmiar */
  --maxw: 1120px;
  --maxwt: 760px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; }
body {
  font-family: var(--font);
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--t700); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--t900); }
ul, ol { padding-left: 1.5rem; }
button { font-family: inherit; cursor: pointer; }

/* --- Pasek Kryzysowy (POWYŻEJ FAŁDU) --- */
.crisis-bar {
  background: var(--crisis);
  color: #fff;
  padding: .45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: .88rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.crisis-bar a { color: #fff; font-weight: 800; text-decoration: underline; }
.crisis-bar__phones { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.crisis-bar__phone { white-space: nowrap; }
.crisis-bar__phone strong { font-size: 1rem; letter-spacing: .02em; }
/* exit button — ukryty globalnie */
.exit-btn { display: none; }

/* --- Nawigacja --- */
.nav {
  background: var(--bg);
  border-bottom: 2px solid var(--border);
  padding: .9rem 1rem;
  position: sticky;
  top: 34px;
  z-index: 900;
  box-shadow: var(--sh);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}
.nav__logo {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--t700);
  text-decoration: none;
  flex-shrink: 0;
}
.nav__logo span { color: var(--l500); }
.nav__links {
  display: flex;
  gap: .1rem;
  list-style: none;
  padding: 0;
  align-items: center;
}
.nav__links a {
  color: var(--ink2);
  font-weight: 600;
  font-size: .92rem;
  padding: .45rem .8rem;
  border-radius: var(--rs);
  text-decoration: none;
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav__links a:hover { background: var(--t50); color: var(--t700); }
.nav__links .crisis-link a {
  color: var(--crisis);
  font-weight: 800;
  background: var(--crisis-bg);
}
.nav__links .crisis-link a:hover { background: #fee2e2; }

/* --- Container --- */
.c {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.c-text {
  max-width: var(--maxwt);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--t50) 0%, var(--l50) 100%);
  padding: 4rem 1.25rem 3.5rem;
  text-align: center;
  border-bottom: 2px solid var(--border);
}
.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--t100);
  color: var(--t800);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.18;
  color: var(--t900);
  margin-bottom: 1rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em { color: var(--l500); font-style: normal; }
.hero__lead {
  font-size: 1.15rem;
  color: var(--ink2);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 500;
}
.hero__paths {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero__disclaimer {
  font-size: .8rem;
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Ścieżka kryzysowa (hero card) --- */
.path-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem 1.75rem;
  max-width: 300px;
  text-align: left;
  box-shadow: var(--sh);
  transition: transform .15s, box-shadow .15s;
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shm); }
.path-card--crisis { border-color: var(--crisis-bd); background: var(--crisis-bg); }
.path-card--discovery { border-color: var(--t300); }
.path-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.path-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: .4rem; }
.path-card--crisis h3 { color: var(--crisis); }
.path-card--discovery h3 { color: var(--t700); }
.path-card p { font-size: .88rem; color: var(--ink2); margin-bottom: 1rem; line-height: 1.5; }

/* --- Przyciski --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: .95rem;
  padding: .7rem 1.4rem;
  border-radius: var(--r);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--t700);
  color: #fff;
  border-color: var(--t700);
}
.btn-primary:hover { background: var(--t800); border-color: var(--t800); color: #fff; text-decoration: none; }
.btn-lavender {
  background: var(--l500);
  color: #fff;
  border-color: var(--l500);
}
.btn-lavender:hover { background: var(--l700); border-color: var(--l700); color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--t700);
  border-color: var(--t700);
}
.btn-outline:hover { background: var(--t50); text-decoration: none; }
.btn-crisis {
  background: var(--crisis);
  color: #fff;
  border-color: var(--crisis);
  font-size: 1rem;
  font-weight: 800;
}
.btn-crisis:hover { background: #991b1b; border-color: #991b1b; color: #fff; text-decoration: none; }
.btn-sm { font-size: .84rem; padding: .5rem 1rem; }
.btn-lg { font-size: 1.05rem; padding: .85rem 1.75rem; }

/* --- Statystyki --- */
.stats {
  background: var(--t700);
  padding: 2rem 1.25rem;
  color: #fff;
}
.stats__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.stat__num {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .3rem;
  color: var(--t300);
}
.stat__label { font-size: .88rem; font-weight: 600; opacity: .9; line-height: 1.4; }
.stat__src { font-size: .72rem; opacity: .65; margin-top: .2rem; }

/* --- Sekcja (generyczna) --- */
.section { padding: 4rem 1.25rem; }
.section--soft { background: var(--bgs); }
.section--teal { background: var(--bgt); }
.section--lav { background: var(--l50); }
.section__header { text-align: center; margin-bottom: 2.5rem; }
.section__kicker {
  display: inline-block;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t700);
  background: var(--t100);
  padding: .25rem .8rem;
  border-radius: 100px;
  margin-bottom: .75rem;
}
.section__kicker--lav { color: var(--l700); background: var(--l100); }
.section__title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); font-weight: 900; color: var(--t900); margin-bottom: .5rem; }
.section__sub { font-size: 1.05rem; color: var(--ink2); max-width: 600px; margin: 0 auto; }

/* --- Siatka pillarów --- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

.pillar-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  display: block;
}
.pillar-card:hover { transform: translateY(-4px); box-shadow: var(--shm); text-decoration: none; border-color: var(--t300); }
.pillar-card__icon { font-size: 2.2rem; margin-bottom: 1rem; }
.pillar-card__title { font-size: 1.08rem; font-weight: 800; color: var(--t900); margin-bottom: .4rem; }
.pillar-card__desc { font-size: .88rem; color: var(--ink2); line-height: 1.55; margin-bottom: 1rem; }
.pillar-card__link { font-size: .84rem; font-weight: 700; color: var(--t700); }
.pillar-card--crisis { border-color: var(--crisis-bd); background: var(--crisis-bg); }
.pillar-card--crisis .pillar-card__title { color: var(--crisis); }
.pillar-card--crisis .pillar-card__link { color: var(--crisis); }
.pillar-card--crisis:hover { border-color: var(--crisis); }

/* --- Objawopedia karta --- */
.symptom-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.symptom-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem 1.2rem;
  text-decoration: none;
  transition: all .15s;
  display: block;
}
.symptom-card:hover { border-color: var(--l400); box-shadow: var(--sh); transform: translateY(-2px); text-decoration: none; }
.symptom-card__name { font-size: .95rem; font-weight: 800; color: var(--ink); margin-bottom: .25rem; }
.symptom-card__en { font-size: .78rem; color: var(--muted); font-style: italic; margin-bottom: .5rem; }
.symptom-card__tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .15rem .55rem;
  border-radius: 100px;
  background: var(--l100);
  color: var(--l700);
}
.symptom-card__tag--hyper { background: #fff3e0; color: #c25e00; }
.symptom-card__tag--hypo  { background: var(--t100); color: var(--t800); }
.symptom-card__tag--diss  { background: var(--l100); color: var(--l700); }
.symptom-card__tag--cog   { background: #e8f5e9; color: #1b5e20; }

/* --- Knowledge chain (grafika pojęć) --- */
.knowledge-chain {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  box-shadow: var(--sh);
}
.kc-node {
  background: var(--t700);
  color: #fff;
  font-size: .88rem;
  font-weight: 800;
  padding: .6rem 1.1rem;
  border-radius: 100px;
  white-space: nowrap;
  text-align: center;
}
.kc-node--lav { background: var(--l500); }
.kc-node--green { background: #2d8653; }
.kc-node--orange { background: #c05621; }
.kc-arrow {
  color: var(--muted);
  font-size: 1.2rem;
  font-weight: 900;
}
.kc-example {
  width: 100%;
  margin-top: 1.25rem;
  background: var(--bgs);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  font-size: .88rem;
  color: var(--ink2);
}
.kc-example strong { color: var(--t700); }

/* --- FAQ Akordeon --- */
.faq-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.faq-item {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color .15s;
}
.faq-item:has(details[open]) { border-color: var(--t300); }
.faq-item details summary {
  list-style: none;
  padding: 1.1rem 1.4rem;
  font-weight: 700;
  font-size: .97rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  color: var(--ink);
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--t700);
  flex-shrink: 0;
  transition: transform .2s;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item details[open] summary { color: var(--t700); background: var(--t50); }
.faq-answer {
  padding: 0 1.4rem 1.2rem;
  font-size: .93rem;
  color: var(--ink2);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}
.faq-answer p + p { margin-top: .75rem; }
.faq-answer ul, .faq-answer ol { margin: .5rem 0 .5rem 1.25rem; }
.faq-answer li { margin-bottom: .3rem; }

/* --- Alerty i pola informacyjne --- */
.alert {
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  font-size: .92rem;
  border-left: 4px solid;
  margin: 1rem 0;
}
.alert-info { background: var(--t50); border-color: var(--t600); color: var(--t800); }
.alert-warn { background: #fffbeb; border-color: #d97706; color: #92400e; }
.alert-crisis { background: var(--crisis-bg); border-color: var(--crisis); color: #991b1b; font-weight: 700; }
.alert-note { background: var(--l50); border-color: var(--l500); color: var(--l700); }
.alert-success { background: #f0fdf4; border-color: #16a34a; color: #14532d; }
.alert strong { display: block; margin-bottom: .25rem; }

/* --- Trigger Warning --- */
.trigger-wrap { margin: 1.25rem 0; }
.trigger-warn {
  background: #fffbeb;
  border: 1.5px solid #d97706;
  border-radius: var(--r);
  padding: .9rem 1.2rem;
  font-size: .88rem;
  color: #78350f;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.trigger-warn::before { content: '⚠️'; font-size: 1.1rem; }
.trigger-content { display: none; }
.trigger-content.visible { display: block; }

/* --- Boksy "Szybka odpowiedź" (dla featured snippets) --- */
.quick-answer {
  background: var(--t50);
  border: 2px solid var(--t300);
  border-radius: var(--rl);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.quick-answer__label {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--t600);
  margin-bottom: .6rem;
}
.quick-answer__text {
  font-size: 1.02rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.65;
}
.quick-answer__text strong { color: var(--t700); }

/* --- Definicja --- */
.definition-box {
  background: var(--l50);
  border-left: 4px solid var(--l500);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: .95rem;
}
.definition-box__term { font-weight: 900; font-size: 1.05rem; color: var(--l700); margin-bottom: .4rem; }
.definition-box__source { font-size: .78rem; color: var(--muted); margin-top: .5rem; }

/* --- Porównanie (tabela) --- */
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.compare-table th { background: var(--t700); color: #fff; padding: .85rem 1.1rem; text-align: left; font-weight: 800; }
.compare-table td { padding: .75rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:nth-child(even) td { background: var(--bgs); }
.compare-table .good { color: #15803d; font-weight: 700; }
.compare-table .warn { color: #b45309; font-weight: 700; }

/* --- Sekcja ekspert (E-E-A-T) --- */
.expert-box {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  padding: 1.75rem 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  box-shadow: var(--sh);
}
.expert-box__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--t100);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.expert-box__name { font-size: 1.05rem; font-weight: 800; color: var(--ink); margin-bottom: .15rem; }
.expert-box__title { font-size: .88rem; color: var(--t700); font-weight: 600; margin-bottom: .5rem; }
.expert-box__desc { font-size: .88rem; color: var(--ink2); line-height: 1.6; }
.expert-box__badges { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  padding: .2rem .7rem;
  border-radius: 100px;
  background: var(--t100);
  color: var(--t800);
}
.badge--lav { background: var(--l100); color: var(--l700); }
.badge--green { background: #dcfce7; color: #14532d; }

/* --- Breadcrumbs --- */
.breadcrumbs { padding: 1rem 0 .5rem; font-size: .85rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--t700); }
.breadcrumbs__sep { margin: 0 .5rem; }

/* --- Layout artykułu (z TOC) --- */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; }
.article-body h2 { font-size: 1.5rem; font-weight: 800; color: var(--t900); margin: 2rem 0 .75rem; padding-bottom: .4rem; border-bottom: 2px solid var(--t100); }
.article-body h3 { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin: 1.5rem 0 .5rem; }
.article-body h4 { font-size: 1rem; font-weight: 700; color: var(--ink2); margin: 1.25rem 0 .4rem; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body li { margin-bottom: .35rem; }

.toc {
  background: var(--bgs);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  position: sticky;
  top: 100px;
  font-size: .86rem;
}
.toc__title { font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.toc__list { list-style: none; padding: 0; }
.toc__item { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.toc__item:last-child { border-bottom: none; }
.toc__item a { color: var(--ink2); text-decoration: none; font-weight: 600; transition: color .12s; display: block; }
.toc__item a:hover { color: var(--t700); }
.toc__item--sub { padding-left: 1rem; }
.toc__item--sub a { font-size: .82rem; font-weight: 500; }

/* --- Tagi tematu --- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--bgs);
  border: 1.5px solid var(--border);
  color: var(--ink2);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .75rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all .12s;
}
.tag:hover { border-color: var(--t400); background: var(--t50); color: var(--t700); text-decoration: none; }

/* --- Weryfikacja medyczna --- */
.medical-review {
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-radius: var(--r);
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #14532d;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: 1.5rem 0;
}
.medical-review strong { font-weight: 700; }

/* --- Disclaimer medyczny --- */
.disclaimer {
  background: #fffbeb;
  border: 1.5px dashed #d97706;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  font-size: .84rem;
  color: #78350f;
  margin: 2rem 0;
}
.disclaimer strong { font-weight: 800; display: block; margin-bottom: .25rem; }

/* --- Sekcja pomocy kryzysowej (CTA) --- */
.crisis-cta {
  background: linear-gradient(135deg, var(--crisis) 0%, #7f1d1d 100%);
  color: #fff;
  border-radius: var(--rl);
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2rem 0;
}
.crisis-cta h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: .5rem; }
.crisis-cta p { opacity: .9; margin-bottom: 1.5rem; }
.crisis-cta .phones { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.crisis-cta .phone-item { font-size: 1.3rem; font-weight: 900; letter-spacing: .03em; }
.crisis-cta .phone-item small { display: block; font-size: .78rem; font-weight: 600; opacity: .85; }

/* --- Footer --- */
.footer {
  background: var(--t900);
  color: rgba(255,255,255,.85);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 4rem;
}
.footer__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: .5rem; }
.footer__brand span { color: var(--t300); }
.footer__desc { font-size: .85rem; opacity: .75; line-height: 1.6; margin-bottom: 1.25rem; }
.footer__crisis { background: rgba(185,28,28,.3); border: 1px solid rgba(252,165,165,.3); border-radius: var(--r); padding: .75rem 1rem; font-size: .84rem; }
.footer__crisis strong { color: #fca5a5; display: block; margin-bottom: .3rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.footer__crisis a { color: #fff; font-weight: 800; text-decoration: none; display: block; font-size: 1rem; }
.footer__crisis a:hover { text-decoration: underline; }
.footer__col-title { font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t300); margin-bottom: .9rem; }
.footer__links { list-style: none; padding: 0; }
.footer__links li { margin-bottom: .45rem; }
.footer__links a { color: rgba(255,255,255,.75); font-size: .88rem; text-decoration: none; font-weight: 500; transition: color .12s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  opacity: .6;
}

/* --- Sekcja artykuły preview --- */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.article-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--rl);
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shm); text-decoration: none; }
.article-card__cat { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t700); padding: 1rem 1.25rem .4rem; }
.article-card__title { font-size: 1rem; font-weight: 800; color: var(--ink); padding: 0 1.25rem .5rem; line-height: 1.4; }
.article-card__excerpt { font-size: .85rem; color: var(--ink2); padding: 0 1.25rem 1rem; line-height: 1.55; }
.article-card__meta { display: flex; gap: 1rem; padding: .75rem 1.25rem; border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); font-weight: 600; }

/* --- Metody leczenia --- */
.therapy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.therapy-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: var(--rl);
  padding: 1.5rem;
  transition: all .15s;
}
.therapy-card:hover { border-color: var(--t300); box-shadow: var(--sh); }
.therapy-card__title { font-size: 1.02rem; font-weight: 800; color: var(--t900); margin-bottom: .3rem; }
.therapy-card__acronym { font-size: .78rem; color: var(--muted); font-style: italic; margin-bottom: .65rem; }
.therapy-card__eff {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .75rem;
  font-weight: 700;
  background: #dcfce7;
  color: #14532d;
  padding: .2rem .65rem;
  border-radius: 100px;
  margin-bottom: .65rem;
}
.therapy-card p { font-size: .88rem; color: var(--ink2); line-height: 1.6; }

/* --- Mobilna nawigacja (hamburger) --- */
.nav-toggle { display: none; background: none; border: 2px solid var(--border); border-radius: var(--rs); padding: .45rem .65rem; font-size: 1.2rem; color: var(--ink2); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
}

@media (max-width: 640px) {
  html { font-size: 16px; }
  .nav__links { display: none; }
  .nav-toggle { display: block; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 2px solid var(--border);
    padding: .75rem;
    box-shadow: var(--shm);
    gap: .25rem;
  }
  .hero { padding: 2.5rem 1rem 2rem; }
  .hero__paths { flex-direction: column; align-items: center; }
  .path-card { max-width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .knowledge-chain { flex-direction: column; align-items: flex-start; }
  .kc-arrow { transform: rotate(90deg); }
  .expert-box { flex-direction: column; }
  .crisis-bar { font-size: .82rem; }
  .crisis-bar__phones { gap: .5rem; }
}

/* --- Print --- */
@media print {
  .crisis-bar, .nav, .exit-btn, .footer { display: none !important; }
  body { font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
  .crisis-cta { background: #eee !important; color: #000 !important; }
}

/* --- Focus & Dostępność (WCAG AA) --- */
:focus-visible {
  outline: 3px solid var(--t500);
  outline-offset: 2px;
  border-radius: 4px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ==========================================================================
   EKOSYSTEM SALUS — strona główna (styl "infografika ekosystemu")
   ========================================================================== */

/* --- Pasek korzyści (top strip) --- */
.eco-benefits-bar {
  background: var(--t50);
  border-bottom: 1px solid var(--t100);
  padding: .7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}
.eco-benefit {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--t800);
  white-space: nowrap;
}
.eco-benefit__icon {
  font-size: 1rem;
}

/* --- Hero ekosystemu --- */
.eco-hero {
  text-align: center;
  padding: 3.5rem 1.25rem 2rem;
  background: var(--bg);
}
.eco-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--t50);
  border: 1px solid var(--t100);
  border-radius: 100px;
  padding: .3rem 1rem;
  font-size: .78rem;
  font-weight: 700;
  color: var(--t700);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.eco-hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.eco-hero__title em {
  font-style: normal;
  color: var(--t700);
}
.eco-hero__sub {
  max-width: 640px;
  margin: 0 auto 1.5rem;
  font-size: 1.08rem;
  color: var(--ink2);
  line-height: 1.65;
}

/* --- Siatka ekosystemu 3×3 --- */
.eco-section {
  padding: 3rem 1.5rem 4.5rem;
  background: #fff;
}
.eco-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eco-section__title {
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
  gap: 1.1rem;
}
/* Karta podstawowa */
.eco-card {
  border: 3px dashed currentColor;
  border-radius: 18px;
  padding: 1.5rem 1.35rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  transition: transform .2s ease, box-shadow .2s ease;
  position: relative;
  cursor: pointer;
}
.eco-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.13);
}
.eco-card:focus-visible {
  outline: 3px solid var(--t500);
  outline-offset: 3px;
}
/* Znacznik "dla kogo" */
.eco-card__for {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  opacity: .65;
  margin-bottom: .05rem;
}
/* Ikona */
.eco-card__icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: .2rem;
}
/* Tytuł karty */
.eco-card__title {
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
}
/* Lista podpunktów */
.eco-card__items {
  list-style: none;
  padding: 0;
  margin: .25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .22rem;
}
.eco-card__items li {
  font-size: .81rem;
  line-height: 1.45;
  opacity: .82;
}
.eco-card__items li::before {
  content: "· ";
  font-weight: 700;
}
/* Arrow CTA */
.eco-card__cta {
  margin-top: auto;
  padding-top: .5rem;
  font-size: .8rem;
  font-weight: 800;
  opacity: .8;
}

/* --- Warianty kolorystyczne --- */
.eco-card--ptsd       { color: #1e40af; background: #eff6ff; border-color: #93c5fd; }
.eco-card--cptsd      { color: #5b21b6; background: #f5f3ff; border-color: #c4b5fd; }
.eco-card--wiedza     { color: #92400e; background: #fffbeb; border-color: #fcd34d; }
.eco-card--objaw      { color: #9d174d; background: #fdf2f8; border-color: #f9a8d4; }
.eco-card--leczenie   { color: #065f46; background: #ecfdf5; border-color: #6ee7b7; }
.eco-card--samopomoc  { color: #365314; background: #f7fee7; border-color: #a3e635; }
.eco-card--bliscy     { color: #0c4a6e; background: #f0f9ff; border-color: #7dd3fc; }
.eco-card--pomoc      { color: #7f1d1d; background: #fff1f2; border-style: solid; border-color: #fca5a5; }

/* --- HUB centralny --- */
.eco-hub {
  grid-column: 2;
  grid-row: 2;
  background: var(--t900);
  color: #fff;
  border: 3px solid var(--t700);
  border-radius: 18px;
  padding: 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .55rem;
  cursor: default;
}
.eco-hub:hover { transform: none; box-shadow: 0 8px 32px rgba(13,122,138,.25); }
.eco-hub__logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #fff;
}
.eco-hub__logo span { color: var(--t300); }
.eco-hub__tagline {
  font-size: .77rem;
  opacity: .7;
  line-height: 1.45;
  max-width: 160px;
}
.eco-hub__stats {
  display: flex;
  flex-direction: column;
  gap: .28rem;
  margin-top: .5rem;
}
.eco-hub__stat {
  font-size: .76rem;
  font-weight: 700;
  color: var(--t300);
}

/* --- Sekcja przepływu "Jak działa razem" --- */
.eco-flow-section {
  padding: 3.5rem 1.25rem;
  background: var(--bg);
}
.eco-flow-section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.eco-flow-section__title {
  text-align: center;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: .5rem;
}
.eco-flow-section__sub {
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 2.5rem;
}
.eco-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  padding-bottom: .5rem;
}
.eco-flow__step {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .5rem;
  position: relative;
  padding: 0 .75rem;
}
.eco-flow__step::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 22px;
  font-size: 1.4rem;
  color: var(--t300);
  font-weight: 900;
}
.eco-flow__step:last-child::after { display: none; }
.eco-flow__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--t700);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.eco-flow__label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}
.eco-flow__desc {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.4;
}

/* --- Baner naukowy (science banner) --- */
.science-banner {
  background: #064e3b;
  color: #fff;
  padding: 2.5rem 1.25rem;
}
.science-banner__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.science-banner__title {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 900;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.science-banner__sub {
  font-size: .9rem;
  opacity: .8;
  line-height: 1.6;
}
.science-banner__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.science-banner__points li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .84rem;
  line-height: 1.4;
  opacity: .9;
}
.science-banner__points li::before {
  content: "✓";
  color: #6ee7b7;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: .05em;
}

/* --- Responsywność ekosystemu --- */
@media (max-width: 860px) {
  .eco-grid { grid-template-columns: repeat(2, 1fr); }
  .eco-hub { grid-column: 1 / -1; grid-row: auto; }
  .science-banner__inner { grid-template-columns: 1fr; }
  .eco-benefits-bar { gap: .9rem; justify-content: flex-start; }
}
@media (max-width: 540px) {
  .eco-grid { grid-template-columns: 1fr; }
  .eco-flow { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .eco-flow__step { align-items: flex-start; text-align: left; flex-direction: row; min-width: auto; }
  .eco-flow__step::after { display: none; }
  .eco-flow__step + .eco-flow__step::before { content: "↓"; display: none; }
  .science-banner__points { grid-template-columns: 1fr; }
  .eco-hero { padding: 2rem 1rem 1.5rem; }
}
