/* ============================================================
 * projekty.css — style podstron projektów.
 *   1) KATALOG (archive-projekt + taxonomy-wojewodztwo): hero z mapą,
 *      lepka belka (zakładki + filtry), siatka kart, stan pusty.
 *   2) POJEDYNCZY PROJEKT (single-projekt): dwie kolumny, lepki
 *      sidebar, karta informacji, pasek postępu, lista dokumentów.
 *
 * Reużywa tokenów (granat --primary*), .container, .btn*, .p-card,
 * .cta* z tokens/base/components/sections. Tu tylko to, co specyficzne
 * dla podstron. Kolory wyłącznie granatowe — bez teal. Bez Google Fonts.
 * Klasy 1:1 z makietami 02/03/04. (Desktop-first + max-width — spójnie
 * z resztą motywu; na mobile sidebar ląduje pod treścią.)
 * ============================================================ */

/* ════════════════════════════════════════════════════════════
 * 1. KATALOG — HERO
 * ════════════════════════════════════════════════════════════ */
.page-hero {
  margin-top: var(--header-h);
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 176, 80, .08), transparent 50%, rgba(232, 146, 46, .06));
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 146, 46, .08), transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.hero-leaf { position: absolute; bottom: -20px; left: 0; width: 180px; opacity: .04; z-index: 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero-text { min-width: 0; }
.hero-map {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}
.hero-map svg { width: 100%; max-width: 420px; height: auto; }

/* Okruszki na granatowym tle (jasny tekst) — odrębne od .breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .76rem;
  color: rgba(255, 255, 255, .6);
  font-weight: 300;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255, 255, 255, .7); transition: color .2s; }
.breadcrumb a:hover { color: var(--leaf-orange); }
.breadcrumb svg { width: 12px; height: 12px; stroke: rgba(255, 255, 255, .45); fill: none; stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.breadcrumb [aria-current="page"] { color: rgba(255, 255, 255, .9); }

.page-eyebrow {
  font-size: .67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--leaf-orange);
  margin-bottom: 10px;
}
.page-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.01em;
}
.page-desc {
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.8;
}

.hero-stats { display: flex; gap: clamp(24px, 4vw, 48px); margin-top: 32px; flex-wrap: wrap; }
.hero-stat { display: flex; align-items: baseline; gap: 8px; }
.hero-stat-num { font-family: var(--serif); font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--white); }
.hero-stat-label { font-size: .78rem; color: rgba(255, 255, 255, .6); font-weight: 300; }
.hero-stat-dot { width: 6px; height: 6px; border-radius: 1px; flex-shrink: 0; align-self: center; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .6; } }

/* Mapa D3 + degradacja do legendy (home.css nie jest tu ładowany) */
.voiv { cursor: pointer; transition: fill-opacity .3s, stroke-width .3s, fill .3s; }
.map-tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--primary-dark);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--r);
  font-size: .78rem;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity .15s;
  z-index: 200;
  white-space: nowrap;
}
.map-tooltip.show { opacity: 1; }
.map-tooltip strong { display: block; font-weight: 600; }
.map-legend {
  list-style: none;
  width: 100%;
  max-width: 420px;
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 18px;
}
.map-legend[hidden] { display: none; }
.map-legend a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .7);
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: color .2s;
}
.map-legend a:hover { color: #fff; }
.map-legend .dot { width: 9px; height: 9px; border-radius: 2px; background: var(--leaf-orange); flex-shrink: 0; }
.map-legend .cnt { margin-left: auto; color: rgba(255, 255, 255, .4); font-size: .76rem; }
.map-empty { font-size: .82rem; color: rgba(255, 255, 255, .5); font-weight: 300; }

/* ════════════════════════════════════════════════════════════
 * 2. KATALOG — LEPKA BELKA (zakładki + filtry)
 * ════════════════════════════════════════════════════════════ */
.toolbar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: var(--header-h);
  z-index: 50;
}
.toolbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  flex-wrap: wrap;
}
.tab-group { display: flex; gap: 0; }
.tab-btn {
  padding: 16px 24px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--sans);
  position: relative;
  transition: color .2s;
  white-space: nowrap;
}
.tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0; left: 16px; right: 16px;
  height: 2px;
  background: var(--leaf-orange);
  border-radius: 1px;
  transform: scaleX(0);
  transition: transform .3s var(--ease);
}
.tab-btn:hover { color: var(--text-mid); }
.tab-btn.active { color: var(--primary); font-weight: 600; }
.tab-btn.active::after { transform: scaleX(1); }
.tab-count {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: 1px;
}
.tab-btn.active .tab-count { background: var(--leaf-orange); color: var(--white); }
.tab-btn:not(.active) .tab-count { background: var(--border-light); color: var(--text-muted); }

