/* ==========================================================================
   Fundacja „Możesz Żyć Inaczej” — style strony
   Źródło prawdy: design-system.md (tokeny, role kolorów, komponenty).
   W komponentach używamy wyłącznie tokenów semantycznych.
   ========================================================================== */

/* ---------- 0. Fonty własne ----------
   Raleway (SIL OFL 1.1, licencja w assets/fonts/OFL-Raleway.txt) — klasyczny
   bezszeryfowy krój nagłówków, variable 400–800. Pliki pobrane z Google Fonts
   i hostowane lokalnie. */
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/raleway-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Raleway";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/raleway-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* DM Sans (treść, variable 400–700 z osią opsz) i Caveat (etykiety odręczne)
   — SIL OFL 1.1, licencje w assets/fonts/OFL-*.txt. Hostowane lokalnie od
   2026-11-04 zamiast Google Fonts: przeglądarka nie wysyła IP odwiedzającego
   do Google (RODO). */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokeny ---------- */
:root {
  /* Prymitywy — paleta fundacji */
  --granat-950: #142333;
  --granat-900: #1C3146;
  --granat:     #2B4C6B;
  --granat-100: #E6E9ED;
  --fiolet-700: #5E4A70;
  --fiolet:     #7E6296;
  --fiolet-300: #B4A2BA;
  --fiolet-200: #D8D0E0;
  --fiolet-100: #ECE7EF;
  --zielen-700: #596049;
  --zielen:     #778061;
  --zielen-300: #B9C29E;
  --zielen-100: #EBECE7;
  --stonowany:  #A69CAF;
  --krem:       #F7F1E6;
  --krem-50:    #FFFDF9;
  --blad:       #B3261E;

  /* Semantyka — jasny motyw */
  --bg:             var(--krem);
  --surface:        var(--krem-50);
  --surface-tint:   var(--fiolet-100);
  --surface-green:  var(--zielen-100);
  --surface-dark:   var(--granat);
  --text:           var(--granat);
  --text-muted:     #4A5F75;
  --text-on-dark:   var(--krem);
  --text-on-accent: #FFFFFF;
  --accent:         var(--fiolet);
  --accent-hover:   var(--fiolet-700);
  --accent-text:    var(--fiolet-700);
  --accent-2:       var(--zielen);
  --accent-2-text:  var(--zielen-700);
  --decor:          var(--stonowany);
  --line:           rgb(43 76 107 / 0.14);
  --focus:          var(--granat);
  --error:          var(--blad);

  /* Typografia */
  --font-heading: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body:    "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hand:    "Caveat", "Segoe Print", cursive;

  --fs-display: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);
  --fs-h2:      clamp(2rem, 1.45rem + 2.2vw, 3rem);
  --fs-h3:      clamp(1.375rem, 1.2rem + 0.7vw, 1.625rem);
  --fs-lead:    clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  --fs-body:    1.125rem;
  --fs-small:   1rem;

  /* Kształt */
  --radius-pill: 999px;
  --radius-lg:   28px;
  --radius-md:   20px;
  --radius-sm:   12px;
  --radius-arch: 999px 999px var(--radius-lg) var(--radius-lg);

  /* Przestrzeń */
  --gutter: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --container: 1200px;

  /* Głębia */
  --shadow-card:  0 18px 48px -20px rgb(43 76 107 / 0.22);
  --shadow-float: 0 24px 64px -24px rgb(43 76 107 / 0.30);

  /* Ruch */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur:      320ms;

  /* Warstwy */
  --z-header: 100;
  --z-menu:   110;
  --z-skip:   200;

  color-scheme: light;
}

/* ---------- 2. Baza ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-variant-numeric: lining-nums;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: var(--fs-display); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.005em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: 0; }

/* Wyróżnione słowo: ten sam krój, kolor akcentu (bez kursywy, jak w design-system.md) */
h1 em, h2 em, h3 em {
  font-style: normal;
  color: var(--accent-text);
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 1.1em; }

a { color: var(--accent-text); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--fiolet-200); color: var(--granat-900); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: var(--z-skip);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-pill);
  background: var(--granat);
  color: var(--krem);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); position: relative; }
.section--tint  { background: var(--surface-tint); }
.section--green { background: var(--surface-green); }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--text); }
.muted { color: var(--text-muted); }
.prose { max-width: 65ch; }
.prose p + p { margin-top: 1.1em; }

