/* =========================================================
   MOJE PODL@SIE — Seria raportów rocznych 2014–2026
   Styl zgodny z mojepodlasie.eu: czerń / czerwień / kreda,
   mocne oświadczenia, statystyki, motyw konstelacji z logo.
   ========================================================= */

:root {
  --ink: #1a1a18;
  --ink-soft: #2a2a26;
  --red: #e53333;
  --red-dim: #b5241f;
  --chalk: #f3f3f1;
  --white: #ffffff;
  --grey: #6b7280;
  --grey-line: #e5e2dc;
  --font-display: "Space Grotesk", "Arial Narrow", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
  --max: 1180px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.reduce-motion * { animation: none !important; transition: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--red); color: var(--white);
  padding: 12px 20px; z-index: 1000; font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; }
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.15; color: var(--ink); }
.nav-brand-text span { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--red); text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; font-size: 14.5px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--ink-soft); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); border-bottom-color: var(--red); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; bottom: 0; height: calc(100vh - 76px); background: var(--ink); flex-direction: column;
    padding: 40px 28px; gap: 8px; transform: translateX(100%); transition: transform .35s ease; overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--chalk); font-family: var(--font-display); font-size: 22px; padding: 14px 0; border-bottom: 1px solid #33332f; width: 100%; }
  .nav-links a:hover, .nav-links a.active { color: var(--red); border-bottom-color: var(--red); }
  .nav-toggle { display: block; background: none; border: none; cursor: pointer; padding: 8px; }
  .nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }
}

