:root {
  --cream: #f4f7f5;
  --paper: #ffffff;
  --ink: #17261e;
  --green: #00a33a;       /* zieleń z logo – tylko dekoracje */
  --green-dark: #0a5a2a;  /* tekst i przyciski */
  --blue: #0072bb;        /* niebieski z logo */
  --navy: #0b3a63;
  --sun: #ffd83d;         /* żółć z włosów dziewczynki */
  --line: #dde3df;
  --focus: #000;
  --radius: 1.25rem;
  --font: "Atkinson Hyperlegible", "Segoe UI", Verdana, Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.125rem; line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; font-weight: 700; color: var(--navy); margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); margin-top: 1.6em; }
p, ul, ol, dl { margin: 0 0 1.1em; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { text-decoration-thickness: .16em; }
.wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }

/* Widoczny fokus – podwójny kontur działa na jasnym i ciemnym tle */
:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
  box-shadow: 0 0 0 6px #fff; border-radius: .25rem;
}
main:focus { outline: none; box-shadow: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--navy); color: #fff; padding: .8rem 1.2rem; border-radius: .5rem;
  font-weight: 700;
}
.skip:focus { top: .5rem; }

/* Nagłówek */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-block: .6rem; }
.brand { display: block; width: 7rem; flex: none; }
.brand img { width: 100%; }