.stack > * + * { margin-top: var(--stack-gap, 1.25rem); }

/* Odręczny akcent — używany oszczędnie (maks. 1 na 3 sekcje) */
.hand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.625rem;
  line-height: 1.1;
  color: var(--accent-text);
  letter-spacing: 0;
}
.hand .ph { font-size: 1.25rem; }

/* ---------- 3. Przyciski ---------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--text-on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding: 0.5rem 0.5rem 0.5rem 1.75rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.btn:hover { --btn-bg: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); transition-duration: 80ms; }

.btn__icon {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  font-size: 1.125rem;
  transition: transform var(--dur) var(--ease-out);
}
.btn:hover .btn__icon { transform: translate(2px, -1px); }

.btn--dark { --btn-bg: var(--granat); --btn-fg: var(--krem); }
.btn--dark:hover { --btn-bg: var(--granat-900); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: currentColor;
  padding-right: 1.75rem;
}
.btn--outline:hover { --btn-bg: rgb(43 76 107 / 0.08); }

.btn--light { --btn-bg: var(--krem); --btn-fg: var(--granat); }
.btn--light:hover { --btn-bg: #FFFFFF; }
.btn--light .btn__icon { background: var(--fiolet-100); color: var(--fiolet-700); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.875rem; align-items: center; }

/* ---------- 4. Nagłówek strony ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: rgb(247 241 230 / 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  transition: box-shadow var(--dur) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 12px 32px -24px rgb(43 76 107 / 0.35); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark { width: auto; height: 3rem; }
.brand__name { width: auto; height: 2.125rem; }

.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav__link:hover { background: rgb(126 98 150 / 0.12); }
.nav__link[aria-current="page"] {
  background: var(--surface-tint);
  color: var(--accent-text);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font: 700 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle .ph { font-size: 1.25rem; }

@media (max-width: 960px) {
  .brand__name { height: 1.75rem; }
  .brand__mark { height: 2.5rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: 4.75rem 0 auto 0;
    z-index: var(--z-menu);
    display: block;
    padding: 1rem var(--gutter) 2rem;
    background: var(--bg);
    box-shadow: 0 24px 48px -24px rgb(20 35 51 / 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.25rem; }
  .nav__link { min-height: 3.25rem; padding: 0 1.25rem; font-size: 1.125rem; }
}

@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* ---------- 5. Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) clamp(3rem, 2rem + 3vw, 4.5rem); overflow: clip; }
.hero h1 { font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.hero__copy > * + * { margin-top: 1.5rem; }
.hero__copy .btn-row { margin-top: 2.25rem; }
.hero__lead { max-width: 34ch; }

.hero__visual {
  position: relative;
  justify-self: center;
  width: min(100%, 30rem);
  aspect-ratio: 5 / 6;
}
.hero__arch {
  position: absolute;
  inset: 0 0 0 12%;
  border-radius: var(--radius-arch);
  overflow: hidden;
  background: var(--surface-tint);
  box-shadow: var(--shadow-float);
}
.hero__arch img { width: 100%; height: 100%; object-fit: cover; }
.hero__circle {
  position: absolute;
  left: 0;
  bottom: 6%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.hero__circle img { width: 100%; height: 100%; object-fit: cover; }
/* Zdjęcie na białym tle w łuku: biel przejmuje kolor łuku */
/* Łuk z postacią bez tła: postać stoi na dolnej krawędzi łuku */
.hero__arch--person img { position: absolute; left: 50%; bottom: 0; width: auto; height: 92%; max-width: none; transform: translateX(-50%); }

