/* =========================================================
   Czarodziejski Dworek — przedszkole językowo-muzyczne
   Styl: Claymorphism (miękkie 3D, ciepły, przyjazny dzieciom)
   ========================================================= */

/* ---------- Fonts ---------- */
/* Czcionki ładowane przez <link rel="preload"/"stylesheet"> w <head> (szybciej niż @import). */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --primary: #F97316;
  --primary-dark: #EA580C;
  --primary-soft: #FED7AA;
  --secondary: #FB923C;
  --amber: #D98A1A;          /* ciepły amber z logo (dworek) */
  --accent: #2563EB;
  --accent-dark: #1D4ED8;

  /* Playful palette (kafelki / kategorie) */
  --pink: #EC4899;
  --purple: #8B5CF6;
  --green: #22C55E;
  --yellow: #FACC15;
  --sky: #38BDF8;
  --teal: #14B8A6;

  /* Surfaces */
  --cream: #FFF7ED;
  --cream-2: #FFEFDD;
  --surface: #FFFFFF;
  --border: #F3E6D6;

  /* Text */
  --ink: #3A2A1E;        /* nagłówki, ciepły brąz-czerń */
  --body: #5B4B40;       /* tekst akapitów */
  --muted: #796B5F;      /* podpisy (przyciemnione do WCAG AA 4.5:1 na kremowym) */
  --on-primary: #3A2A1E;  /* ciemny tekst na pomarańczu = WCAG AA 4.9:1 (zachowuje żywy brand) */

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Cienie — odchudzone, eleganckie soft-UI */
  --shadow-clay: 0 6px 20px rgba(154, 52, 18, .07), 0 1px 3px rgba(154, 52, 18, .05);
  --shadow-soft: 0 20px 54px rgba(154, 52, 18, .10);
  --shadow-hover: 0 16px 40px rgba(154, 52, 18, .14);
  --shadow-inset: inset 0 -3px 8px rgba(154, 52, 18, .06), inset 0 2px 5px rgba(255,255,255,.55);

  /* Spacing scale (8px rhythm) */
  --s-1: 8px; --s-2: 16px; --s-3: 24px; --s-4: 32px; --s-5: 48px; --s-6: 64px; --s-7: 96px;

  --container: 1180px;
  --nav-h: 76px;

  /* Motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t-mid: 280ms;

  /* z-index scale */
  --z-nav: 100;
  --z-overlay: 1000;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--body);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.0625rem; /* =17px, ale rem → szanuje ustawienia czcionki w przeglądarce */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Baloo 2', cursive; color: var(--ink); line-height: 1.16; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
p { max-width: 64ch; text-wrap: pretty; }
.lead { font-size: 1.18rem; line-height: 1.65; color: var(--body); }

/* ---------- Layout ---------- */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding: clamp(60px, 8vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }
.center { text-align: center; }
.grid { display: grid; gap: var(--s-4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: 'Baloo 2', cursive; font-weight: 600;
  color: #BD4709; text-transform: uppercase; /* przyciemnione do WCAG AA na cream-2 */
  letter-spacing: .08em; font-size: .85rem;
  background: var(--cream-2); padding: .4rem 1rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--primary-soft);
}
.section-head { max-width: 56ch; margin: 0 auto var(--s-6); text-align: center; }
.section-head p { margin: var(--s-2) auto 0; color: var(--muted); }
.section-head .eyebrow { margin-bottom: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 1.05rem;
  padding: .85rem 1.7rem; min-height: 48px;
  border-radius: var(--r-pill); border: none;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast);
  text-align: center;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-clay); }
