/*
Theme Name: Sala zdrowego ciała
Theme URI: https://projektauchan.pl
Author: Stowarzyszenie Opieki Hospicyjnej Ziemi Częstochowskiej
Description: Microsite projektu „Sala zdrowego ciała Fundacji Auchan dla dzieci i dorosłych”, realizowanego w Centrum Opieki Paliatywnej „Palium” w Częstochowie.
Version: 5.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: szc
*/

/* =========================================================================
   Tokeny

   Strona nie dzieli się na pasy w różnych kolorach. Tło jest jedno, ciepłe,
   a kolor pojawia się jako miękkie poświaty bez krawędzi. Dzięki temu
   sekcje przechodzą jedna w drugą.

   Trzy filary projektu mają trzy kolory i to one niosą informację:
   ciało = czerwień, wiedza = pomarańcz, psychika = turkus.
   ========================================================================= */

:root {
  --paper:     #FFFCF8;
  --ink:       #2A1A12;
  --ink-soft:  #5E483D;
  --ink-faint: #756053;

  --coral:      #E8543A;   /* ciało / rehabilitacja */
  --coral-deep: #C8412A;   /* tekst i przyciski — wersja o pełnym kontraście */
  --tangerine:  #F2922F;   /* wiedza / żywienie */
  --amber:      #FBC64B;
  --teal:       #2E9C86;   /* psychika / emocje */
  --dark:       #2B1710;

  --line:      rgba(42, 26, 18, .16);
  --line-soft: rgba(42, 26, 18, .08);

  --wrap:      1200px;
  --gutter:    clamp(20px, 5vw, 56px);
  --block:     clamp(60px, 8vw, 116px);

  --r-sm:  18px;
  --r-md:  30px;
  --r-lg:  44px;
  --r-xl:  60px;

  --sans:    "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Fraunces", Georgia, "Iowan Old Style", "Times New Roman", serif;

  --lift: 0 2px 6px rgba(120, 60, 30, .05), 0 22px 50px -30px rgba(120, 60, 30, .45);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--coral-deep); text-underline-offset: .2em; text-decoration-thickness: .07em; }
a:hover { color: #A63421; }

:focus-visible { outline: 3px solid var(--coral-deep); outline-offset: 3px; border-radius: 6px; }
.panel--dark :focus-visible, .foot :focus-visible { outline-color: var(--amber); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--coral-deep); color: #fff; padding: 14px 20px; border-radius: 0 0 14px 0;
}
.skip:focus { left: 0; }

/* ---------- typografia ---------- */

h1, h2, h3, h4 { margin: 0; line-height: 1.12; }

h1, h2, .display { font-family: var(--display); font-weight: 600; letter-spacing: -.015em; }

h1 {
  font-size: clamp(2.15rem, 1.4rem + 2.9vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 1.25rem + 2.3vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h3 {
  font-family: var(--sans);
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.32;
}

p { margin: 0 0 1.05em; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1.1875rem, 1rem + .8vw, 1.5625rem);
  line-height: 1.44;
  max-width: 26ch;
  font-weight: 500;
  color: var(--coral-deep);
  letter-spacing: -.012em;
}

.intro { font-size: 1.09375rem; color: var(--ink-soft); max-width: 62ch; }
.note  { font-size: .9375rem;  color: var(--ink-faint); max-width: 62ch; }

/* ---------- nawigacja ---------- */

.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 252, 248, .82);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow .25s ease;
}
.nav.is-stuck { box-shadow: 0 10px 30px -26px rgba(120, 60, 30, .9); }

.nav__in { display: flex; align-items: center; gap: 20px; min-height: 76px; }

.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.nav__dot {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(145deg, var(--coral), var(--tangerine));
  position: relative;
}
.nav__dot::after {
  content: ""; position: absolute; top: 8px; right: 8px;
  width: 11px; height: 11px; border-radius: 50%; background: var(--amber);
}
.nav__brand b { display: block; font-size: .9375rem; font-weight: 700; letter-spacing: -.012em; line-height: 1.2; }
.nav__brand span { display: block; font-size: .8125rem; font-weight: 400; color: var(--ink-faint); }

