/* ============================================================
   FUNDACJA LABA - Dom Dziennej Opieki Wytchnieniowej, Poznań
   Kolory: biel + słoneczny żółty, krem jako kolor pośredni,
   grafit do tekstu; róż / zieleń / błękit z logo jako akcenty.
   Czcionki zaprojektowane pod czytelność: Lexend + Atkinson Hyperlegible.
============================================================ */

:root {
  --sun-600: #d99a00;
  --sun-500: #f5b700;
  --sun-400: #ffc933;
  --sun-200: #ffe58a;
  --sun-100: #fff3c7;
  --sun-50:  #fffaea;
  --white:   #ffffff;
  --ink-900: #17202e;
  --ink-800: #1f2a3a;
  --ink-600: #3a4657;
  --muted:   #5b6577;
  --line:    #efe7d2;
  --pink:    #e2337a;
  --green:   #1f9d57;
  --blue:    #3fa6dc;

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px -30px rgba(31, 42, 58, .35);
  --shadow-sm: 0 10px 28px -16px rgba(31, 42, 58, .3);
  --header-h: 88px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* wielkość tekstu (przełącznik A / A+ / A++) */
html { font-size: 100%; }
html.fs-1 { font-size: 112.5%; }
html.fs-2 { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; color: var(--ink-900); letter-spacing: -.02em; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun-400); color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--ink-900); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 48px, 1220px); margin-inline: auto; }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--cream { background: var(--sun-50); }
.section--sun { background: var(--sun-500); }
.section--ink { background: var(--ink-800); color: #d5dbe4; }
.section--ink h2, .section--ink h3 { color: var(--white); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink-900); color: var(--white); border-radius: 10px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--sun-100); color: var(--ink-800);
  font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-500); }
.section--cream .eyebrow { background: var(--white); }
.section--sun .eyebrow { background: rgba(255,255,255,.55); }
.section--sun .eyebrow::before { background: var(--ink-800); }
.section--ink .eyebrow { background: rgba(255,255,255,.08); color: var(--sun-200); }

.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-top: 18px; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }
.section--ink .section-head p { color: #b9c2cf; }
.section--sun .section-head p { color: var(--ink-600); }
.section-head--center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.hl { background: linear-gradient(transparent 62%, var(--sun-200) 62%); padding: 0 .08em; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-size: 1rem; font-weight: 600;
  cursor: pointer; white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--sun { background: var(--sun-500); color: var(--ink-900); }
.btn--sun:hover { background: var(--sun-400); transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(217, 154, 0, .7); }
.btn--ink { background: var(--ink-800); color: var(--white); }
.btn--ink:hover { background: var(--ink-900); transform: translateY(-2px); }
.btn--outline { border-color: var(--ink-800); color: var(--ink-800); }
.btn--outline:hover { background: var(--ink-800); color: var(--white); }
.btn--white { background: var(--white); color: var(--ink-900); }
.btn--white:hover { background: var(--sun-50); transform: translateY(-2px); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; color: var(--ink-900); border-bottom: 2px solid var(--sun-500); padding-bottom: 2px; }
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(31, 42, 58, .45); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 100%; width: min(100% - 48px, 1320px); }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand__logo { width: auto; height: 52px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--ink-900); letter-spacing: -.02em; }
.brand__tag { font-size: .8rem; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.nav__link { display: block; padding: 10px 16px; border-radius: 999px; font-family: var(--font-head); font-weight: 500; font-size: .98rem; color: var(--ink-800); white-space: nowrap; transition: background .2s; }
.nav__link:hover { background: var(--sun-50); }
.nav__link[aria-current="page"] { background: var(--sun-100); color: var(--ink-900); font-weight: 600; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink-800); background: var(--white); transition: background .2s, border-color .2s; flex: none; }
.icon-btn:hover { background: var(--sun-50); border-color: var(--sun-400); }
.icon-btn svg { width: 20px; height: 20px; }