.btn--primary:hover { background: var(--secondary); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn--primary:active { transform: translateY(-1px); }
.btn--accent { background: var(--accent); color: #fff; box-shadow: var(--shadow-clay); }
.btn--accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn--ghost { background: var(--surface); color: var(--primary-dark); box-shadow: var(--shadow-clay); }
.btn--ghost:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn--lg { padding: 1.05rem 2.2rem; font-size: 1.15rem; min-height: 56px; }

/* ---------- Cards (refined soft-UI) ---------- */
.card {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(var(--s-3), 3vw, var(--s-5));
  box-shadow: var(--shadow-clay);
  border: 1px solid var(--border);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__icon {
  width: 60px; height: 60px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: var(--s-2);
  box-shadow: var(--shadow-inset);
}
.card__icon svg { width: 30px; height: 30px; color: #fff; }
.card h3 { margin-bottom: .4rem; }
.card p { font-size: .98rem; }

/* color variants — paleta zawężona do: pomarańcz / niebieski / amber */
.c-orange { background: var(--primary); }
.c-pink   { background: var(--primary); }
.c-purple { background: var(--accent); }
.c-green  { background: var(--primary); }
.c-yellow { background: var(--amber); }
.c-sky    { background: var(--accent); }
.c-blue   { background: var(--accent); }
.c-teal   { background: var(--accent); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(255, 247, 237, .97);
  border-bottom: 2px solid transparent;
  transition: box-shadow var(--t-mid), border-color var(--t-mid), background var(--t-mid);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(154,52,18,.10); border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: flex-start; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .65rem; font-family: 'Baloo 2', cursive; font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.brand__logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-clay);
}
.brand__logo svg { width: 26px; height: 26px; }
.brand small { display: block; font-family: 'Nunito'; font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .05em; }
.brand__img { height: 58px; width: auto; display: block; transition: transform var(--t-fast) var(--ease); }
.brand:hover .brand__img { transform: scale(1.04) rotate(-1deg); }

/* INTRO — logo dokujące do nagłówka przy scrollu (tylko strona główna) */
.intro { display: none; position: fixed; inset: 0; z-index: 1400; place-items: center; pointer-events: none; overflow: hidden; }
body.js-intro .intro { display: grid; }

/* animowane tło w kolorach marki (zamiast bieli) */
.intro__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden;
  background: linear-gradient(160deg, #FFF7ED 0%, #FFE7CE 50%, #FFDCE4 100%); will-change: opacity; }
.intro__blob { position: absolute; border-radius: 50%; filter: blur(60px); }
.intro__blob--1 { width: 52vw; height: 52vw; background: var(--secondary); opacity: .8; top: -14%; left: -10%; animation: drift 18s var(--ease) infinite; }
.intro__blob--2 { width: 46vw; height: 46vw; background: var(--accent); opacity: .45; bottom: -16%; right: -8%; animation: drift 23s var(--ease) infinite 1s reverse; }
.intro__blob--3 { width: 40vw; height: 40vw; background: var(--amber); opacity: .5; top: 28%; left: 42%; animation: drift 27s var(--ease) infinite 2s; }

/* spektrum / equalizer w kolorach marki (nawiązanie do animacji) */
.intro__spectrum { position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; display: flex; align-items: flex-end; gap: 1.1%; padding: 0 3%; opacity: .5; }
.intro__spectrum span { flex: 1; height: 100%; border-radius: 16px 16px 0 0; transform: scaleY(.28); transform-origin: bottom; animation: eq 2.2s var(--ease) infinite;
  background: linear-gradient(180deg, var(--secondary), var(--primary)); }
.intro__spectrum span:nth-child(3n+2) { background: linear-gradient(180deg, #7DB3FB, var(--accent)); }
.intro__spectrum span:nth-child(3n+3) { background: linear-gradient(180deg, #F6C453, var(--amber)); }
.intro__spectrum span:nth-child(2n) { animation-duration: 2.7s; }
.intro__spectrum span:nth-child(1) { animation-delay: -.2s; }
.intro__spectrum span:nth-child(2) { animation-delay: -1.1s; }
.intro__spectrum span:nth-child(3) { animation-delay: -.5s; }
.intro__spectrum span:nth-child(4) { animation-delay: -1.6s; }
.intro__spectrum span:nth-child(5) { animation-delay: -.8s; }
.intro__spectrum span:nth-child(6) { animation-delay: -2s; }
.intro__spectrum span:nth-child(7) { animation-delay: -.3s; }
.intro__spectrum span:nth-child(8) { animation-delay: -1.3s; }
.intro__spectrum span:nth-child(9) { animation-delay: -.9s; }
.intro__spectrum span:nth-child(10) { animation-delay: -1.8s; }
.intro__spectrum span:nth-child(11) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }

.intro__logo { position: relative; z-index: 2; width: min(46vw, 340px); height: auto; will-change: transform, opacity; transform-origin: center center;
  filter: drop-shadow(0 12px 26px rgba(154,52,18,.22)); }
body.js-intro.intro-active .brand__img { opacity: 0; }

/* wyraźny przycisk „przewiń w dół" */
.intro__hint { position: absolute; bottom: 7vh; left: 50%; transform: translateX(-50%); z-index: 3; }
.intro__hint-pill { display: inline-flex; align-items: center; gap: .6rem; background: var(--primary); color: #fff;
  font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.1rem; padding: .8rem 1.6rem; border-radius: var(--r-pill);
  box-shadow: 0 10px 26px rgba(249,115,22,.4); animation: hintBob 1.4s var(--ease) infinite; }
.intro__hint-pill svg { width: 22px; height: 22px; }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none !important; } }

.nav__links { display: flex; align-items: center; gap: .35rem; flex: 1; }
/* Menu wyśrodkowane między logo a CTA: dwa auto-marginesy dzielą wolną przestrzeń po równo */
.nav__links > li:first-child { margin-left: auto; }
.nav__links a {
  font-family: 'Baloo 2', cursive; font-weight: 500; color: var(--ink);
  padding: .55rem .85rem; border-radius: var(--r-pill); font-size: 1.02rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav__links a:hover { background: var(--cream-2); color: var(--primary-dark); }
.nav__links a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
/* CTA „Zapisz dziecko" w navie — nie wygaszaj na hover (pomarańczowy, biały tekst) */
.nav__links .nav__cta a:hover,
.nav__links .nav__cta a.is-active { background: var(--primary-dark); color: #fff; }
.nav__cta { margin-left: auto; }

.nav__toggle {
  display: none; width: 48px; height: 48px; border: none; background: var(--surface);
  border-radius: var(--r-md); box-shadow: var(--shadow-clay); color: var(--ink);
}
.nav__toggle svg { width: 26px; height: 26px; margin: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: var(--s-6) 0 calc(var(--s-7) + 40px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__bg-img { display: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(251,146,60,.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(139,92,246,.10), transparent 42%);
}
/* ===== Animowane tło hero („gooey" — płynnie pełzające plamy gradientu) ===== */
.goo-defs { position: absolute; width: 0; height: 0; }
.goo {
  position: absolute; inset: 0;
  filter: blur(42px);
  opacity: .6;
}
.goo__b {
  position: absolute;
  width: 80%; height: 80%;
  top: calc(50% - 40%); left: calc(50% - 40%);
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  transform-origin: center center;
  will-change: transform;
}
.goo__b--1 { background: radial-gradient(circle at center, rgba(249,115,22,.55) 0, rgba(249,115,22,0) 55%); animation: gooVertical 30s ease infinite; }
.goo__b--2 { background: radial-gradient(circle at center, rgba(236,72,153,.45) 0, rgba(236,72,153,0) 55%); transform-origin: calc(50% - 300px); animation: gooCircle 20s reverse infinite; }
.goo__b--3 { background: radial-gradient(circle at center, rgba(139,92,246,.45) 0, rgba(139,92,246,0) 55%); transform-origin: calc(50% + 300px); animation: gooCircle 40s linear infinite; }
.goo__b--4 { background: radial-gradient(circle at center, rgba(217,138,26,.50) 0, rgba(217,138,26,0) 55%); transform-origin: calc(50% - 160px); animation: gooHorizontal 40s ease infinite; opacity: .85; }
.goo__b--5 { background: radial-gradient(circle at center, rgba(56,189,248,.45) 0, rgba(56,189,248,0) 55%); transform-origin: calc(50% - 600px) calc(50% + 600px); animation: gooCircle 25s ease infinite; }
.goo__b--pointer {
  width: 60%; height: 60%; top: -30%; left: -30%;
  background: radial-gradient(circle at center, rgba(249,115,22,.45) 0, rgba(249,115,22,0) 55%);
  opacity: .6;
}
@keyframes gooVertical { 0% { transform: translateY(-50%); } 50% { transform: translateY(50%); } 100% { transform: translateY(-50%); } }
@keyframes gooCircle { 0% { transform: rotate(0deg); } 50% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes gooHorizontal { 0% { transform: translateX(-50%) translateY(-10%); } 50% { transform: translateX(50%) translateY(10%); } 100% { transform: translateX(-50%) translateY(-10%); } }
@media (prefers-reduced-motion: reduce) {
  .goo__b { animation: none !important; }
}

.hero__grid { display: grid; grid-template-columns: minmax(0, 640px); gap: var(--s-5); align-items: center; position: relative; z-index: 3; }

/* ===== Hero: latające zdjęcia dzieci (parallax + dryf) ===== */
.hero__floating { position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100% - 2.5rem, var(--container)); z-index: 0; overflow: visible; pointer-events: none; }
.hero__float {
  position: absolute; width: var(--w, 110px); aspect-ratio: 1;
  will-change: transform; opacity: 0; transform: translate3d(0,0,0);
  transition: opacity .7s var(--ease);
}
.hero__float.is-in { opacity: 1; }
.hero__float img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--r-md); border: 3px solid #fff; box-shadow: var(--shadow-soft);
  animation: heroDrift var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-1.5deg); }
  50%      { transform: translate3d(0, -16px, 0) rotate(1.5deg); }
}
/* zasłonka pod tekstem (lewa strona jaśniejsza) — czytelność */
.hero__scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(95deg, var(--cream) 0%, var(--cream) 30%, rgba(255,247,237,.32) 42%, rgba(255,247,237,0) 52%);
}
@media (max-width: 900px) {
  .hero__scrim { background: linear-gradient(120deg, var(--cream) 0%, var(--cream) 42%, rgba(255,247,237,.66) 62%, rgba(255,247,237,.1) 100%); }
}
@media (max-width: 720px) {
  /* na telefonie: 4 zdjęcia w rogach (góra-prawo + dół), różne rozmiary, reszta ukryta */
  .hero__float:nth-child(n+5) { display: none; }
  .hero__float:nth-child(1) { top: 2% !important;  left: 56% !important; width: 104px !important; --dur: 8s; }
  .hero__float:nth-child(2) { top: 7% !important;  left: 80% !important; width: 130px !important; --dur: 9s; }
  .hero__float:nth-child(3) { top: 86% !important; left: 3% !important;  width: 110px !important; --dur: 7.5s; }
  .hero__float:nth-child(4) { top: 88% !important; left: 60% !important; width: 140px !important; --dur: 8.5s; }
  .hero__scrim { background: linear-gradient(180deg, rgba(255,247,237,.18) 0%, var(--cream) 24%, var(--cream) 74%, rgba(255,247,237,.28) 92%, transparent 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__float { opacity: 1; transition: none; }
  .hero__float img { animation: none; }
}
.hero__content .eyebrow { margin-bottom: var(--s-3); }
.hero h1 { letter-spacing: -.5px; }
.hero h1 .accent { color: var(--primary); white-space: nowrap; }
.hero p.lead { margin-top: var(--s-3); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-4); }

/* social proof */
.hero__proof { display: flex; align-items: center; gap: .9rem; margin-top: var(--s-4); flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 46px; height: 46px; border-radius: 50%; border: 3px solid #fff; margin-left: -14px; object-fit: cover; box-shadow: var(--shadow-clay); }
.avatars img:first-child { margin-left: 0; }
.hero__proof .stars { display: flex; gap: 1px; color: var(--yellow); }
.hero__proof .stars svg { width: 18px; height: 18px; fill: currentColor; }
.hero__proof strong { font-family: 'Baloo 2', cursive; color: var(--ink); display: block; line-height: 1.2; }
.hero__proof small { color: var(--muted); }

/* maleńki badge certyfikatu NVC w hero */
.hero__badge { display: inline-flex; align-items: center; gap: .45rem; margin-top: var(--s-3); padding: .3rem .65rem .3rem .35rem; background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); box-shadow: var(--shadow-clay); color: var(--ink); text-decoration: none; width: max-content; max-width: 100%; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.hero__badge:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--amber); }
.hero__badge-ico { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg, #F0B84A, var(--amber)); color: #fff; box-shadow: 0 4px 9px rgba(217,138,26,.32); }
.hero__badge-ico svg { width: 14px; height: 14px; }
.hero__badge-txt strong { display: block; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .78rem; line-height: 1.05; color: var(--ink); }
.hero__badge-txt small { display: block; font-size: .64rem; line-height: 1.1; color: var(--muted); font-weight: 600; }

/* stat pills — równa siatka 3 kolumn */
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-4); max-width: 46ch; }
.hero__stats .stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.1rem; box-shadow: var(--shadow-clay); min-width: 0; }
.stat strong { display: block; font-family: 'Baloo 2', cursive; font-size: clamp(1.45rem, 6.4vw, 1.9rem); color: var(--primary-dark); line-height: 1; }
.stat > span { display: block; margin-top: .35rem; font-size: .82rem; line-height: 1.3; color: var(--muted); }
.stat strong span { font: inherit; }

/* media: organic blob photo */
.hero__media { position: relative; }
.hero__photo {
  position: relative; z-index: 1; overflow: hidden; aspect-ratio: 1 / 1.08;
  border: 6px solid #fff; box-shadow: var(--shadow-soft);
  border-radius: 46% 54% 54% 46% / 52% 48% 52% 48%;
  animation: blobMorph 14s ease-in-out infinite;
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blobMorph {
  0%,100% { border-radius: 46% 54% 54% 46% / 52% 48% 52% 48%; }
  50% { border-radius: 56% 44% 46% 54% / 44% 56% 46% 54%; }
}

/* decorative confetti */
.deco { position: absolute; z-index: 2; pointer-events: none; }
.deco svg { display: block; }
.deco--star1 { top: -4%; right: 14%; color: var(--amber); animation: floaty 5s var(--ease) infinite; }
.deco--star2 { bottom: 6%; left: -4%; color: var(--primary); animation: floaty 6.5s var(--ease) infinite .6s; }
.deco--dot1 { top: 22%; left: -6%; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); animation: floaty 5.5s var(--ease) infinite .3s; }
.deco--dot2 { bottom: 28%; right: -5%; width: 16px; height: 16px; border-radius: 50%; background: var(--secondary); animation: floaty 7s var(--ease) infinite 1s; }
.deco--ring { top: 50%; right: 6%; width: 30px; height: 30px; border-radius: 50%; border: 5px solid var(--accent); opacity: .7; animation: floaty 6s var(--ease) infinite .9s; }

/* migoczące gwiazdki + iskierki wokół zdjęcia hero — szybko pojawiają się i znikają */
.hero__deco { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hd { position: absolute; transform-origin: center; opacity: 0; }
.hd-star {
  animation: twinkle var(--dur, 1.2s) var(--ease) infinite;
  animation-delay: var(--d, 0s);
}
.hd-star svg { display: block; filter: drop-shadow(0 2px 4px rgba(154,52,18,.18)); }
.hd-spark {
  animation: spark var(--dur, .7s) ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.hd-spark svg { display: block; filter: drop-shadow(0 0 5px rgba(255,255,255,.9)); }
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(-25deg); }
  18%      { opacity: 1; transform: scale(1.15) rotate(0deg); }
  45%      { opacity: 0; transform: scale(.4) rotate(15deg); }
}
@keyframes spark {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  10%      { opacity: 1; transform: scale(1.2) rotate(45deg); }
  25%      { opacity: 0; transform: scale(.2) rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hd-star, .hd-spark { animation: none; opacity: .9; }
}

.float-badge {
  position: absolute; z-index: 3; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-radius: var(--r-md);
  box-shadow: var(--shadow-clay); padding: .7rem 1rem; display: flex; align-items: center; gap: .6rem;
  font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--ink); font-size: .95rem;
}
.float-badge .dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
.float-badge .dot svg { width: 20px; height: 20px; }
.float-badge--tl { top: 6%; left: -7%; animation: floaty 5s var(--ease) infinite; }
.float-badge--br { bottom: 8%; right: -6%; animation: floaty 6s var(--ease) infinite .8s; }

/* hero wave into next (white) section */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; line-height: 0; }
.hero__wave svg { width: 100%; height: 70px; display: block; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* wavy divider */
.wave { display: block; width: 100%; height: auto; color: var(--surface); }

/* ---------- Feature row ---------- */
.features { background: var(--surface); }
.features__grid { grid-template-columns: repeat(4, 1fr); }

/* ---------- Offer / programs ---------- */
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.offer-card { position: relative; overflow: hidden; }
.offer-card::after {
  content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px;
  border-radius: 50%; opacity: .12; background: currentColor;
}
.tag { display: inline-block; font-family: 'Baloo 2'; font-weight: 600; font-size: .8rem; padding: .25rem .8rem; border-radius: var(--r-pill); background: var(--cream-2); color: var(--primary-dark); }

/* żywe karty oferty (biały tekst na kolorze) */
.offer-vivid { color: #fff; border: none; position: relative; overflow: hidden; }
.offer-vivid.sky { background: linear-gradient(150deg, #38BDF8, #2563EB); }
.offer-vivid.pink { background: linear-gradient(150deg, #FB923C, #EA580C); }
.offer-vivid.green { background: linear-gradient(150deg, #1FB46A, #15803D); }
.offer-vivid h3 { color: #fff; margin-top: .9rem; }
.offer-vivid p { color: rgba(255,255,255,.94); }
.offer-vivid .tag { background: rgba(255,255,255,.25); color: #fff; }
.offer-vivid .card__icon { background: rgba(255,255,255,.22) !important; box-shadow: none; }
.offer-vivid .card__icon svg { color: #fff; }
.offer-vivid::after { content: ""; position: absolute; right: -44px; bottom: -44px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.12); }
.offer-vivid:hover { box-shadow: var(--shadow-hover); }

/* split media + text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: stretch; }
.split--reverse .split__media { order: 2; }
.split__media img { width: 100%; height: auto; object-fit: cover; object-position: center; border-radius: var(--r-xl); box-shadow: var(--shadow-soft); border: 4px solid #fff; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--green); margin-top: 2px; }

/* ---------- Stats band ---------- */
.band { background: linear-gradient(135deg, #F97316 0%, #FB7A2B 45%, #E8920F 100%); color: #fff; border-radius: var(--r-xl); padding: clamp(var(--s-5), 5vw, var(--s-7)); }
.band h2, .band .stat strong { color: #fff; }
.band__grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s-4); text-align: center; }
.band .stat strong { font-size: 2.8rem; }
.band .stat span { color: rgba(255,255,255,.9); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.gallery-grid figure { margin: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-clay); cursor: pointer; aspect-ratio: 1; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-mid) var(--ease); }
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid .span-2 { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: var(--z-overlay); background: rgba(58,42,30,.9); display: flex; flex-direction: column; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity .28s var(--ease), visibility .28s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-height: 86vh; border-radius: var(--r-lg); border: 4px solid #fff; }
.lightbox__close { position: absolute; top: 1.2rem; right: 1.2rem; width: 52px; height: 52px; border-radius: 50%; background: #fff; border: none; color: var(--ink); box-shadow: var(--shadow-clay); }
.lightbox__close svg { width: 26px; height: 26px; margin: auto; }

/* ---------- Galeria justified + filtry ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: var(--s-3); }
.gallery-filters button { display: inline-flex; align-items: center; min-height: 44px; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: .95rem; color: var(--body); background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px; padding: .5rem 1.15rem; cursor: pointer; transition: background var(--t-mid), color var(--t-mid), border-color var(--t-mid), box-shadow var(--t-mid); }
.gallery-filters button:hover { border-color: var(--primary); color: var(--primary-dark); }
.gallery-filters button.is-active { background: var(--primary); border-color: var(--primary); color: #3A2A1E; box-shadow: var(--shadow-clay); }
.gallery-filters button:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }

.jgallery { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 10px; }
.jgallery .jg-item { position: relative; margin: 0; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--shadow-clay); cursor: pointer; background: var(--cream); }
.jgallery .jg-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--t-mid) var(--ease); }
.jgallery .jg-item:hover img { transform: scale(1.06); }
.jgallery .jg-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(58,42,30,.5)); opacity: 0; transition: opacity var(--t-mid); pointer-events: none; }
.jgallery .jg-item:hover::after, .jgallery .jg-item:focus-visible::after { opacity: 1; }
.jgallery .jg-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: .7rem .9rem; color: #fff; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: .95rem; transform: translateY(8px); opacity: 0; transition: opacity var(--t-mid), transform var(--t-mid); }
.jgallery .jg-item:hover figcaption, .jgallery .jg-item:focus-visible figcaption { opacity: 1; transform: none; }
.jgallery .jg-item:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.jgallery:not(.is-ready) .jg-item { width: 240px; height: 180px; } /* zanim JS policzy rzędy / bez JS */
/* kaskadowe wejście kafelków przy scrollu */
.jgallery .jg-item { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.jgallery .jg-item.in { opacity: 1; transform: none; }
/* ikona lupy (intuicyjny sygnał klikalności) */
.jg-item__zoom { position: absolute; top: 50%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--ink); display: grid; place-items: center; opacity: 0; transform: scale(.8); transition: opacity var(--t-mid), transform var(--t-mid); z-index: 2; pointer-events: none; box-shadow: var(--shadow-clay); }
.jg-item__zoom svg { width: 26px; height: 26px; }
.jgallery .jg-item:hover .jg-item__zoom, .jgallery .jg-item:focus-visible .jg-item__zoom { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .jgallery .jg-item { opacity: 1; transform: none; transition: none; }
}

/* lightbox: scena, nawigacja, licznik, podpis, spinner, filmstrip */
.lightbox__stage { flex: 1 1 auto; min-height: 0; margin: 0; display: flex; align-items: center; justify-content: center; transform: scale(.96); transition: transform .28s var(--ease); }
.lightbox.is-open .lightbox__stage { transform: none; }
.lightbox__stage img { max-height: 100%; max-width: 100%; object-fit: contain; transition: opacity .2s var(--ease); }
.lightbox.is-loading .lightbox__stage img { opacity: 0; }
.lightbox__cap { flex: 0 0 auto; margin-top: .8rem; color: #fff; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 1.05rem; text-align: center; min-height: 1.2em; }
.lightbox__nav { position: absolute; top: calc(50% - 1.5rem); transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; color: var(--ink); box-shadow: var(--shadow-clay); cursor: pointer; display: grid; place-items: center; transition: background var(--t-mid), transform var(--t-mid); }
.lightbox__nav:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.lightbox__prev { left: 1.2rem; }
.lightbox__next { right: 1.2rem; }
.lightbox__nav svg { width: 28px; height: 28px; }
.lightbox__count { position: absolute; top: 1.4rem; left: 1.4rem; color: #fff; font-weight: 600; letter-spacing: .02em; background: rgba(0,0,0,.35); padding: .3rem .9rem; border-radius: 999px; font-size: .95rem; }
.lightbox__spinner { position: absolute; top: calc(50% - 1.5rem); left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 4px solid rgba(255,255,255,.3); border-top-color: #fff; opacity: 0; pointer-events: none; }
.lightbox.is-loading .lightbox__spinner { opacity: 1; animation: lb-spin .8s linear infinite; }
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox__strip { flex: 0 0 auto; display: flex; gap: 8px; justify-content: center; overflow-x: auto; padding: .8rem .5rem 0; scrollbar-width: thin; }
.lightbox__strip[hidden] { display: none; }
.lightbox__thumb { flex: 0 0 auto; width: 74px; height: 54px; border-radius: 8px; overflow: hidden; cursor: pointer; opacity: .5; border: 2px solid transparent; transition: opacity var(--t-mid), border-color var(--t-mid); background: none; padding: 0; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; max-height: none; border: none; border-radius: 0; display: block; }
.lightbox__thumb:hover { opacity: .85; }
.lightbox__thumb.is-active { opacity: 1; border-color: var(--primary); }
@media (max-width: 640px) {
  .lightbox { padding: 1rem; }
  .lightbox__stage img { max-height: 100%; }
  .lightbox__nav { width: 44px; height: 44px; top: 50%; }
  .lightbox__nav svg { width: 22px; height: 22px; }
  .lightbox__prev { left: .5rem; } .lightbox__next { right: .5rem; }
  .lightbox__spinner { top: 50%; }
  .lightbox__strip { display: none; } /* na telefonie swipe zamiast filmstripu */
}

/* ---------- Dokumenty do pobrania (kontakt) ---------- */
.docs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-3); }
.doc-cat h3 { font-size: 1.15rem; margin-bottom: var(--s-2); display: flex; align-items: center; gap: .5rem; }
.doc-cat h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--primary); flex: 0 0 auto; }
.doc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.doc-link { display: flex; align-items: center; gap: .7rem; padding: .7rem .9rem; border: 1.5px solid var(--border); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-weight: 600; text-decoration: none; transition: border-color var(--t-mid), box-shadow var(--t-mid), transform var(--t-mid), background var(--t-mid); }
.doc-link:hover { border-color: var(--primary); box-shadow: var(--shadow-clay); transform: translateY(-2px); background: var(--cream); }
.doc-link:focus-visible { outline: 3px solid var(--primary-soft); outline-offset: 2px; }
.doc-link svg { flex: 0 0 auto; width: 26px; height: 26px; color: var(--primary-dark); }
.doc-link span { flex: 1 1 auto; line-height: 1.3; }
.doc-link .doc-ext { flex: 0 0 auto; font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--primary-dark); background: var(--primary-soft); padding: .15rem .5rem; border-radius: 999px; }
@media (max-width: 760px) { .docs-grid { grid-template-columns: 1fr; } }

/* ---------- Strona prawna (polityka prywatności) ---------- */
.legal { margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin: var(--s-4) 0 var(--s-2); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: var(--s-2); color: var(--body); }
.legal ul { margin: 0 0 var(--s-2) 1.1rem; color: var(--body); }
.legal li { margin-bottom: .35rem; }

/* ---------- Team ---------- */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; }
.team-card { text-align: center; flex: 0 1 300px; }
.team-card img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; margin: 0 auto var(--s-2); border: 4px solid var(--surface); box-shadow: var(--shadow-clay); }
.team-card h3 { font-size: 1.2rem; }
.team-card .role { color: var(--primary-dark); font-weight: 600; font-size: .95rem; }
.team-card .mono { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto var(--s-2); display: grid; place-items: center; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 2.7rem; color: #fff; border: 4px solid var(--surface); box-shadow: var(--shadow-clay); }
.mono--1 { background: linear-gradient(135deg, #F97316, #FB923C); }
.mono--2 { background: linear-gradient(135deg, #8B5CF6, #A78BFA); }
.mono--3 { background: linear-gradient(135deg, #38BDF8, #0EA5E9); }
.mono--4 { background: linear-gradient(135deg, #22C55E, #4ADE80); }
.mono--5 { background: linear-gradient(135deg, #EC4899, #F472B6); }
.mono--6 { background: linear-gradient(135deg, #14B8A6, #2DD4BF); }

/* karta klikalna -> modal z biogramem */
.team-card[data-person] { cursor: pointer; }
.team-card__more { display: inline-block; margin-top: .6rem; color: var(--primary-dark); font-family: 'Baloo 2', cursive; font-weight: 600; font-size: .92rem; transition: transform var(--t-fast) var(--ease); }
.team-card[data-person]:hover .team-card__more { transform: translateX(3px); text-decoration: underline; }

/* ---------- Person modal (biogram kadry) ---------- */
.person-modal { position: fixed; inset: 0; z-index: var(--z-overlay); display: none; align-items: center; justify-content: center; padding: var(--s-3); background: rgba(58,42,30,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.person-modal.is-open { display: flex; }
.person-modal__panel { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); max-width: 560px; width: 100%; max-height: 86vh; overflow-y: auto; padding: clamp(var(--s-3), 4vw, var(--s-5)); animation: pmPop .26s var(--ease); }
@keyframes pmPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.person-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--cream-2); color: var(--ink); display: grid; place-items: center; border: none; }
.person-modal__close svg { width: 20px; height: 20px; }
.person-modal__close:hover { background: var(--primary-soft); }
.person-modal__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); padding-right: 44px; }
.person-modal__avatar { flex: 0 0 92px; width: 92px; height: 92px; }
.person-modal__avatar img, .person-modal__avatar .mono { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid var(--surface); box-shadow: var(--shadow-clay); flex-shrink: 0; box-sizing: border-box; }
.person-modal__avatar .mono { display: grid; place-items: center; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 1.9rem; color: #fff; margin: 0; }
.person-modal__head h3 { font-size: 1.45rem; }
.person-modal__head .role { color: var(--primary-dark); font-weight: 600; font-size: .98rem; }
.person-modal__bio { display: grid; gap: .55rem; }
.person-modal__bio li { position: relative; padding-left: 1.4rem; font-size: .98rem; color: var(--body); line-height: 1.55; }
.person-modal__bio li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---------- Testimonials ---------- */
.quote-card { position: relative; }
.quote-card .stars { color: var(--yellow); display: flex; gap: 2px; margin-bottom: .6rem; }
.quote-card .stars svg { width: 20px; height: 20px; fill: currentColor; }
.quote-card blockquote { font-style: italic; color: var(--body); margin-bottom: var(--s-2); }
.quote-card .who { display: flex; align-items: center; gap: .7rem; }
.quote-card .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.quote-card .who strong { color: var(--ink); display: block; font-family: 'Baloo 2'; }
.quote-card .who span { font-size: .85rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
/* mocny, markowy akcent — wyraźnie odbija od kremowego tła (finalny punkt konwersji) */
.cta-band .card {
  background: linear-gradient(135deg, var(--primary) 0%, #FB7A2B 45%, var(--amber) 100%);
  padding: var(--s-6); border: none; color: #fff;
  box-shadow: 0 26px 60px rgba(234,88,12,.32);
}
.cta-band h2 { margin-bottom: var(--s-2); }
.cta-band .card h2 { color: #fff; }
.cta-band .card p { color: rgba(255,255,255,.95); }
.cta-band .card .eyebrow { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .card .eyebrow::before { background-image: url(../img/dworek-white.svg); }
/* przyciski czytelne na pomarańczowym tle */
.cta-band .card .btn--primary { background: #fff; color: var(--primary-dark); }
.cta-band .card .btn--primary:hover { background: var(--cream-2); }
.cta-band .card .btn--ghost { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.65); }
.cta-band .card .btn--ghost:hover { background: rgba(255,255,255,.26); }
.cta-band .btn-row { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; margin-top: var(--s-3); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: 'Baloo 2'; font-weight: 600; color: var(--ink); font-size: .95rem; }
.field label .req { color: var(--pink); }
.field input, .field textarea, .field select {
  font-family: 'Nunito'; font-size: 1rem; color: var(--ink);
  padding: .85rem 1rem; min-height: 50px;
  background: var(--cream); border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 4px rgba(249,115,22,.16);
}
.field .hint { font-size: .82rem; color: var(--muted); }
.field .error-msg { font-size: .82rem; color: #DC2626; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #DC2626; }
.field.has-error .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--muted); }

.info-card { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: var(--s-3); }
.info-card .ic { width: 48px; height: 48px; flex: none; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-inset); }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card strong { font-family: 'Baloo 2'; color: var(--ink); display: block; }

/* ---------- Page hero (inner) ---------- */
.page-hero { background: linear-gradient(180deg, var(--cream-2), var(--cream)); padding: var(--s-6) 0 var(--s-5); text-align: center; position: relative; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 1rem auto 0; text-align: center; }
.page-hero .eyebrow { display: flex; width: max-content; max-width: 100%; margin-inline: auto; }
.breadcrumb a { color: var(--primary-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #E8DDD3; padding: var(--s-6) 0 var(--s-3); margin-top: var(--s-6); }
.site-footer h3 { color: #fff; margin-bottom: var(--s-2); font-size: 1.15rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--s-4); }
.site-footer a { color: #E8DDD3; }
.site-footer a:hover { color: var(--secondary); }
.footer-links li { margin-bottom: .55rem; }
.footer-brand .brand { color: #fff; margin-bottom: var(--s-2); }
.footer-brand__logo { background: #fff; padding: .55rem .85rem; border-radius: var(--r-md); display: inline-block; box-shadow: var(--shadow-clay); }
.footer-brand__logo img { height: 56px; width: auto; display: block; }
.footer-brand p { color: #C9B8AB; font-size: .95rem; }
.social { display: flex; gap: .6rem; margin-top: var(--s-2); }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.social a:hover { background: var(--primary); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--s-5); padding-top: var(--s-3); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .88rem; color: #C9B8AB; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav { justify-content: space-between; }
  .nav__links > li:first-child { margin-left: 0; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--cream); padding: var(--s-2); margin: 0;
    box-shadow: 0 18px 30px rgba(154,52,18,.16);
    border-bottom: 2px solid var(--border);
    transform: translateY(-130%); transition: transform var(--t-mid) var(--ease);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: .85rem 1rem; }
  .nav__cta { margin: .4rem 0 0; }
  .nav__toggle { display: grid; place-items: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 460px; margin: 0 auto; }
  .float-badge--tl { left: 0; } .float-badge--br { right: 0; }
  .split, .split--reverse .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: -1; }
  .split__media img { position: static; height: auto; }
  .cols-3, .cols-2 { grid-template-columns: repeat(2, 1fr); } /* tablet: 2 kolumny zamiast 1 (mniej pustki) */
  .band__grid { grid-template-columns: repeat(2,1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand__img { height: 46px; }
  .section { padding: var(--s-6) 0; }
  .features__grid, .team-grid { grid-template-columns: 1fr; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; } /* telefon: 1 kolumna (tablet wyżej = 2) */
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: var(--s-3); }
  .band { padding: var(--s-4); }
  .band__grid { gap: var(--s-3); }
  .footer-bottom { flex-direction: column; }
}

/* =========================================================
   PREMIUM POLISH
   ========================================================= */

/* czyste, ciepłe tło (bez kropek — eleganckie) */
body { background: var(--cream); }

/* dekoracja tła sekcji (wypełnia „puste" białe sekcje ciepłem) */
.section-deco { position: relative; overflow: hidden; }
.section-deco > .container { position: relative; z-index: 1; }
.section-deco::before, .section-deco::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; z-index: 0; }
.section-deco::before { width: 380px; height: 380px; background: var(--secondary); opacity: .13; top: -140px; left: -110px; }
.section-deco::after { width: 340px; height: 340px; background: var(--accent); opacity: .08; bottom: -140px; right: -100px; }

/* MOTYW PRZEWODNI — dworek z logo prowadzi przez sekcje */
.eyebrow::before {
  content: ""; flex: none; width: 22px; height: 16px;
  background-image: url(../img/dworek-ink.svg);
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
/* znak wodny dworku na pasku statystyk */
.band { position: relative; overflow: hidden; }
.band > * { position: relative; z-index: 1; }
.band::after {
  content: ""; position: absolute; z-index: 0; right: -20px; bottom: -34px; width: 280px; height: 210px; opacity: .16; pointer-events: none;
  background-image: url(../img/dworek-white.svg);
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
/* znaki wodne dworku flankujące CTA */
.cta-band { position: relative; overflow: hidden; }
.cta-band .container { position: relative; z-index: 1; }
.cta-band::before, .cta-band::after {
  content: ""; position: absolute; z-index: 0; width: 200px; height: 150px; opacity: .07; pointer-events: none;
  background-image: url(../img/dworek-ink.svg);
  background-repeat: no-repeat; background-position: center; background-size: contain;
}
.cta-band::before { left: 1%; bottom: 6%; }
.cta-band::after { right: 1%; top: 12%; transform: scaleX(-1); }

/* pasek postępu przewijania */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; z-index: 2000; border-radius: 0 4px 4px 0; background: linear-gradient(90deg, var(--primary), var(--amber), var(--accent)); box-shadow: 0 1px 6px rgba(154,52,18,.3); }

/* baner rekrutacji */
.topbar { background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--secondary)); color: #fff; text-align: center; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: .96rem; padding: .55rem 1rem; letter-spacing: .01em; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.topbar a:hover { color: var(--yellow); }

/* połysk na głównych przyciskach */
.btn--primary, .btn--accent { position: relative; overflow: hidden; isolation: isolate; }
.btn--primary::after, .btn--accent::after { content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%; z-index: -1; background: linear-gradient(120deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); transition: left .6s var(--ease); }
.btn--primary:hover::after, .btn--accent:hover::after { left: 140%; }

/* karty: delikatny akcent na hover */
.card { position: relative; }
.features__grid .card::before, .cols-3 .card::before {
  content: ""; position: absolute; top: -2px; left: 24px; right: 24px; height: 4px; border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, var(--primary), var(--amber)); opacity: 0; transition: opacity var(--t-mid);
}
.features__grid .card:hover::before, .cols-3 .card:hover::before { opacity: 1; }

/* dekoracja zdjęć w sekcjach split (kropki + blob) */
.split__media { position: relative; }
/* DESKTOP only: obraz wypełnia kolumnę = WYSOKOŚĆ TEKSTU (absolutny, nie rozpycha wiersza).
   Na telefonie (≤860px) obraz jest w normalnym przepływie — patrz reguła mobilna — żeby NIE nachodził na tekst. */
@media (min-width: 861px) {
  .split__media img { position: absolute; inset: 0; height: 100%; z-index: 1; }
}
.split__media::before {
  content: ""; position: absolute; z-index: 0; width: 44%; aspect-ratio: 1; right: -16px; bottom: -16px;
  background-image: radial-gradient(var(--primary) 26%, transparent 27%); background-size: 15px 15px;
  opacity: .35; border-radius: var(--r-md);
}
.split--reverse .split__media::before { right: auto; left: -16px; }
.split__media::after {
  content: ""; position: absolute; z-index: 0; width: 130px; height: 130px; border-radius: 50%;
  background: var(--secondary); opacity: .14; filter: blur(8px); top: -26px; left: -26px;
}
.split--reverse .split__media::after { left: auto; right: -26px; }

/* bogatsze nagłówki podstron */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--secondary); opacity: .16; filter: blur(34px); top: -110px; left: -70px; }
.page-hero::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--accent); opacity: .12; filter: blur(34px); top: -70px; right: -60px; }
.page-hero h1 { position: relative; display: inline-block; }
.page-hero h1::after { content: ""; display: block; width: 84px; height: 5px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--primary), var(--amber)); margin: .55rem auto 0; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: var(--s-2); box-shadow: var(--shadow-clay); transition: box-shadow var(--t-mid), border-color var(--t-mid); }
.faq details[open] { border-color: var(--primary-soft); box-shadow: var(--shadow-hover); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 1.3rem; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 1.08rem; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; color: var(--primary-dark); font-size: 1.5rem; line-height: 1; transition: transform var(--t-mid) var(--ease), background var(--t-fast); }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--primary-soft); }
.faq .faq__a { padding: 0 1.3rem 1.2rem; color: var(--body); }
.faq .faq__a p { max-width: none; }
.faq .faq__a p + p { margin-top: .7rem; }
/* akordeon programu z miniaturą */
.prog-acc summary { gap: .9rem; }
.acc-thumb { width: 60px; height: 60px; border-radius: var(--r-md); object-fit: cover; flex: none; box-shadow: var(--shadow-clay); }
.acc-head { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.acc-head small { font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 480px) { .acc-thumb { width: 48px; height: 48px; } .prog-acc summary { font-size: 1rem; } }

/* rząd zdjęć w sekcjach Programu (akordeon + sekcja edukacyjna) */
.photo-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); margin-top: var(--s-3); }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); border: 3px solid #fff; box-shadow: var(--shadow-clay); transition: transform var(--t-mid) var(--ease); }
.photo-row img:hover { transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow-hover); }
.acc-single { margin-top: var(--s-3); max-width: 360px; width: 100%; height: auto; border-radius: var(--r-md); border: 3px solid #fff; box-shadow: var(--shadow-clay); }
@media (max-width: 560px) { .photo-row { grid-template-columns: repeat(2, 1fr); } }

/* ciepłe pomarańczowo-kremowe tło sekcji, by białe karty się nie zlewały */
.sec-warm { background: linear-gradient(165deg, #FFE2C2 0%, #FFF3E6 60%); }
.prog-zajecia .faq details { border-color: #fff; box-shadow: 0 10px 30px rgba(234,88,12,.12); }
.prog-zajecia .faq details[open] { border-color: var(--primary-soft); box-shadow: 0 16px 40px rgba(234,88,12,.18); }

/* galeria: overlay na hover */
.gallery-grid figure { position: relative; }
.gallery-grid figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(58,42,30,.45)); opacity: 0; transition: opacity var(--t-mid); pointer-events: none; }
.gallery-grid figure:hover::after { opacity: 1; }
.gallery-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: .8rem 1rem; color: #fff; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: .95rem; transform: translateY(8px); opacity: 0; transition: opacity var(--t-mid), transform var(--t-mid); }
.gallery-grid figure:hover figcaption { opacity: 1; transform: none; }

/* linki w stopce — podkreślenie */
.footer-links a { transition: color var(--t-fast), padding-left var(--t-fast); }
.footer-links a:hover { padding-left: 5px; }

@media (max-width: 560px) {
  .split__media::before { width: 36%; }
  .topbar { font-size: .82rem; }
}

/* karty ze zdjęciem (zajęcia w czesnym) */
.pic-card { padding: 0; overflow: hidden; }
.pic-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform var(--t-mid) var(--ease); }
.pic-card:hover img { transform: scale(1.05); }
.pic-card__body { padding: var(--s-4); }
.pic-card__body .tag { margin-bottom: .5rem; }
.pic-card__body h3 { margin-bottom: .3rem; }
.pic-card__body p { font-size: .96rem; }

/* lista atutów — eleganckie wiersze-pigułki (2 kolumny) */
/* Atuty — kafelki z tematyczną ikoną (zastępują dawną checklistę z ptaszkami) */
.adv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 940px; margin-inline: auto; }
.adv-card { display: flex; align-items: center; gap: 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 1.05rem 1.25rem; box-shadow: var(--shadow-clay); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease); }
.adv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.adv-card__icon { flex: none; width: 50px; height: 50px; border-radius: var(--r-md); display: grid; place-items: center; box-shadow: var(--shadow-inset); }
.adv-card__icon svg { width: 25px; height: 25px; color: #fff; }
.adv-card p { margin: 0; font-weight: 600; color: var(--ink); line-height: 1.35; }
@media (max-width: 680px) { .adv-grid { grid-template-columns: 1fr; } }

/* chipsy obszarów programu */
.chips { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; max-width: 920px; margin: 0 auto; }
.chips span { background: #fff; border: 1px solid var(--border); border-radius: var(--r-pill); padding: .5rem 1.1rem; font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-clay); font-size: .95rem; transition: transform var(--t-fast) var(--ease), border-color var(--t-fast); }
.chips span:hover { transform: translateY(-2px); border-color: var(--primary-soft); }

/* lista zajęć w kartach kategorii (Program) */
.prog-list { margin-top: .7rem; }
.prog-list li { display: flex; align-items: center; gap: .6rem; padding: .32rem 0; color: var(--body); font-weight: 600; font-size: .98rem; }
.prog-list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--primary)); }

/* aktualności / blog */
.blog-card .date { font-family: 'Baloo 2', cursive; font-weight: 600; color: #9A3412; font-size: .85rem; }
.blog-card h3 { margin: .35rem 0 .5rem; font-size: 1.18rem; }
.blog-card a.more { font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--accent); }

/* adaptacja — band z CTA */
.band .btn { margin-top: var(--s-3); }
.band p { color: rgba(255,255,255,.95); max-width: 60ch; margin-inline: auto; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   WWR i terapia — sekcje premium („Komu pomagamy" / „Jakie terapie")
   ========================================================= */

/* Bogatsze karty: gradientowe ikony z poświatą, akcent u góry na hover, większy lift */
.feat-grid { gap: var(--s-3); }
.feat-grid .card { position: relative; padding: clamp(1.6rem, 2.6vw, 2.3rem); overflow: hidden; }
.feat-grid .card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.feat-grid .card:hover { transform: translateY(-7px); box-shadow: var(--shadow-soft); }
.feat-grid .card:hover::before { transform: scaleX(1); }
.feat-grid .card__icon {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 1.15rem;
  background: linear-gradient(145deg, #FB8C3C, var(--primary));
  box-shadow: 0 12px 24px rgba(249,115,22,.26), inset 0 2px 4px rgba(255,255,255,.45);
  transition: transform var(--t-mid) var(--ease);
}
.feat-grid .card__icon svg { width: 32px; height: 32px; }
.feat-grid .card:hover .card__icon { transform: translateY(-2px) rotate(-4deg) scale(1.06); }
.feat-grid .card__icon.c-blue,
.feat-grid .card__icon.c-sky,
.feat-grid .card__icon.c-purple {
  background: linear-gradient(145deg, #3B82F6, var(--accent));
  box-shadow: 0 12px 24px rgba(37,99,235,.26), inset 0 2px 4px rgba(255,255,255,.45);
}
.feat-grid .card h3 { font-size: 1.22rem; }
.feat-grid .card p { color: var(--body); }

/* Mozaika zdjęć: 1 duże (pionowe) + 2 mniejsze, z podpisami */
.photo-mosaic { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--s-3); margin-top: var(--s-5); }
.photo-mosaic figure {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--r-lg); border: 4px solid #fff; box-shadow: var(--shadow-soft);
}
.photo-mosaic .pm-big { grid-row: 1 / 3; grid-column: 1; }
.photo-mosaic .pm-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-mosaic .pm-sm img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-mosaic img { display: block; transition: transform .55s var(--ease); }
.photo-mosaic figure:hover img { transform: scale(1.06); }
.photo-mosaic figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.25rem .95rem;
  color: #fff; font-family: 'Baloo 2', cursive; font-weight: 600; font-size: 1.02rem;
  background: linear-gradient(to top, rgba(58,42,30,.82), rgba(58,42,30,.18) 65%, transparent);
}
@media (max-width: 720px) {
  .photo-mosaic { grid-template-columns: 1fr 1fr; }
  .photo-mosaic .pm-big { grid-row: auto; grid-column: 1 / -1; }
  .photo-mosaic .pm-big img { position: static; aspect-ratio: 16 / 10; height: auto; }
}
@media (max-width: 480px) { .photo-mosaic { grid-template-columns: 1fr; } }
/* Klikalne mozaiki (podgląd w lightboxie) — kursor + ikona lupy na hover */
.photo-mosaic[data-lightbox] figure { cursor: pointer; }
.photo-mosaic[data-lightbox] figure::after {
  content: ""; position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 46px; height: 46px; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.94) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233A2A1E' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: var(--shadow-clay); opacity: 0; transform: scale(.8);
  transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease);
}
.photo-mosaic[data-lightbox] figure:hover::after,
.photo-mosaic[data-lightbox] figure:focus-visible::after { opacity: 1; transform: scale(1); }

/* ---------- Fix renderowania GPU w Chrome ----------
   Ciężkie efekty (rozmycie, backdrop-filter, mix-blend-mode) potrafią na karcie
   graficznej zostawić niewymalowane, białe sekcje, które „naprawiają się" dopiero
   po przewinięciu. Usuwamy je — to wyłącznie dekoracje, układ i treść bez zmian. */
.goo { display: none !important; }
.section-deco::before, .section-deco::after { display: none !important; }
.page-hero::before, .page-hero::after { display: none !important; }
.split__media::after { filter: none !important; }
.float-badge { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }

/* =========================================================
   BLOG — lista wpisów + strona artykułu
   ========================================================= */

/* nawigacja: 8 pozycji + CTA — lekkie ściśnięcie na średnich ekranach */
@media (min-width: 861px) and (max-width: 1080px) {
  .nav__links { gap: .15rem; }
  .nav__links a { padding: .5rem .6rem; font-size: .95rem; }
  .brand__img { height: 50px; }
}

/* karta wpisu (REUŻYCIE .card .pic-card .tag .blog-card .date) */
a.blog-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none; }
a.blog-card .pic-card__body { display: flex; flex-direction: column; flex: 1 1 auto; }
.blog-card .tag { align-self: flex-start; margin-bottom: .55rem; }
.blog-card .date { display: block; margin-bottom: .15rem; }
.blog-card h3 { margin: 0 0 .45rem; }
.blog-card .excerpt { color: var(--body); font-size: .96rem; line-height: 1.6; margin-bottom: .9rem; }
.blog-card .more { margin-top: auto; }
a.blog-card:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }

/* stan pusty kategorii (kategorie bez realnych wpisów) */
.blog-empty { text-align: center; max-width: 54ch; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.blog-empty .ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto var(--s-3); background: var(--primary-soft); color: var(--primary-dark); }
.blog-empty .ico svg { width: 36px; height: 36px; }
.blog-empty h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.blog-empty p { color: var(--muted); margin-inline: auto; }

/* strona pojedynczego artykułu */
.article { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; min-height: 44px; gap: .4rem; font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--primary-dark); margin-bottom: var(--s-3); }
.article-back svg { width: 18px; height: 18px; }
.article-back:hover { text-decoration: underline; }
.article-meta { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: .2rem 0 var(--s-2); }
.article-meta time { color: var(--muted); font-weight: 600; font-size: .92rem; }
/* Zdjęcia wpisów: jednolite pole dla WSZYSTKICH (te same wymiary), bez obcinania (contain) */
.article-hero-img { width: 100%; max-width: 640px; height: 380px; object-fit: contain; background: var(--cream-2); border-radius: var(--r-lg); border: 4px solid #fff; box-shadow: var(--shadow-soft); margin: var(--s-3) auto var(--s-4); display: block; }
.article-hero-img.portrait { max-width: 640px; margin-inline: auto; }
@media (max-width: 560px) { .article-hero-img { height: 280px; } }
.article-body p { margin-bottom: 1rem; max-width: none; }
.article-body h2 { margin: var(--s-4) 0 .6rem; }
.article-body ul.dotted { margin: .4rem 0 1.1rem; padding-left: 0; list-style: none; display: grid; gap: .55rem; }
.article-body ul.dotted li { position: relative; padding-left: 1.5rem; line-height: 1.55; }
.article-body ul.dotted li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.article-body a.inline-link { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-info { background: var(--cream); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); margin: var(--s-3) 0; }
.article-info p { margin-bottom: .4rem; }
.article-info p:last-child { margin-bottom: 0; }
.article-info strong { font-family: 'Baloo 2', cursive; color: var(--ink); }
.article-foot { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; justify-content: space-between; margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--border); }

/* =========================================================
   BLOG — dopieszczenie: wyróżniony wpis, wyszukiwarka,
   filtry z licznikami, animacja kart, powiązane + prev/next
   ========================================================= */

/* --- chip kategorii na zdjęciu (modern) --- */
.blog-card__media { position: relative; display: block; overflow: hidden; }
.tag--over { position: absolute; left: .7rem; top: .7rem; z-index: 2; background: rgba(255,255,255,.94); color: var(--primary-dark); box-shadow: var(--shadow-clay); backdrop-filter: none; }

/* --- animacja wejścia kart (karty istnieją tylko gdy działa JS) --- */
.blog-card { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease), box-shadow var(--t-mid); }
.blog-card.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .blog-card { opacity: 1; transform: none; transition: none; } }

/* --- wyróżniony (najnowszy) wpis --- */
.blog-featured { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-clay); color: inherit; text-decoration: none; margin-bottom: var(--s-4); transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid); }
.blog-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.blog-featured:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.blog-featured__media { position: relative; overflow: hidden; min-height: 100%; }
.blog-featured__media img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; display: block; transition: transform var(--t-mid) var(--ease); }
.blog-featured:hover .blog-featured__media img { transform: scale(1.04); }
.blog-featured__body { padding: clamp(1.5rem, 3vw, 2.6rem); display: flex; flex-direction: column; justify-content: center; }
.blog-featured__body .feat-label { display: inline-flex; align-items: center; gap: .4rem; align-self: flex-start; font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .82rem; letter-spacing: .03em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: .6rem; }
.blog-featured__body .feat-label::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--primary), var(--amber)); }
.blog-featured__body .tag { align-self: flex-start; margin-bottom: .6rem; }
.blog-featured__body .date { font-family: 'Baloo 2', cursive; font-weight: 600; color: #9A3412; font-size: .88rem; margin-bottom: .25rem; }
.blog-featured__body h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .5rem; }
.blog-featured__body p { color: var(--body); margin-bottom: var(--s-3); max-width: 52ch; }
.blog-featured__body .more { font-family: 'Baloo 2', cursive; font-weight: 700; color: var(--accent); }
@media (max-width: 760px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured__media img { min-height: 0; aspect-ratio: 16 / 10; }
}

