/* nieodlegla.pl – 2026 rebuild. Look and feel from the 2018 site. */

@font-face { font-family: Rubik; font-weight: 400; font-display: swap; src: url(../fonts/rubik-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: Rubik; font-weight: 400; font-display: swap; src: url(../fonts/rubik-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: Rubik; font-weight: 500; font-display: swap; src: url(../fonts/rubik-latin-ext-500-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: Rubik; font-weight: 500; font-display: swap; src: url(../fonts/rubik-latin-500-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; }

/* =====================================================================
   TOKENS
   ===================================================================== */
:root {
  /* colour */
  --sky: #d4ecff;  --teal: #006977;  --teal-d: #004f5a;  --jade: #007f72;  --green: #3ea967;
  --sun: #ffc92d;  --sun-h: #ffd24f;
  --cream: #f4f2ec;  --cream-d: #e9e6dc;  --white: #fff;
  --ink: #2f4858;  --text: #1c2b33;  --muted: #5b6b73;  --pin-ink: #16363d;
  --line: #e4e1d8;  --line-d: #cfcbc0;  --blue: #2f7df6;
  /* translucent: tints of ink / teal / white */
  --tint: rgb(47 72 88 / .08);  --tint-h: rgb(47 72 88 / .16);  --tint-teal: rgb(0 105 119 / .08);
  --on-dark: rgb(255 255 255 / .9);  --on-dark-2: rgb(255 255 255 / .8);  --on-dark-fill: rgb(255 255 255 / .12);
  /* radius */
  --r-xs: 6px;  --r-sm: 10px;  --r: 12px;  --r-md: 16px;  --r-lg: 20px;  --r-xl: 26px;  --r-2xl: 30px;  --r-pill: 99px;
  /* space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;  --s-5: 24px;  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;  --s-10: 144px;
  /* type */
  --fs-xs: 13px;  --fs-sm: 14px;  --fs-md: 16px;  --fs-lg: 18px;
  --fs-h3: 20px;  --fs-h2: clamp(28px, 3.4vw, 38px);  --fs-h1: clamp(40px, 5.6vw, 64px);
  /* elevation */
  --sh-ctl: 0 2px 10px rgb(0 40 50 / .22);
  --shadow: 0 10px 34px rgb(0 50 60 / .18), 0 2px 6px rgb(0 50 60 / .08);
  --sh-box: 0 18px 48px rgb(0 50 30 / .25);
  /* layout */
  --pad: 24px;  --top: 60px;  --w-page: 1080px;  --w-box: 1560px;
  --gutter: clamp(12px, 3vw, 48px);
  /* section rhythm */
  --sec: var(--s-10);  --sec-s: var(--s-9);  --gap-l: var(--s-8);
  /* hanging waves between sections */
  --wave-h: clamp(36px, 4.2vw, 60px);
  --edge-1: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0%200H100V93C85%2097%2070%2090%2054%2094C36%2098%2018%2091%200%2095Z'/%3E%3C/svg%3E");
  --edge-2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0%200H100V94C82%2090%2064%2098%2046%2094C28%2090%2012%2097%200%2093Z'/%3E%3C/svg%3E");
  --edge-3: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0%200H100V92C90%2097%2076%2099%2060%2094C42%2089%2024%2097%200%2094Z'/%3E%3C/svg%3E");
  --wave-a: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V22C1240 58 1010 4 760 30S280 58 0 18Z'/%3E%3C/svg%3E");
  --wave-b: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V26C1180 4 960 56 700 30S250 6 0 34Z'/%3E%3C/svg%3E");
  --wave-c: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath d='M0 0H1440V30C1210 58 980 2 720 28S240 56 0 22Z'/%3E%3C/svg%3E");
    --pull: 0px;  /* how far the map section reaches up into the hero hill */
}
@media (max-width: 720px) {
  :root { --pad: 18px; --top: 56px; --sec: var(--s-9); --sec-s: var(--s-8); --gap-l: var(--s-6); --pull: 0px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.5 Rubik, system-ui, sans-serif; color: var(--text); background: var(--cream); overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h1, h2, h3 { font-weight: 500; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; }
p, dd, li { text-wrap: pretty; }
h1 { font-size: var(--fs-h1); letter-spacing: -.03em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); }
h3 { font-size: 20px; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--white); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
.deco { position: absolute; pointer-events: none; user-select: none; max-width: none; }

.wrap { width: min(100% - 2 * var(--pad), 1080px); margin-inline: auto; position: relative; }
.prose > * + * { margin-top: 14px; }
.prose { max-width: 34em; }

/* =====================================================================
   COMPONENTS
   ===================================================================== */
/* button: .btn + variant (+ size). Every clickable pill/box on the page is one of these. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); min-height: 48px; padding: 0 var(--s-5); border: 0; border-radius: var(--r); font-size: var(--fs-md); font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; transition: background .15s, color .15s, box-shadow .15s; }
.btn--sm { min-height: 38px; padding: 0 var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.btn--icon { width: 40px; min-height: 40px; padding: 0; }
.btn--teal { background: var(--teal); color: var(--white); }
.btn--teal:hover { background: var(--text); }
.btn--sun { background: var(--sun); color: var(--text); }
.btn--sun:hover { background: var(--sun-h); }
.btn--white { background: var(--white); color: var(--teal); }
.btn--white:hover { background: var(--cream); }
.btn--ink { background: var(--white); color: var(--ink); box-shadow: var(--sh-ctl); }
.btn--ink:hover { background: var(--ink); color: var(--white); }
.btn--ghost { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 1.5px var(--teal); }
.btn--ghost:hover { background: var(--teal); color: var(--white); }
/* soft icon button (close, prev/next) */
.ibtn { display: grid; place-items: center; border: 0; border-radius: var(--r-sm); background: var(--tint); color: var(--ink); }
.ibtn:hover { background: var(--tint-h); }

/* surface: the rounded blocks inside sections */
.faq, .steps li, .stats div, .idea { border-radius: var(--r-lg); }
.steps li { background: #d4ecff; color: var(--text); }
.stats div { background: var(--white); }
.faq { background: var(--white); border-radius: var(--r-xl); }
.idea { background: var(--sun); color: var(--text); border-radius: 28px; }

/* wave: soft hanging edge on top of a section; colour = the section above it */
.about::before, .how::before, .org::before { content: ""; position: absolute; left: 0; right: 0; top: calc(-1 * var(--wave-over, 14px)); height: calc(var(--wave-h) + var(--wave-over, 14px)); background: var(--wave-bg); -webkit-mask: var(--wave) center / 100% 100% no-repeat; mask: var(--wave) center / 100% 100% no-repeat; pointer-events: none; }
.about { --wave: var(--wave-a); --wave-bg: var(--green); --wave-over: 1px; }
.how   { --wave: var(--wave-b); --wave-bg: var(--cream); --wave-over: 2px; }
.org   { --wave: var(--wave-c); --wave-bg: var(--jade); --wave-over: 2px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 1500; height: var(--top); transition: background .2s, box-shadow .2s; }
.top.is-stuck { background: var(--white); box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
.top__in { height: 100%; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
/* animated logo, as on the 2018 site: the underscore wanders through the word */
.logo { display: inline-flex; align-items: center; flex: none; font-size: 12px; color: var(--ink); }
.logo svg { height: 16px; flex: none; margin: 0 .04em; fill: currentColor; }
.logo .l { width: calc(16px * var(--r)); }
.logo .u { width: 0; animation: 8s linear 2s infinite; }
.logo .u1 { animation-name: u1; }
.logo .u2 { width: 1em; animation-name: u2; }
.logo .u3 { animation-name: u3; }
.logo .u4 { animation-name: u4; }
.logo:hover .u { animation-play-state: paused; }
@keyframes u1 { 0%, 40% { width: 0; } 50%, 60% { width: 2em; } 70%, 100% { width: 0; } }
@keyframes u2 { 0%, 5% { width: 1em; } 10%, 90% { width: 0; } 100% { width: 1em; } }
@keyframes u3 { 0%, 70% { width: 0; } 80%, 85% { width: 1em; } 90%, 100% { width: 0; } }
@keyframes u4 { 0%, 10% { width: 0; } 20%, 30% { width: 2em; } 40%, 100% { width: 0; } }
.top nav { display: flex; align-items: center; gap: 10px; font-size: 15px; white-space: nowrap; }
.top nav .nl { text-decoration: none; color: var(--ink); padding: 6px 0; border-bottom: 2px solid transparent; }
.top nav .nl:hover { border-color: var(--ink); }

/* ---------- hero: the 2018 scene, scaled to the viewport ---------- */
/* The scene scales with the viewport so the figures stand on the slope they were drawn for.
   --S = scene width (>= 900px; phones see its middle), --hill = hill height. */
.hero { --S: max(100vw, 900px); --hill: calc(var(--S) * .223); --shift: calc((100vw - var(--S)) * .6);
  position: relative; margin-top: calc(-1 * var(--top)); height: calc(var(--S) * .06 + 430px); min-height: 510px; background: var(--sky); overflow: hidden; }
.hero__text { z-index: 3; padding-top: calc(var(--top) + clamp(16px, 3dvh, 36px) + 100px); }
.hero__text .lead { max-width: 22em; margin-top: 14px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink); text-wrap: balance; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__cloud3 { width: 230px; left: 16%; top: 4px; }
.hero__c1 { height: 220px; left: 52%; top: -40px; }       /* cut flat on top: tucked under the band edge */
.hero__c2 { display: none; }
.hero__sun { width: calc(var(--S) * .36); left: calc(var(--shift) + var(--S) * .74); bottom: calc(var(--S) * -.11); }
.hero__hills { left: var(--shift); width: var(--S); height: calc(var(--hill) + 3px); bottom: -3px; }   /* a little past the edge: no hairline of sky above the green section */
.hero__hikers { width: calc(var(--S) * .11); left: calc(var(--shift) + var(--S) * .56); bottom: calc(var(--hill) * .27 - 4px); z-index: 2; overflow: visible; }
.hero__selfie { width: calc(var(--S) * .062); left: calc(var(--shift) + var(--S) * .035); bottom: calc(var(--hill) * .20 - 4px); z-index: 2; overflow: visible; }

/* ---------- explorer: title on the green, light-blue box below ---------- */
.feats { position: relative; z-index: 5; margin-top: calc(-1 * var(--pull)); padding: var(--s-6) var(--gutter) var(--sec-s); background: var(--green); }
.sheet__title { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.015em; }
.explorer { position: relative; width: min(100%, var(--w-box)); height: clamp(620px, calc(100dvh - 140px), 900px); margin-inline: auto; border-radius: var(--r-2xl); background: var(--sky); box-shadow: var(--sh-box); overflow: hidden; isolation: isolate; }
#map { position: absolute; inset: 0; background: var(--sky); font: inherit; }
.leaflet-tile-pane { filter: grayscale(1) brightness(1.2) contrast(.7); mix-blend-mode: multiply; }   /* flat: no colours of their own, only the land colour shows */   /* tiles are multiplied over the land colour set in app.js */
.leaflet-container a { color: var(--teal); }
.leaflet-control-attribution { font-size: 11px; background: transparent !important; color: rgb(47 72 88 / .75); }
.leaflet-control-attribution a { color: var(--teal) !important; }
.leaflet-bar { border: 0 !important; box-shadow: var(--sh-ctl) !important; border-radius: var(--r) !important; overflow: hidden; }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--ink); border-bottom-color: var(--line); }
.leaflet-bottom.leaflet-right .leaflet-control { margin: 0 var(--s-5) var(--s-5) 0; }
.explorer .leaflet-bottom, .explorer .leaflet-top { z-index: 1100; }
.mapbtns { position: absolute; top: var(--s-5); right: var(--s-5); z-index: 1002; display: flex; gap: var(--s-2); }
.sheet-open { display: none !important; }

/* pins */
.pin { width: 28px; height: 28px; border-radius: 50%; background: var(--sun); color: var(--pin-ink); border: 2px solid var(--white); box-shadow: 0 2px 6px rgb(0 40 50 / .4); font: 500 12px/24px Rubik, sans-serif; text-align: center; letter-spacing: -.02em; transition: transform .12s; }
.pin:hover, .pin.is-hot { transform: scale(1.25); }
.pin.is-on { background: var(--teal); color: var(--white); transform: scale(1.4); }
.cl { width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--white); border: 3px solid var(--white); box-shadow: 0 0 0 6px rgb(0 105 119 / .22), 0 2px 8px rgb(0 40 50 / .35); font: 500 15px/36px Rubik, sans-serif; text-align: center; }
.me { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 6px rgb(47 125 246 / .25); }
.leaflet-tooltip.tip { border: 0; border-radius: 12px; padding: 8px 12px; background: var(--white); color: var(--ink); font: 500 13px/1.3 Rubik, sans-serif; box-shadow: 0 8px 22px -6px rgb(16 40 40 / .3), 0 1px 3px rgb(16 40 40 / .12); width: max-content; max-width: min(320px, 80vw); white-space: normal; text-wrap: balance; }
.leaflet-tooltip.tip::before { display: none; }
.noscript { position: absolute; z-index: 5; padding: 24px; background: var(--white); }

/* sheet: floating panel on desktop */
.sheet { position: absolute; z-index: 1001; top: var(--s-5); left: var(--s-5); bottom: var(--s-5); width: 380px; display: flex; flex-direction: column; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; transition: transform .25s ease; }
.sheet.is-closed { transform: translateX(calc(-100% - 2 * var(--s-5))); }
.sheet__grab { display: none; }
.sheet__close { display: none !important; }
.sheet__list { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.tools { padding: var(--s-5) var(--s-5) var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); border-bottom: 1px solid var(--line); }
.search { position: relative; display: block; margin: 0; }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 40px 0 38px; border: 0; border-radius: 12px; background: var(--cream); font-size: 16px; }
.search input:focus { outline: 2px solid var(--teal); background: var(--white); }
.search input::-webkit-search-cancel-button { appearance: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { flex: none; height: 32px; padding: 0 12px; border: 0; border-radius: 99px; background: var(--cream); color: var(--ink); font-size: 13px; white-space: nowrap; }
.chip:hover { background: var(--cream-d); }
.chip.is-on { background: var(--teal); color: var(--white); font-weight: 500; }
.tools__row { display: flex; align-items: center; gap: var(--s-2); min-height: 30px; font-size: var(--fs-xs); color: var(--muted); }
.count { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seg { display: inline-flex; height: 30px; padding: 2px; border-radius: var(--r-sm); background: var(--cream); }
.seg button { padding: 0 var(--s-3); border: 0; border-radius: 8px; background: transparent; font-size: 13px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--text); font-weight: 500; box-shadow: 0 1px 3px rgb(0 0 0 / .12); }
.seg button:not([aria-pressed="true"]):hover { background: var(--cream-d); color: var(--text); }
.rnd { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: rgb(255 201 45 / .35); color: var(--text); font-size: 13px; font-weight: 500; }
.rnd:hover { background: var(--sun); }

.cards { flex: 1; overflow-y: auto; padding: 6px 8px 10px; overscroll-behavior: contain; }
.card { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; width: 100%; padding: 10px 10px; text-align: left; border: 0; border-radius: 14px; background: transparent; transition: background .12s; }
.card:hover, .card.is-hot { background: var(--cream); }
.card__n { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: var(--pin-ink); font-size: 13px; font-weight: 500; letter-spacing: -.02em; }
.card--any .card__n { background: var(--sky); color: var(--teal); }
.card__t { display: block; font-size: 16px; font-weight: 500; line-height: 1.25; color: var(--text); }
.card__m { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.empty { padding: 28px 20px; color: var(--muted); text-align: center; }

.sheet__detail { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 22px 28px; }
.sheet__detail:focus { outline: none; }
.dbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; margin: 0 -22px 14px; padding: 12px 14px 10px 16px; background: color-mix(in srgb, var(--white) 92%, transparent); backdrop-filter: blur(8px); }
.dback { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px 6px 4px; border: 0; border-radius: 10px; background: none; color: var(--teal); font-size: 14px; font-weight: 500; }
.dback:hover { background: var(--tint-teal); }
.dnav { display: flex; gap: 6px; }
.dnav button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--cream); color: var(--ink); }
.dnav button:hover:not(:disabled) { background: var(--cream-d); }
.dnav button:disabled { opacity: .35; cursor: default; }
.detail__n { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--sun); color: var(--pin-ink); font-size: 13px; font-weight: 500; }
.detail__t { margin: 12px 0 8px; font-size: 28px; line-height: 1.12; }
.detail__m { font-size: 14px; color: var(--muted); }
.detail__text { margin-top: 16px; }
.detail__text p { font-size: 16px; line-height: 1.6; }
.detail__text p + p { margin-top: 12px; }
.detail__text a { color: var(--teal); overflow-wrap: anywhere; }
.detail__by { margin-top: 16px; padding-left: 12px; border-left: 3px solid var(--sun); font-size: 14px; color: var(--muted); }
.detail__tags { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--cream); font-size: 14px; }
.detail__take { display: flex; align-items: center; gap: 14px; }
.detail__take p { margin: 0; }
.detail__tags h4 { margin: 0 0 4px; font-size: 16px; font-weight: 500; }
.detail__tags img { flex: none; width: 84px; height: 84px; border-radius: 50%; }
.detail__post { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--white); font-size: 15px; line-height: 1.4; color: var(--text); }
.detail__copy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail__copy .btn { min-width: 0; }
.detail__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail__actions .btn { min-height: 44px; font-size: 15px; padding: 0 18px; }