.filters { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 8px 0; }
.filter-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-right: 4px;
}
.filter-btn {
  padding: 6px 14px;
  font-size: .78rem;
  font-weight: 500;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-light);
  cursor: pointer;
  font-family: var(--sans);
  transition: all .2s;
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary-light); color: var(--primary); }
.filter-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.filter-count { margin-left: 6px; font-size: .72rem; opacity: .7; }
.filter-btn.active .filter-count { opacity: .85; }

/* ════════════════════════════════════════════════════════════
 * 3. KATALOG — SIATKA + KARTY (rozszerzenia .p-card dla katalogu)
 * ════════════════════════════════════════════════════════════ */
.projects-section {
  background: var(--cream);
  padding: clamp(40px, 5vw, 56px) 0 clamp(64px, 8vw, 96px);
}
.results-count {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 300;
  margin-bottom: 20px;
}
.results-count strong { font-weight: 600; color: var(--text-mid); }

/* Akcent górny karty wg województwa (zastępuje nth-child w katalogu) */
.projects-section .p-card::before { background: linear-gradient(180deg, var(--primary-light) 0%, transparent 20%); }
.p-card[data-wojewodztwo="warminsko-mazurskie"]::before { background: linear-gradient(180deg, var(--leaf-orange) 0%, transparent 20%); }
.p-card[data-wojewodztwo="wielkopolskie"]::before { background: linear-gradient(180deg, var(--leaf-green) 0%, transparent 20%); }
.p-card[data-wojewodztwo="dolnoslaskie"]::before { background: linear-gradient(180deg, var(--leaf-blue) 0%, transparent 20%); }
.p-card[data-wojewodztwo="lubelskie"]::before { background: linear-gradient(180deg, var(--leaf-purple) 0%, transparent 20%); }
.p-card[data-wojewodztwo="podkarpackie"]::before { background: linear-gradient(180deg, var(--leaf-pink) 0%, transparent 20%); }
.p-card[data-wojewodztwo="pomorskie"]::before { background: linear-gradient(180deg, var(--leaf-yellow) 0%, transparent 20%); }

/* Numer projektu — przycięcie długich numerów w siatce */
.projects-section .p-nr { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.p-excerpt {
  font-size: .82rem;
  color: var(--text-light);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.p-tag {
  font-size: .68rem;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--cream);
  color: var(--text-mid);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.p-tag svg { width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 1.5; }

.p-docs svg { width: 13px; height: 13px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; vertical-align: -2px; margin-right: 4px; }

.p-status {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 3;
  font-size: .64rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 10px;
  border-radius: 2px;
}
.p-status--done { background: rgba(0, 52, 103, .06); color: var(--primary-light); }
.p-card--done { opacity: .85; }
.p-card--done:hover { opacity: 1; }

/* Stan pusty */
.empty-state { text-align: center; padding: clamp(48px, 6vw, 80px) 20px; grid-column: 1 / -1; }
.empty-state[hidden] { display: none; }
.empty-state-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.empty-state-icon svg { width: 28px; height: 28px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; }
.empty-state-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--primary); margin-bottom: 6px; }
.empty-state-desc { font-size: .88rem; color: var(--text-light); font-weight: 300; }

/* ════════════════════════════════════════════════════════════
 * 4. POJEDYNCZY PROJEKT — tło + HERO
 * ════════════════════════════════════════════════════════════ */
body.single-projekt { background: var(--cream); }

.proj-hero {
  margin-top: var(--header-h);
  background: var(--primary);
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 72px) 0 clamp(36px, 5vw, 56px);
}
.proj-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 176, 80, .08), transparent 50%, rgba(232, 146, 46, .06));
}
.proj-hero::after {
  content: '';
  position: absolute;
  top: -120px; right: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 146, 46, .08), transparent 70%);
}
.proj-hero .container { position: relative; z-index: 1; }

.proj-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.proj-hero-left { min-width: 0; }
.proj-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -.01em;
  max-width: 720px;
}
.proj-nr { font-size: .82rem; color: rgba(255, 255, 255, .75); font-weight: 400; margin-bottom: 8px; }
.proj-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--r);
  font-size: .76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  flex-shrink: 0;
}
.proj-badge--aktywny { background: rgba(232, 146, 46, .25); color: #FFD4A0; }
.proj-badge--zakonczony { background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); }