/* --- pasek narzędzi: wyszukiwarka + licznik wyników --- */
.blog-toolbar { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; margin-bottom: var(--s-3); }
.blog-search { position: relative; flex: 1 1 280px; max-width: 420px; }
.blog-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.blog-search input { width: 100%; font-family: 'Nunito', sans-serif; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r-pill); padding: .7rem 1.1rem .7rem 2.6rem; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
.blog-search input::placeholder { color: var(--muted); }
.blog-search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.blog-count { color: var(--muted); font-weight: 600; font-size: .92rem; margin-left: auto; }

/* --- filtry z licznikami + puste wygaszone --- */
.gallery-filters .cnt { opacity: .65; font-weight: 700; margin-left: .35rem; font-size: .85em; }
.gallery-filters button.is-active .cnt { opacity: .9; }
.gallery-filters button.is-empty { opacity: .45; cursor: default; border-style: dashed; }
.gallery-filters button.is-empty:hover { border-color: var(--border); color: var(--body); box-shadow: none; }

/* --- artykuł: powiązane wpisy + nawigacja prev/next --- */
.post-extra { max-width: 980px; margin: 0 auto; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: 0 auto var(--s-5); }
.post-nav a { display: flex; flex-direction: column; gap: .25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 1rem 1.2rem; box-shadow: var(--shadow-clay); color: inherit; text-decoration: none; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast), border-color var(--t-fast); }
.post-nav a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); border-color: var(--primary-soft); }
.post-nav a.next { text-align: right; align-items: flex-end; }
.post-nav .lbl { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .82rem; color: var(--primary-dark); }
.post-nav .ttl { font-family: 'Baloo 2', cursive; font-weight: 600; color: var(--ink); line-height: 1.3; }
.post-nav a.is-disabled { opacity: .4; pointer-events: none; }
.related-head { text-align: center; margin-bottom: var(--s-4); }
@media (max-width: 560px) { .post-nav { grid-template-columns: 1fr; } .post-nav a.next { text-align: left; align-items: flex-start; } }