.fontsize { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.fontsize button { min-width: 36px; height: 38px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-family: var(--font-head); font-weight: 600; color: var(--ink-800); line-height: 1; }
.fontsize button:nth-child(1) { font-size: .82rem; }
.fontsize button:nth-child(2) { font-size: .98rem; }
.fontsize button:nth-child(3) { font-size: 1.14rem; }
.fontsize button[aria-pressed="true"] { background: var(--sun-500); }

.nav-toggle { display: none; margin-left: auto; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 50%; background: var(--white); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4.5px auto; background: var(--ink-900); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1200px) { .brand__tag { display: none; } .nav__actions .btn { display: none; } }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 18px;
    padding: 18px 24px 30px; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(31, 42, 58, .35);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; margin: 0; gap: 4px; }
  .nav__link { padding: 14px 18px; font-size: 1.08rem; border-radius: var(--radius-sm); }
  .nav__actions { flex-wrap: wrap; }
  .nav__actions .btn { display: inline-flex; flex: 1 1 100%; }
}
@media (max-width: 420px) { .brand__name { font-size: 1.05rem; } .brand__logo { height: 46px; } }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 5vw, 64px) clamp(64px, 8vw, 104px); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; right: -12vw; top: -14vw; width: 58vw; height: 58vw; max-width: 900px; max-height: 900px; border-radius: 50%; background: var(--sun-100); }
.hero__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-top: 20px; font-size: clamp(2.3rem, 4.3vw, 3.6rem); }
.hero__lead { margin-top: 22px; max-width: 540px; font-size: 1.2rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__info { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; color: var(--ink-800); }
.chip svg { width: 20px; height: 20px; color: var(--sun-600); }
.hero__media { position: relative; }
.hero__photo { margin: 0; border-radius: 36px 36px 36px 120px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero__card { position: absolute; display: flex; align-items: center; gap: 14px; padding: 14px 20px 14px 14px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.hero__card img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.hero__card strong { display: block; font-family: var(--font-head); font-size: 1rem; color: var(--ink-900); line-height: 1.25; }
.hero__card small { color: var(--muted); font-size: .88rem; }
.hero__card--a { left: -30px; bottom: 36px; }
.hero__card--b { right: -18px; top: 26px; }
.hero__card .dot { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--sun-500); color: var(--ink-900); }
.hero__card .dot svg { width: 26px; height: 26px; }
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero::before { right: -40vw; top: auto; bottom: -30vw; width: 110vw; height: 110vw; }
  .hero__card--a { left: 12px; bottom: 12px; }
  .hero__card--b { right: 12px; top: 12px; }
}
@media (max-width: 520px) { .hero__card--b { display: none; } .hero__photo { border-radius: 28px 28px 28px 72px; } }

/* ---------- działania (4 karty) ---------- */
.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.action { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.action:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.action__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; margin-bottom: 22px; color: var(--white); }
.action__icon svg { width: 28px; height: 28px; }
.action:nth-child(1) .action__icon { background: var(--sun-500); color: var(--ink-900); }
.action:nth-child(2) .action__icon { background: var(--pink); }
.action:nth-child(3) .action__icon { background: var(--green); }
.action:nth-child(4) .action__icon { background: var(--blue); }
.action h3 { margin-bottom: 10px; }
.action p { color: var(--muted); }
@media (max-width: 1000px) { .actions { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .actions { grid-template-columns: 1fr; } }

/* ---------- blok tekst + zdjęcie ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split + .split { margin-top: clamp(64px, 8vw, 110px); }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3.2; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after { content: ""; position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--sun-200); left: -6%; bottom: -10%; }
.split--rev .split__media::after { left: auto; right: -6%; top: -10%; bottom: auto; background: var(--sun-100); }
.split__media { isolation: isolate; }
.split__text h2 { margin-top: 18px; }
.split__text .lead { margin-top: 20px; }
.split__text > p { margin-top: 16px; }
.split__text .btn, .split__text .link-arrow { margin-top: 28px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev .split__media { order: 0; } }

/* ---------- podopieczni (lista) ---------- */
.groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: var(--ink-900); line-height: 1.35; }
.group__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--sun-100); color: var(--ink-900); font-weight: 700; flex: none; }
@media (max-width: 900px) { .groups { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .groups { grid-template-columns: 1fr; } }

/* ---------- godziny ---------- */
.hours { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.hours__clock { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: var(--sun-500); color: var(--ink-900); text-align: center; line-height: 1.05; font-family: var(--font-head); }
.hours__clock strong { font-size: 2.4rem; font-weight: 700; display: block; }
.hours__clock span { font-size: .82rem; font-weight: 600; }
.hours h3 { font-size: 1.6rem; }
.hours p { margin-top: 8px; color: var(--muted); }
.hours__time { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: var(--ink-900); }
@media (max-width: 600px) { .hours { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- sala doświadczania świata ---------- */
.sensory { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.sensory__photos { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.15; }
.sensory__photos figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; }
.sensory__photos figure:first-child { grid-row: span 2; }
.sensory__photos img { width: 100%; height: 100%; object-fit: cover; }
.sensory__text h2 { margin-top: 18px; }
.sensory__text .lead { margin-top: 18px; color: #c8d0db; }
.sensory__text p { color: #b9c2cf; }
.sensory__text .btn { margin-top: 26px; }
@media (max-width: 900px) { .sensory { grid-template-columns: 1fr; } }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 19vw, 250px); grid-auto-flow: dense; gap: 14px; }
.gallery__item { position: relative; height: 100%; padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--sun-100); display: block; width: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--wide img { object-position: 50% 25%; }
.gallery__item--tall { grid-row: span 2; }
@media (max-width: 900px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter { padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-family: var(--font-head); font-weight: 500; cursor: pointer; transition: background .2s, border-color .2s; }
.filter:hover { border-color: var(--sun-500); }
.filter.is-active { background: var(--sun-500); border-color: var(--sun-500); font-weight: 600; }
.gallery__item[hidden] { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(17, 23, 33, .94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 84svh; width: auto; border-radius: 12px; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--sun-500); color: var(--ink-900); cursor: pointer; }
.lightbox__btn:hover { background: var(--sun-400); }
.lightbox__btn svg { width: 22px; height: 22px; }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: #d5dbe4; }
@media (max-width: 640px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 14px; transform: none; } .lightbox__prev { left: 14px; } .lightbox__next { right: 14px; } }

/* ---------- cytat ---------- */
.quote { position: relative; max-width: 920px; margin-inline: auto; text-align: center; }
.quote__mark { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 26px; border-radius: 50%; background: var(--white); font-family: var(--font-head); font-size: 3.4rem; line-height: 1; padding-top: 18px; color: var(--sun-600); }
.quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 400; font-size: clamp(1.35rem, 2.6vw, 2rem); line-height: 1.45; color: var(--ink-900); letter-spacing: -.01em; }
.quote figcaption { margin-top: 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--ink-800); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; padding: clamp(36px, 5vw, 64px); border-radius: 32px; background: var(--sun-500); }
.cta::before { content: ""; position: absolute; z-index: -1; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; background: var(--sun-400); }
.cta::after { content: ""; position: absolute; z-index: -1; right: 140px; bottom: -150px; width: 220px; height: 220px; border-radius: 50%; background: var(--sun-200); opacity: .7; }
.cta p { margin-top: 12px; max-width: 560px; color: var(--ink-600); font-size: 1.1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; } }

/* ---------- nagłówek podstron ---------- */
.page-hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(48px, 7vw, 88px); background: var(--sun-50); }
.page-hero::before { content: ""; position: absolute; z-index: -1; right: -120px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: var(--sun-100); }
.page-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2.3rem, 5vw, 3.8rem); }
.page-hero p { margin-top: 18px; max-width: 600px; font-size: 1.15rem; color: var(--muted); }
.page-hero figure { margin: 0; border-radius: 30px 30px 30px 90px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .92rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a { text-decoration: underline; text-decoration-color: var(--sun-500); text-underline-offset: 4px; }
.crumbs a:hover { color: var(--ink-900); }
@media (max-width: 900px) { .page-hero__grid { grid-template-columns: 1fr; } }

/* ---------- kroki ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px; border-radius: 50%; background: var(--sun-500); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: var(--ink-900); }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

.ticks { display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 38px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--sun-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317202e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- kontakt ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.contact-card { padding: clamp(30px, 4vw, 44px); border-radius: var(--radius); background: var(--ink-800); color: #c8d0db; }
.contact-card h2 { color: var(--white); font-size: 2rem; }
.contact-card > p { margin-top: 12px; }
.contact-list { display: grid; margin-top: 24px; }
.contact-list a, .contact-list div { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.1); color: var(--white); font-weight: 700; font-size: 1.08rem; }
.contact-list li:last-child a, .contact-list li:last-child div { border-bottom: 0; }
.contact-list .ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--sun-500); color: var(--ink-900); flex: none; }
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; font-weight: 400; font-size: .85rem; color: #aab4c2; }

.form-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.form-card h2 { font-size: 2rem; }
.form-card > p { margin-top: 10px; color: var(--muted); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .95rem; color: var(--ink-900); }
.field input, .field select, .field textarea { width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--sun-50); transition: border-color .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun-500); background: var(--white); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #c0263d; }
.check { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--sun-600); flex: none; }
.check a { color: var(--ink-900); text-decoration: underline; text-decoration-color: var(--sun-500); text-underline-offset: 3px; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { grid-column: 1 / -1; padding: 14px 18px; border-radius: var(--radius-sm); }
.form-note--ok { background: #e6f5ec; color: #14613a; }
.form-note--err { background: #fdeaed; color: #94192d; }
.form-error { margin: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: #fdeaed; color: #94192d; }
@media (max-width: 980px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { justify-self: stretch; } }

.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 8; background: var(--sun-100); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 24px; background: radial-gradient(circle at 30% 30%, var(--sun-200), var(--sun-100) 60%); }
.map__placeholder strong { font-family: var(--font-head); font-size: 1.6rem; color: var(--ink-900); }
.map__placeholder small { color: var(--ink-600); max-width: 380px; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 5; } }

/* ---------- tekst prawny ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.6rem; margin: 40px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-decoration-color: var(--sun-500); text-underline-offset: 3px; }

/* ---------- footer ---------- */
.footer { background: var(--ink-900); color: #aab4c2; padding-top: clamp(60px, 8vw, 88px); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer__brand .brand__name { color: var(--white); }
.footer__brand .brand__logo { background: var(--white); border-radius: 16px; padding: 6px; height: 66px; }
.footer__brand p { margin-top: 18px; max-width: 320px; }
.footer h3 { font-size: 1rem; color: var(--sun-400); margin-bottom: 16px; }
.footer li + li { margin-top: 10px; }
.footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--sun-500); text-underline-offset: 4px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .92rem; }
.footer__bottom nav { display: flex; gap: 20px; }
.social { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--white); }
.social span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--sun-500); color: var(--ink-900); }
.social svg { width: 18px; height: 18px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; gap: 30px; } }