.proj-meta-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; }
.proj-meta-item { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: rgba(255, 255, 255, .8); font-weight: 300; }
.proj-meta-item svg { width: 14px; height: 14px; stroke: rgba(255, 255, 255, .7); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.eu-bar {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  margin-top: 28px;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0, 52, 103, .08);
}
.eu-bar img { height: clamp(28px, 3.5vw, 40px); width: auto; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
 * 5. POJEDYNCZY PROJEKT — UKŁAD DWUKOLUMNOWY
 * ════════════════════════════════════════════════════════════ */
.proj-layout { padding: clamp(32px, 4vw, 48px) 0 clamp(64px, 8vw, 96px); }
.proj-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(32px, 4vw, 48px);
  align-items: start;
}
.proj-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.proj-content {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  min-width: 0;
}
.proj-content--prose { padding: clamp(28px, 4vw, 44px); }
/* Odstep liczony z wysokosci paska, nie na sztywno: pasek ma 100 px,
   86 px ponizej 1280 px i 68 px na mobile. */
.proj-content--docs { overflow: hidden; scroll-margin-top: calc(var(--header-h) + 12px); }

/* Treść zweryfikowana (the_content) */
.proj-content--prose h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin: 32px 0 14px;
  line-height: 1.3;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}
.proj-content--prose > h2:first-child,
.proj-content--prose > *:first-child { margin-top: 0; }
.proj-content--prose h3 { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; color: var(--primary); margin: 24px 0 10px; }
/* h4 przychodzi z treści przeniesionej z produkcji („Wybierz drogę", „Opieka
   bliżej ludzi" mają w opisie podsekcje). Bez tej reguły leciał domyślny styl
   przeglądarki i podsekcja wyglądała na większą niż nadrzędne h3. */
.proj-content--prose h4 { font-family: var(--serif); font-size: .98rem; font-weight: 600; color: var(--primary-mid); margin: 20px 0 8px; }
.proj-content--prose p { font-size: .9rem; color: var(--text-mid); font-weight: 300; line-height: 1.85; margin-bottom: 14px; }
.proj-content--prose strong { font-weight: 500; color: var(--text); }
.proj-content--prose ul, .proj-content--prose ol { margin: 12px 0 18px; padding-left: 20px; }
.proj-content--prose ul { list-style: disc; }
.proj-content--prose ol { list-style: decimal; }
.proj-content--prose li { font-size: .88rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; margin-bottom: 6px; padding-left: 4px; }
.proj-content--prose li::marker { color: var(--leaf-orange); }
.proj-content--prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.proj-content--prose a:hover { color: var(--primary-mid); }
.proj-content--prose img { border-radius: var(--r-md); margin: 16px 0; }

/* Elementy opcjonalne w treści (jeśli redaktor ich użyje) */
.highlight-box {
  background: linear-gradient(135deg, rgba(0, 52, 103, .03), rgba(232, 146, 46, .03));
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--leaf-orange);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 20px 24px;
  margin: 20px 0;
}
.highlight-box p { margin-bottom: 8px; }
.highlight-box p:last-child { margin-bottom: 0; }
.highlight-box strong { color: var(--primary); }
.proj-stats-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; }
.psi { background: var(--cream); border: 1px solid var(--border-light); border-radius: var(--r-md); padding: 18px 16px; text-align: center; transition: all .3s; }
.psi:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.psi-num { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--primary); line-height: 1; }
.psi-label { font-size: .72rem; color: var(--text-light); font-weight: 400; margin-top: 4px; line-height: 1.3; }
.hashtags { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.hashtags span { font-size: .82rem; font-weight: 600; color: var(--leaf-blue); background: rgba(59, 143, 212, .06); padding: 4px 12px; border-radius: var(--r); }

/* Zakładki sekcji (na dole treści) — kotwice do grup dokumentów */
.section-tabs { display: flex; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.section-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all .3s;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}
.section-tab:hover { border-color: var(--leaf-orange); color: var(--leaf-orange); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232, 146, 46, .1); }
.section-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
 * 6. POJEDYNCZY PROJEKT — DOKUMENTY (makieta 04)
 * ════════════════════════════════════════════════════════════ */
.content-header {
  padding: 24px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.content-header-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.content-header-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.content-header-icon--cal { background: rgba(232, 146, 46, .08); color: var(--leaf-orange); }
.content-header-icon--doc { background: rgba(59, 143, 212, .08); color: var(--leaf-blue); }
.content-header-icon--news { background: rgba(76, 176, 80, .08); color: var(--leaf-green); }
.content-header-icon--rec { background: rgba(123, 94, 167, .08); color: var(--leaf-purple); }
.content-header-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.content-header-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: var(--primary); }
.content-header-count { font-size: .78rem; color: var(--text-muted); font-weight: 400; }

