:root {
  --font-scale: 1;
  --bg: #fbfaf6;
  --surface: #ffffff;
  --surface-translucent: rgba(251, 250, 246, 0.94);
  --soft: #f1f0e9;
  --soft-2: #e8ece7;
  --text: #202520;
  --muted: #58645d;
  --accent: #315c45;
  --accent-dark: #234635;
  --accent-soft: #e7efe9;
  --accent-pale: #f3f7f4;
  --line: #d8ded8;
  --focus: #0b57d0;
  --warning: #9a671e;
  --warning-soft: #fff7e7;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 8px 24px rgba(37, 56, 45, 0.065);
  --shadow: 0 16px 44px rgba(37, 56, 45, 0.10);
  --content-width: 1160px;
}

* { box-sizing: border-box; }
html {
  font-size: calc(16px * var(--font-scale));
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  color-scheme: light;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
.container { width: min(var(--content-width), calc(100% - 40px)); margin-inline: auto; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 9999;
  transform: translateY(-180%);
  background: #fff;
  color: #000;
  border: 3px solid #000;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 800;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: none; }
:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

/* Typografia */
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
h1, h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem); }
h3 {
  margin-top: 0;
  line-height: 1.3;
  text-wrap: balance;
}
p { text-wrap: pretty; }
.lead {
  max-width: 72ch;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  line-height: 1.72;
}
.page-title { font-size: clamp(2.2rem, 4.6vw, 3.55rem) !important; }
.detail-hero .page-title { font-size: clamp(2rem, 4vw, 3.2rem) !important; }
.section { padding: clamp(58px, 7vw, 78px) 0; }
.section-soft { background: var(--soft); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
}
.prose { max-width: 76ch; color: var(--muted); font-size: 1.06rem; }
.prose > :first-child { margin-top: 0; }
.quote {
  margin-top: 22px;
  padding: 18px 21px;
  border-left: 5px solid #2fba4a;
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  box-shadow: var(--shadow-sm);
}

/* Pasek dostępności */
.a11y-bar { background: var(--soft-2); border-bottom: 1px solid var(--line); }
.a11y-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  min-height: 56px;
  padding: 6px 0;
}
.a11y-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
  font-weight: 850;
  white-space: nowrap;
}
.a11y-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  color: var(--accent);
}
.a11y-icon circle,
.a11y-icon path { fill: currentColor; }
.a11y-group { display: flex; gap: 5px; }
.a11y-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 7px 11px;
  border: 1px solid #738078;
  border-radius: 10px;
  background: var(--surface);
  color: #1d251f;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.a11y-btn:hover { border-color: var(--accent); background: var(--accent-pale); }