.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  transition: background-color .16s ease, color .16s ease;
}
.nav__list a:hover { background: rgba(232, 84, 58, .12); color: var(--coral-deep); }
.nav__list a[aria-current="true"] { background: var(--coral-deep); color: #fff; }

.nav__toggle {
  display: none; align-items: center; gap: 10px;
  background: var(--coral-deep); border: 0; border-radius: 999px;
  padding: 12px 20px; font: inherit; font-size: .9375rem; font-weight: 600;
  color: #fff; cursor: pointer;
}
.nav__bars { display: block; width: 17px; height: 11px; position: relative; }
.nav__bars::before, .nav__bars::after, .nav__bars i {
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
  background: #fff; border-radius: 2px; transition: transform .22s ease, opacity .18s ease;
}
.nav__bars::before { top: 0; }
.nav__bars i { top: 4.5px; }
.nav__bars::after { bottom: 0; }
[aria-expanded="true"] .nav__bars::before { transform: translateY(4.5px) rotate(45deg); }
[aria-expanded="true"] .nav__bars i { opacity: 0; }
[aria-expanded="true"] .nav__bars::after { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1120px) {
  .nav__toggle { display: inline-flex; }
  .nav__list {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0; background: var(--paper);
    padding: 10px var(--gutter) 22px;
    box-shadow: 0 26px 52px -34px rgba(120, 60, 30, .9);
  }
  .nav__list.is-open { display: flex; }
  .nav__list a { padding: 14px 6px; font-size: 1.0625rem; border-radius: 0; }
  .nav__list li + li a { border-top: 1px solid var(--line-soft); }
}

/* ---------- poświaty: kolor bez krawędzi ---------- */

.section { padding-block: var(--block); position: relative; }
.section::before {
  content: ""; position: absolute; inset: -14% -20%; z-index: 0; pointer-events: none;
}
.section--warm::before {
  background:
    radial-gradient(48% 42% at 22% 30%, rgba(242, 146, 47, .26), transparent 72%),
    radial-gradient(44% 40% at 84% 74%, rgba(232, 84, 58, .18), transparent 72%);
}
.section--sun::before {
  background:
    radial-gradient(52% 46% at 78% 26%, rgba(251, 198, 75, .34), transparent 72%),
    radial-gradient(40% 38% at 14% 76%, rgba(232, 84, 58, .14), transparent 72%);
}
.section--cool::before {
  background:
    radial-gradient(46% 44% at 18% 24%, rgba(46, 156, 134, .2), transparent 72%),
    radial-gradient(48% 42% at 86% 78%, rgba(242, 146, 47, .2), transparent 72%);
}

/* ---------- hero ---------- */

.hero { padding-block: clamp(26px, 4vw, 56px) clamp(30px, 4vw, 56px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -30% -18% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(42% 40% at 74% 34%, rgba(251, 198, 75, .34), transparent 70%),
    radial-gradient(38% 36% at 92% 72%, rgba(232, 84, 58, .2), transparent 70%);
}
.hero__grid { display: grid; gap: clamp(36px, 4.5vw, 64px); align-items: center; }
@media (min-width: 940px) { .hero__grid { grid-template-columns: 1.04fr .96fr; } }

.hero__place {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .875rem; font-weight: 600; color: var(--coral-deep);
  background: rgba(255, 255, 255, .72); border-radius: 999px; padding: 9px 18px 9px 14px;
  margin-bottom: 24px;
}
.hero__place::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }

.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 24px; }
.hero__body { color: var(--ink-soft); max-width: 54ch; }