.file-list { padding: 0; }
.file-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--border-light);
  transition: background .25s;
}
.file-item:last-child { border-bottom: none; }
.file-item:hover { background: var(--teal-soft); }
.file-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.file-icon--pdf { background: linear-gradient(135deg, #E8443A, #C33830); color: var(--white); }
.file-icon svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.file-icon-ext {
  position: absolute;
  bottom: -2px; right: -2px;
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--white);
  color: #C33830;
  padding: 1px 4px;
  border-radius: 2px;
  line-height: 1;
  letter-spacing: .02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
}
.file-info { flex: 1; min-width: 0; }
.file-name {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.file-meta { display: flex; align-items: center; gap: 12px; font-size: .74rem; color: var(--text-muted); font-weight: 300; flex-wrap: wrap; }
.file-meta-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--border); flex-shrink: 0; }
.file-download {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .25s;
  background: var(--cream);
  border: 1px solid var(--border-light);
}
.file-download svg { width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 1.5; transition: stroke .25s; }
.file-item:hover .file-download { background: var(--leaf-orange); border-color: var(--leaf-orange); }
.file-item:hover .file-download svg { stroke: var(--white); }

/* ════════════════════════════════════════════════════════════
 * 7. POJEDYNCZY PROJEKT — SIDEBAR
 * ════════════════════════════════════════════════════════════ */
.proj-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.side-card { background: var(--white); border: 1px solid var(--border-light); border-radius: var(--r-md); overflow: hidden; }
.side-card-head { padding: 16px 20px; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; gap: 8px; }
.side-card-head svg { width: 16px; height: 16px; stroke: var(--leaf-orange); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.side-card-title { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
.side-card-body { padding: 20px; }

.info-list { display: flex; flex-direction: column; gap: 14px; }
.info-item { display: flex; align-items: flex-start; gap: 10px; }
.info-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-icon svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.info-icon--o { background: rgba(232, 146, 46, .08); color: var(--leaf-orange); }
.info-icon--g { background: rgba(76, 176, 80, .08); color: var(--leaf-green); }
.info-icon--b { background: rgba(59, 143, 212, .08); color: var(--leaf-blue); }
.info-icon--p { background: rgba(123, 94, 167, .08); color: var(--leaf-purple); }
.info-icon--t { background: rgba(0, 52, 103, .06); color: var(--primary); }
.info-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 1px; }
.info-value { font-size: .88rem; color: var(--text); font-weight: 500; line-height: 1.35; }
.info-value a { color: var(--primary); transition: color .2s; }
.info-value a:hover { color: var(--primary-mid); }
.info-value small { font-weight: 300; color: var(--text-light); font-size: .82rem; display: block; margin-top: 1px; }

.side-nav { padding: 0; }
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  transition: all .2s;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-mid);
}
.side-nav-item:last-child { border-bottom: none; }
.side-nav-item:hover { background: var(--teal-soft); color: var(--primary); }
.side-nav-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.side-nav-count { margin-left: auto; font-size: .7rem; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--border-light); color: var(--text-muted); }
.side-nav-item:hover .side-nav-count { background: rgba(232, 146, 46, .12); color: var(--leaf-orange); }

.contact-card { display: flex; flex-direction: column; gap: 12px; }
.contact-person { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.contact-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: .88rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.contact-name { font-size: .88rem; font-weight: 600; color: var(--text); }
.contact-role { font-size: .72rem; color: var(--text-muted); font-weight: 300; }
.contact-link { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-mid); transition: color .2s; padding: 2px 0; word-break: break-word; }
.contact-link:hover { color: var(--leaf-orange); }
.contact-link svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; flex-shrink: 0; }
.contact-address { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.contact-address-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-address-value { font-size: .84rem; color: var(--text-mid); font-weight: 400; line-height: 1.5; }

.progress-wrap { margin-top: 6px; }
.progress-label { display: flex; justify-content: space-between; font-size: .72rem; color: var(--text-muted); margin-bottom: 5px; }
.progress-bar { height: 5px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--leaf-orange), var(--leaf-green)); }

.side-cta { width: 100%; justify-content: center; padding: 16px 28px; }