html.map-full { overflow: hidden; }
.feats.is-full { margin-top: 0; padding: 0; background: none; position: static; }
.explorer.is-full { position: fixed; inset: 0; z-index: 2000; width: 100%; height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }

/* ---------- sections ---------- */
.head { max-width: 30em; }
.head p { margin-top: 10px; color: var(--muted); font-size: 18px; }

.how { position: relative; background: var(--jade); color: var(--white); }
.how .head p { color: var(--white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); }
/* step card: picture runs edge to edge, each with its own wavy bottom edge */
.steps li { overflow: hidden; }
.steps li > :not(.pic) { padding-inline: var(--s-6); }
.steps h3 + p { margin-top: var(--s-3); }
.steps li { display: flex; flex-direction: column; }
.steps li > p { margin-bottom: var(--s-6); }
.steps .pic { margin-top: auto; aspect-ratio: 520 / 300; }
.steps .pic { position: relative; overflow: hidden; }
.steps .pic img { display: block; width: 100%; height: 100%; }

.steps p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.steps strong { color: var(--teal); font-weight: 500; }
.how__done { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; font-size: 22px; font-weight: 500; }

.about { position: relative; background: var(--cream); color: var(--text); }
.about__in { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; }
.pun { font-size: 15px; color: var(--muted); }
.stats { display: grid; }
.stats div { display: flex; align-items: baseline; }
.stats dt { min-width: 3ch; font-size: 44px; font-weight: 500; line-height: 1; color: var(--teal); letter-spacing: -.03em; }
.stats dd { font-size: 15px; color: var(--ink); }
.idea { display: flex; align-items: center; }
.idea img { flex: none; width: 110px; height: 110px; border-radius: 50%; }
.idea > div { flex: 1; }
.idea p { margin-top: 8px; max-width: 34em; color: var(--text); }
.idea .btn { flex: none; }

