/* ============================================================
   Fundacja EMNA – style.css
   Główny arkusz stylów. Łatwy do modyfikacji.

   PALETA KOLORÓW (zmień tutaj, zmieni się wszędzie):
   --deep-teal:   #0a2e3d   (ciemny teal – nagłówki, tła)
   --teal:        #0d4f5a   (teal – akcenty, przyciski)
   --aqua:        #2da5a0   (turkus – gradienty, linki)
   --green:       #4caf50   (zielony – akcenty, gradienty)
   --light-green: #81c784   (jasna zieleń)
   --cream:       #faf8f5   (kremowe tło)
   --white:       #ffffff

   FONTY:
   Plus Jakarta Sans – nagłówki
   DM Sans – treść
   ============================================================ */

/* --- ZMIENNE CSS --- */
:root {
  --deep-teal: #0a2e3d;
  --teal: #0d4f5a;
  --aqua: #2da5a0;
  --green: #4caf50;
  --light-green: #81c784;
  --cream: #faf8f5;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-muted: #5a6a7a;
  --border-light: #e8ebe9;
  --shadow-sm: 0 2px 8px rgba(10,46,61,0.06);
  --shadow-md: 0 4px 20px rgba(10,46,61,0.10);
  --shadow-lg: 0 8px 40px rgba(10,46,61,0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --container-width: 1200px;
  --nav-height: 72px;
  /* statusy projektów */
  --status-prep: #94a3b8;
  --status-submitted: #2da5a0;
  --status-funded: #4caf50;
  --status-progress: #0d4f5a;
  --status-done: #6b7280;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

@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;
  }
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--aqua);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--teal);
}

/* Widoczny focus state dla dostępności (WCAG 2.2 AA) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--aqua);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--deep-teal);
}

/* Link "pomiń nawigację" dla użytkowników klawiatury / czytników ekranu */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-teal);
  color: var(--white);
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* --- CONTAINER --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- NAWIGACJA (wspólna) --- */
/*
   EDYCJA MENU: Zmień linki w pliku js/main.js w zmiennej menuItems.
   Dodaj/usuń pozycje menu tam – automatycznie zaktualizuje się
   na wszystkich stronach.
*/
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background 0.4s, box-shadow 0.4s;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 1001;
}

.nav-logo img {
  width: 44px;
  height: 44px;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  transition: color 0.3s;
}

.navbar.scrolled .nav-logo span {
  color: var(--deep-teal);
}

/* Desktop menu */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}

.navbar.scrolled .nav-links a {
  color: var(--text-muted);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--teal);
  background: rgba(45,165,160,0.08);
}

.navbar.scrolled .nav-links a[aria-current="page"] {
  background: rgba(45,165,160,0.1);
  color: var(--teal);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  color: var(--white) !important;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 12px rgba(45,165,160,0.3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: all 0.3s;
  margin: 3px 0;
}

.navbar.scrolled .hamburger span,
.hamburger.active span {
  background: var(--deep-teal);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: var(--white);
  z-index: 999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  padding: 100px 32px 40px;
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--deep-teal);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--aqua);
}

.mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,46,61,0.3);
  backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,46,61,0.7), rgba(13,79,90,0.5), rgba(10,46,61,0.8));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 24px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  display: block;
}

/* --- PRZYCISKI --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--aqua), var(--green));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(45,165,160,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(45,165,160,0.4);
  color: var(--white);
}

.btn-outline {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.btn-outline-dark {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--aqua);
}

.btn-outline-dark:hover {
  background: var(--aqua);
  color: var(--white);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Warianty rozmiaru/szerokości przycisku (dodane przy rozbudowie o
   podstrony: Wesprzyj, Kontakt) */
.btn-sm {
  padding: 9px 20px;
  font-size: 0.85rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --- SEKCJE --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--aqua);
  margin-bottom: 12px;
}

/* --- O FUNDACJI --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.stat-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.stat-card h4 {
  font-size: 0.95rem;
  color: var(--teal);
}

.stat-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- EMNA W LICZBACH (homepage) --- */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.number-block {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.number-block .value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  background: linear-gradient(135deg, var(--teal), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.number-block .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 6px;
}

/* --- KAFELKI (filary misji, podopieczni, priorytety) --- */
/*
   DODAWANIE KAFELKÓW: Skopiuj <div class="card"> w HTML
   i zmień tytuł, opis, ikonę i link href.
*/
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s;
  text-decoration: none;
  display: block;
  color: inherit;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--aqua);
  color: inherit;
}

