/* Strony fundacji (wizytówki) — P0003 ZAD0037; kolory z strona.yaml: --akcent (tła, ramki), --akcent-jasny (tła sekcji),
   --akcent-tekst (drobny tekst i przyciski — ciemniejszy, czytelny na bieli), --akcent-2/--akcent-3 (ramki kart obszarów) */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: #1f2328;
  background: #fff;
}
a { color: var(--akcent-tekst); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .przycisk:focus-visible { outline: 3px solid var(--akcent-tekst); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; color: var(--akcent); }
h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .3em; }
p { margin: 0 0 1em; }

.kontener { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.kontener.waski { max-width: 820px; }

.pomin { position: absolute; left: -9999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.pomin:focus { left: 8px; top: 8px; }

/* nagłówek */
.naglowek-strony { border-bottom: 1px solid #e5e7eb; background: #fff; }
.naglowek-strony .kontener { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; min-height: 72px; padding-top: 10px; padding-bottom: 10px; }
.znak { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #1f2328; }
.znak-litera {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  background: var(--akcent); color: #fff; font-weight: 700; font-size: 1.35rem; line-height: 1;
}
.znak-nazwa { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.znak-logo { display: block; height: 56px; width: auto; }
.menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.menu a { color: #1f2328; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 6px 0; display: inline-block; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--akcent-tekst); border-bottom-color: var(--akcent); }

/* powitanie */
.powitanie { background: var(--akcent); color: #fff; padding: 72px 0 64px; }
.powitanie h1 { color: #fff; margin-bottom: .35em; }
.powitanie .haslo { font-size: 1.2rem; font-weight: 600; max-width: 760px; margin: 0; }

/* sekcje */
.sekcja { padding: 56px 0; }
.sekcja + .sekcja:not(.tlo) { border-top: 1px solid #eef0f2; }
.sekcja.tlo { background: var(--akcent-jasny); border-top: 0; }
.sekcja.tlo + .sekcja { border-top: 0; }

ol.cele { margin: 0; padding: 0; list-style: none; counter-reset: cel; display: grid; gap: 12px; }
ol.cele li {
  counter-increment: cel; position: relative; background: #fff; border-radius: 10px;
  padding: 14px 18px 14px 62px; box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
ol.cele li::before {
  content: counter(cel); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--akcent); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center;
}

.obszary { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.obszar { background: #fff; border-radius: 10px; border-top: 4px solid var(--akcent); padding: 20px 22px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.obszar:nth-child(3n+2) { border-top-color: var(--akcent-2); }
.obszar:nth-child(3n) { border-top-color: var(--akcent-3); }
.obszar h3 { color: var(--akcent-tekst); font-size: 1.1rem; }
.obszar p { font-size: .97rem; }

ul.zasady { margin: 0; padding-left: 1.2em; }
ul.zasady li { margin-bottom: .7em; }
ul.zasady li::marker { color: var(--akcent); }

dl.dane { margin: 0; display: grid; gap: 0; border-top: 1px solid #e5e7eb; }
dl.dane div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e5e7eb; }
dl.dane dt { font-weight: 600; color: #4b5563; }
dl.dane dd { margin: 0; overflow-wrap: anywhere; }
.uwaga { margin-top: 1em; color: #4b5563; font-size: .95rem; }

.kontakt-kolumny { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.kontakt-kolumny p { margin: 0; overflow-wrap: anywhere; }

.karta-odnosnika { border: 1px solid #e5e7eb; border-left: 5px solid var(--akcent); border-radius: 10px; padding: 22px 24px 8px; }
.karta-odnosnika h2 { font-size: 1.3rem; }
.przycisk {
  display: inline-block; background: var(--akcent-tekst); color: #fff; text-decoration: none; font-weight: 600;
  padding: 11px 22px; border-radius: 8px; min-height: 44px;
}
.przycisk:hover { filter: brightness(1.1); }

/* stopka */
.stopka { background: #1f2328; color: #d1d5db; padding: 28px 0; font-size: .95rem; }
.stopka .kontener { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.stopka p { margin: 0; }
.stopka a { color: #fff; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .kontener { padding: 0 18px; }
  .naglowek-strony .kontener { min-height: 0; }
  .znak-logo { height: 46px; }
  .menu ul { gap: 2px 16px; }
  .menu a { padding: 10px 0; }
  .powitanie { padding: 48px 0 44px; }
  .powitanie .haslo { font-size: 1.08rem; }
  .sekcja { padding: 40px 0; }
  dl.dane div { grid-template-columns: 1fr; gap: 2px; }
  ol.cele li { padding-left: 56px; }
}