/* Hero strony głównej: dwa łuki z portretami bez tła (Marianna z tyłu, Ola z przodu) */
.hero__visual--duo { aspect-ratio: 1 / 1; }
.duo-arch {
  position: absolute;
  width: 54%;
  aspect-ratio: 3 / 4.3;
  border-radius: var(--radius-arch);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.duo-arch img {
  position: absolute;
  left: 50%;
  bottom: 0;
  height: 90%;
  width: auto;
  max-width: none;
  transform: translateX(-50%);
}
.duo-arch--back  { right: 0; top: 0; background: var(--surface-green); }
.duo-arch--front { left: 0; bottom: 0; z-index: 1; background: var(--surface-tint); border: 8px solid var(--bg); }

/* Dekoracje — kropki i serce, max 3 na sekcję */
.dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.dot--fiolet { background: var(--accent); }
.dot--zielen { background: var(--accent-2); }
.dot--ston   { background: var(--decor); }
.dot--ring   { background: transparent; border: 2px solid var(--decor); }

/* Dekoracje płynnie unoszą się (decyzja PO 2026-11-04).
   Oś X i oś Y to dwie osobne animacje o różnych czasach, każda tam
   i z powrotem po krzywej sinusoidy. Ruch nigdy nie staje w miejscu
   (brak punktów pośrednich, w których prędkość spada do zera), a tor
   nie powtarza się wprost, więc wygląda naturalnie. Osie są na dwóch
   różnych właściwościach (`translate` i `transform`), obie obsługuje
   kompozytor GPU — bez przeliczania układu i bez zacięć. */
.dot,
.heart-badge {
  animation: float-x-a 7.3s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate, float-y-a 5.9s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
  will-change: transform, translate;
  backface-visibility: hidden;
}
.dot:nth-of-type(3n+2) { animation: float-x-b 8.6s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate -3.1s, float-y-b 6.7s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate -1.4s; }
.dot:nth-of-type(3n)   { animation: float-x-c 6.4s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate -5.2s, float-y-c 7.9s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate -2.6s; }
.heart-badge           { animation: float-x-h 8.2s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate, float-y-h 6.1s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate; }

@keyframes float-x-a {
  from { translate: -9px 0; }
  to   { translate: 9px 0; }
}
@keyframes float-y-a {
  from { transform: translate3d(0, -12px, 0); }
  to   { transform: translate3d(0, 12px, 0); }
}
@keyframes float-x-b {
  from { translate: -12px 0; }
  to   { translate: 12px 0; }
}
@keyframes float-y-b {
  from { transform: translate3d(0, -9px, 0); }
  to   { transform: translate3d(0, 9px, 0); }
}
@keyframes float-x-c {
  from { translate: -7px 0; }
  to   { translate: 7px 0; }
}
@keyframes float-y-c {
  from { transform: translate3d(0, -14px, 0); }
  to   { transform: translate3d(0, 14px, 0); }
}
@keyframes float-x-h {
  from { translate: -5px 0; }
  to   { translate: 5px 0; }
}
@keyframes float-y-h {
  from { transform: translate3d(0, -9px, 0) rotate(-5deg); }
  to   { transform: translate3d(0, 9px, 0) rotate(5deg); }
}


.heart-badge {
  position: absolute;
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  font-size: 1.75rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(100%, 24rem); }
}

/* Mniejszy hero podstron */
.page-hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem) clamp(3rem, 2rem + 3vw, 4.5rem); position: relative; overflow: clip; }
.page-hero__inner { max-width: 48rem; }
.page-hero__inner > * + * { margin-top: 1.25rem; }
.page-hero { min-height: 22rem; }
.page-hero__arch {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--container)) / 2));
  bottom: 0;
  width: clamp(9rem, 6rem + 5vw, 12rem);
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-arch);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
}
.page-hero__arch img { width: 56%; height: auto; opacity: 0.9; }
.page-hero__arch--person { place-items: end center; overflow: hidden; }
.page-hero__arch--person img { width: 108%; max-width: none; opacity: 1; }
@media (max-width: 860px) { .page-hero { min-height: 0; } .page-hero__arch { display: none; } }

/* ---------- 6. Dla kogo jesteśmy ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.split--center { align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.audience { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.75rem; }
.audience__item {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1.125rem;
  align-items: center;
  padding: 1.125rem 1.5rem 1.125rem 1.125rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-size: 1.125rem;
  line-height: 1.45;
}
.icon-circle {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--surface-tint);
  color: var(--accent-text);
  font-size: 1.5rem;
}
.icon-circle--green { background: var(--surface-green); color: var(--accent-2-text); }

/* ---------- 7. Manifest ---------- */
.manifesto { text-align: center; }
.manifesto__quote {
  max-width: 22ch;
  margin: 1.25rem auto 0;
  font-family: var(--font-heading);
  font-size: clamp(1.875rem, 1.25rem + 2.5vw, 3rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.manifesto__quote em { font-style: normal; color: var(--accent-text); }
.manifesto__body { max-width: 62ch; margin: 2rem auto 0; color: var(--text-muted); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.625rem; margin: 2.25rem 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}
.chip .ph { color: var(--accent-2-text); font-size: 1.125rem; }

/* ---------- 8. Misja — zdjęcie + tekst ---------- */
.media-stack { position: relative; padding-bottom: 3rem; }
.media-stack__main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  aspect-ratio: 4 / 3;
}
.media-stack__main img { width: 100%; height: 100%; object-fit: cover; }
.media-stack__note {
  position: absolute;
  right: -1rem;
  bottom: 0;
  max-width: 17rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.3;
}
@media (max-width: 860px) { .media-stack__note { right: 0.75rem; } }

.pull {
  margin: 2rem 0 0;
  padding: 1.75rem 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface-tint);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
}
.pull .ph { display: block; margin-bottom: 0.5rem; color: var(--accent); font-size: 1.75rem; }