/* ════════════════════════════════════════════════════════════
 * 8. RESPONSIVE (breakpointy z makiet)
 * ════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-map { order: -1; min-height: 260px; max-width: 360px; margin: 0 auto; width: 100%; }
  .proj-grid { grid-template-columns: 1fr; gap: 24px; }
  .proj-sidebar { position: static; order: 1; }
  .proj-main { order: 2; }
}

@media (max-width: 768px) {
  .hero-stats { gap: 16px; }
  .toolbar-inner { flex-direction: column; align-items: flex-start; padding: 8px 0; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .proj-stats-inline { grid-template-columns: 1fr 1fr; }
  .section-tabs { flex-direction: column; }
  .section-tab { min-width: 0; }
  .eu-bar { gap: 12px; }
  .eu-bar img { height: 24px; }
  .file-item { gap: 12px; padding: 14px 20px; }
  .file-icon { width: 38px; height: 38px; }
  .file-download { width: 32px; height: 32px; }
}

/* ════════════════════════════════════════════════════════════
 * 9. PODSTRONY SEKCJI (makieta 04) — uzupelnienia
 *    Nawigacja boczna ze stanem .active, stopka listy plikow,
 *    stan pusty sekcji, kompaktowy hero sekcji (etykieta + powrot)
 *    i licznik przy zakladkach przegladu. Tokeny wylacznie granatowe.
 * ════════════════════════════════════════════════════════════ */

/* Stan aktywny pozycji nawigacji bocznej (biezacy widok). */
.side-nav-item.active {
  background: rgba(0, 52, 103, .04);
  color: var(--primary);
  border-left: 3px solid var(--primary);
  font-weight: 600;
}
.side-nav-item.active .side-nav-count { background: rgba(0, 52, 103, .1); color: var(--primary); }
.side-nav-item.active:hover { background: rgba(0, 52, 103, .06); color: var(--primary); }

/* Hero kompaktowy widoku sekcji: etykieta sekcji + przycisk powrotu. */
.proj-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .8);
  margin-top: 6px;
}
.proj-section-label svg { width: 16px; height: 16px; stroke: var(--leaf-orange); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .85);
  font-size: .82rem;
  font-weight: 500;
  transition: all .2s;
  flex-shrink: 0;
}
.proj-back:hover { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: var(--white); }
.proj-back svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* Stopka listy plikow (podsumowanie liczby). */
.file-list-footer {
  padding: 16px clamp(24px, 3vw, 40px);
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.file-list-summary { font-size: .78rem; color: var(--text-muted); font-weight: 300; }
.file-list-summary strong { font-weight: 600; color: var(--text-mid); }

/* Stan pusty sekcji — strona renderuje sie w pelni mimo braku plikow. */
.file-list-empty { padding: clamp(36px, 5vw, 56px) clamp(24px, 3vw, 40px); text-align: center; }
.file-list-empty-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.file-list-empty-icon svg { width: 26px; height: 26px; stroke: var(--text-muted); fill: none; }
.file-list-empty-text { font-size: .9rem; color: var(--text-light); font-weight: 300; margin: 0; }

/* Numer projektu w karcie informacji (mniejszy, lamliwy). */
.info-value--num { font-size: .8rem; word-break: break-word; }

/* Licznik przy zakladkach skrotow w widoku przegladu. */
.section-tab-count {
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 10px;
  background: var(--border-light);
  color: var(--text-muted);
  margin-left: 2px;
  transition: all .2s;
}
.section-tab:hover .section-tab-count { background: rgba(232, 146, 46, .12); color: var(--leaf-orange); }

@media (max-width: 768px) {
  .proj-back { padding: 8px 16px; }
  .file-list-empty { padding: 32px 20px; }
}

/* ── Intro katalogu (treść Strony „Katalog projektów”) ────────
   Sekcja renderuje się dopiero, gdy Strona ma wypełnioną treść;
   bez tego paddingu skleiłaby się z hero i siatką kart. */
.projekty-intro { padding: clamp(32px, 5vw, 56px) 0 0; }
.projekty-intro-prose { max-width: 760px; }

/* Ogłoszenia bez pliku PDF w sekcji „Aktualności" (pole ACF aktualnosci_tekst).
   Stara strona trzyma tam u czterech projektów sam tekst, bez dokumentu. */
.proj-aktualnosci { margin: 4px 0 26px; }
.proj-aktualnosci p { font-size: .9rem; color: var(--text-mid); font-weight: 300; line-height: 1.85; margin-bottom: 14px; }
.proj-aktualnosci p:last-child { margin-bottom: 0; }
.proj-aktualnosci strong { font-weight: 500; color: var(--text); }
.proj-aktualnosci ul, .proj-aktualnosci ol { margin: 12px 0 18px; padding-left: 20px; }
.proj-aktualnosci ul { list-style: disc; }
.proj-aktualnosci ol { list-style: decimal; }
.proj-aktualnosci li { font-size: .88rem; color: var(--text-mid); font-weight: 300; line-height: 1.8; margin-bottom: 6px; padding-left: 4px; }
.proj-aktualnosci li::marker { color: var(--leaf-orange); }
.proj-aktualnosci a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