/* =========================================================
   Magiczna warstwa dekoracji (cała strona oprócz hero)
   GPU-safe: WYŁĄCZNIE transform + opacity (bez filter/blur/
   backdrop-filter/mix-blend-mode — patrz blok „Fix renderowania GPU").
   Warstwa wstrzykiwana przez js/main.js; chowana na hero klasą .is-hidden.
   ========================================================= */
.magic-layer {
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none; overflow: hidden;
  opacity: 1; transition: opacity .6s var(--ease);
}
.magic-layer.is-hidden { opacity: 0; }

.magic-item {
  position: absolute;
  width: var(--sz, 28px); height: var(--sz, 28px);
  color: var(--c, var(--purple));
  opacity: var(--op, .2);
  animation:
    magicDrift   var(--dur, 9s) var(--ease) infinite,
    magicTwinkle calc(var(--dur, 9s) * .6) ease-in-out infinite;
}
.magic-item svg { width: 100%; height: 100%; display: block; }

@keyframes magicDrift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--mx, 10px), var(--my, -14px), 0) rotate(var(--mr, 8deg)); }
  100% { transform: translate3d(0, 0, 0) rotate(0deg); }
}
@keyframes magicTwinkle {
  0%, 100% { opacity: var(--op, .2); }
  50%      { opacity: calc(var(--op, .2) * 1.65); }
}