/* ---------- 9. Pas ciemny — Bezpieczna przystań ---------- */
.haven {
  position: relative;
  color: var(--text-on-dark);
  background: var(--surface-dark);
  overflow: hidden;
  isolation: isolate;
}
.haven__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.haven__media img { width: 100%; height: 100%; object-fit: cover; }
.haven__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgb(28 49 70 / 0.96) 0%, rgb(28 49 70 / 0.88) 45%, rgb(28 49 70 / 0.45) 100%);
}
.haven h2, .haven h3 { color: var(--text-on-dark); }
.haven h2 em { color: var(--fiolet-300); }
.haven__inner { max-width: 40rem; }
.haven__inner > * + * { margin-top: 1.5rem; }
.haven p { color: rgb(247 241 230 / 0.92); }
.haven__closing {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text-on-dark) !important;
}
.haven__closing em { font-style: normal; color: var(--fiolet-300); }
@media (max-width: 860px) {
  .haven__media::after { background: rgb(28 49 70 / 0.9); }
}

/* ---------- 10. Projekty — szachownica (wzór z inspiracji C) ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.tile {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 18rem;
}
.tile--text {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
}
.tile--fiolet { background: var(--surface-tint); }
.tile--zielen { background: var(--surface-green); }
.tile--photo { position: relative; }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile:nth-child(1) { grid-column: span 7; }
.tile:nth-child(2) { grid-column: span 5; }
.tile:nth-child(3) { grid-column: span 5; }
.tile:nth-child(4) { grid-column: span 7; }
.tile h3 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); }

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.ticks li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.625rem; line-height: 1.45; }
.ticks .ph { margin-top: 0.15em; color: var(--accent-2-text); font-size: 1.25rem; }
.tile--fiolet .ticks .ph { color: var(--accent-text); }

@media (max-width: 860px) {
  .board { grid-template-columns: 1fr; }
  .tile:nth-child(n) { grid-column: auto; }
  .tile--photo { min-height: 14rem; aspect-ratio: 4 / 3; }
}

.status-note {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  max-width: 48rem;
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--decor);
  color: var(--text);
}
.status-note .ph { flex-shrink: 0; margin-top: 0.15em; color: var(--accent-2-text); font-size: 1.5rem; }

/* ---------- 11. Zespół ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 1rem + 3vw, 4rem); margin-top: 3rem; }
.person { display: grid; grid-template-columns: clamp(12rem, 2rem + 16vw, 17rem) 1fr; gap: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); align-items: end; }
.person__arch, .portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-arch);
  background: var(--surface-tint);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.person__arch--green, .portrait--green { background: var(--surface-green); }
.section--green .person__arch--green { background: var(--surface); }
.monogram {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-text);
}
.person__arch--green .monogram, .portrait--green .monogram { color: var(--accent-2-text); }
.person__arch img, .portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person__name { font-size: var(--fs-h3); }
.person__quote { margin-top: 0.75rem; color: var(--text-muted); }
.person__link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.375rem; font-weight: 700; }
@media (max-width: 860px) {
  .team { grid-template-columns: 1fr; }
  .person { grid-template-columns: minmax(0, 11rem) 1fr; align-items: end; }
  .monogram { font-size: 3.25rem; }
}

/* Profile na podstronie „Kim jesteśmy” */
.profile {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5.5rem);
  align-items: start;
}
.profile + .profile { margin-top: var(--section); }
.profile__aside { position: sticky; top: 7rem; }
.profile__aside .portrait { width: 100%; }
.profile__aside .monogram { font-size: clamp(5rem, 3rem + 5vw, 8rem); }
.profile__facts { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.profile__facts li { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.625rem; font-size: 1rem; line-height: 1.45; color: var(--text-muted); }
.profile__facts .ph { margin-top: 0.1em; color: var(--accent-text); font-size: 1.125rem; }
.profile__hello { font-family: var(--font-hand); font-weight: 600; font-size: 1.75rem; color: var(--accent-text); line-height: 1.1; }
.profile__body > * + * { margin-top: 1.25rem; }
.profile__body h2 { margin-top: 0.25rem; }
.profile--reverse { grid-template-columns: minmax(0, 1fr) minmax(0, 20rem); }
.profile--reverse .profile__aside { order: 2; }
@media (max-width: 860px) {
  .profile, .profile--reverse { grid-template-columns: 1fr; }
  .profile--reverse .profile__aside { order: 0; }
  .profile__aside { position: static; display: grid; grid-template-columns: 8rem 1fr; gap: 1.25rem; align-items: center; }
  .profile__aside .monogram { font-size: 3.5rem; }
  .profile__facts { margin-top: 0; }
}

/* ---------- 12. Lista projektów (podstrona) ---------- */
.group-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 26rem);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.group-head__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-float); }
.group-head__media img { width: 100%; height: 100%; object-fit: cover; }
.group-head__media--arch { border-radius: var(--radius-arch); aspect-ratio: 4 / 5; max-width: 22rem; justify-self: end; }
@media (max-width: 860px) {
  .group-head { grid-template-columns: 1fr; }
  .group-head__media--arch { justify-self: start; max-width: 18rem; }
}

