/* ============================================================
   Selekciaki — strona główna, redesign „Atlas edukacji" v1.1
   Plik niezależny: własny reset + @font-face. NIE ładujemy
   style.css ani script.js starej strony.
   Zakres: body.home (wszystkie klasy z prefiksem home-).
   ============================================================ */

/* ---------- Fonty lokalne (te same pliki co stara strona) ---------- */
@font-face{
  font-family:'Cabinet Grotesk';
  src:url('assets/fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
  font-weight:800;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Satoshi';
  src:url('assets/fonts/Satoshi-Regular.woff2') format('woff2');
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:'Satoshi';
  src:url('assets/fonts/Satoshi-Bold.woff2') format('woff2');
  font-weight:700;font-style:normal;font-display:swap;
}

/* ---------- Minimalny reset ---------- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.home{margin:0}
:where(body.home) :is(h1,h2,h3,h4,h5,p,figure,ul,ol,dl,dd){margin:0}
:where(body.home) :is(ul,ol){padding:0;list-style:none}
:where(body.home) :is(img,svg,iframe){display:block;max-width:100%}
:where(body.home) a{color:inherit;text-decoration:none}
:where(body.home) :is(button,select,input){font:inherit;color:inherit}
:where(body.home) button{cursor:pointer;background:none;border:0;padding:0}

/* ---------- Tokeny ---------- */
body.home{
  --home-ink:#193d30;
  --home-muted:#53675a;
  --home-paper:#f5f4ec;
  --home-sage:#e5ecdf;
  --home-forest:#153b2d;
  --home-cinema:#15362b;
  --home-on-dark:#f3f5e9;
  --home-lime:#d5f18a;
  --home-line:#d6ddcf;
  --home-radius-card:16px;
  --home-radius-panel:20px;

  --home-space-1:8px;
  --home-space-2:12px;
  --home-space-3:16px;
  --home-space-4:24px;
  --home-space-5:32px;
  --home-space-6:48px;
  --home-space-7:64px;
  --home-space-8:100px;

  --home-header-h:84px;
  /* W01: offset kotwic oddzielony od wysokosci naglowka; JS nadpisuje rzeczywistym pomiarem */
  --home-anchor-offset:calc(var(--home-header-h) + 12px);
  --home-section-gap:var(--home-space-8);
  --home-gutter:50px;

  background:var(--home-paper);
  color:var(--home-ink);
  font-family:'Satoshi',system-ui,Arial,sans-serif;
  font-size:16px;
  line-height:1.6;
}
html{scroll-behavior:smooth}

:where(body.home) :is(h1,h2,h3,.home-display){
  font-family:'Cabinet Grotesk','Satoshi',system-ui,Arial,sans-serif;
  font-weight:800;line-height:1.05;letter-spacing:-.035em;
}
:where(body.home) h1{font-size:clamp(44px,5.65vw,84px)}
:where(body.home) h2{font-size:clamp(34px,4.3vw,62px)}
:where(body.home) h3{font-size:clamp(22px,2vw,30px)}
:where(body.home) em{font-style:normal;color:#4f7342}
:where(body.home) p{color:var(--home-muted)}

/* ---------- Pomocnicze ---------- */
.home-wrap{width:min(1250px,calc(100% - 2*var(--home-gutter)));margin-inline:auto}
.home-section{padding-block:var(--home-section-gap)}
.home-sr-only{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;
}
/* Kotwica zgodności — pusty element, bez display:none */
.home-anchor{display:block;height:0;overflow:hidden}
body.home [id]{scroll-margin-top:var(--home-anchor-offset)}

.home-eyebrow{
  display:block;font-size:12px;font-weight:700;letter-spacing:.14em;
  text-transform:uppercase;margin-bottom:var(--home-space-4);color:var(--home-muted);
}
.home-paper{
  background-color:var(--home-paper);
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2364774c' opacity='.07' filter='url(%23n)' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}

/* Focus — kontrast ≥3:1 na jasnym i ciemnym tle */
:where(body.home) :is(a,button,select,[tabindex]):focus-visible{
  outline:3px solid #8f4c00;outline-offset:4px;border-radius:4px;
}
:where(.home-hero,.home-cinema) :is(a,button,select):focus-visible{outline-color:#ffd44d}

.home-skip{
  position:absolute;left:12px;top:-80px;z-index:100;
  background:var(--home-lime);color:#1d3a2a;font-weight:700;font-size:14px;
  padding:12px 18px;border-radius:8px;transition:top .18s;
}
.home-skip:focus{top:12px}

/* ---------- Przyciski ---------- */
.home-btn{
  display:inline-flex;align-items:center;justify-content:space-between;gap:var(--home-space-5);
  padding:15px 22px;border-radius:8px;font-size:14px;font-weight:700;
  min-height:48px;transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}
.home-btn:hover{transform:translateY(-3px)}
.home-btn--lime{background:var(--home-lime);color:#1b3a28}
.home-btn--dark{background:#1b4131;color:var(--home-on-dark)}

/* ============================================================
   NAGŁÓWEK
   ============================================================ */
.home-header{
  position:sticky;top:0;z-index:40;
  min-height:var(--home-header-h);
  display:flex;align-items:center;justify-content:space-between;gap:var(--home-space-4);
  padding:12px var(--home-gutter);
  background:rgba(245,244,236,.96);
  backdrop-filter:blur(6px);
  border-bottom:1px solid var(--home-line);
}
.home-brand{display:flex;align-items:center;gap:12px;min-height:44px}
.home-brand img{width:36px;height:35px;object-fit:contain}
.home-brand b{display:block;font-weight:700;letter-spacing:.08em;font-size:18px;line-height:1.1}
.home-brand small{display:block;font-size:12px;font-weight:400;letter-spacing:.02em;margin-top:4px;color:var(--home-muted)}
.home-nav{display:flex;align-items:center;gap:var(--home-space-5);flex-wrap:wrap}
.home-nav a{font-size:14px;font-weight:700;padding:10px 8px;margin-inline:-8px;min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
.home-nav a:hover{color:#456a2c}
/* M02: przycisk menu — widoczny tylko poniżej 700 px i tylko z JS */
.home-menu-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:10px;border:1px solid var(--home-line);background:#fff;flex:none}
.home-menu-btn__bars{display:grid;gap:5px;width:22px}
.home-menu-btn__bars i{display:block;height:2px;border-radius:2px;background:var(--home-ink);transition:transform .2s ease,opacity .2s ease}
.home-menu-btn[aria-expanded="true"] .home-menu-btn__bars i:nth-child(1){transform:translateY(7px) rotate(45deg)}
.home-menu-btn[aria-expanded="true"] .home-menu-btn__bars i:nth-child(2){opacity:0}
.home-menu-btn[aria-expanded="true"] .home-menu-btn__bars i:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* ============================================================
   1. HERO
   ============================================================ */
.home-hero{
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--home-forest);color:var(--home-on-dark);
}
.home-hero::after{
  content:'';position:absolute;inset:0;z-index:-2;
  background-image:radial-gradient(rgba(214,235,173,.1) .7px,transparent .7px);
  background-size:8px 8px;
}
.home-hero__rings{
  position:absolute;width:950px;height:950px;border-radius:50%;
  border:1px solid rgba(155,183,134,.13);left:52%;top:-140px;z-index:-1;
  box-shadow:0 0 0 90px rgba(155,183,134,.04),0 0 0 180px rgba(155,183,134,.03);
  background:radial-gradient(ellipse,rgba(141,170,66,.19),transparent 67%);
  pointer-events:none;will-change:transform;
}
.home-hero__inner{
  display:grid;grid-template-columns:1fr 1fr;align-items:center;
  gap:var(--home-space-6);padding-block:var(--home-space-6) var(--home-space-7);
  min-height:640px;
}
.home-hero__copy{position:relative;z-index:3}
.home-hero .home-eyebrow{display:flex;align-items:center;gap:9px;color:#cbd9bb;font-size:12px}
.home-hero .home-eyebrow i{width:7px;height:7px;background:#d1ef92;border-radius:50%;flex:none}
.home-hero h1 em{color:#dcf2a3}
.home-hero__copy p{margin-top:var(--home-space-4);color:#d3e0cf;font-size:17px;line-height:1.7;max-width:34em}
.home-hero__copy .home-btn{margin-top:var(--home-space-5)}
.home-hero__note{display:block;font-size:13px;color:#b9cbb3;margin-top:var(--home-space-3)}
.home-hero__art{position:relative;width:100%;padding-inline:var(--home-space-4);display:flex;flex-direction:column;align-items:center}
.home-hero__parallax{width:100%;will-change:transform}
.home-hero__arc{width:78%;margin:0 auto var(--home-space-2);height:auto}

.home-hero__bottom{
  border-top:1px solid rgba(160,184,144,.25);
  display:flex;justify-content:space-between;align-items:center;gap:var(--home-space-4);
  padding-block:20px;font-size:12px;letter-spacing:.06em;color:#c6d4bc;
}
.home-hero__bottom a{display:inline-flex;gap:18px;align-items:center;min-height:44px}

/* ---------- Interaktywny znak (6 warstw) ---------- */
.home-sign{position:relative;width:min(100%,460px);margin-inline:auto;aspect-ratio:689/661;
  /* M01: delikatne unoszenie całej bryły (wzorzec startFloat ze starej strony) — jedna transformacja na kontenerze */
  --home-float-y:-9px;
  animation:home-sign-float 3.8s ease-in-out infinite alternate;will-change:transform}
@keyframes home-sign-float{
  from{transform:translate3d(0,0,0) rotate(0deg)}
  to{transform:translate3d(.5px,var(--home-float-y),0) rotate(.45deg)}
}
/* cel nie ucieka spod kursora, focusu ani palca */
.home-sign:hover,.home-sign:focus-within,.home-sign.is-armed{animation-play-state:paused}
.home-sign__layer{
  position:absolute;left:.1%;top:.4%;width:99.4%;height:99.5%;
  object-fit:contain;pointer-events:none;z-index:1;
  transition:transform .3s cubic-bezier(.34,1.4,.64,1),opacity .24s ease,filter .3s ease;
}
/* transform-origin przeniesiony 1:1 ze starej strony */
#home-layer-leaf-1{transform-origin:50% 50%}
#home-layer-arm-1{transform-origin:57.8% 49.9%;z-index:3}
#home-layer-arm-2{transform-origin:74.6% 75.3%;z-index:3}
#home-layer-arm-3{transform-origin:26.6% 71.2%;z-index:3}
#home-layer-leaf-2{transform-origin:70.7% 17.5%}
#home-layer-leaf-3{transform-origin:70.1% 86.6%}

.home-sign__layer.is-active{transform:scale(1.18);filter:brightness(1.3) saturate(1.4);z-index:6}
.home-sign__layer.is-dimmed{opacity:.42}

/* Strefy trafienia — geometria procentowa 1:1 ze starej strony */
.home-sign__zone{
  position:absolute;z-index:5;display:block;border-radius:12px;
  touch-action:pan-y;-webkit-tap-highlight-color:transparent;
}
#home-zone-leaf-1{left:.1%;top:.4%;width:99.4%;height:99.5%;z-index:1}
#home-zone-arm-1{left:34.8%;top:17.4%;width:46%;height:65%}
#home-zone-arm-2{left:55.9%;top:55.3%;width:37.4%;height:40%}
#home-zone-arm-3{left:10.3%;top:47.2%;width:32.5%;height:48%}
#home-zone-leaf-2{left:56.1%;top:0;width:29.2%;height:35%}
#home-zone-leaf-3{left:40.2%;top:73.6%;width:59.8%;height:26%}

.home-sign__readout{
  min-height:58px;margin-top:var(--home-space-4);
  display:flex;align-items:center;justify-content:center;gap:var(--home-space-2);
  flex-wrap:wrap;text-align:center;
}
.home-sign__name{
  font-weight:700;font-size:15px;color:#eaf4d8;
  padding:9px 16px;border-radius:30px;background:rgba(32,71,50,.95);
  border:1px solid rgba(157,181,140,.5);opacity:0;transition:opacity .2s;
}
.home-sign__name.is-visible{opacity:1}
.home-sign__go{
  display:none;align-items:center;gap:8px;min-height:44px;padding:10px 18px;
  border-radius:30px;background:var(--home-lime);color:#1b3a28;font-weight:700;font-size:14px;
}
.home-sign__go.is-visible{display:inline-flex}
.home-sign__caption{font-size:13px;color:#b7cdae;text-align:center;margin-top:var(--home-space-2);max-width:34em}

/* ============================================================
   2. ŚCIEŻKI
   ============================================================ */
.home-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--home-space-5);margin-bottom:var(--home-space-6)}
.home-heading>p{font-size:15px;line-height:1.75;max-width:30em}
.home-paths__grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.home-path{
  position:relative;overflow:hidden;border-radius:var(--home-radius-card);
  min-height:450px;padding:24px 22px 0;display:flex;flex-direction:column;color:#1e3b2c;
  transition:transform .3s ease,box-shadow .3s ease;
}
.home-path:hover{transform:translateY(-7px);box-shadow:0 15px 30px rgba(33,54,41,.12)}
.home-path--kids{background:#e5eacb}
.home-path--45{background:#ecdcc4}
.home-path--67{background:#e0deed}
.home-path--mieszkancy{background:#dbe7df}
.home-path__top{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;margin-bottom:var(--home-space-4)}
.home-path__kicker{font-size:12px;letter-spacing:.06em;font-weight:700;text-transform:uppercase;line-height:1.35}
.home-arrow{
  flex:none;width:32px;height:32px;display:grid;place-items:center;
  border:1px solid rgba(25,61,48,.34);border-radius:50%;font-size:18px;line-height:1;
}
.home-path h3{font-size:clamp(24px,2.1vw,29px)}
.home-path p{font-size:13.5px;margin-top:var(--home-space-2);line-height:1.6;color:#44564a}
.home-path__badge{
  display:inline-block;margin-top:var(--home-space-2);font-size:12px;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;padding:5px 10px;border-radius:20px;
  border:1px solid rgba(70,92,63,.45);color:#44583f;
}
.home-path__pic{height:195px;margin:var(--home-space-2) -10px 0;display:flex;justify-content:center;align-items:flex-end;flex:1}
.home-path__pic img{max-height:195px;width:auto;object-fit:contain;object-position:bottom;transition:transform .5s ease}
.home-path:hover .home-path__pic img{transform:scale(1.05) rotate(-2deg)}
.home-path__link{
  position:relative;z-index:1;display:flex;justify-content:space-between;align-items:center;
  font-size:13px;font-weight:700;border-top:1px solid rgba(27,59,48,.18);
  padding:16px 0;margin-top:var(--home-space-1);min-height:48px;
}

/* ============================================================
   3. WIEDZA
   ============================================================ */
.home-knowledge{background:var(--home-sage)}
.home-knowledge__grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px;align-items:start}
.home-sort{
  grid-row:span 2;background:#f7f9f0;border-radius:var(--home-radius-card);
  padding:30px;display:flex;flex-direction:column;gap:var(--home-space-3);
}
.home-pill{
  display:inline-block;font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;
  border:1px solid rgba(70,92,63,.35);padding:5px 10px;border-radius:20px;
}
.home-sort h3{font-size:clamp(26px,2.4vw,34px);margin-top:var(--home-space-2)}
.home-sort__lead{font-size:14px;margin-top:var(--home-space-2)}
.home-bins{display:flex;justify-content:center;gap:6px;margin-top:var(--home-space-2)}
.home-bin{
  width:20%;min-width:44px;min-height:44px;display:flex;flex-direction:column;align-items:center;
  justify-content:flex-end;padding:6px 2px 10px;border-radius:12px;color:#3c5239;
  border:1px solid transparent;transition:background .2s ease,border-color .2s ease;
}
.home-bin img{
  height:124px;width:auto;object-fit:contain;filter:saturate(.85);
  transition:transform .22s cubic-bezier(.3,1.2,.5,1),filter .22s ease;
}
.home-bin:hover img,.home-bin:focus-visible img{
  transform:translateY(-6px) scale(1.04);
  filter:saturate(1.1) drop-shadow(0 10px 9px rgba(34,49,33,.18));
}
.home-bin[aria-pressed="true"] img{
  transform:translateY(-6px) scale(1.04);
  filter:saturate(1.12) drop-shadow(0 10px 9px rgba(34,49,33,.22));
}
.home-bin[aria-pressed="true"]{background:#e6ecd6;border-color:#7d9464}
.home-bin span{font-size:12px;line-height:1.2;margin-top:10px;text-align:center;min-height:2.4em}
.home-bin__mark{display:block;font-size:12px;font-weight:700;color:#3f6a26;min-height:1.3em}

.home-bin-answer{
  display:flex;align-items:center;gap:var(--home-space-2);flex-wrap:wrap;
  padding-top:var(--home-space-3);border-top:1px solid #d8dece;
}
.home-bin-answer__dot{width:14px;height:14px;border-radius:50%;flex:none;background:#edc545;border:1px solid rgba(0,0,0,.25)}
.home-bin-answer strong{font-size:14px;display:block}
.home-bin-answer p{font-size:12.5px}
.home-bin-toggle{
  margin-left:auto;font-size:13px;font-weight:700;min-height:44px;padding:8px 14px;
  border:1px solid var(--home-line);border-radius:8px;background:#fff;
}
.home-bin-detail{
  display:grid;grid-template-columns:1fr 1fr;gap:var(--home-space-3);
  padding-top:var(--home-space-3);border-top:1px solid #e2e7d8;
}
.home-bin-detail h4{font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin-bottom:8px}
.home-bin-detail ul{display:flex;flex-direction:column;gap:5px}
.home-bin-detail li{font-size:12.5px;color:var(--home-muted);padding-left:16px;position:relative;line-height:1.45}
.home-bin-detail li::before{position:absolute;left:0;top:0;font-weight:700}
.home-bin-detail__ok li::before{content:'+';color:#2f6a2b}
.home-bin-detail__no li::before{content:'–';color:#9c3a28}

.home-topic{
  border-radius:var(--home-radius-card);display:flex;align-items:center;position:relative;
  overflow:hidden;padding:26px 28px;min-height:225px;transition:transform .3s ease;
}
.home-topic:hover{transform:translateY(-4px)}
.home-topic>div{width:58%;position:relative;z-index:2}
.home-topic img{position:absolute;right:-2%;bottom:0;width:48%;max-height:200px;object-fit:contain;object-position:bottom right}
.home-topic--pszok{background:#d3dfc4}
.home-topic--olej{background:#f0dfb3}
.home-topic--olej img{width:38%;right:4%}
.home-topic .home-eyebrow{font-size:12px;margin-bottom:10px;color:#3e5140}
.home-textlink{display:inline-block;font-weight:700;font-size:13px;margin-top:var(--home-space-3)}

.home-goz{
  margin-top:20px;display:flex;align-items:center;gap:var(--home-space-6);
  padding:26px 45px 26px 26px;border:1px solid #bdcdb6;border-radius:var(--home-radius-card);
  background:#dce8d4;transition:transform .3s ease;
}
.home-goz:hover{transform:translateY(-4px)}
.home-goz>img{width:200px;height:170px;object-fit:contain;flex:none}
.home-goz h3{font-size:clamp(26px,2.6vw,35px)}
.home-goz p{margin-top:12px;font-size:13.5px}
.home-goz .home-arrow{margin-left:auto;width:46px;height:46px;font-size:22px}
.home-klimat{
  display:inline-flex;align-items:center;gap:10px;margin-top:var(--home-space-3);
  font-size:14px;font-weight:700;min-height:44px;text-decoration:underline;text-underline-offset:4px;
}
.home-klimat small{font-weight:400;font-size:13px;color:var(--home-muted);text-decoration:none}

/* ============================================================
   4. FILMY
   ============================================================ */
.home-cinema{
  position:relative;overflow:hidden;isolation:isolate;
  --film-bg:var(--home-cinema);
  --film-text:var(--home-on-dark);
  --film-muted:#c6d5bc;
  --film-kicker:#bccaab;
  --film-card:#214232;
  --film-border:rgba(173,197,139,.28);
  --film-accent:#d5e79d;
  --film-btn-bg:var(--home-lime);
  --film-btn-ink:#1b3a28;
  --film-tab-on-bg:#d5e79d;
  --film-tab-on-ink:#1d3a2b;
  --film-stage:#0f2a20;
  background:var(--film-bg);color:var(--film-text);
}
.home-cinema[data-home-film-theme="light"]{
  --film-bg:#eff1e3;
  --film-text:#1a3928;
  --film-muted:#4a5f43;
  --film-kicker:#4a5f43;
  --film-card:#f8faf0;
  --film-border:#bfcdb0;
  --film-accent:#3f6a2c;
  --film-btn-bg:#1b4131;
  --film-btn-ink:#f2f6e6;
  --film-tab-on-bg:#1b4131;
  --film-tab-on-ink:#f2f6e6;
  --film-stage:#dfe6cd;
}
.home-cinema h2{color:var(--film-text)}
.home-cinema h2 em{color:var(--film-accent)}
.home-cinema .home-eyebrow{color:var(--film-kicker)}
.home-cinema p{color:var(--film-muted)}
.home-cinema__orbit{
  position:absolute;width:850px;height:850px;border-radius:50%;
  border:1px solid rgba(185,204,131,.11);top:120px;left:-450px;z-index:-1;pointer-events:none;
  box-shadow:0 0 0 90px rgba(185,204,131,.03),0 0 0 180px rgba(185,204,131,.02);
}
.home-cinema[data-home-film-theme="light"] .home-cinema__orbit{border-color:rgba(90,120,60,.18)}

.home-film__tabs{display:flex;gap:5px;border:1px solid var(--film-border);border-radius:50px;padding:5px;flex:none}
.home-film__tabs button{
  padding:11px 20px;border-radius:30px;color:var(--film-muted);font-size:13px;font-weight:700;min-height:44px;
}
.home-film__tabs button[aria-pressed="true"]{background:var(--film-tab-on-bg);color:var(--film-tab-on-ink)}

.home-film__main{display:grid;grid-template-columns:1.25fr 1fr;gap:var(--home-space-6);align-items:center}
.home-film__stage{
  position:relative;aspect-ratio:16/9;border-radius:var(--home-radius-panel);overflow:hidden;
  background:var(--film-stage);border:1px solid var(--film-border);
}
.home-film__cover{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:var(--film-stage)}
.home-film__stage iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.home-film__play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:4;
  width:76px;height:76px;border-radius:50%;
  display:grid;place-items:center;background:rgba(250,251,243,.96);color:#1a3d2c;
  font-size:26px;padding-left:5px;box-shadow:0 4px 26px rgba(0,0,0,.35);
  transition:transform .25s ease;
}
.home-film__play:hover{transform:translate(-50%,-50%) scale(1.1)}

/* Okładka kompozycyjna „drużyna" (rekord intro — brak gotowego pliku okładki) */
.home-film__intro{position:absolute;inset:0;background:#d6e5b0;overflow:hidden}
.home-film__intro::after{
  content:'';position:absolute;inset:0;
  background-image:radial-gradient(rgba(113,139,56,.17) .7px,transparent .7px);background-size:5px 5px;
}
.home-film__intro-orbit{
  position:absolute;width:52%;aspect-ratio:1;border-radius:50%;background:#c3d690;
  top:16%;left:24%;box-shadow:0 0 0 6% rgba(197,215,145,.42);
}
/* W02: obraz wypelnia jawnie wymierzone pole (nie procent nieokreslonego tracka gridu) */
.home-film__intro-figure{position:absolute;left:8%;right:8%;top:13%;bottom:15%;z-index:2}
.home-film__intro-figure img{width:100%;height:100%;object-fit:contain;object-position:bottom center}
.home-film__intro-label{
  position:absolute;left:22px;top:16px;z-index:3;display:flex;align-items:center;gap:12px;
  font-size:14px;letter-spacing:.14em;font-weight:700;color:#2b4e33;
}
.home-film__intro-label span{font-size:12px;letter-spacing:.12em;border-left:1px solid rgba(70,95,55,.5);padding-left:12px}
.home-film__intro-foot{
  position:absolute;inset:auto 0 0 0;z-index:3;text-align:center;letter-spacing:.18em;
  font-size:12px;font-weight:700;background:rgba(217,230,188,.95);color:#27452e;padding:10px;
}

.home-film__copy{display:flex;flex-direction:column;align-items:flex-start}
.home-film__kicker{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--film-kicker);margin-bottom:var(--home-space-3)}
.home-film__kicker i{width:6px;height:6px;border-radius:50%;background:var(--film-accent);flex:none}
.home-film__copy h3{font-size:clamp(28px,3.4vw,46px);color:var(--film-text)}
.home-film__copy p{margin-top:var(--home-space-2);font-size:14.5px;line-height:1.75}
.home-film__watch{
  margin-top:var(--home-space-4);display:inline-flex;align-items:center;gap:14px;
  background:var(--film-btn-bg);color:var(--film-btn-ink);font-size:14px;font-weight:700;
  padding:14px 20px;border-radius:8px;min-height:48px;
}
.home-film__external{
  margin-top:var(--home-space-2);font-size:12.5px;color:var(--film-muted);
  text-decoration:underline;text-underline-offset:3px;min-height:44px;display:inline-flex;align-items:center;
}

.home-film__listbar{display:flex;align-items:center;justify-content:space-between;gap:var(--home-space-3);margin:var(--home-space-6) 0 var(--home-space-3)}
.home-film__listbar h4{font-size:19px;font-family:'Cabinet Grotesk','Satoshi',sans-serif;font-weight:800;letter-spacing:-.02em}
.home-film__nav{display:flex;gap:8px}
.home-film__nav button{
  width:46px;height:46px;border-radius:50%;border:1px solid var(--film-border);
  display:grid;place-items:center;color:var(--film-text);font-size:18px;
}
.home-film__nav button[disabled]{opacity:.35;cursor:default}
.home-film__list{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);gap:20px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;
  padding-bottom:6px;scrollbar-width:thin;
}
.home-film__card{
  scroll-snap-align:start;text-align:left;border-radius:12px;overflow:hidden;
  background:var(--film-card);border:1px solid var(--film-border);
  transition:transform .25s ease,border-color .2s ease,box-shadow .2s ease;display:flex;flex-direction:column;
}
.home-film__card:hover{transform:translateY(-4px)}
.home-film__card[aria-pressed="true"]{border-color:var(--film-accent);box-shadow:0 0 0 2px var(--film-accent)}
.home-film__thumb{position:relative;aspect-ratio:16/9;background:var(--film-stage);overflow:hidden}
.home-film__thumb img{width:100%;height:100%;object-fit:cover}
.home-film__card-body{padding:14px 16px 18px}
.home-film__card-kicker{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--film-kicker)}
.home-film__card-title{display:block;margin:7px 0 0;font-family:'Cabinet Grotesk','Satoshi',sans-serif;font-weight:800;font-size:20px;letter-spacing:-.02em;color:var(--film-text);line-height:1.15}
.home-film__card-desc{display:block;font-size:12px;margin-top:6px;line-height:1.5;color:var(--film-muted)}
.home-film__empty,.home-film__adults{
  border:1px solid var(--film-border);border-radius:var(--home-radius-panel);padding:var(--home-space-5);
}
.home-film__adults{display:grid;grid-template-columns:1fr 1.2fr;gap:var(--home-space-6);align-items:center}
.home-film__adults img{width:100%;max-height:260px;object-fit:contain}
.home-film__adults h3{font-size:clamp(26px,3vw,40px);color:var(--film-text)}
.home-film__adults p{margin:var(--home-space-3) 0 var(--home-space-4)}
.home-film__adults .home-pill{color:var(--film-muted);border-color:var(--film-border)}
body.home [hidden]{display:none!important}

/* ============================================================
   5. O ZWIĄZKU + MAPA
   ============================================================ */
.home-about__grid{display:grid;grid-template-columns:1.05fr 1fr;gap:var(--home-space-7);align-items:center}
.home-map{
  position:relative;width:100%;aspect-ratio:4169/3321;
  touch-action:pan-y;isolation:isolate;
}
.home-map__disc{
  position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);
  width:70%;aspect-ratio:1;background:#e0e8d5;border-radius:50%;
  outline:1px solid rgba(160,178,140,.55);outline-offset:20px;z-index:-1;
}
.home-gmina{
  position:absolute;left:0;top:0;width:100%;height:100%;
  object-fit:contain;object-position:center;pointer-events:none;
  transform-origin:center center;
  transition:opacity .2s ease,filter .2s ease,transform .26s cubic-bezier(.34,1.5,.64,1);
}
.home-gmina.is-dimmed{opacity:.72;filter:brightness(.86) saturate(.85)}
.home-gmina.is-active{
  opacity:1;z-index:5;transform:translateY(-5px) scale(1.14);
  filter:brightness(1.4) saturate(1.28)
         drop-shadow(0 14px 22px rgba(0,0,0,.4)) drop-shadow(0 4px 8px rgba(0,0,0,.22));
}
.home-map__tooltip{
  position:absolute;z-index:9;pointer-events:none;width:250px;
  background:#16352a;color:#eef3e2;border-radius:12px;padding:12px 14px;
  box-shadow:0 12px 28px rgba(0,0,0,.28);opacity:0;transition:opacity .15s ease;font-size:12.5px;
}
.home-map__tooltip.is-visible{opacity:1}
.home-map__tooltip b{display:block;font-size:14px;margin-bottom:6px}
.home-map__tooltip dt{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:#c2d3b2;margin-top:6px}
.home-map__tooltip dd{margin:2px 0 0}
.home-map__controls{display:flex;flex-wrap:wrap;gap:var(--home-space-2);align-items:flex-end;margin-top:var(--home-space-3)}
.home-map__controls label{display:block;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:6px}
.home-map__controls select{
  min-height:48px;padding:10px 12px;border:1px solid #9aa892;border-radius:8px;
  background:#fff;min-width:250px;max-width:100%;
}
.home-map__clear{min-height:48px;padding:12px 16px;border:1px solid #9aa892;border-radius:8px;font-size:13px;font-weight:700;background:#fff}
.home-map__panel{
  margin-top:var(--home-space-3);background:#fff;border:1px solid var(--home-line);
  border-radius:var(--home-radius-card);padding:18px 20px;
}
.home-map__panel b{display:block;font-size:17px;font-family:'Cabinet Grotesk','Satoshi',sans-serif;font-weight:800;letter-spacing:-.02em}
.home-map__panel dl{margin-top:10px;display:grid;gap:10px}
.home-map__panel dt{font-size:12px;letter-spacing:.09em;text-transform:uppercase;color:var(--home-muted);font-weight:700}
.home-map__panel dd{margin-top:3px;font-size:14px}
.home-map__hint{font-size:12.5px;color:var(--home-muted);margin-top:10px}
.home-about__copy h2{font-size:clamp(30px,3.4vw,48px)}
.home-about__copy p{margin-top:var(--home-space-3);font-size:15px;line-height:1.8}
.home-about__copy .home-btn{margin-top:var(--home-space-4)}

/* ============================================================
   6. ZAKOŃCZENIE + STOPKA
   ============================================================ */
.home-closing{border-block:1px solid #b2c3a4;padding-block:24px;background:#d6e7b9}
.home-closing .home-wrap{display:flex;align-items:center;justify-content:space-between;gap:var(--home-space-4)}
.home-closing span{font-family:'Cabinet Grotesk','Satoshi',sans-serif;font-weight:800;font-size:clamp(20px,2.4vw,32px);letter-spacing:-.025em}
.home-closing a{display:grid;place-items:center;flex:none;width:48px;height:48px;border:1px solid #4f6d45;border-radius:50%;font-size:20px}
.home-footer{padding-block:var(--home-space-5);display:flex;align-items:center;justify-content:space-between;gap:var(--home-space-4);flex-wrap:wrap;font-size:13px}
.home-footer p{font-size:13px}
.home-footer__brand{font-size:16px;letter-spacing:.07em;font-weight:700}
.home-footer a{min-height:44px;display:inline-flex;align-items:center}
.home-footer__motion{font-size:12.5px;font-weight:700;text-decoration:underline;text-underline-offset:3px;color:var(--home-muted);min-height:44px}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width:1099px){
  body.home{--home-gutter:32px;--home-section-gap:72px}
  .home-hero__inner{min-height:0;gap:var(--home-space-5)}
  .home-paths__grid{grid-template-columns:repeat(2,1fr)}
  .home-knowledge__grid{grid-template-columns:1fr 1fr}
  .home-sort{grid-column:span 2;grid-row:auto}
  .home-film__main{gap:var(--home-space-5)}
  .home-about__grid{gap:var(--home-space-5)}
  .home-goz{padding:22px;gap:var(--home-space-4)}
  .home-goz>img{width:165px;height:150px}
}
@media (max-width:860px){
  .home-header{flex-wrap:wrap}
  .home-nav{width:100%;gap:var(--home-space-4);justify-content:flex-start}
}
@media (max-width:699px){
  /* W01: nagłówek przewija się z dokumentem — nie zasłania treści po scrollu */
  .home-header{position:static}
  /* M02: jeden rząd — marka + przycisk; panel linków rozwija się w układzie strony */
  .home-js .home-header{min-height:0;padding-block:8px;flex-wrap:wrap;row-gap:0}
  .home-js .home-nav{flex-direction:column;align-items:stretch;gap:0;width:100%;padding:6px 0 10px;border-top:1px solid var(--home-line);margin-top:8px}
  .home-js .home-nav a{justify-content:flex-start;margin-inline:0;padding:12px 4px;min-height:48px;font-size:16px}
  /* M03: bez CTA i podpisu — znak wyżej na pierwszym ekranie */
  .home-hero__copy .home-btn,.home-hero__note{display:none}
  .home-hero__inner{gap:var(--home-space-3)}
  .home-sign{--home-float-y:-6px}
  body.home{--home-gutter:20px;--home-section-gap:52px;--home-anchor-offset:12px}
  .home-hero__inner{display:flex;flex-direction:column;align-items:stretch;padding-block:var(--home-space-4) var(--home-space-5)}
  .home-hero__art{order:2;padding-inline:0}
  .home-sign{width:min(100%,300px)}
  .home-hero__copy p{font-size:15px}
  .home-hero__bottom{flex-direction:column;align-items:flex-start;gap:10px;font-size:12px}
  .home-heading{flex-direction:column;align-items:flex-start;gap:var(--home-space-3)}
  .home-film__main{display:flex;flex-direction:column;align-items:stretch}
  .home-film__copy{align-items:flex-start}
  .home-film__adults{grid-template-columns:1fr;gap:var(--home-space-4)}
  .home-about__grid{display:flex;flex-direction:column-reverse}
  .home-topic{min-height:240px;padding:22px 18px;align-items:flex-start}
  .home-topic>div{width:100%}
  .home-topic img{width:56%;max-height:135px;right:0}
  .home-goz{flex-wrap:wrap;position:relative;padding:24px 18px}
  .home-goz>img{position:absolute;right:10px;bottom:6px;width:130px;height:115px}
  .home-goz>div{width:100%;max-width:62%}
  .home-goz .home-arrow{position:absolute;right:18px;top:22px;margin:0}
  .home-bin-detail{grid-template-columns:1fr}
  .home-map__controls select{min-width:0;width:100%}
  .home-map__tooltip{display:none}
}
@media (max-width:539px){
  .home-paths__grid{grid-template-columns:1fr}
  .home-path{min-height:360px;padding:22px 18px 0}
  .home-path__pic{height:165px}
  .home-path__pic img{max-height:165px}
  /* W10: karta mieszkańców ma niskie pojemniki — wysokość z treści, bez pustej przerwy */
  .home-path--mieszkancy{min-height:0}
  .home-path--mieszkancy .home-path__pic{height:auto;min-height:0;flex:0 0 auto;margin-top:var(--home-space-4)}
  .home-path--mieszkancy .home-path__pic img{max-height:118px}
  /* W02: wąskie okno filmu — mniejszy play, bez pomocniczego podpisu przy znaku drużyny */
  .home-film__play{width:56px;height:56px;font-size:20px}
  .home-film__intro-label{left:14px;top:11px;font-size:12px;letter-spacing:.1em}
  .home-film__intro-label span{display:none}
  .home-film__intro-foot{font-size:12px;letter-spacing:.1em;padding:7px}
  .home-film__intro-figure{left:5%;right:5%;top:15%;bottom:17%}
  .home-knowledge__grid{grid-template-columns:1fr}
  .home-sort{grid-column:auto;padding:22px 18px}
  .home-bins{gap:3px;margin-inline:-6px}
  .home-bin{padding:4px 0 8px}
  .home-bin img{height:86px}
  .home-bin span{font-size:12px}
  .home-bin-toggle{margin-left:0;width:100%}
  .home-film__list{grid-auto-columns:82%;gap:14px}
  .home-closing{padding-block:18px}
  .home-footer p{width:100%;order:3}
}

@media (pointer:coarse){
  .home-sign__zone{min-width:44px;min-height:44px}
}

/* Ograniczenie ruchu */
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  body.home *,body.home *::before,body.home *::after{
    transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important;
  }
  .home-sign__layer.is-active{transform:none;filter:brightness(1.3) saturate(1.4)}
  .home-gmina.is-active{transform:none}
  body.home [data-home-parallax]{transform:none!important}
  .home-sign{animation:none!important;transform:none}
}
body.home.home-no-motion *,body.home.home-no-motion *::before,body.home.home-no-motion *::after{
  transition-duration:.001ms!important;animation-duration:.001ms!important;
}
body.home.home-no-motion .home-sign__layer.is-active{transform:none}
body.home.home-no-motion .home-gmina.is-active{transform:none}
body.home.home-no-motion [data-home-parallax]{transform:none!important}
body.home.home-no-motion .home-sign{animation:none!important;transform:none}