/* Mobile: rzadziej i delikatniej (mniej ruchu w polu czytania) */
@media (max-width: 700px) {
  .magic-item:nth-child(2n) { display: none; }
  .magic-layer { opacity: .8; }
  .magic-layer.is-hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .magic-item { animation: none; }
}

/* ============================================================
   MOBILE — dopracowanie (2026-06-24)
   ============================================================ */

/* Anty-rozjazd: elementy mają móc się kurczyć w gridach/flexach */
.split__content, .split__media, .field, .band, .info-card, .info-card > div, .quote-card, .blog-featured__body { min-width: 0; }
select, input, textarea { max-width: 100%; }
.info-card a, .footer-links a, .article-body a { overflow-wrap: anywhere; }

/* na telefonie chowamy dekoracje zdjęć split (wystawały poza ekran) */
@media (max-width: 720px) {
  .split__media::before, .split__media::after { display: none; }
}

/* ===== Mobilny pasek szybkiego kontaktu (Zadzwoń + Zapisz) ===== */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; align-items: stretch;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .5rem .6rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background: #fff; border-top: 1px solid var(--border);
    box-shadow: 0 -8px 22px rgba(154,52,18,.14);
  }
  .mobile-cta__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    min-height: 50px; padding: .55rem .5rem; border-radius: var(--r-pill);
    font-family: 'Baloo 2', cursive; font-weight: 700; font-size: .98rem; line-height: 1.05;
    text-decoration: none; white-space: nowrap;
  }
  .mobile-cta__btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
  .mobile-cta__btn--call { background: #fff; color: var(--primary-dark); border: 2px solid var(--primary); }
  .mobile-cta__btn--signup { background: var(--primary); color: #fff; box-shadow: var(--shadow-clay); }
  .mobile-cta__btn:active { transform: translateY(1px); }
  /* miejsce, by pasek nie zasłaniał stopki/treści */
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
}

/* =========================================================
   HERO MOBILE — jedno duże zdjęcie w tle (≤720px)
   Zdjęcia pływające i biała fala zastąpione immersyjnym tłem.
   ========================================================= */
@media (max-width: 720px) {
  .hero { padding: var(--s-5) 0 var(--s-6); }
  .hero__floating,
  .hero .goo,
  .hero .goo-defs,
  .hero__wave,
  .hero__scrim { display: none !important; }

  /* mobile: bez intro z logo — szybszy LCP (animacja zostaje na desktopie) */
  body.js-intro .intro { display: none !important; }
  body.js-intro.intro-active .brand__img { opacity: 1 !important; }

  /* LCP = prawdziwy <img> (szybszy niż tło CSS) + gradient jako nakładka */
  .hero__bg-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
  .hero__bg { background-image: none; }
  .hero__bg::after {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(22,15,10,.46) 0%, rgba(22,15,10,.28) 40%, rgba(22,15,10,.60) 100%);
  }

  /* tekst na zdjęciu — biały, czytelny */
  .hero__content .eyebrow {
    color: #fff;
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.4);
  }
  .hero h1 { color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.42); }
  .hero h1 .accent { color: #FFD9A8; }
  .hero p.lead { color: #fff; text-shadow: 0 1px 10px rgba(0,0,0,.36); }

  .hero__cta .btn--ghost {
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.66);
    box-shadow: none;
  }
  .hero__proof strong { color: #fff; }
  .hero__proof small { color: rgba(255,255,255,.86); }
  .hero__badge { background: rgba(255,255,255,.94); }
}

/* ===== Tap targets na mobile (PSI/Accessibility): większe cele dotyku =====
   Linki w stopce i okruszkach dostają większy obszar klikania i odstęp,
   żeby spełnić wytyczną min. 48px / 24px separacji na telefonach. */
@media (max-width: 760px) {
  .site-footer a:not(.btn) {
    display: inline-block;
    padding: .5rem 0;
    line-height: 1.55;
  }
  .site-footer li { margin-bottom: .35rem; }
  .breadcrumb a {
    display: inline-block;
    padding: .35rem .25rem;
  }
}

.jgallery:not(.is-ready){min-height:100vh}

/* Tekst tylko dla czytników ekranu (a11y live-region) */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