.menu-toggle {
  font: inherit; font-weight: 700; color: #fff; background: var(--navy);
  border: 0; border-radius: 99rem; padding: .7rem 1.5rem; min-height: 2.9rem; cursor: pointer;
}
.main-nav { flex-basis: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.js .main-nav { display: none; }
.js .menu-toggle[aria-expanded="true"] + .main-nav { display: block; }
.main-nav > ul > li { border-top: 1px solid var(--line); }
.main-nav a, .sub-toggle {
  display: flex; align-items: center; gap: .5rem; width: 100%;
  min-height: 3rem; padding: .6rem .5rem; font: inherit; font-weight: 600;
  color: var(--navy); text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer;
}
.main-nav a:hover, .sub-toggle:hover { text-decoration: underline; text-decoration-thickness: .12em; text-underline-offset: .2em; }
.sub-toggle svg { transition: transform .15s; margin-left: auto; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { display: none; padding: 0 0 .5rem 1rem !important; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
html:not(.js) .sub { display: block; }
.sub a { font-weight: 400; color: var(--ink); }
.main-nav [aria-current="page"], .sub-toggle.is-active { box-shadow: inset 0 -3px 0 var(--green); }
.sub [aria-current="page"] { font-weight: 700; box-shadow: inset 4px 0 0 var(--green); padding-left: .9rem; }
.nav-cta { padding: .75rem 0 .25rem; }

@media (min-width: 62rem) {
  .brand { width: 8rem; }
  .menu-toggle { display: none; }
  .js .main-nav, .main-nav { display: block; flex-basis: auto; }
  .main-nav > ul { display: flex; align-items: center; gap: .25rem; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a, .sub-toggle { width: auto; padding: .6rem .9rem; }
  .sub-toggle svg { margin-left: .1rem; }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 17rem; z-index: 30;
    background: var(--paper); border: 1px solid var(--line); border-radius: 1rem;
    padding: .5rem !important; box-shadow: 0 1rem 2.5rem rgb(11 58 99 / .14);
  }
  .sub a { padding: .6rem .8rem; border-radius: .6rem; }
  .sub a:hover { background: #e9f4ec; }
  .main-nav [aria-current="page"], .sub-toggle.is-active { box-shadow: inset 0 -3px 0 var(--green); }
  .sub [aria-current="page"] { box-shadow: inset 4px 0 0 var(--green); }
  .nav-cta { padding: 0 0 0 .5rem; }
}

/* Przyciski */
.btn {
  display: inline-flex !important; align-items: center; justify-content: center; width: auto !important;
  min-height: 3rem; padding: .65rem 1.6rem !important; border-radius: 99rem; border: 2px solid transparent;
  font-weight: 700; text-decoration: none !important; text-align: center; line-height: 1.25;
}
.btn-primary { background: var(--green-dark); color: #fff !important; }
.btn-primary:hover { background: #07431f; }
.btn-warm { background: var(--sun); color: #1a1a1a !important; }
.btn-warm:hover { background: #ffe56e; }
.btn-light { background: #fff; color: var(--green-dark) !important; }
.btn-light:hover { background: #eaf6ee; }
.btn-ghost { background: transparent; color: #fff !important; border-color: #fff; }
.btn-ghost:hover { background: rgb(255 255 255 / .18); }
.btn.is-active { box-shadow: none !important; outline: 3px double #1a1a1a; outline-offset: 2px; }

/* Strona główna */
.hero { position: relative; display: flex; align-items: center; text-align: center; min-height: min(86vh, 46rem); color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgb(6 28 48 / .62); z-index: 1; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero-text { position: relative; z-index: 2; padding-block: 3rem 9rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 4.5vw, 4.8rem); max-width: 16ch; margin: 0 auto .4em; }
.eyebrow { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .9rem; margin-bottom: 1rem; color: var(--sun); }
.lead { font-size: 1.3rem; line-height: 1.5; max-width: 38rem; }
.hero .lead { margin-inline: auto; color: #fff; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin: 2rem 0 0; }

.section { padding-block: clamp(3rem, 6vw, 6rem); }
.section h2 { margin-top: 0; font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); margin-bottom: 1.2em; }
.tiles { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.tiles a {
  display: block; height: 100%; padding: 1.8rem 1.6rem 2rem; background: var(--cream);
  border: 2px solid transparent; border-radius: var(--radius); text-decoration: none; color: var(--ink);
  transition: transform .2s, border-color .2s, background .2s;
}
.tiles a:hover { background: #fff; border-color: var(--green-dark); transform: translateY(-4px); }
.tiles a:hover .tile-title { text-decoration: underline; text-decoration-thickness: .12em; }
.tile-title { display: block; font-size: 1.35rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.tile-text { display: block; }

.support { background: #d8eedf; color: var(--ink); }
.support h2 { color: var(--navy); margin-bottom: .6em !important; }
.support a:not(.btn) { color: var(--navy); }
.support-grid { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 48rem) { .support-grid { grid-template-columns: 1fr auto; gap: 3rem; } }
.krs-box { display: inline-flex; flex-direction: column; margin: 0; padding: 1.2rem 2rem; background: var(--sun); color: #1a1a1a; border-radius: var(--radius); }
.krs-label { font-weight: 700; font-size: .95rem; }
.krs-number { font-size: 2rem; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.krs-inline { margin-bottom: 1rem; }

/* Podstrony */
.page-head { background: var(--cream); padding-block: clamp(2rem, 5vw, 4rem); }
.page-head h1 { margin-bottom: .3em; font-size: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem); }
.page-head .lead { margin-bottom: 0; }
.prose { padding-block: 2.5rem 4.5rem; }
.prose > * { max-width: 50rem; }
.prose > h2:first-child { margin-top: .5em; }
.prose li { margin-bottom: .5em; }
.todo { padding: .9rem 1.1rem; background: #fff4c2; border-left: 6px solid #8a6d00; border-radius: .5rem; }
.contact-card { background: var(--cream); border: 0; border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; }
.contact-card h2 { margin-top: 0; font-size: 1.35rem; }
.contact-card dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1.2rem; margin: 0; }
.contact-card dt { font-weight: 700; }
.contact-card dd { margin: 0; }

/* Stopka */
.site-footer { background: #e6eef9; color: var(--ink); padding-block: 4rem 1.5rem; }
.site-footer a { color: var(--navy); }
.footer-title { color: var(--navy); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 3fr 2fr; } .footer-grid > :last-child { justify-self: end; } }
.footer-title { font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
address { font-style: normal; margin-bottom: .6rem; }
.plain { list-style: none; padding: 0; }
.plain li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid #b9c8dc; margin-top: 1.5rem; padding-top: 1rem; font-size: 1rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .tiles a { border: 2px solid ButtonText; } .hero::before { display: none; } }
@media print { .site-header .menu-toggle, .main-nav, .skip { display: none; } }

/* przycisk w menu – wyższa specyficzność niż .main-nav a */
.main-nav a.btn-warm { background: var(--sun); color: #1a1a1a; justify-content: center; }
.main-nav a.btn-warm:hover { background: #ffe56e; text-decoration: none; }
@media (max-width: 61.99rem) { .main-nav a.btn-warm { width: 100% !important; } }

.file-link { display: inline-block; padding: 1rem 1.3rem; background: var(--cream); border: 2px solid transparent; border-radius: var(--radius); font-weight: 700; }
.file-link:hover { background: #fff; border-color: var(--green-dark); }
.file-meta { font-weight: 400; color: var(--ink); white-space: nowrap; }

/* Zarząd */
.prose > .people { max-width: 56rem; }
.people { list-style: none; padding: 0; display: grid; gap: 3rem; }
.person { display: grid; gap: 1.25rem; align-items: center; margin: 0 !important; }
.person img { width: 11rem; height: 11rem; border-radius: 50%; object-fit: cover; box-shadow: 0 .75rem 2rem rgb(11 58 99 / .4), 0 .2rem .5rem rgb(11 58 99 / .25); }
.person-text h2 { margin: 0 0 .1em; font-size: 1.5rem; }
.person-role { font-weight: 700; color: var(--green-dark); margin-bottom: .6em; }
.person-text p:last-child { margin-bottom: 0; }
@media (min-width: 40rem) { .person { grid-template-columns: 11rem 1fr; gap: 2.5rem; } }

/* Ikony-linki w stopce */
.footer-links { display: flex; flex-direction: row; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: flex-end; }
.footer-links li { margin: 0; }
.footer-logo { display: inline-block; }
.footer-logo img { display: block; width: 7.3125rem; height: 7.3125rem; object-fit: contain; }
.footer-logo:focus-visible img { outline: 3px solid var(--navy); outline-offset: 3px; }

/* ---- Aktualności ---- */
.news-list { display: grid; gap: 1.25rem; margin-bottom: 2rem; }
.news-list.plain li { margin: 0; }
.news-item { display: grid; grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; background: var(--cream); border-radius: var(--radius); }
.news-item:has(.news-img) { grid-template-columns: minmax(0, 14rem) 1fr; align-items: start; }
.news-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius) - .4rem); }
.news-date { margin: 0 0 .4em; font-weight: 700; color: var(--green-dark); }
.news-item h2 { margin-top: 0; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); }
.news-item p:last-child { margin-bottom: 0; }
.news-more { font-weight: 700; }
.news-hero { width: 100%; max-width: 50rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.page-head .news-date { margin-bottom: .6em; }
@media (max-width: 40rem) { .news-item:has(.news-img) { grid-template-columns: 1fr; } }