.offer { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin-top: 2.5rem; }
.offer__item {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.offer__item h3 { font-size: 1.375rem; }
.offer__item p { color: var(--text-muted); font-size: 1.0625rem; }
.offer--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Wiersze rozdzielone linią — bez pudełek i cienia (zasada z docs/anti-ai-slop.md) */
.offer--rows { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
.offer--rows .offer__item {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 1.5rem;
  align-items: start;
  padding: 1.75rem 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}
.offer--rows .offer__item h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); margin-top: 0.35rem; }
.offer--rows .offer__item p { margin-top: 0.35rem; font-size: 1.125rem; }
@media (max-width: 760px) {
  .offer--rows .offer__item { grid-template-columns: 3.25rem 1fr; }
  .offer--rows .offer__item p { grid-column: 2; margin-top: -0.5rem; }
}
@media (max-width: 760px) { .offer--two { grid-template-columns: 1fr; } }
.offer__item--wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.25rem; background: var(--surface-tint); box-shadow: none; }

/* ---------- 13. Wezwanie (CTA) ---------- */
.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--surface-tint);
  overflow: hidden;
}
.cta-band > * + * { margin: 0; }
/* Pas CTA ze zdjęciem: postać „wychodzi” z dolnej krawędzi pasa */
.cta-band--media {
  --band-pad: clamp(2.25rem, 1.5rem + 3vw, 4rem);
  padding: var(--band-pad);
  grid-template-columns: clamp(11rem, 5rem + 11vw, 17rem) minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
}
.cta-band__media { align-self: end; margin: calc(var(--band-pad) * -0.5) 0 calc(var(--band-pad) * -1); }
.cta-band__media img { width: 100%; height: auto; }
.cta-band__copy > * + * { margin-top: 0.875rem; }
.cta-band .dot { opacity: 0.9; }
@media (max-width: 760px) {
  .cta-band, .cta-band--media { grid-template-columns: 1fr; }
  .cta-band--media .cta-band__media { order: 3; width: min(16rem, 85%); justify-self: center; margin-top: 0; }
  .cta-band .dot { display: none; }
}

/* Podpis cytatu z portretem */
.quote-person { display: flex; align-items: center; gap: 0.875rem; margin-top: 1.25rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; }
.quote-person__avatar { width: 4rem; height: 4rem; border-radius: 50%; background: var(--surface-green); }

/* ---------- 14. Pomoc w kryzysie ---------- */
.crisis {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1.5px solid var(--line);
}
.crisis__icon { width: 3.5rem; height: 3.5rem; font-size: 1.75rem; }
.crisis h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); }
.crisis__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.crisis__list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-tint);
  color: var(--text);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.crisis__list a:hover { background: var(--fiolet-200); }
.crisis__list a:active { transform: scale(0.98); }
.crisis__num { font-family: var(--font-heading); font-size: 1.625rem; font-weight: 700; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; }
.crisis__desc { font-size: 0.9375rem; line-height: 1.4; color: var(--text-muted); }
.crisis__note { margin-top: 1rem; font-size: 0.9375rem; color: var(--text-muted); }
@media (max-width: 600px) { .crisis { grid-template-columns: 1fr; } }