.card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(45,165,160,0.1), rgba(76,175,80,0.1));
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--aqua);
}

.card:hover .card-link {
  color: var(--teal);
}

/* --- KAFELKI Z OBRAZEM (podopieczni, projekty, aktualności) --- */
.card-image {
  overflow: hidden;
  padding: 0;
  text-align: left;
}

.card-image .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image .card-body {
  padding: 28px;
}

.card-image h3 {
  text-align: left;
}

.card-image p {
  text-align: left;
}

.card-image .card-link {
  text-align: left;
}

/* --- DZIAŁALNOŚĆ --- */
.activities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  transition: all 0.4s;
}

.activity-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.activity-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.activity-card .activity-body {
  padding: 28px;
}

.activity-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.activity-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

a.activity-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

a.activity-card .card-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

a.activity-card:hover .card-link {
  color: var(--teal-dark);
}

/* --- STATUS PROJEKTU (badge) --- */
/*
   Klasy statusu: status-prep / status-submitted / status-funded /
   status-progress / status-done — patrz sekcja 9 briefu.
*/
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-prep     { background: var(--status-prep); }
.status-submitted{ background: var(--status-submitted); }
.status-funded   { background: var(--status-funded); }
.status-progress { background: var(--status-progress); }
.status-done     { background: var(--status-done); }

/* --- PROJEKTY: lista i filtry --- */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}

.project-filters button {
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.project-filters button:hover,
.project-filters button.active {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.project-card .project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.project-card .project-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- PROJEKT: podstrona pojedynczego projektu --- */
.project-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
}

.project-hero .status-badge {
  margin-bottom: 16px;
}

.project-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.project-hero .lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  max-width: 720px;
}

.demo-banner {
  background: #fff4d6;
  border: 1px solid #f0c869;
  color: #7a5b06;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0 48px;
}

.info-block {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 20px;
}

.info-block strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--aqua);
  margin-bottom: 6px;
}

.info-block span, .info-block div {
  color: var(--text-dark);
  font-size: 0.95rem;
}

.funding-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 24px 0;
}

.funding-box dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

.funding-box dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.funding-box dd {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--deep-teal);
  margin-top: 2px;
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.logos-row img { height: 40px; width: auto; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.result-card {
  text-align: center;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.result-card .value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--aqua);
}

.result-card .label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 4px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-grid img {
  border-radius: var(--radius);
  height: 180px;
  object-fit: cover;
}

.downloads-list {
  list-style: none;
}

.downloads-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-light);
}

.downloads-list li:last-child { border-bottom: none; }

.downloads-list .file-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(45,165,160,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.downloads-list a {
  font-weight: 600;
}

.downloads-list .file-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
}

.doc-placeholder {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.9rem;
}

/* --- AKTUALNOŚCI --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all 0.4s;
  display: block;
  color: inherit;
  text-decoration: none;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: inherit;
}

.news-card .news-body { padding: 24px; }

.news-card .news-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--aqua);
  margin-bottom: 8px;
}

.news-card .news-date {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.news-card h3 { font-size: 1.05rem; }

/* --- ZARZĄD / ZESPÓŁ --- */
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.board-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.board-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}

.board-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gdy nie ma jeszcze prawdziwego zdjęcia — wyraźnie oznaczony placeholder,
   NIE inicjały. Podmień na <img> gdy zdjęcie będzie gotowe. */
.board-avatar.is-placeholder {
  background: linear-gradient(135deg, rgba(45,165,160,0.15), rgba(76,175,80,0.15));
  border: 2px dashed var(--aqua);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.board-card h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.board-card .role {
  color: var(--aqua);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.board-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: left;
  margin-bottom: 10px;
}

.board-card .responsibility {
  text-align: left;
  font-size: 0.85rem;
  background: var(--cream);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 12px;
}

/* --- OŚ CZASU (Historia) --- */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--border-light);
}

.timeline-item {
  position: relative;
  padding-bottom: 40px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--aqua);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--aqua);
}

.timeline-item .year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--teal);
  margin-bottom: 6px;
}

.timeline-item p {
  color: var(--text-muted);
}

/* --- STATUT (accordion) --- */
.statute-box {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.accordion-item {
  border-bottom: 1px solid var(--border-light);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-teal);
  text-align: left;
}

.accordion-btn::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--aqua);
  transition: transform 0.3s;
}