.org { position: relative; background: var(--sky); }
.org__in { display: grid; max-width: 920px; }
.org .prose p { font-size: 16px; color: var(--ink); }
.links { display: grid; gap: 6px; font-size: 16px; }
.links a { color: var(--teal); font-weight: 500; }

.foot__scene { position: relative; height: clamp(200px, 26vw, 340px); overflow: hidden; background: var(--sky); }
.foot__sun { width: clamp(240px, 34vw, 480px); right: 6%; top: 14%; }
.foot__hills { left: 0; bottom: 0; width: 100%; height: 70%; }
.foot__hills2 { left: 0; bottom: -1px; width: 100%; height: 26%; }
.foot__partners { background: var(--white); }
.foot__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.foot__in p { font-size: 13px; max-width: 24em; color: var(--muted); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 5vw, 64px); }
.logos img { width: auto; }

.modal { width: min(100% - 32px, 480px); padding: 0; border: 0; border-radius: 24px; background: var(--white); color: var(--text); box-shadow: var(--shadow); }
.modal::backdrop { background: rgb(0 105 119 / .85); }
.modal form { display: grid; gap: 14px; padding: 28px 24px 24px; position: relative; }
.modal label { display: grid; gap: 4px; font-size: 14px; font-weight: 500; }
.modal input, .modal textarea { width: 100%; padding: 9px 10px; border: 1px solid var(--line-d); border-radius: 10px; background: var(--white); font: 400 16px/1.4 Rubik, sans-serif; }
.modal small { font-size: 12px; font-weight: 400; color: var(--muted); }
.modal .btn { justify-self: start; }
.modal__note { font-size: 12px; color: var(--muted); }
.modal__note a { color: var(--teal); }
.modal__close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink); }


