/* ===== Fira Sans – self-hosted (bez Google Fonts, żeby nie wysyłać IP do Google przed zgodą) ===== */
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-latin-ext-400-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/fira-sans-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-latin-ext-600-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/fira-sans-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-latin-ext-700-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/fira-sans-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/fira-sans-latin-ext-900-normal.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fira Sans'; font-style: normal; font-weight: 900; font-display: swap; src: url('/fonts/fira-sans-latin-900-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ===== Paleta z plakatu (v3) ===== */
:root {
  --grafit: #2E2D30;
  --tekst: #232323;
  --zielen: #97BF0D;
  --zielen-ciemna: #219C3C;
  --zolty: #FFD23F;
  --tlo-1: #FDF9E2;
  --tlo-2: #E4F3F3;
  --biel: #FFFFFF;
  --szary: #6B6B70;
  --linia: #E3E6E8;
  --radius: 18px;
  --max: 1120px;
  --font: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--tekst);
  background: linear-gradient(160deg, var(--tlo-1) 0%, var(--tlo-2) 100%) no-repeat;
  min-height: 100vh;
  line-height: 1.55;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--zielen-ciemna); }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; color: var(--grafit); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 900; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--szary); font-size: .95em; }
code { background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 4px; font-size: .92em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; top: 8px; background: var(--biel); padding: 8px 12px; z-index: 1000; }

/* ===== Przyciski ===== */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px;
  font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--zielen); color: var(--grafit); box-shadow: 0 8px 22px rgba(151,191,13,.35); }
.btn-primary:hover { background: #a6d115; }
.btn-secondary { background: var(--biel); color: var(--grafit); border-color: var(--grafit); }
.btn-lg { font-size: 1.25rem; padding: 1.05em 2em; }
.btn .arrow { font-weight: 900; }

/* ===== Nagłówek / hero ===== */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { font-weight: 900; color: var(--grafit); text-decoration: none; letter-spacing: .01em; }
.brand span { color: var(--zielen-ciemna); }
.topbar nav a { margin-left: 18px; color: var(--grafit); text-decoration: none; font-weight: 600; }
.topbar nav a:hover { color: var(--zielen-ciemna); }

.hero { padding: 24px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: .85rem; color: var(--zielen-ciemna); margin-bottom: 14px; }
.title {
  font-size: clamp(2.5rem, 6.5vw, 4.6rem); font-weight: 900; text-transform: uppercase;
  letter-spacing: -.01em; margin: 0 0 18px; color: var(--grafit);
}
.title .mark {
  background: linear-gradient(transparent 55%, var(--zolty) 55%, var(--zolty) 92%, transparent 92%);
  padding: 0 .08em;
}
.subject { font-size: clamp(1.2rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--grafit); margin-bottom: 24px; }
.subject small { display: block; font-weight: 400; color: var(--szary); font-size: .8em; margin-top: 4px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 20px; }
.dates { font-weight: 700; color: var(--grafit); }
.dates strong { color: var(--zielen-ciemna); }
.hero-art { position: relative; }
.hero-art img { border-radius: var(--radius); width: 100%; }

/* Numer projektu – jak na stronie WBO */
.nr-box {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--biel); border: 4px solid var(--zielen-ciemna); border-radius: 10px;
  padding: 10px 18px; min-width: 132px; text-decoration: none;
}
.nr-box .lbl { font-size: .78rem; font-weight: 600; color: var(--tekst); letter-spacing: .02em; }
.nr-box .num { font-size: 3rem; line-height: 1; font-weight: 900; color: var(--zielen-ciemna); }

/* ===== Żółty pas ===== */
.band-wrap { overflow: hidden; padding: 14px 0; }
.band {
  background: var(--zolty); color: var(--grafit);
  transform: rotate(-1.5deg); margin: 0 -40px; padding: 18px 0;
}
.band .inner { transform: rotate(1.5deg); text-align: center; }
.band .big { font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 900; text-transform: uppercase; letter-spacing: .02em; }
.band .small { font-weight: 600; margin-top: 4px; }

/* ===== Sekcje ===== */
.section { padding: 56px 0; }
.card {
  background: var(--biel); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px); box-shadow: 0 10px 40px rgba(46,45,48,.07);
}
.lead { font-size: 1.12rem; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 28px; padding: 0; list-style: none; }
.chips li { background: var(--tlo-1); border: 2px solid var(--zolty); border-radius: 999px; padding: 6px 14px; font-weight: 600; }

.zones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.zone { background: var(--tlo-2); border-radius: 14px; padding: 22px; border-top: 6px solid var(--zielen); }
.zone .ico { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.zone h3 { margin-bottom: .35em; }
.zone p { margin: 0; color: #3b3b40; }

.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.map-grid figure { margin: 0; }
.map-grid figcaption { text-align: center; color: var(--szary); font-size: .95rem; margin-top: 8px; }
.map-grid img { background: var(--biel); border-radius: 14px; border: 1px solid var(--linia); }

.steps { counter-reset: krok; list-style: none; padding: 0; margin: 16px 0 28px; display: grid; gap: 14px; }
.steps li { position: relative; padding-left: 56px; min-height: 42px; }
.steps li::before {
  counter-increment: krok; content: counter(krok);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--zielen); color: var(--grafit); font-weight: 900; display: grid; place-items: center;
}
.vote-box { background: var(--grafit); color: var(--biel); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); text-align: center; }
.vote-box h2 { color: var(--biel); }
.vote-box .dates { color: var(--zolty); font-size: 1.25rem; margin-bottom: 18px; }
.vote-box .dates strong { color: var(--zolty); }
.vote-box .muted { color: #cfd0d4; }
.vote-box a.link { color: var(--zolty); }

/* ===== Stopka ===== */
footer { padding: 40px 0 48px; color: var(--szary); font-size: .92rem; }
.foot-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--linia); padding-top: 24px; }
.foot-grid img { height: 60px; width: auto; }
footer nav a { margin-right: 18px; color: var(--szary); }

/* ===== Strona /glosowanie ===== */
.redirect { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.redirect .card { max-width: 560px; }
.redirect .spinner {
  width: 44px; height: 44px; margin: 0 auto 18px; border-radius: 50%;
  border: 5px solid var(--tlo-2); border-top-color: var(--zielen); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.redirect #redirect-status { min-height: 1.6em; color: var(--szary); }

/* ===== Strony tekstowe ===== */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.2em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .35em; }

/* ===== Responsywność ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { order: -1; max-width: 520px; }
  .zones { grid-template-columns: 1fr; }
  .map-grid { grid-template-columns: 1fr; }
  .band { margin: 0 -20px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .topbar nav { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .section { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .redirect .spinner { animation: none; }
}