.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: none; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--sun-500); color: var(--ink-900); box-shadow: 0 14px 30px -10px rgba(31, 42, 58, .55); }
.call-fab svg { width: 26px; height: 26px; }
@media (max-width: 760px) { .call-fab { display: grid; } }

/* ---------- logowanie / panel ---------- */
.auth { display: grid; place-items: center; min-height: calc(100svh - var(--header-h) - 120px); padding: 64px 0; background: var(--sun-50); }
.auth-card { width: min(100% - 40px, 450px); padding: 44px 40px; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); text-align: center; }
.auth-card img { height: 96px; width: auto; margin: 0 auto 18px; }
.auth-card h1 { font-size: 2.2rem; }
.auth-card > p { color: var(--muted); margin-top: 6px; }
.auth-card .form { grid-template-columns: 1fr; text-align: left; }
.auth-card .form .btn { justify-self: stretch; }

.panel { padding-block: 56px 96px; background: var(--sun-50); min-height: 70svh; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; }
.panel__head h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 12px; }
.panel__head p { color: var(--muted); margin-top: 6px; }
.panel-msg { padding: 16px 20px; border-radius: var(--radius-sm); background: var(--white); border: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.stat small { display: block; font-family: var(--font-head); font-weight: 600; color: var(--muted); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--ink-900); line-height: 1.2; margin-top: 4px; }
.stat span { font-size: .9rem; color: var(--muted); }
.panel-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.panel-card { padding: 26px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); overflow-x: auto; }
.panel-card h2 { font-size: 1.4rem; margin-bottom: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th { text-align: left; font-family: var(--font-head); font-size: .82rem; font-weight: 600; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--line); }
.table td { padding: 11px 8px; border-bottom: 1px solid var(--line); }
.table tr:last-child td { border-bottom: 0; }
.table td + td, .table th + th { text-align: right; }
.table--left td + td, .table--left th + th { text-align: left; }
.table--left td { vertical-align: top; }
.table--left a { text-decoration: underline; text-decoration-color: var(--sun-500); }
.table small { color: var(--muted); }
.msg-text { min-width: 220px; max-width: 440px; white-space: pre-line; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .panel-two { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.notfound { display: grid; place-items: center; text-align: center; min-height: 62svh; padding: 80px 0; background: var(--sun-50); }
.notfound strong { display: block; font-family: var(--font-head); font-size: clamp(6rem, 18vw, 10rem); font-weight: 700; line-height: 1; color: var(--sun-400); }
.notfound h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 8px; }
.notfound p { color: var(--muted); margin: 16px auto 28px; max-width: 460px; }

/* ---------- animacje ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