/* ---------- phones: the sheet becomes a bottom sheet over the map ---------- */
@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .top nav .nl { display: none; }
  .hero { height: calc(var(--hill) * .72 + 330px); }
  .hero__text { padding-top: calc(var(--top) + 24px); }
  .hero__text .lead { max-width: 17em; }
  .hero__cloud3 { display: none; }
  .hero__c2 { display: none; }
  .hero__c1 { height: 150px; left: 58%; }
  .hero__selfie { display: none; }
  .hero__hikers { bottom: calc(var(--hill) * .345 - 12px); }

  .sheet { inset: auto 0 0 0; width: auto; height: 52%; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgb(0 40 50 / .28); transition: height .22s ease; }
  .sheet.is-dragging { transition: none; }
  .sheet[data-snap="peek"] { height: 130px; }
  
  .sheet[data-snap="half"] { height: 56%; }
  .sheet[data-snap="more"] { height: 72%; }   /* an open challenge: more text, less map */
  .sheet[data-snap="full"] { height: calc(100% - 88px); }   /* the list can cover the map up to its buttons */
  .sheet.is-closed { transform: none; }
  .sheet__close, .sheet-open { display: none !important; }
  .sheet__grab { display: block; flex: none; padding: 10px 0 4px; touch-action: none; cursor: grab; }
  .sheet__bar { display: block; width: 40px; height: 5px; margin: 0 auto; border-radius: 3px; background: var(--line-d); }
  .search { margin-right: 0; }
  .tools { padding-top: 6px; }
  .sheet[data-snap="peek"] .cards, .sheet[data-snap="peek"] .sheet__detail { overflow: hidden; }
  .leaflet-control-zoom { display: none; }
  .leaflet-top.leaflet-left .leaflet-control-attribution { margin: 14px 0 0 20px; padding: 2px 8px; border-radius: 8px; background: rgb(255 255 255 / .85) !important; }
  .detail__t { font-size: 25px; }

      .s-cloud { top: 10px; width: 110px; }
  .how__done { font-size: 19px; }
  .stats dt { font-size: 36px; }
  .idea img { width: 84px; height: 84px; }
  .foot__in { flex-direction: column; align-items: flex-start; }
  .logos { flex-direction: column; align-items: flex-start; gap: var(--s-6); }
  .logos img { max-height: 40px; }
}
#wyczyny { scroll-margin-top: calc(var(--top) - var(--s-4)); }
/* touch: comfortable targets (WCAG 2.2 asks for 24px minimum, 44px is the comfortable size) */
@media (pointer: coarse) {
  .chip { height: 40px; padding: 0 16px; }
  .seg { height: 38px; } .seg button { padding: 0 var(--s-4); }
  .rnd { height: 38px; }
  .links a, .foot__in a { display: inline-block; padding: 8px 0; }
  .leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
}
@media (max-width: 1000px) { .hero__selfie { display: none; } .sheet { width: 350px; } .count { flex: 1 0 100%; } .tools__row { flex-wrap: wrap; row-gap: var(--s-2); } .tools__row .seg { margin-right: auto; } }
@media (max-width: 480px) {
  h1 { font-size: 44px; }
}


