/* Tomasz Zysk Ultra: własny, lekki system stylów (bez frameworków). */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-400-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/outfit-400-latin.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: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/outfit-600-latin.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; }

:root {
  --ink: #0e1a14;
  --forest: #14301f;
  --moss: #2d5a3d;
  --lime: #c6f432;
  --lime-dark: #a4cf17;
  --sun: #ff6b2c;
  --paper: #f5f2ea;
  --card: #ffffff;
  --text: #14201a;
  --muted: #5c6b62;
  --line: #dcd8cc;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(14, 26, 20, .10);
  --maxw: 1180px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 18px; line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--maxw), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 56px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 10px 26px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; border: 2px solid var(--lime); cursor: pointer;
  transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--lime-dark); border-color: var(--lime-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn.ghost.dark { color: var(--ink); border-color: var(--ink); }
.btn.ghost.dark:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 38px; padding: 6px 18px; font-size: .95rem; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(14, 26, 20, .94); backdrop-filter: blur(8px); color: #fff; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; letter-spacing: .01em; }
.mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: .95rem; }
.brand em { font-style: normal; color: var(--lime); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 1rem; opacity: .9; }
.nav a:hover { background: rgba(255, 255, 255, .1); opacity: 1; }
.nav a.active { color: var(--lime); opacity: 1; }
.nav a.nav-cta { background: var(--lime); color: var(--ink); font-weight: 600; margin-left: 8px; opacity: 1; }
.nav a.nav-cta:hover { background: var(--lime-dark); }
.nav-toggle, .burger { display: none; }

@media (max-width: 860px) {
  .burger { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: transform .2s, opacity .2s; }
  .burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
  .burger span::before { top: -7px; } .burger span::after { top: 7px; }
  .nav-toggle:checked ~ .burger span { background: transparent; }
  .nav-toggle:checked ~ .burger span::before { top: 0; transform: rotate(45deg); }
  .nav-toggle:checked ~ .burger span::after { top: 0; transform: rotate(-45deg); }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); flex-direction: column; align-items: stretch; padding: 8px 20px 20px; display: none; border-top: 1px solid rgba(255, 255, 255, .1); }
  .nav-toggle:checked ~ .nav { display: flex; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav a.nav-cta { margin: 14px 0 0; text-align: center; border-radius: 999px; border: 0; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; background: var(--ink);
  background-image: linear-gradient(180deg, rgba(14, 26, 20, .35), rgba(14, 26, 20, .85)), var(--hero, url('../img/hero.svg'));
  background-size: cover; background-position: center;
}
.hero-inner { padding: clamp(72px, 14vw, 160px) 0 clamp(56px, 10vw, 110px); max-width: 860px; margin-left: max(20px, calc((100% - var(--maxw)) / 2)); }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .85rem; color: var(--lime); font-weight: 600; margin-bottom: 14px; }
.hero h1 { margin-bottom: .1em; }
.hero-lead { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 600; color: var(--lime); margin-bottom: 18px; }
.hero-text { max-width: 640px; font-size: 1.1rem; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- statystyki ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: -34px; position: relative; z-index: 2; }
.stats-strip.compact { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 16px; text-align: center; }
.tile .num { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.1; color: var(--forest); font-variant-numeric: tabular-nums; }
.tile .lbl { display: block; font-size: .85rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }
.stats-note { font-size: .9rem; margin-top: 14px; }
@media (max-width: 980px) { .stats-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats-strip { grid-template-columns: repeat(2, 1fr); margin-top: -24px; } }