.accordion-item.open .accordion-btn::after {
  content: '−';
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content-inner {
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

/* --- WESPRZYJ --- */
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.support-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.support-card .card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  background: linear-gradient(135deg, rgba(45,165,160,0.1), rgba(76,175,80,0.1));
}

.support-card h3 { margin-bottom: 12px; }
.support-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.bank-details {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 0.9rem;
  margin-top: 12px;
}

.bank-details div { margin-bottom: 6px; }
.bank-details strong { color: var(--deep-teal); }

/* --- TRANSPARENTNOŚĆ --- */
.docs-year-group {
  margin-bottom: 40px;
}

.docs-year-group h3 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-light);
}

.registry-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.registry-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-light);
}

.registry-table td {
  padding: 14px 20px;
  font-size: 0.95rem;
}

.registry-table td:first-child {
  color: var(--text-muted);
  width: 40%;
}

.registry-table td:last-child {
  font-weight: 600;
  color: var(--deep-teal);
}

/* --- KONTAKT --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(45,165,160,0.1), rgba(76,175,80,0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--deep-teal);
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--deep-teal);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-dark);
  background: var(--cream);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--aqua);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.form-consent input { width: auto; margin-top: 4px; }

.form-status {
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 12px;
}

.form-status.success { color: var(--green); }
.form-status.error { color: #c0392b; }

/* Honeypot antyspamowy - pole ukryte wizualnie, ale wciąż w DOM
   (boty je widzą i wypełniają, prawdziwi użytkownicy - nie) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- STOPKA --- */
.footer {
  background: var(--deep-teal);
  color: var(--white);
  padding: 0;
}

.footer-gradient {
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--aqua), var(--green));
}

.footer-content {
  padding: 64px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 16px;
  max-width: 300px;
  line-height: 1.7;
}

.footer h4 {
  color: rgba(255,255,255,0.8);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--aqua);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* --- PODSTRONA (szablon) --- */
.subpage-hero {
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
  text-align: center;
}

.subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 16px;
}

.subpage-hero p {
  color: rgba(255,255,255,0.75);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.subpage-hero .breadcrumb {
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.subpage-hero .breadcrumb a {
  color: rgba(255,255,255,0.6);
}

.subpage-hero .breadcrumb a:hover {
  color: var(--white);
}

.subpage-hero .breadcrumb span {
  color: rgba(255,255,255,0.4);
  margin: 0 8px;
}

.subpage-content {
  padding: 80px 0;
}

.subpage-content .content-box {
  max-width: 800px;
  margin: 0 auto;
}

.subpage-content h2 {
  font-size: 1.6rem;
  margin: 40px 0 16px;
}

.subpage-content h3 {
  font-size: 1.2rem;
  margin: 28px 0 12px;
}

.subpage-content p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}

.subpage-content ul {
  color: var(--text-muted);
  margin: 0 0 20px 24px;
  font-size: 1rem;
}

.subpage-content ul li {
  margin-bottom: 8px;
}

/* --- PODOPIECZNY (specjalna podstrona) --- */
.beneficiary-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, var(--deep-teal), var(--teal));
  color: var(--white);
}

.beneficiary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.beneficiary-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.beneficiary-photo img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.beneficiary-info h1 {
  color: var(--white);
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.beneficiary-info .subtitle {
  color: var(--aqua);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.beneficiary-info p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
}

.beneficiary-note {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  margin-top: 20px;
}

.donate-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
  text-align: center;
}

.donate-box h3 {
  margin-bottom: 12px;
}

.donate-box .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--aqua);
  font-family: var(--font-heading);
}

.donate-box p {
  color: var(--text-muted);
  margin: 8px 0 20px;
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  margin: 16px 0;
}

.progress-bar .progress {
  height: 100%;
  background: linear-gradient(90deg, var(--aqua), var(--green));
  border-radius: 6px;
  transition: width 0.6s;
}

/* --- 404 --- */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}

.error-page .code {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 5rem;
  color: var(--aqua);
}

/* --- Utility: dostępność --- */
.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;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .beneficiary-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .numbers-grid {
    grid-template-columns: 1fr 1fr;
  }

  .info-grid, .results-grid, .gallery-grid, .support-grid, .news-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .activities-grid {
    grid-template-columns: 1fr;
  }

  .board-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .statute-box {
    padding: 24px;
  }

  .beneficiary-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .subpage-content [style*="grid-template-columns: 1fr 380px"] {
    grid-template-columns: 1fr !important;
  }

  .numbers-grid, .info-grid, .results-grid, .gallery-grid, .support-grid, .news-grid, .funding-box dl {
    grid-template-columns: 1fr;
  }
}