/* =====================================================================
   FAQ
   ===================================================================== */
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding: 30px 36px; cursor: pointer; list-style: none; border-radius: var(--r-xl); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h2 { margin: 0; font-size: clamp(24px, 3.2vw, 38px); line-height: 1.15; }
.faq__icon { flex: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--sun); transition: transform .25s ease; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 3px; margin: -1.5px 0 0 -9px; border-radius: 2px; background: var(--ink); }
.faq__icon::after { transform: rotate(90deg); transition: transform .25s ease; }
.faq[open] .faq__icon { transform: rotate(180deg); }
.faq[open] .faq__icon::after { transform: rotate(0deg); }
.faq summary:hover .faq__icon { background: var(--sun-h); }
.faq__body { padding: 0 36px 34px; max-width: 46em; }
.org .faq__body p { font-size: 17px; }

/* =====================================================================
   SECTION RHYTHM – all vertical spacing comes from the --s-* / --sec tokens
   ===================================================================== */
.about { padding: var(--sec) 0; }
.about__in { gap: var(--s-9); }
.about .prose > * + * { margin-top: 22px; }
.stats { gap: 18px; }
.stats div { gap: var(--s-4); padding: 26px var(--s-6); }
.how { padding: var(--sec) 0 var(--sec-s); }
.steps { gap: var(--s-6); margin-top: var(--s-8); }
.steps li { padding: var(--s-6) 0 0; }
.idea { gap: 44px; margin-top: calc(var(--sec) - var(--s-5)); padding: var(--s-7) 56px; }
.org { padding: var(--sec) 0 var(--sec-s); }
.org__in { gap: 28px; }
.foot__partners { padding: var(--s-8) 0 76px; }