/* ---------- HERO ---------- */
.hero {
  background: var(--ink);
  color: var(--chalk);
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--ink-soft) 1px, transparent 1px);
  background-size: 100% 3px;
  opacity: 0.06;
  pointer-events: none;
}
.constellation { position: absolute; top: 0; right: -60px; width: 520px; height: 520px; opacity: 0.5; pointer-events: none; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 12.5px; color: var(--red); margin: 0 0 22px; display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--red); display: inline-block; }
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.06; letter-spacing: -0.01em;
  max-width: 880px; margin: 0 0 26px;
}
.hero .lede { font-size: 19px; max-width: 620px; color: #c8c8c2; margin: 0 0 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  padding: 15px 26px; text-decoration: none; border-radius: 2px;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dim); }
.btn-ghost { border-color: #4a4a44; color: var(--chalk); }
.btn-ghost:hover { border-color: var(--chalk); }
.btn-dark { border-color: var(--ink); color: var(--ink); }
.btn-dark:hover { background: var(--ink); color: var(--chalk); }

/* ---------- STATS ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--grey-line); border-top: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line);
}
.stat { background: var(--white); padding: 40px 28px; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--red); line-height: 1; }
.stat .lbl { margin-top: 10px; font-size: 14px; color: var(--grey); max-width: 220px; }
@media (max-width: 780px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- SECTION GENERIC ---------- */
section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-eyebrow { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; color: var(--red); margin: 0 0 14px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
.section-alt { background: var(--chalk); }

/* ---------- REPORT CARDS GRID ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--grey-line); border-left: 1px solid var(--grey-line); }
.card {
  background: var(--white); padding: 34px 28px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 14px; position: relative; min-height: 230px;
  border-right: 1px solid var(--grey-line); border-bottom: 1px solid var(--grey-line);
}
.card:hover { background: var(--chalk); }
.card .year { font-family: var(--font-mono); font-size: 13px; color: var(--red); letter-spacing: 0.05em; }
.card h3 { font-family: var(--font-display); font-size: 1.25rem; margin: 0; line-height: 1.25; }
.card p { font-size: 14.5px; color: var(--grey); margin: 0; flex-grow: 1; }
.card .arrow { font-family: var(--font-mono); font-size: 13px; color: var(--ink); display: flex; align-items: center; gap: 6px; }
.card:hover .arrow { color: var(--red); }
@media (max-width: 980px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-cards { grid-template-columns: 1fr; } }

/* ---------- TIMELINE (oś serii) ---------- */
.timeline-strip { overflow-x: auto; padding-bottom: 12px; }
.timeline-track { display: flex; min-width: max-content; position: relative; padding: 30px 6px 0; }
.timeline-track::before { content: ""; position: absolute; top: 46px; left: 0; right: 0; height: 2px; background: var(--grey-line); }
.tl-node { width: 150px; flex-shrink: 0; position: relative; padding: 0 14px; text-align: left; }
.tl-dot { width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--grey-line); margin-bottom: 14px; position: relative; z-index: 2; }
.tl-node:hover .tl-dot, .tl-node.current .tl-dot { background: var(--red); box-shadow: 0 0 0 1px var(--red); }
.tl-node a { text-decoration: none; color: inherit; display: block; }
.tl-year { font-family: var(--font-mono); font-weight: 700; font-size: 14px; color: var(--ink); }
.tl-tech { font-size: 12.5px; color: var(--grey); margin-top: 4px; line-height: 1.35; }

/* ---------- TWO COL / MANIFEST ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.big-statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }
.big-statement em { color: var(--red); font-style: normal; }
.body-copy p { color: var(--ink-soft); margin: 0 0 18px; }
.body-copy strong { color: var(--ink); }

/* ---------- SWOT GRID ---------- */
.swot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--grey-line); border: 1px solid var(--grey-line); }
.swot-cell { background: var(--white); padding: 26px 24px; }
.swot-cell h4 { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; font-size: 12.5px; margin: 0 0 14px; }
.swot-cell.s h4 { color: #1b7a3d; } .swot-cell.w h4 { color: var(--red); }
.swot-cell.o h4 { color: #1a5fb4; } .swot-cell.t h4 { color: #8d6e00; }
.swot-cell ul { margin: 0; padding-left: 18px; font-size: 14.5px; color: var(--ink-soft); }
.swot-cell li { margin-bottom: 8px; }
@media (max-width: 620px) { .swot-grid { grid-template-columns: 1fr; } }

/* ---------- GRANT CALLOUT ---------- */
.grant-box { border: 1.5px solid var(--ink); padding: 30px 32px; display: flex; gap: 24px; align-items: flex-start; }
.grant-box .amount { font-family: var(--font-display); font-weight: 700; font-size: 2rem; color: var(--red); white-space: nowrap; }
.grant-box .details h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.05rem; }
.grant-box .details p { margin: 0; color: var(--grey); font-size: 14.5px; }
.grant-box.empty { border-style: dashed; border-color: var(--grey-line); color: var(--grey); }
@media (max-width: 620px) { .grant-box { flex-direction: column; gap: 12px; } }

/* ---------- PREV/NEXT NAV ---------- */
.pagernav { display: flex; justify-content: space-between; border-top: 1px solid var(--grey-line); padding-top: 32px; gap: 20px; flex-wrap: wrap; }
.pagernav a { text-decoration: none; color: var(--ink); display: block; max-width: 45%; }
.pagernav .dir { font-family: var(--font-mono); font-size: 12px; color: var(--grey); text-transform: uppercase; letter-spacing: 0.06em; }
.pagernav .ttl { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; margin-top: 6px; }
.pagernav .next { text-align: right; margin-left: auto; }
@media (max-width: 620px) { .pagernav a { max-width: 100%; } }

/* ---------- DOWNLOAD BAR ---------- */
.dl-bar { background: var(--ink); color: var(--chalk); padding: 40px 0; }
.dl-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.dl-bar h3 { font-family: var(--font-display); margin: 0; font-size: 1.3rem; }
.dl-bar p { margin: 6px 0 0; color: #b7b7b0; font-size: 14.5px; }

/* ---------- FOOTER ---------- */
footer { background: var(--ink); color: #9a9a94; padding: 56px 0 32px; font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer a { color: #c8c8c2; text-decoration: none; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.reduce-btn { background: none; border: 1px solid #4a4a44; color: #c8c8c2; font-size: 12.5px; padding: 8px 14px; border-radius: 2px; cursor: pointer; font-family: var(--font-body); }

/* ---------- MISC ---------- */
.lang-toggle { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink-soft); display: flex; gap: 6px; align-items: center; }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--chalk); color: var(--ink-soft); padding: 5px 10px; border: 1px solid var(--grey-line); }
.note-box { background: var(--chalk); border-left: 3px solid var(--red); padding: 18px 22px; font-size: 14.5px; color: var(--ink-soft); }