/* ---------- sekcje i karty ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.more { color: var(--moss); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime-dark); }
.page-head { padding: 56px 0 24px; }
.page-head .lead, .lead { font-size: 1.25rem; color: var(--muted); max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--forest); overflow: hidden; }
.card-media img, .card-media .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { background: linear-gradient(135deg, var(--forest), var(--moss)); }
.ribbon { position: absolute; top: 12px; left: 12px; background: var(--sun); color: #fff; font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; }
.card-body { padding: 18px 20px 22px; }
.card h3 { margin: 4px 0 8px; font-size: 1.3rem; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--moss); }
.meta { font-size: .9rem; color: var(--muted); margin: 0; }
.dot { margin: 0 6px; }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0; margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.facts b { color: var(--forest); font-weight: 600; }
.summary { color: var(--muted); font-size: .98rem; margin: 0; }
.empty { padding: 28px; background: var(--card); border-radius: var(--radius); color: var(--muted); }
.band { background: var(--ink); color: #fff; }
.band .section { padding: 56px 0; }
.band .more { color: var(--lime); border-color: var(--lime); }

.achv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.achv li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.achv li.hl { border-color: var(--lime); background: rgba(198, 244, 50, .08); }
.achv strong { font-size: 1.15rem; color: var(--lime); }
.achv span { opacity: .85; font-size: .98rem; }
.achv.big li { background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.achv.big li.hl { border-color: var(--lime-dark); background: #fbfff0; }
.achv.big strong { color: var(--forest); }
.achv.big span { color: var(--muted); opacity: 1; }
.achv .year { display: inline-block; color: var(--sun); font-weight: 600; opacity: 1; }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.crest { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: center; }
.crest img { width: min(260px, 100%); border-radius: 12px; box-shadow: var(--shadow); }
.crest img.herb { width: 120px; border-radius: 0; box-shadow: none; filter: drop-shadow(0 6px 14px rgba(0,0,0,.25)); }
.crest-ph { width: min(260px, 100%); aspect-ratio: 3 / 2; border: 2px dashed var(--moss); border-radius: 12px; display: grid; place-content: center; text-align: center; color: var(--moss); padding: 12px; }
.crest-ph span { font-size: 2rem; font-weight: 600; }
.crest-ph small { opacity: .8; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.coop { background: linear-gradient(120deg, var(--forest), var(--moss)); color: #fff; }
.coop-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 0; }
.coop-inner p { max-width: 720px; opacity: .92; margin: 0; }
.coop-inner h2 { margin-bottom: 10px; }
@media (max-width: 760px) { .coop-inner { flex-direction: column; align-items: flex-start; } }

.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.team-card { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 28px; }
.team-card img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px; margin-bottom: 14px; }
.team-card h2 { color: var(--lime); font-size: 1.5rem; }

/* ---------- filtry ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 8px 0 28px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
select, input:not([type]), input[type=text], input[type=email], input[type=url], input[type=number], input[type=password], input[type=search], textarea {
  font: inherit; font-size: 1rem; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); min-height: 44px;
}
textarea { width: 100%; resize: vertical; }
.pager { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 36px 0 0; }
.pager a { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--lime-dark); }

/* ---------- wpis ---------- */
.post-head { padding: 40px 0 20px; }
.crumbs { font-size: .9rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.badge { display: inline-block; background: var(--sun); color: #fff; font-weight: 600; font-size: .75rem; padding: 2px 10px; border-radius: 999px; margin-left: 8px; text-transform: uppercase; letter-spacing: .06em; }
.post-cover { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.post-grid { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding: 36px 0 20px; align-items: start; }
.facts-box { position: sticky; top: 88px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.facts-box dl { margin: 0 0 14px; }
.facts-box dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts-box dt { color: var(--muted); font-size: .95rem; }
.facts-box dd { margin: 0; font-weight: 600; color: var(--forest); font-variant-numeric: tabular-nums; text-align: right; }
.prose { max-width: 760px; }
.prose.narrow { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose a { color: var(--moss); font-weight: 600; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--lime-dark); color: var(--muted); font-size: 1.1em; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-left: 3px solid var(--lime-dark); border-bottom: 3px solid var(--lime-dark); transform: rotate(-45deg); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery a { display: block; overflow: hidden; border-radius: 12px; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.videos { display: grid; gap: 12px; }
.video { display: flex; align-items: center; gap: 14px; aspect-ratio: 16 / 9; justify-content: center; flex-direction: column; background: var(--ink); color: #fff; text-decoration: none; border-radius: 14px; font-weight: 600; }
.video.link { aspect-ratio: auto; padding: 16px; flex-direction: row; }
.video .play { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); position: relative; }
.video .play::after { content: ''; position: absolute; left: 25px; top: 18px; border-left: 20px solid var(--ink); border-top: 14px solid transparent; border-bottom: 14px solid transparent; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
.tags { margin-top: 1.6em; }
.tag { display: inline-block; margin: 0 8px 8px 0; padding: 4px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--moss); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr; } .facts-box { position: static; } }

/* ---------- statystyki ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-bottom: 36px; }
.cat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.cat h3 { margin-bottom: 6px; color: var(--moss); }
.cat .big { font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--forest); margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.cat .big small { font-size: 1.1rem; color: var(--muted); }
.cat ul { list-style: none; margin: 0; padding: 0; color: var(--muted); }
.small-note { font-size: .8rem; margin: 10px 0 0; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 260px; padding: 12px 0 0; }
.bar-col { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.bar-stack { width: 100%; display: flex; flex-direction: column-reverse; border-radius: 8px 8px 0 0; overflow: hidden; min-height: 0; }
.seg { display: block; min-height: 0; }
.seg.run, .sw.run { background: var(--moss); }
.seg.ride, .sw.ride { background: var(--lime-dark); }
.seg.walk, .sw.walk { background: var(--sun); }
.bar-val { font-size: .7rem; color: var(--muted); height: 1.2em; order: -1; font-variant-numeric: tabular-nums; }
.bar-lbl { font-size: .75rem; color: var(--muted); margin-top: 6px; }
.legend { font-size: .9rem; color: var(--muted); }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin: 0 4px 0 12px; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.tbl thead th { background: var(--forest); color: #fff; font-weight: 600; }
.tbl tfoot th, .tbl tfoot td { background: #f1efe6; font-weight: 600; }

/* ---------- formularz ---------- */
.coop-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; padding-bottom: 56px; }
.form-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.form-card label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .95rem; color: var(--muted); }
.form-card input, .form-card textarea { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error, .validation-message { color: #b3261e; font-size: .9rem; margin: -6px 0 12px; }
@media (max-width: 860px) { .coop-grid { grid-template-columns: 1fr; } }

/* ---------- stopka ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .85); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding: 48px 0 28px; }
.foot-brand { font-size: 1.4rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.foot-brand em { font-style: normal; color: var(--lime); }
.foot-title { font-weight: 600; color: #fff; margin-bottom: 8px; }
.site-footer a { display: block; text-decoration: none; padding: 3px 0; opacity: .85; }
.site-footer a:hover { color: var(--lime); opacity: 1; }
.proud { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .9rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- logowanie ---------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--ink); }
.auth-card { width: min(420px, 100%); background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.auth-card .brand { color: var(--ink); margin-bottom: 20px; }
.auth-card .brand em { color: var(--moss); }
.login-form label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: .95rem; }
.login-form input { width: 100%; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .hero-actions { display: none; } body { background: #fff; } }