@media (max-width: 720px) {
  .feats { padding-bottom: var(--sec-s); }
  .explorer { height: calc(100dvh - var(--top) - var(--s-3)); min-height: 560px; border-radius: var(--r-xl); }
  .explorer.is-full { min-height: 0; border-radius: 0; }
  .mapbtns { top: var(--s-4); right: var(--s-4); }
  .sheet { inset: auto 0 0 0; width: auto; }
  .faq summary { padding: 22px 20px; }
  .faq__body { padding: 0 20px 26px; }
  .faq__icon { width: 38px; height: 38px; }
  .about__in { grid-template-columns: 1fr; gap: var(--s-6); }
  .about { padding-bottom: calc(var(--sec) + var(--s-5)); }
  .stats div { padding: 20px 22px; }
  .steps { grid-template-columns: 1fr; gap: 20px; }
  .steps li { padding: var(--s-5) 0 0; }
  .steps li > :not(.pic) { padding-inline: var(--s-5); }
  .idea { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px var(--s-5); }
  .org__in { gap: 18px; }
  .foot__partners { padding: 44px 0 52px; }
  .sheet__title { font-size: 22px; }
  .tools { padding: var(--s-2) var(--s-4) var(--s-3); gap: var(--s-3); }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--s-4)); padding-inline: var(--s-4); scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .chips::-webkit-scrollbar { display: none; }
  #fulltxt { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
.steps li > p { text-wrap: pretty; }

/* ---- motion: hero comes alive on its own (clouds drift, sun breathes), sections reveal on scroll ---- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes drift-a { from { transform: translateX(-80px); } to { transform: translateX(110px); } }
  @keyframes drift-b { from { transform: translateX(90px); } to { transform: translateX(-120px); } }
  @keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
  .hero__cloud3 { animation: drift-a 22s ease-in-out infinite alternate; }
  .hero__c1 { animation: drift-b 30s ease-in-out infinite alternate; }
  @keyframes sunrise { from { transform: translateY(55%); } to { transform: translateY(0); } }
  .hero__sun { transform-origin: 50% 60%; animation: sunrise 3.2s cubic-bezier(.2, .7, .2, 1) both, breathe 9s ease-in-out 3.2s infinite; }   /* rises from behind the hills, then breathes */
  /* footer sun: waits behind the hills, rises when the footer scrolls into view, then breathes */
  .foot__sun { will-change: transform; }   /* sunset is scroll-driven from motion.js */
  @keyframes sunrise-f { from { transform: translateY(70%); } to { transform: translateY(0); } }
  /* reveal: only hidden once motion.js has run, so nothing is lost without JS */
  .rv-on .rv { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 110ms); }
  .rv-on .rv.is-in { opacity: 1; translate: 0 0; }
}