/* ---------- 15. Kontakt i formularz ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card { display: grid; gap: 1rem; }
.contact-line {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem 1rem 1rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.contact-line__label { display: block; font-size: 0.9375rem; color: var(--text-muted); }
.contact-line__value { font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .contact-line { grid-template-columns: 1fr; padding: 1.125rem 1.25rem; }
  .contact-line > .icon-circle { display: none; }
}
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.375rem;
  padding: 0.25rem 0.75rem;
  min-height: 2.25rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  font: 500 0.9375rem/1 var(--font-body);
  cursor: pointer;
}
.copy-btn:hover { background: var(--surface-tint); }

.form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.5rem; }
.field label, .field legend { font-weight: 700; font-size: 1rem; }
.field__opt { font-weight: 400; color: var(--text-muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 1.25rem;
  border: 1.5px solid rgb(43 76 107 / 0.35);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.5 var(--font-body);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select { appearance: none; padding-right: 3rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 256 256'%3E%3Cpath fill='%235E4A70' d='M213.66 101.66l-80 80a8 8 0 0 1-11.32 0l-80-80a8 8 0 0 1 11.32-11.32L128 164.69l74.34-74.35a8 8 0 0 1 11.32 11.32Z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1.25rem center; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgb(126 98 150 / 0.25);
}
.field__hint { font-size: 0.9375rem; color: var(--text-muted); }
.field__error { display: none; align-items: center; gap: 0.375rem; font-size: 0.9375rem; font-weight: 500; color: var(--error); }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); }
.field.is-invalid .field__error { display: flex; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form__status { font-size: 0.9375rem; color: var(--text-muted); }
.form__status.is-ok { color: var(--accent-2-text); font-weight: 700; }
.form__status.is-error { color: var(--error); font-weight: 500; }
.form__status a { color: inherit; font-weight: 700; }
.btn:disabled { opacity: 0.6; cursor: progress; }
/* Zgoda RODO w formularzu */
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.check input {
  width: 1.375rem;
  height: 1.375rem;
  min-height: 0;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.field .check label { font-weight: 400; font-size: 0.9375rem; line-height: 1.5; cursor: pointer; }
.field--check .field__hint a { color: var(--accent-text); font-weight: 700; }

/* Polityka prywatności — długi tekst prawny, czytelny jak artykuł */
.policy h2 { font-size: var(--fs-h3); margin-top: 2.75rem; scroll-margin-top: 6rem; }
.policy h3 { font-size: 1.1875rem; margin-top: 1.75rem; }
.policy h2 + p, .policy h3 + p { margin-top: 0.75rem; }
.policy p + ul, .policy ul + p { margin-top: 0.75rem; }
.policy ul { padding-left: 1.25rem; }
.policy li + li { margin-top: 0.5rem; }
.policy a { color: var(--accent-text); font-weight: 700; overflow-wrap: anywhere; }
.policy .status-note ul { margin-top: 0.5rem; }
.policy .status-note + h2 { margin-top: 2.5rem; }

/* Pole-pułapka na boty: niewidoczne dla ludzi i czytników ekranu */
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* ---------- 16. Stopka ---------- */
.site-footer {
  margin-top: 0;
  padding-block: clamp(3.5rem, 2.5rem + 3vw, 5rem) 2rem;
  background: var(--granat-900);
  color: var(--krem);
}
.site-footer a { color: var(--krem); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}
.footer-brand img { height: 7.5rem; width: auto; }
.footer-brand p { margin-top: 1.25rem; max-width: 30ch; color: rgb(247 241 230 / 0.85); font-size: 1rem; }
.footer-title { font-family: var(--font-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fiolet-300); }
.footer-list { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.footer-list a { text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2rem; }
.footer-list a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(247 241 230 / 0.16);
  font-size: 0.9375rem;
  color: rgb(247 241 230 / 0.78);
}
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- 17. Ruch ---------- */
/* Treść jest widoczna domyślnie. JS ukrywa tylko elementy poniżej ekranu
   i odsłania je przy przewinięciu, więc bez JS nic nie znika. */
.reveal-pending { opacity: 0; transform: translateY(16px); }
.reveal-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
  /* Pętla z czasem 1 ms migałaby — dekoracje stoją w miejscu. */
  .dot, .heart-badge { animation: none !important; will-change: auto; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