.a11y-btn:active { transform: translateY(1px); }
.a11y-btn[aria-pressed="true"] { background: #173c2a; color: #fff; border-color: #173c2a; }

/* Nagłówek i menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-translucent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(32, 52, 41, 0.10); }
.nav-wrap {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
  text-decoration: none;
}
.brand-logo {
  width: 68px;
  height: 68px;
  flex: none;
  object-fit: contain;
  padding: 2px;
  border-radius: 12px;
  background: #fff;
}
.brand strong {
  display: block;
  font-size: 1.3rem;
  line-height: 1.08;
  letter-spacing: 0.08em;
}
.brand small {
  display: block;
  max-width: 285px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.2;
}
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 8px;
  border-radius: 999px;
  font-size: 0.89rem;
  font-weight: 760;
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.main-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }
.main-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent-dark);
  box-shadow: inset 0 0 0 1px rgba(49, 92, 69, 0.12);
}
.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
.menu-toggle::before { content: "☰"; font-size: 1.2rem; line-height: 1; }
.menu-toggle[aria-expanded="true"]::before { content: "×"; font-size: 1.45rem; }

/* Przyciski i etykiety */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 17px;
  border: 2px solid transparent;
  border-radius: 12px;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 850;
}
.badge.archive { background: #eeeae1; color: #665c49; }
.badge.info { background: #e7edf6; color: #31547c; }
.badge.current { background: #dff2e5; color: #175b31; }

/* Strona główna */
.home-hero {
  padding: clamp(62px, 7vw, 82px) 0 clamp(48px, 6vw, 66px);
  background:
    radial-gradient(circle at 83% 22%, rgba(49, 92, 69, 0.09), transparent 35%),
    linear-gradient(180deg, rgba(255,255,255,0.42), transparent 55%);
}
.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(36px, 5vw, 58px);
  align-items: center;
}
.home-title { font-size: clamp(2.8rem, 6vw, 4.55rem); }
.home-hero .lead { margin: 22px 0 28px; }
.home-photo-carousel {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.home-photo-slide { display: none; margin: 0; }
.home-photo-slide.is-active { display: block; }
.home-photo-slide img { width: 100%; height: 390px; object-fit: cover; }
.home-photo-slide:nth-child(1) img { object-position: center 46%; }
.home-photo-slide:nth-child(2) img { object-position: center 48%; }
.home-photo-slide:nth-child(3) img { object-position: center 52%; }
.home-carousel-controls,
.carousel-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 12px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.66));
}
.home-carousel-btn,
.carousel-btn,
.home-carousel-dot,
.carousel-dot { border: 0; cursor: pointer; }
.home-carousel-btn,
.carousel-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #17221b;
  font-size: 1.25rem;
  font-weight: 850;
  box-shadow: 0 4px 16px rgba(0,0,0,0.14);
}
.home-carousel-btn:hover,
.carousel-btn:hover { transform: scale(1.04); }
.home-carousel-dots,
.carousel-dots { display: flex; align-items: center; gap: 7px; }
.home-carousel-dot,
.carousel-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}
.home-carousel-dot[aria-current="true"],
.carousel-dot[aria-current="true"] { background: #fff; box-shadow: 0 0 0 2px rgba(0,0,0,0.22); }
.home-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.home-tile {
  min-height: 164px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(37,56,45,0.035);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.home-tile:hover { transform: translateY(-3px); border-color: rgba(49,92,69,0.34); box-shadow: var(--shadow-sm); }
.home-tile .num { color: var(--accent); font-size: 0.75rem; font-weight: 850; }
.home-tile strong { font-size: 1.08rem; }
.home-tile small { color: var(--muted); }
.home-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.home-action-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.home-action-card p { color: var(--muted); }
.statute-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}
.statute-card {
  min-height: 225px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.statute-card > span { color: var(--accent); font-size: 0.8rem; font-weight: 850; }
.statute-card h3 { margin: 12px 0 7px; }
.statute-card p { margin: 0; color: var(--muted); }

/* Bohatery podstron i O nas */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(52px, 6vw, 66px) 0 clamp(42px, 5vw, 54px);
  border-bottom: 1px solid rgba(216,222,216,0.7);
  background:
    radial-gradient(circle at 92% 18%, rgba(49,92,69,0.09), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0));
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 56px);
  align-items: center;
}
.page-hero .lead { margin: 18px 0 24px; }
.logo-panel {
  display: grid;
  place-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.logo-panel img { width: min(100%, 410px); max-height: 410px; object-fit: contain; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.fact { padding-left: 14px; border-left: 4px solid var(--accent); }
.fact strong { display: block; }
.fact span { display: block; color: var(--muted); font-size: 0.9rem; }
.mission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.mission-card,
.vol-card,
.support-card,
.project-info-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 6px 22px rgba(37,56,45,0.04);
}
.mission-card { min-height: 210px; padding: 23px; }
.mission-card h3 { margin: 18px 0 8px; }
.mission-card p { margin: 0; color: var(--muted); }

/* Wspólnota */
.meeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 18px;
  align-items: start;
}
.meeting-card { align-self: start; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.meeting-card p { color: var(--muted); }
.meeting-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.meta-box { padding: 14px; border-radius: 14px; background: var(--soft); }
.meta-box span { display: block; color: var(--muted); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.meta-box strong { display: block; margin-top: 4px; }
.community-note { margin-top: 18px; padding: 16px 18px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: var(--accent-soft); color: var(--text); }
.community-carousel { position: relative; align-self: start; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.community-slide { display: none; margin: 0; }
.community-slide.is-active { display: block; }
.community-slide img { width: 100%; height: clamp(300px, 34vw, 440px); object-fit: cover; }
.community-slide:nth-child(2) img { object-position: center 42%; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.schedule-years { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.schedule-year { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-sm); }
.schedule-year h3 { margin: 0 0 14px; color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-size: 2rem; }
.schedule-list { list-style: none; padding: 0; margin: 0; }
.schedule-list li { display: grid; grid-template-columns: minmax(130px, 160px) minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.schedule-list li:last-child { border-bottom: 0; }
.schedule-list li > span { min-width: 0; overflow-wrap: anywhere; }
.schedule-date { font-weight: 820; }
.archive-intro { margin-bottom: 20px; }
.archive-stack { display: grid; gap: 12px; margin-top: 24px; }
.archive-year { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.archive-year summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; font-weight: 820; list-style: none; cursor: pointer; }
.archive-year summary::-webkit-details-marker { display: none; }
.archive-year summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.archive-year[open] summary::after { content: "−"; }
.archive-year[open] summary { border-bottom: 1px solid var(--line); }
.archive-year .archive-body { padding: 8px 18px 16px; }
.archive-year .schedule-list li { grid-template-columns: minmax(130px, 170px) minmax(0, 1fr); }
.archive-year .archive-meta { margin: 10px 0 2px; color: var(--muted); font-size: 0.92rem; }
.community-invite { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 24px; padding: 26px; border-radius: 22px; background: var(--accent); color: #fff; }
.community-invite p { margin: 5px 0 0; color: #eef6f0; }
.community-invite .btn-secondary { color: var(--accent); white-space: nowrap; }

/* Wydarzenia */
.event-years { display: grid; gap: 38px; }
.event-year-title { margin: 0 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: clamp(2rem, 4vw, 3rem); }
.event-stack { display: grid; gap: 14px; }
.event-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.event-date { padding: 24px; background: var(--accent); color: #fff; font-weight: 820; }
.event-body { padding: 22px 24px; }
.event-body h2,
.event-body h3 { margin: 9px 0 7px; font-family: inherit; font-size: 1.25rem; }
.event-body p { margin: 0 0 12px; color: var(--muted); }
.event-link { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 820; text-decoration: underline; text-underline-offset: 0.18em; }
.event-detail-intro { max-width: 900px; }
.event-detail-intro .detail-facts { max-width: 820px; }

/* Projekty */
.projects-intro { max-width: 78ch; }
.project-years { display: grid; gap: 36px; }
.project-year { scroll-margin-top: 130px; }
.project-year-head { display: flex; align-items: end; gap: 14px; margin-bottom: 13px; }
.project-year-head h2 { margin: 0; font-family: inherit; font-size: clamp(1.55rem, 2.5vw, 2rem); }
.project-year-head span { color: var(--muted); font-size: 0.9rem; font-weight: 800; }
.project-list { display: grid; gap: 12px; }
.project-row { min-height: 112px; display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--text); text-decoration: none; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.project-row:hover { transform: translateY(-2px); border-color: rgba(49,92,69,0.30); box-shadow: var(--shadow); }
.project-row.ministerial { border-color: #244f3e; background: #244f3e; color: #fff; }
.project-row.ministerial .project-kind,
.project-row.ministerial .project-note { color: #d9eee3; }
.project-row.ministerial .project-desc { color: #e3f1e9; }
.project-yearbox { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.project-kind { display: block; margin-bottom: 7px; color: var(--muted); font-size: 0.72rem; font-weight: 900; letter-spacing: 0.09em; text-transform: uppercase; }
.project-title { font-size: clamp(1.05rem, 2vw, 1.28rem); font-weight: 850; line-height: 1.28; }
.project-desc { display: block; max-width: 78ch; margin-top: 7px; color: #4f6259; font-size: 0.93rem; font-weight: 500; line-height: 1.48; }
.project-note { display: block; margin-top: 7px; color: var(--muted); font-size: 0.9rem; font-weight: 750; }
.project-arrow { font-size: 1.6rem; font-weight: 750; line-height: 1; }
.year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.year-nav a { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 800; text-decoration: none; }
.year-nav a:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Podstrony projektów i wydarzeń */
.detail-hero { padding: clamp(48px, 6vw, 62px) 0 clamp(40px, 5vw, 50px); background: linear-gradient(180deg, rgba(255,255,255,.48), transparent); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; }
.back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; color: var(--accent); font-weight: 820; text-decoration: underline; text-underline-offset: 0.18em; }
.detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.detail-facts div,
.project-detail-source { padding: 14px; border-radius: 14px; background: var(--soft); }
.detail-facts span,
.project-detail-source span { display: block; color: var(--muted); font-size: 0.74rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.detail-facts strong,
.project-detail-source strong { display: block; margin-top: 4px; }
.detail-photo { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.detail-photo img { width: 100%; height: 360px; object-fit: cover; }
.detail-photo figcaption { padding: 11px 14px; color: var(--muted); font-size: 0.88rem; }
.detail-copy { max-width: 820px; }
.detail-copy p { color: var(--muted); font-size: 1.07rem; }
.project-detail-source { max-width: 560px; margin-top: 22px; }
.project-status-note { max-width: 78ch; margin: 22px 0 0; padding: 16px 18px; border-left: 4px solid var(--warning); border-radius: 0 14px 14px 0; background: var(--warning-soft); }
.project-info-grid { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: start; }
.project-info-card { padding: 24px; }
.project-info-card h2 { margin-top: 0; }
.program-download { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); font-weight: 800; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.program-download span { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.program-download:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.docs-wrap { margin-top: 34px; }
.docs-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.docs-tab { appearance: none; padding: 11px 16px; border: 1px solid #244f3e; border-radius: 999px; background: var(--surface); color: #244f3e; font-weight: 850; cursor: pointer; }
.docs-tab[aria-selected="true"] { background: #244f3e; color: #fff; }
.docs-panel[hidden] { display: none; }
.docs-panel { padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.docs-panel h3 { margin: 0 0 8px; }
.docs-panel > p { margin-top: 0; color: var(--muted); }
.doc-list { display: grid; gap: 10px; margin-top: 16px; }
.doc-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 15px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf9; color: var(--text); text-decoration: none; transition: background-color .15s ease, transform .15s ease; }
.doc-card:hover { transform: translateY(-1px); background: var(--accent-pale); }
.doc-card strong { display: block; }
.doc-card small { display: block; margin-top: 4px; color: var(--muted); }
.doc-card b { color: #244f3e; white-space: nowrap; }

/* Wolontariat */
.volunteer-heading { margin-bottom: 26px; }
.vol-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vol-card { padding: 23px; }
.vol-card h3 { margin: 12px 0 7px; }
.vol-card p { margin: 0; color: var(--muted); }
.flyer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 48px; align-items: start; }
.practice-box { margin-top: 28px; padding: 20px; border-radius: 18px; background: var(--soft); }
.practice-box h3 { margin: 11px 0 6px; }
.practice-box p { margin: 0; color: var(--muted); }
.flyer-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.flyer-card img { width: 100%; }
.flyer-card figcaption { padding: 11px 14px; color: var(--muted); font-size: 0.88rem; }

/* Wesprzyj nas */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.support-card { padding: 26px; }
.support-card h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
.support-card p { color: var(--muted); }
.data-box { margin-top: 16px; padding: 16px; border-radius: 15px; background: var(--soft); }
.data-row { padding: 10px 0; border-bottom: 1px solid var(--line); }
.data-row:last-child { border-bottom: 0; }
.data-label { display: block; color: var(--muted); font-size: 0.7rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.data-value { display: block; margin-top: 3px; font-size: 1.08rem; font-weight: 820; overflow-wrap: anywhere; }
.copy-btn { min-height: 42px; margin-top: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-weight: 750; cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); background: var(--accent-pale); }
.notice { margin-top: 14px; padding: 12px 14px; border-left: 4px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }

/* Kontakt */
.contact-page { padding: clamp(48px, 6vw, 62px) 0 clamp(62px, 7vw, 76px); }
.contact-page .page-title { margin-bottom: 34px; }
.contact-layout { display: grid; grid-template-columns: minmax(280px, 400px) minmax(420px, 1fr); gap: 60px; align-items: start; }
.contact-group { margin-bottom: 22px; }
.contact-label { display: block; margin-bottom: 4px; color: #69796e; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-value { margin: 0; }
.contact-value a { color: var(--accent); text-underline-offset: 0.18em; }
.registry { display: grid; gap: 2px; }
.map-card { min-height: 470px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 470px; border: 0; display: block; }
.map-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* Stopka */
.site-footer { padding: 38px 0; background: #1e2d24; color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.05fr) minmax(0, 0.75fr); gap: 30px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-logo { width: 82px; height: 82px; flex: none; object-fit: contain; padding: 2px; border-radius: 12px; background: #fff; }
.footer-brand-copy strong { font-size: 1.45rem; letter-spacing: 0.08em; }
.footer-brand-copy p { margin: 0.15rem 0 0; color: #d8e2da; line-height: 1.35; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.footer-links a { min-height: 38px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 0.18em; }
.footer-links a:hover,
.footer-social a:hover { color: #d5f2df; }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a { min-height: 42px; display: inline-flex; align-items: center; color: #fff; text-decoration: underline; text-underline-offset: 0.18em; }
.footer-grid small { color: #d3ddd5; }

/* Delikatne animacje */
@keyframes siloe-reveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.reveal { animation: siloe-reveal 0.52s ease both; }
.reveal-delay-1 { animation-delay: 0.04s; }
.reveal-delay-2 { animation-delay: 0.08s; }
.reveal-delay-3 { animation-delay: 0.12s; }
.reveal-delay-4 { animation-delay: 0.16s; }

/* Tryby dostępności */
body.high-contrast {
  --bg: #000;
  --surface: #000;
  --surface-translucent: rgba(0,0,0,0.98);
  --soft: #111;
  --soft-2: #000;
  --text: #fff;
  --muted: #fff;
  --accent: #ffea00;
  --accent-dark: #ffea00;
  --accent-soft: #222;
  --accent-pale: #111;
  --line: #fff;
  --focus: #00ffff;
  --shadow-sm: none;
  --shadow: none;
}
body.high-contrast .a11y-bar,
body.high-contrast .site-header { background: #000; }
body.high-contrast .a11y-btn { border: 2px solid #fff; background: #000; color: #fff; }
body.high-contrast .a11y-btn[aria-pressed="true"] { background: #ffea00; color: #000; }
body.high-contrast .btn-primary,
body.high-contrast .community-invite,
body.high-contrast .event-date,
body.high-contrast .project-row.ministerial,
body.high-contrast .docs-tab[aria-selected="true"] { background: #ffea00; color: #000; border-color: #ffea00; }
body.high-contrast .project-row.ministerial .project-kind,
body.high-contrast .project-row.ministerial .project-note,
body.high-contrast .project-row.ministerial .project-desc,
body.high-contrast .community-invite p { color: #000; }
body.high-contrast .brand-logo,
body.high-contrast .footer-logo,
body.high-contrast .logo-panel { background: #fff; }
body.high-contrast .site-footer { background: #000; border-top: 2px solid #fff; }
body.high-contrast .footer-brand-copy p,
body.high-contrast .footer-grid small { color: #fff; }
body.underline-links a { text-decoration: underline !important; text-underline-offset: 0.18em; }
body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
body.reduce-motion .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% - 4px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { justify-content: flex-start; padding: 10px 12px; font-size: 1rem; }
  .home-grid,
  .page-hero-grid,
  .split,
  .contact-layout,
  .meeting-grid,
  .detail-grid,
  .flyer-grid { grid-template-columns: 1fr; gap: 32px; }
  .support-grid,
  .home-action-grid { grid-template-columns: 1fr; }
  .home-tiles,
  .statute-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-years { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-card { min-height: 370px; }
  .map-card iframe { height: 370px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--content-width)); }
  .a11y-wrap { gap: 6px; }
  .a11y-label { width: 100%; }
  .a11y-btn { padding-inline: 9px; font-size: 0.88rem; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .brand-logo { width: 58px; height: 58px; }
  .nav-wrap { min-height: 78px; }
  .home-hero,
  .page-hero,
  .contact-page,
  .detail-hero { padding-top: 42px; }
  .section { padding: 56px 0; }
  .home-tiles,
  .statute-grid,
  .mission-grid,
  .vol-grid,
  .facts,
  .meeting-meta,
  .detail-facts { grid-template-columns: 1fr; }
  .home-photo-carousel { min-height: 0; }
  .home-photo-slide img,
  .community-slide img { height: auto; aspect-ratio: 4 / 3; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { padding: 14px 20px; }
  .project-row { grid-template-columns: 1fr auto; gap: 8px 14px; }
  .project-yearbox { grid-column: 1 / -1; font-size: 1rem; }
  .project-copy { grid-column: 1; grid-row: 2; }
  .project-arrow { grid-column: 2; grid-row: 2; }
  .project-year-head { align-items: baseline; }
  .schedule-list li,
  .archive-year .schedule-list li { grid-template-columns: 1fr; gap: 3px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .community-invite { align-items: flex-start; flex-direction: column; }
  .doc-card { grid-template-columns: 1fr; }
  .doc-card b { white-space: normal; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .detail-photo img { height: 270px; }
  .map-card { min-height: 310px; }
  .map-card iframe { height: 310px; }
}

@media (max-width: 430px) {
  .a11y-bar .container { width: min(100% - 18px, var(--content-width)); }
  .a11y-btn { min-width: 40px; min-height: 40px; font-size: 0.8rem; }
  .a11y-group { flex: 0 0 auto; }
  .home-title { font-size: clamp(2.35rem, 13vw, 3.1rem); }
  .page-title { font-size: clamp(2rem, 11vw, 2.8rem) !important; }
  .home-tiles { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
  .footer-social { flex-wrap: wrap; }
}

@media print {
  .a11y-bar,
  .menu-toggle,
  .map-card,
  .home-carousel-controls,
  .carousel-controls { display: none !important; }
  .site-header { position: static; box-shadow: none; }
  body { background: #fff; color: #000; }
  .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
}