/* ---- English version: a "?" set like a ® mark + small note about the project (shown only when <html lang="en">) ---- */
.hero__title { position: relative; }
.note { visibility: hidden; }   /* keeps its space in Polish too, so switching language does not shift the title */
html[lang="en"] .note { visibility: visible; }
.note__btn { display: inline-flex; align-items: center; justify-content: center; width: max(22px, calc(var(--fs-h1) * .36)); height: max(22px, calc(var(--fs-h1) * .36)); margin-left: 6px; vertical-align: calc(var(--fs-h1) * .4); padding: 0; border: 0; border-radius: 50%; background: var(--teal); color: var(--white); font: 500 14px/1 Rubik, system-ui, sans-serif; letter-spacing: 0; cursor: pointer; transition: background .15s; }
.note__btn:hover, .note__btn[aria-expanded="true"] { background: var(--text); }
.note__pop { position: absolute; left: 0; top: 100%; z-index: 6; margin-top: 4px; width: min(460px, 100%); padding: var(--s-4) var(--s-5); border-radius: var(--r); background: var(--white); box-shadow: var(--sh-ctl); font-size: 15px; line-height: 1.5; font-weight: 400; letter-spacing: 0; color: var(--text); }
.note__pop[hidden] { display: none; }
.note__pop a { display: block; width: fit-content; margin-top: var(--s-2); color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.note__pop a:hover { color: var(--ink); }



/* the shared cloud lives in each card, behind the text and the picture */
.steps li { position: relative; }

.steps li > :not(.pic__cloud) { position: relative; z-index: 1; }

/* ---- more life: pins pop in, dots appear, list cards stagger and lift ---- */
.card { transition: background .15s, translate .2s ease, box-shadow .2s ease; }
@media (prefers-reduced-motion: no-preference) {
  .rv-on .about__art .dot { opacity: 0; scale: .2; transform-box: fill-box; transform-origin: 50% 50%; }
  .rv-on .about__art .dot { transition: opacity .3s ease, scale .3s ease; }
  .rv-on .about__art .dot.on { opacity: 1; scale: 1; }
  @keyframes cardin { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
  .card { animation: cardin .4s ease both; }
  .card:nth-child(1) { animation-delay: 0s; } .card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; }
  .card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; } .card:nth-child(6) { animation-delay: .20s; }
  .card:nth-child(7) { animation-delay: .24s; } .card:nth-child(8) { animation-delay: .28s; }
}
.card:hover, .card.is-hot { translate: 0 -2px; box-shadow: 0 4px 12px rgb(0 40 50 / .12); }



/* About: numbers on the left, the description on the right (no illustration here any more) */
.about__in { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 720px) { .about__in { grid-template-columns: 1fr; } .about .stats { order: 0; } }