.hero__figure { margin: 0; position: relative; }
.hero__figure::before {
  content: ""; position: absolute; z-index: 0;
  left: 44%; right: -58px; bottom: -54px;
  aspect-ratio: 1;
  background: linear-gradient(140deg, var(--amber), var(--coral));
  border-radius: 52% 48% 44% 56% / 56% 44% 56% 44%;
  opacity: .9;
}
.hero__frame {
  position: relative; z-index: 1; overflow: hidden;
  border-radius: var(--r-xl) var(--r-xl) 120px var(--r-xl);
  box-shadow: var(--lift);
}
.hero__frame img { width: 100%; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none;
  border: 2px solid var(--coral-deep);
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--coral-deep); color: #fff; }
.btn--solid:hover { background: #A63421; color: #fff; }
.btn--ghost { background: rgba(255,255,255,.6); color: var(--coral-deep); }
.btn--ghost:hover { background: #fff; color: var(--coral-deep); }
.btn--light { background: var(--amber); color: var(--dark); border-color: var(--amber); }
.btn--light:hover { background: #FFD26B; color: var(--dark); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.14); color: #fff; }

.facts { display: grid; gap: 24px 44px; margin: 38px 0 0; align-items: start; }
@media (min-width: 560px) { .facts { grid-template-columns: repeat(3, auto); justify-content: start; } }
.facts > div { display: flex; flex-direction: column-reverse; gap: 2px; }
.facts dt { font-size: .875rem; color: var(--ink-faint); line-height: 1.4; }
.facts dd {
  margin: 0; font-family: var(--display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: -.018em; line-height: 1.15; color: var(--coral-deep);
}

/* ---------- panele: bloki wpisane w stronę, nie pasy przez cały ekran ---------- */

.panel { border-radius: var(--r-lg); padding: clamp(30px, 4vw, 58px); }

.panel--sun {
  background: linear-gradient(118deg, #FFE0B0 0%, #FFCDB4 48%, #FFE7A8 100%);
  color: var(--dark);
}
.panel--dark {
  background: linear-gradient(155deg, #33190F 0%, #2B1710 55%, #3A2318 100%);
  color: #E7D6CB;
}
.panel--dark h2, .panel--dark h3 { color: #fff; }
.panel--dark p { color: #DCC7BA; }
.panel--dark .section__head p { color: #D3BCAE; }

.pillars { padding-block: 0; margin-top: clamp(-12px, -1vw, 0px); position: relative; }
.pillars__grid { display: grid; gap: 30px; }
@media (min-width: 800px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 44px; } }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.5rem; margin-bottom: 12px; color: var(--dark); }
.pillar p { color: #6A4A38; font-size: 1rem; margin: 0; }
.pillar__mark { display: block; width: 50px; height: 9px; border-radius: 999px; margin-bottom: 20px; }
.pillar--body   .pillar__mark { background: var(--coral); }
.pillar--mind   .pillar__mark { background: var(--tangerine); }
.pillar--psyche .pillar__mark { background: var(--teal); }

/* ---------- nagłówki sekcji ---------- */

.section__head { max-width: 58ch; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head h2 { margin-bottom: 18px; }
.section__head p { color: var(--ink-soft); }

.cols { display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 880px) { .cols--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 680px) and (max-width: 879px) { .cols--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .cols--2 { grid-template-columns: 1fr 1fr; } }

/* karty są półprzezroczyste — poświata tła prześwituje i nic się nie „odcina” */
.card {
  background: rgba(255, 255, 255, .66);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: var(--r-md);
  padding: clamp(24px, 2.8vw, 36px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px -34px rgba(120, 60, 30, .7);
}
.card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.card p { color: var(--ink-soft); font-size: 1rem; }

.card--rail { padding-top: clamp(30px, 3.2vw, 42px); position: relative; overflow: hidden; }
.card--rail::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--coral);
}
.card--rail.is-knowledge::before { background: var(--tangerine); }
.card--rail.is-psyche::before    { background: var(--teal); }

.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
.ticks li {
  position: relative; padding-left: 28px; margin-bottom: 9px;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.55;
}
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .48em;
  width: 12px; height: 12px; border-radius: 4px; background: var(--coral);
}
.is-knowledge .ticks li::before { background: var(--tangerine); }
.is-psyche    .ticks li::before { background: var(--teal); }
.panel--dark .ticks li { color: #DCC7BA; }

/* ---------- liczby: bez ramek, tylko włoskowate linie ---------- */

.stats { display: grid; gap: 0; }
@media (min-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat {
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2vw, 30px);
  border-bottom: 1px solid var(--line-soft);
}
@media (min-width: 620px) { .stat:nth-child(2n) { border-left: 1px solid var(--line-soft); } }
@media (min-width: 980px) {
  .stat:nth-child(2n) { border-left: 0; }
  .stat:not(:nth-child(3n+1)) { border-left: 1px solid var(--line-soft); }
  .stat:nth-last-child(-n+3) { border-bottom: 0; }
}
.stat b {
  display: block; font-family: var(--display); font-weight: 600;
  font-size: clamp(2.1rem, 1.3rem + 3vw, 3.4rem);
  letter-spacing: -.028em; line-height: 1; color: var(--coral-deep);
  font-variant-numeric: lining-nums tabular-nums;
}
.stat span { display: block; margin-top: 14px; font-size: .9375rem; color: var(--ink-soft); }
.stat--accent b { color: var(--dark); }

/* ---------- wyposażenie jako „pastylki” ---------- */

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  background: rgba(255, 255, 255, .72); color: var(--ink); border-radius: 999px;
  padding: 13px 22px; font-size: 1rem; font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .9);
}

/* ---------- narracja ---------- */

.story p { font-size: 1.125rem; line-height: 1.72; max-width: 56ch; }
.story .beat {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.3rem);
  line-height: 1.18; letter-spacing: -.018em; color: #fff;
  margin: .85em 0; max-width: 22ch;
}
.echo { list-style: none; margin: 36px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.echo li {
  font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, .95rem + .6vw, 1.4rem);
  border: 2px solid rgba(255,255,255,.24); border-radius: 999px;
  padding: 11px 26px; color: #fff;
}
.echo li:nth-child(1) { border-color: var(--coral); }
.echo li:nth-child(3) { border-color: var(--amber); }
.echo li:nth-child(5) { border-color: var(--teal); }

/* ---------- grupy odbiorców ---------- */

.groups { display: grid; gap: clamp(14px, 1.6vw, 20px); }
@media (min-width: 640px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .groups { grid-template-columns: repeat(3, 1fr); } }
.group {
  background: rgba(255, 255, 255, .6); border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--r-md); padding: clamp(24px, 2.8vw, 34px);
}
.group h3 { margin-bottom: 10px; }
.group p { font-size: 1rem; color: var(--ink-soft); margin: 0; }
.group:nth-child(3n+2) { background: rgba(251, 198, 75, .2); }
.group:nth-child(3n+3) { background: rgba(232, 84, 58, .12); }

/* ---------- galeria ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 30px; }
.filters button {
  font: inherit; font-size: .9375rem; font-weight: 500; padding: 10px 18px; border-radius: 999px;
  border: 2px solid var(--line); background: rgba(255,255,255,.5); color: var(--ink-soft);
  cursor: pointer; transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.filters button:hover { border-color: var(--coral-deep); color: var(--coral-deep); }
.filters button[aria-pressed="true"] { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }

.grid-gal { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot { margin: 0; }
.shot button {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
  border-radius: var(--r-md); overflow: hidden;
}
.shot img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
}
.shot button:hover img { transform: scale(1.04); }
.shot figcaption { font-size: .875rem; color: var(--ink-faint); margin-top: 10px; }

.slot {
  border: 2px dashed rgba(200, 65, 42, .3); border-radius: var(--r-md); aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 7px;
  padding: 22px; background: rgba(255, 255, 255, .45);
}
.slot b { font-size: .9375rem; }
.slot span { font-size: .875rem; color: var(--ink-faint); line-height: 1.45; }
.hero__frame .slot { aspect-ratio: 4 / 4.6; border-radius: 0; border-style: dashed; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(28, 14, 9, .94); }
.lightbox img { max-width: 92vw; max-height: 78vh; width: auto; border-radius: var(--r-md); margin-inline: auto; }
.lightbox__bar { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 16px 0 4px; }
.lightbox__bar button {
  font: inherit; font-size: .9375rem; font-weight: 500; background: rgba(255,255,255,.16); color: #fff;
  border: 0; border-radius: 999px; padding: 11px 22px; cursor: pointer;
}
.lightbox__bar button:hover { background: rgba(255,255,255,.28); }
.lightbox p { text-align: center; font-size: .9375rem; color: #E0CCC0; margin: 10px auto 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 74ch; }
.faq details {
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--r-sm); margin-bottom: 10px;
  padding: 0 clamp(18px, 2vw, 26px);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 48px 22px 0; position: relative;
  font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; margin-top: -14px;
  width: 28px; height: 28px; border-radius: 50%; background-color: rgba(232, 84, 58, .16);
  background-image: linear-gradient(var(--coral-deep), var(--coral-deep)), linear-gradient(var(--coral-deep), var(--coral-deep));
  background-size: 12px 2px, 2px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-soft); }

/* ---------- stopka: wyrasta z tła, nie zaczyna się krawędzią ---------- */

.foot {
  background: linear-gradient(160deg, #33190F 0%, #2B1710 60%, #3A2318 100%);
  color: #CBB3A5;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding-block: clamp(56px, 7vw, 92px) 36px;
  margin-top: clamp(20px, 3vw, 44px);
}
.foot h2 { color: #fff; margin-bottom: 18px; max-width: 20ch; }
.foot a { color: #fff; }
.foot__grid { display: grid; gap: 34px; margin-top: clamp(40px, 5vw, 64px); }
@media (min-width: 780px) { .foot__grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.foot dl { margin: 0; font-size: .9375rem; }
.foot dt { color: #A08272; }
.foot dd { margin: 0 0 12px; color: #E7D6CB; }
.foot__links { list-style: none; margin: 0; padding: 0; font-size: .9375rem; }
.foot__links li { margin-bottom: 11px; }
.foot__bottom {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.14); font-size: .875rem; color: #AE9081;
}

/* ---------- strony zwykłe ---------- */

.page-body { padding-block: var(--block); }
.page-body h2 { margin: 1.6em 0 .5em; }
.page-body ul, .page-body ol { max-width: 66ch; color: var(--ink-soft); }

/* ---------- jedno wejście animacyjne ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__enter > * { opacity: 0; transform: translateY(12px); animation: szc-in .66s cubic-bezier(.22,.7,.3,1) forwards; }
  .hero__enter > *:nth-child(1) { animation-delay: .04s; }
  .hero__enter > *:nth-child(2) { animation-delay: .12s; }
  .hero__enter > *:nth-child(3) { animation-delay: .2s; }
  .hero__enter > *:nth-child(4) { animation-delay: .28s; }
  .hero__enter > *:nth-child(5) { animation-delay: .36s; }
  .hero__enter > *:nth-child(6) { animation-delay: .44s; }
  @keyframes szc-in { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .nav, .filters, .lightbox, .cta-row { display: none !important; }
  .section::before, .hero::before, .hero__figure::before { display: none !important; }
  body { font-size: 11pt; }
}

/* ---------- treść z edytora WordPressa wewnątrz kart ---------- */

.entry > *:first-child { margin-top: 0; }
.entry > *:last-child  { margin-bottom: 0; }
.entry p { color: var(--ink-soft); font-size: 1rem; margin: 0 0 1em; }
.entry strong { color: var(--ink); }
.entry ul, .entry ol { list-style: none; margin: 18px 0; padding: 0; }
.entry ul li, .entry ol li {
  position: relative; padding-left: 28px; margin-bottom: 9px;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.55;
}
.entry ul li::before {
  content: ""; position: absolute; left: 2px; top: .48em;
  width: 12px; height: 12px; border-radius: 4px; background: var(--coral);
}
.entry ol { counter-reset: szc; }
.entry ol li::before {
  counter-increment: szc; content: counter(szc);
  position: absolute; left: 0; top: 0;
  font-size: .8125rem; font-weight: 700; color: var(--coral-deep);
}
.is-knowledge .entry ul li::before { background: var(--tangerine); }
.is-psyche    .entry ul li::before { background: var(--teal); }
.entry h4 { font-size: 1rem; margin: 1.4em 0 .4em; }
.entry a { color: var(--coral-deep); }
.entry img { border-radius: var(--r-sm); margin: 18px 0; }
.panel--dark .entry p, .panel--dark .entry li { color: #DCC7BA; }

/* ---------- obrazki wgrywane do wpisów ---------- */

.card  { overflow: hidden; }
.group { overflow: hidden; }

.card__media {
  margin: calc(-1 * clamp(24px, 2.8vw, 36px));
  margin-bottom: 22px;
}
.card--rail .card__media { margin-top: calc(-1 * clamp(30px, 3.2vw, 42px)); }
.card__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.group__media {
  margin: calc(-1 * clamp(24px, 2.8vw, 34px));
  margin-bottom: 20px;
}
.group__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.pillar__icon {
  width: 68px; height: 68px; border-radius: 50%; overflow: hidden; margin-bottom: 18px;
  background: rgba(255,255,255,.5);
}
.pillar__icon img { width: 100%; height: 100%; object-fit: cover; }