/* About stats: number over label, one clear typographic hierarchy */
.stats div { display: block; padding: 24px var(--s-6) 22px; }
.stats dt { min-width: 0; font-size: clamp(38px, 3.6vw, 48px); font-weight: 600; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.stats dd { margin: 10px 0 0; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .72; line-height: 1.3; }
@media (max-width: 720px) { .stats dt { font-size: 36px; } }

/* English note about the name: a small card with the wordplay laid out, not a paragraph */
.note__pop { width: min(400px, 100%); padding: var(--s-5) var(--s-6) var(--s-5); border-radius: 20px; box-shadow: 0 18px 40px -12px rgb(16 40 40 / .28), 0 2px 6px rgb(16 40 40 / .08); }
.note__eye { margin: 0 0 var(--s-3); font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.note__pair { display: flex; align-items: center; gap: var(--s-4); padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid rgb(0 0 0 / .08); color: var(--muted); }
.note__pair b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.note__pair mark { background: none; color: var(--teal); font-weight: 600; }
.note__pair span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.note__pair svg { flex: none; }
.note__p { margin: 0; font-size: 15px; line-height: 1.55; text-wrap: pretty; }
@media (max-width: 480px) { .note__pair b { font-size: 18px; } }
.hero .lead { text-wrap: balance; }

/* clear search (x) and clear filters (link next to the count) */
.search .search__x { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgb(0 0 0 / .07); color: var(--text); cursor: pointer; }
.search .search__x[hidden] { display: none; }
.search .search__x:hover { background: rgb(0 0 0 / .14); }
.count__x { padding: 0; border: 0; background: none; font: inherit; color: var(--teal); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.count__x:hover { color: var(--ink); }
.tools__row { flex-wrap: wrap; row-gap: var(--s-2); }
.tools__row .count { flex: 1 0 100%; overflow: visible; text-overflow: clip; }
.tools__row .seg { margin-right: auto; }

@media (min-width: 721px) { html[lang="en"] .hero__text .lead { max-width: 29em; } }

/* the two clouds float above the cards (between the text and the figures) */
.steps { position: relative; }
.steps__sky { position: absolute; inset: 0; z-index: 0; overflow: visible; pointer-events: none; }
.steps__sky img { position: absolute; left: 0; top: 0; height: auto; will-change: transform; }
.steps.has-sky li { background: transparent; }
.steps__bg { position: absolute; background: #d4ecff; border-radius: var(--r-lg); }
.logos a { display: inline-flex; opacity: 1; transition: opacity .15s, transform .15s; }
.logos a:hover { opacity: .75; transform: translateY(-2px); }
.logos a:focus-visible { outline: 2px solid var(--teal); outline-offset: 6px; border-radius: 4px; }
.search .search__x svg { position: static; left: auto; top: auto; translate: none; }
.foot p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.foot p a:hover { text-decoration-thickness: 2px; }

/* "whole Poland" is the top button of the +/- bar */
.leaflet-bar .mbtn { display: grid; place-items: center; width: 38px; height: 38px; min-height: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--white); color: var(--ink); box-shadow: none; cursor: pointer; }
.leaflet-bar .mbtn:hover { background: var(--cream); color: var(--ink); }

/* ---- phones: filters and sorting behind one "Filters" button; buttons in the hero stacked; no clouds over the steps ---- */
.fbtn { display: none; }
@media (max-width: 720px) {
  .tools { grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; column-gap: var(--s-3); }
  .tools .count { order: 1; } .tools .rnd { order: 2; } .tools > .chips { order: 3; } .tools .seg { order: 4; }
  .tools > .sheet__title, .tools > .search, .tools > .chips, .tools .seg { grid-column: 1 / -1; }
  .tools__row { display: contents; }
  .tools .count { flex: none; white-space: normal; line-height: 1.35; }   /* room for "· Show fewer" next to the count */
  .tools .seg { justify-self: start; }
  .tools:not(.is-open) .chips, .tools:not(.is-open) .seg { display: none; }
  .tools.is-open .chips { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; -webkit-mask-image: none; mask-image: none; }
  .fbtn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: var(--r-sm); background: var(--cream); color: var(--ink); font-size: 14px; font-weight: 500; }
  .fbtn:hover { background: var(--cream-d); }
  .fbtn[aria-expanded="true"] { background: var(--teal); color: var(--white); }
  .fbtn__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
  .fbtn__dot[hidden] { display: none; }

  .hero { height: calc(var(--hill) * .72 + 390px); }
  .hero__cta { display: grid; justify-content: start; }

  .steps__sky img { display: none; }
  .steps { margin-top: var(--s-5); }
}

/* ---- phones: one scroll. The map is a strip that opens full screen on a tap, the list is part of
   the page (first 20, then "show all"), search and filters stick under the header ---- */
.map-cover, .more { display: none; }
@media (max-width: 720px) {
  .explorer:not(.is-full) { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; }
  .explorer:not(.is-full) #map { position: relative; inset: auto; flex: none; height: 230px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
  .explorer:not(.is-full) .map-cover { display: block; position: absolute; top: 0; left: 0; right: 0; height: 230px; z-index: 1000; padding: 0; border: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: transparent; cursor: pointer; }
  .explorer:not(.is-full) .sheet, .explorer:not(.is-full) .sheet[data-snap] { position: relative; inset: auto; height: auto !important; border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: none; overflow: visible; transition: none; }
  .explorer:not(.is-full) .sheet__grab { display: none; }
  .explorer:not(.is-full) .sheet__list, .explorer:not(.is-full) .cards { flex: none; min-height: 0; overflow: visible; }
  .explorer:not(.is-full) .tools { position: sticky; top: calc(var(--top) - var(--stick, 0px)); z-index: 5; background: var(--white); border-radius: 0; }
  .explorer:not(.is-full) .more { display: block; width: 100%; height: 48px; margin: 8px 0 6px; border: 0; border-radius: var(--r-sm); background: var(--cream); color: var(--ink); font-size: 15px; font-weight: 500; }
  .explorer:not(.is-full) .more:hover { background: var(--cream-d); }
  /* the top bar scrolls away with the page: phones need the room */
  .top { position: absolute; left: 0; right: 0; }
  html { scroll-padding-top: 8px; }
  .hero { margin-top: 0; }
  .explorer:not(.is-full) .tools { top: calc(-1 * var(--stick, 0px)); }
  /* back to the short list: stays at the bottom of the screen while you're in the long list */
  .explorer:not(.is-full) .cards li:has(> [data-less]) { position: sticky; bottom: 12px; z-index: 4; }
  .explorer:not(.is-full) .more[data-less] { background: var(--teal); color: var(--white); box-shadow: 0 6px 20px rgb(0 0 0 / .18); }
  .explorer:not(.is-full) .more[data-less]:hover { background: var(--text); }
}

/* the stat cards slide in on scroll (parallax, motion.js) */
.stats > div { will-change: transform; }
