/* GOPS Bochnia — prototyp. Szkielet i krój pisma z rodziny Gminy Bochnia (Merriweather Sans),
   kolor przewodni: zieleń GOPS, akcent: bursztyn. Tokeny na górze; komponenty w kolejności strony. */

@font-face{font-family:'Merriweather Sans';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/merriweather-sans-400.ttf) format('truetype')}
@font-face{font-family:'Merriweather Sans';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/merriweather-sans-600.ttf) format('truetype')}
@font-face{font-family:'Merriweather Sans';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/merriweather-sans-700.ttf) format('truetype')}
@font-face{font-family:'Merriweather Sans';font-style:normal;font-weight:800;font-display:swap;src:url(fonts/merriweather-sans-800.ttf) format('truetype')}

:root{
  /* powłoka — zieleń GOPS (głębszy odcień zieleni z logo) */
  --brand:#17573b; --brand-deep:#0f4029; --brand-soft:#1f7245; --on-brand:#fff; --on-brand-2:#cbe2d4;
  --brand-ink:#17573b; /* zieleń jako kolor tekstu i linii na jasnym tle */
  /* akcent — bursztyn z żółci herbu gminy */
  --sun:#f5b83d; --sun-strong:#e7a21a; --sun-ink:#7d4a00; --sun-tint:#fdf2d8;
  /* treść — neutralne lekko podbarwione zielenią */
  --paper:#fff; --ink:#1e2a23; --muted:#515e56; --surface:#f1f4f1; --line:#ccd6ce; --link:#15583a;
  /* stany */
  --ok:#1b6436; --ok-tint:#e1f0e5; --off:#515e56; --off-tint:#e8ede9;
  --focus:#b64b00; --focus-on-brand:#ffdf00;
  /* układ */
  --page:1180px; --gutter:1.5rem; --radius:3px; --badge:176px;
  --ease:cubic-bezier(.16,1,.3,1);
  color-scheme:light;
}

*,*::before,*::after{box-sizing:border-box}
html{font-size:100%;-webkit-text-size-adjust:100%}
html[data-font="1"]{font-size:112.5%} html[data-font="2"]{font-size:125%} html[data-font="3"]{font-size:137.5%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Merriweather Sans',system-ui,sans-serif;font-size:1rem;line-height:1.65;caret-color:var(--brand-ink)}
::selection{background:var(--sun);color:var(--brand-deep)}
img,svg{max-width:100%}img{height:auto;display:block}
h1,h2,h3{line-height:1.25;margin:0;text-wrap:balance;overflow-wrap:anywhere}
h1{font-size:clamp(1.75rem,1.2rem + 1.6vw,2.4rem);font-weight:800;letter-spacing:-.01em}
h2{font-size:1.5rem;font-weight:800}
h3{font-size:1.0625rem;font-weight:700;line-height:1.4}
p{margin:0 0 1rem;overflow-wrap:break-word}
a{color:var(--link);text-underline-offset:.2em;text-decoration-thickness:.075em}
a:hover{text-decoration-thickness:.15em}
a[href^="tel:"]{white-space:nowrap}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
ul,ol{margin:0;padding:0}
[hidden]{display:none!important}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px;border-radius:1px}
.on-brand :focus-visible{outline-color:var(--focus-on-brand)}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link{position:fixed;top:-10rem;left:1rem;z-index:1000;padding:.9rem 1.4rem;background:var(--paper);color:var(--brand-deep);font-weight:700}
.skip-link:focus{top:1rem}
.icon{width:1.25rem;height:1.25rem;flex:none}
.wrap{max-width:var(--page);margin-inline:auto;padding-left:var(--gutter);padding-right:var(--gutter)}
.tnum{font-variant-numeric:tabular-nums}
.nb{white-space:nowrap}

/* ---------- przyciski, znaczniki ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:44px;padding:.55rem 1.1rem;border:2px solid var(--brand-ink);border-radius:var(--radius);background:var(--brand);color:var(--on-brand);font-weight:700;text-decoration:none;transition:background-color .2s var(--ease)}
.btn:hover{background:var(--brand-soft);border-color:var(--brand-soft)}
.btn--sun{background:var(--sun);border-color:var(--sun);color:var(--brand-deep)}
.btn--sun:hover{background:var(--sun-strong);border-color:var(--sun-strong)}
.btn--paper{background:var(--paper);border-color:var(--paper);color:var(--brand-ink)}
.btn--paper:hover{background:var(--surface);border-color:var(--surface)}
.btn--line{background:transparent;color:var(--brand-ink)}
.btn--line:hover{background:var(--surface);border-color:var(--brand-ink)}
.more{display:inline-flex;align-items:center;gap:.4rem;min-height:44px;font-weight:700}
.more .icon{width:1.05rem;height:1.05rem;transition:transform .25s var(--ease)}
.more:hover .icon{transform:translateX(4px)}

.status{display:inline-flex;align-items:center;gap:.4rem;padding:.15rem .6rem;border-radius:2px;font-size:.8125rem;font-weight:700;line-height:1.5;white-space:nowrap;background:var(--off-tint);color:var(--off)}
.status::before{content:'';width:.5rem;height:.5rem;border-radius:50%;background:currentColor;flex:none}
.status--open{background:var(--ok-tint);color:var(--ok)}
.status--soon{background:var(--sun-tint);color:var(--sun-ink)}
.status--archive{background:transparent;box-shadow:inset 0 0 0 1px var(--line)}
.status--archive::before{display:none}
/* uwaga robocza: notatka dla GOPS w prototypie. Nie jest statusem i nie trafi do gotowego serwisu. */
.todo{display:inline-block;font-size:.8125rem;line-height:1.5;color:var(--muted)}
.todo b{font-weight:700;color:var(--ink)}
.footer .todo{color:var(--on-brand-2)}
.footer .todo b{color:var(--on-brand)}

/* ---------- pasek narzędzi ---------- */
.utility{position:relative;z-index:40;background:var(--brand);color:var(--on-brand);padding-top:.25rem;padding-bottom:.25rem}
.utility a{color:inherit}
.utility-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:0 1rem;min-height:44px}
.utility-links{display:flex;flex-wrap:wrap;align-items:center;gap:0 1.75rem;list-style:none;font-size:.9375rem;font-weight:600}
.utility-links a{display:flex;align-items:center;gap:.5rem;min-height:44px}
.utility-links img{width:43px;height:19px;object-fit:contain}
.utility-phone{text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.utility-phone:hover{text-decoration:underline}
.tools{display:flex;flex-wrap:wrap;align-items:center;gap:.25rem;margin-left:auto}
.tool{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:0;border-radius:var(--radius);background:transparent;color:inherit;text-decoration:none}
.tool:hover{background:#ffffff1f}
.tool[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor}
.a11y{display:contents}
.a11y-toggle,.tool-label{display:none}
html:not(.js) .tools button{display:none}

/* ---------- nagłówek ---------- */
.header{position:relative;z-index:20;background:var(--paper)}
.header-row{position:relative;display:flex;align-items:flex-start;gap:1.5rem;min-height:80px}
.brand{position:relative;z-index:3;flex:0 0 var(--badge);margin-bottom:-104px;padding:.75rem .9rem 1rem;background:var(--paper);border-radius:0 0 14px 14px;box-shadow:0 14px 22px -14px #0000004d;color:var(--ink);text-align:center;text-decoration:none;display:flex;flex-direction:column;align-items:center;gap:.5rem}
.brand img{width:104px}
.brand-name{font-size:.875rem;font-weight:700;line-height:1.35;letter-spacing:0;text-wrap:wrap}
.brand-short{display:none;font-size:1rem;font-weight:800;line-height:1.3}
.nav{flex:1;min-width:0;padding-top:.8rem}
.nav-list{display:flex;flex-wrap:wrap;align-items:center;gap:0 .35rem;list-style:none}
.nav-list>li{position:relative}
.nav-link,.nav-drop>summary{display:flex;align-items:center;gap:.45rem;min-height:52px;padding:.5rem .8rem;border-radius:var(--radius);color:var(--ink);font-size:.9375rem;font-weight:700;text-decoration:none;list-style:none;cursor:pointer}
.nav-drop>summary::-webkit-details-marker{display:none}
.nav-link:hover,.nav-drop>summary:hover{background:var(--surface)}
.nav-link[aria-current="page"]{box-shadow:inset 0 -3px 0 var(--sun)}
.nav-drop .icon{width:1rem;height:1rem;transition:transform .2s var(--ease)}
.nav-drop[open] .icon{transform:rotate(180deg)}
.nav-menu{position:absolute;top:100%;left:0;z-index:30;min-width:15rem;padding:.5rem;list-style:none;background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 28px -10px #00000029}
.nav-menu a{display:block;padding:.6rem .75rem;border-radius:2px;font-size:.9375rem;text-decoration:none;color:var(--ink)}
.nav-menu a:hover{background:var(--surface);text-decoration:underline}
.nav-contact{margin-left:auto}
.menu-toggle{display:none;align-items:center;gap:.5rem;min-height:44px;padding:.3rem .8rem;border:2px solid var(--brand-ink);border-radius:var(--radius);background:var(--paper);font-weight:700}

/* ---------- wyszukiwarka w oknie ---------- */
.search-dialog{width:min(36rem,calc(100% - 2rem));padding:1.75rem 1.5rem 1.5rem;border:2px solid var(--brand-ink);border-radius:var(--radius);background:var(--paper);color:var(--ink)}
.search-dialog::backdrop{background:#0b2417cc}
.search-dialog h2{margin:0 2.5rem 1rem 0;font-size:1.25rem}
.search-dialog .search input{border-color:var(--muted)}
.dialog-close{position:absolute;top:.35rem;right:.35rem;color:var(--ink)}
.dialog-close:hover{background:var(--surface)}
.search-msg{max-width:36rem;margin:.6rem 0 0;font-size:.875rem}

/* ---------- hero strony głównej ---------- */
.hero{background:var(--brand);color:var(--on-brand)}
.hero-grid{display:grid;grid-template-columns:var(--badge) minmax(0,1fr) minmax(0,20rem);gap:1.5rem 2.25rem;align-items:start;padding-top:1.25rem;padding-bottom:1.5rem}
.ask{grid-column:2}
.ask-title{font-size:clamp(1.9rem,1.2rem + 1.8vw,2.5rem);font-weight:800;letter-spacing:-.01em;margin-bottom:.45rem}
.ask-lead{max-width:34rem;margin-bottom:1.1rem;color:var(--on-brand-2);font-size:1.0625rem}
.search{display:flex;gap:.5rem;max-width:36rem}
.search input{flex:1;min-width:0;min-height:52px;padding:.6rem .9rem;border:2px solid var(--paper);border-radius:var(--radius);background:var(--paper);color:var(--ink)}
.search input::placeholder{color:var(--muted)}
.search .btn{min-height:52px}
.ask-often{display:flex;flex-wrap:wrap;align-items:center;gap:0 .9rem;margin:.25rem 0 0;list-style:none;font-size:.8125rem;color:var(--on-brand-2)}
.ask-often a{display:inline-flex;align-items:center;min-height:44px;color:var(--on-brand)}

.today{grid-column:3;padding:1.05rem 1.25rem .8rem;background:var(--paper);color:var(--ink);border-radius:var(--radius);box-shadow:0 18px 30px -18px #00000066}
.today-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.35rem .75rem;margin-bottom:.3rem}
.today h2{font-size:1rem;font-weight:800}
.today-phone{display:inline-flex;align-items:center;gap:.6rem;min-height:44px;font-size:1.5rem;font-weight:800;color:var(--brand-ink);text-decoration:none;font-variant-numeric:tabular-nums}
.today-phone:hover{text-decoration:underline}
.today-phone .icon{width:1.4rem;height:1.4rem}
.today-rows{display:grid;gap:.5rem;margin:.3rem 0 .35rem;list-style:none;font-size:.9375rem;line-height:1.5}
.today-rows li{display:flex;gap:.6rem}
.today-rows .icon{margin-top:.15rem;color:var(--brand-ink)}
.today .more{font-size:.9375rem}

/* ---------- pasek informacyjny ---------- */
.notice{background:var(--sun);color:var(--brand-deep)}
.notice-inner{display:flex;align-items:center;gap:.9rem;min-height:48px;padding-top:.45rem;padding-bottom:.45rem}
.notice .icon{width:1.35rem;height:1.35rem}
.notice p{margin:0;font-weight:600;line-height:1.45}
.notice a{color:inherit;font-weight:800;white-space:nowrap}
.notice :focus-visible{outline-color:var(--brand-deep)}

/* ---------- kafle ---------- */
.topics{background:var(--surface);padding-top:1.4rem;padding-bottom:2.75rem}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4rem 2rem;margin-bottom:1rem}
.section-head p{margin:0;color:var(--muted);font-size:.9375rem}
.tiles{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:.75rem;list-style:none}
.tile{position:relative;display:grid;grid-template-rows:auto auto 1fr;align-content:start;gap:.35rem;height:100%;padding:.9rem .875rem 1.05rem;overflow:hidden;background:var(--paper);color:var(--ink);border-radius:var(--radius);box-shadow:inset 0 0 0 1px var(--line),0 10px 18px -12px #00000040;text-decoration:none;transition:transform .3s var(--ease),box-shadow .3s var(--ease),background-color .3s var(--ease)}
.tile::after{content:'';position:absolute;inset:auto 0 0 0;height:5px;background:var(--sun);transform:scaleX(0);transform-origin:left;transition:transform .45s var(--ease)}
.tile-icon{display:grid;place-items:center;width:2.25rem;height:2.25rem;margin-bottom:.3rem;border-radius:var(--radius);background:var(--sun);color:var(--brand-deep)}
.tile-icon .icon{width:1.25rem;height:1.25rem}
.tile-name{font-size:1.0625rem;font-weight:700;line-height:1.3;color:var(--brand-ink)}
.tile-hint{font-size:.875rem;line-height:1.45;color:var(--muted)}
.tile:hover,.tile:focus-visible{transform:translateY(-3px);box-shadow:inset 0 0 0 2px var(--brand-ink),0 18px 24px -14px #0000004d}
.tile:hover::after,.tile:focus-visible::after{transform:scaleX(1)}
.tile:hover .tile-name{text-decoration:underline;text-underline-offset:.2em}
.tile:hover .tile-hint,.tile:focus-visible .tile-hint{color:var(--ink)}
/* dwa kafle, które nie są tematem, tylko narzędziem (druki, programy): płaskie, z samym obrysem */
.tile--util{background:transparent;box-shadow:inset 0 0 0 1px var(--muted)}
.tile--util:hover,.tile--util:focus-visible{background:var(--paper);transform:none;box-shadow:inset 0 0 0 2px var(--brand-ink)}
.tile--util .tile-icon{background:transparent;box-shadow:inset 0 0 0 2px var(--brand-ink);color:var(--brand-ink)}

/* ---------- pilna pomoc ---------- */
.urgent{background:var(--sun-tint);border-block:1px solid #ecd9a6}
.urgent-inner{display:grid;grid-template-columns:minmax(0,17rem) minmax(0,1fr);gap:1.5rem 3rem;align-items:center;padding-top:2rem;padding-bottom:2rem}
.urgent h2{font-size:1.3rem}
.urgent-lead{margin:.4rem 0 0;font-size:.9375rem;color:var(--sun-ink)}
.hotlines{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem 2rem;list-style:none}
.hotline a{display:inline-flex;min-height:44px;align-items:center;font-size:1.5rem;font-weight:800;color:var(--brand-ink);text-decoration:none;font-variant-numeric:tabular-nums;white-space:nowrap}
.hotline a:hover{text-decoration:underline}
.hotline p{margin:0;font-size:.875rem;line-height:1.5;color:var(--ink)}

/* ---------- aktualności ---------- */
.home-news{padding-top:3.25rem;padding-bottom:3.5rem}
.home-news-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:2.5rem 3.5rem;align-items:start}
.news-list{list-style:none;border-top:2px solid var(--brand-ink)}
.news-row{display:grid;grid-template-columns:4.75rem minmax(0,1fr);gap:1.25rem;padding-top:1.25rem;padding-bottom:1.25rem;border-bottom:1px solid var(--line)}
.news-date{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;color:var(--brand-ink)}
.news-date b{font-size:1.75rem;font-weight:800;font-variant-numeric:tabular-nums}
.news-date span{font-size:.8125rem;font-weight:600;color:var(--muted);white-space:nowrap}
.news-row h3{font-size:1.125rem}
.news-row h3 a{color:var(--ink);text-decoration:none}
.news-row h3 a:hover{text-decoration:underline}
.news-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .9rem;margin:.45rem 0 .5rem;font-size:.8125rem;color:var(--muted)}
.news-row p{margin:0;max-width:68ch;font-size:.9375rem;color:var(--ink)}
.news-row.is-archive h3 a{color:var(--muted)}
.home-news .more{margin-top:1rem}

.side-list{list-style:none;border-top:2px solid var(--brand-ink)}
.side-list li{padding-top:.9rem;padding-bottom:.9rem;border-bottom:1px solid var(--line)}
.side-list a{display:block;font-weight:700;line-height:1.4;color:var(--ink);text-decoration:none}
.side-list a:hover{text-decoration:underline}
.side-list .status{margin-top:.45rem}
.side-list small{display:block;margin-top:.3rem;font-size:.8125rem;color:var(--muted)}

/* ---------- dofinansowania ---------- */
.funding{border-top:1px solid var(--line)}
.funding-inner{display:flex;flex-wrap:wrap;align-items:center;gap:1rem 2.5rem;padding-top:1.5rem;padding-bottom:1.5rem}
.funding p{margin:0;max-width:30rem;font-size:.875rem;color:var(--muted)}
.funding img{height:64px;width:auto}

/* ---------- stopka ---------- */
.footer{background:var(--brand);color:var(--on-brand);padding-top:3rem;padding-bottom:1rem}
.footer a{color:inherit}
.footer-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr) auto;gap:2rem 2.5rem;align-items:start}
.footer h2{font-size:1.0625rem;font-weight:700;margin-bottom:.9rem}
.footer p,.footer li{font-size:.9rem;line-height:1.75}
.footer p{margin:0 0 .6rem}
.footer ul{list-style:none}
.footer-links a{display:inline-flex;align-items:center;min-height:44px}
.footer-hours{display:grid;grid-template-columns:auto 1fr;gap:.1rem 1rem;font-size:.9rem;font-variant-numeric:tabular-nums}
.footer-hours dt{color:var(--on-brand-2)}.footer-hours dd{margin:0}
.footer-gmina{display:flex;flex-direction:column;align-items:center;gap:.6rem;font-size:.8125rem;text-align:center;line-height:1.4}
.footer-gmina img{width:76px}
.footer-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1.5rem;margin-top:2.25rem;padding-top:1rem;border-top:1px solid #ffffff59;font-size:.8125rem}
.footer-bottom ul{display:flex;flex-wrap:wrap;gap:.25rem 1.5rem}
.footer-bottom a{display:inline-flex;align-items:center;min-height:44px}
.footer-bottom p{font-size:.8125rem;margin:0;color:var(--on-brand-2)}

/* ---------- nagłówek podstrony ---------- */
.page-head{background:var(--brand);color:var(--on-brand)}
.page-head-grid{display:grid;grid-template-columns:var(--badge) minmax(0,1fr);gap:0 2.25rem;min-height:9.5rem;padding-top:1rem;padding-bottom:1.9rem}
.page-head-main{grid-column:2;align-self:end}
.crumbs ol{display:flex;flex-wrap:wrap;align-items:center;gap:.1rem .5rem;list-style:none;font-size:.8125rem;color:var(--on-brand-2)}
.crumbs li+li::before{content:'/';margin-right:.5rem}
.crumbs a{display:inline-flex;align-items:center;min-height:44px;color:var(--on-brand)}
.page-head h1{margin-top:.15rem}
.page-lead{max-width:44rem;margin:.6rem 0 0;color:var(--on-brand-2);font-size:1.0625rem}
.page-meta{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1.25rem;margin-top:.9rem;font-size:.875rem;color:var(--on-brand-2)}
.page-title{display:flex;align-items:center;gap:1rem}
.page-title .tile-icon{flex:none;width:2.75rem;height:2.75rem;margin:0}
.page-title .tile-icon .icon{width:1.5rem;height:1.5rem}

.page{padding-top:2.5rem;padding-bottom:4rem}
.page-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,19.5rem);gap:2.5rem 3.5rem;align-items:start}
.prose{max-width:70ch}
.prose h2{margin:2.25rem 0 .75rem}
.prose :is(ul,ol):not([class]){margin:0 0 1rem 1.25rem}
.prose :is(ul,ol):not([class]) li{margin-bottom:.35rem}
.prose .downloads{margin-bottom:1.5rem}
.prose>.callout,.prose>.archive-note{max-width:none;margin:0 0 1.5rem}

/* ---------- lista spraw (strona kafla) ---------- */
.case-group+.case-group{margin-top:2.5rem}
.case-group h2{margin-bottom:.75rem}
.case-list{list-style:none;border-top:2px solid var(--brand-ink)}
.case{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.2rem 1.5rem;align-items:center;padding:1.05rem .75rem 1.05rem 0;border-bottom:1px solid var(--line);transition:background-color .2s var(--ease),padding-left .3s var(--ease)}
.case h3{font-size:1.125rem}
.case h3 a{color:var(--brand-ink);text-decoration:none}
.case h3 a::after{content:'';position:absolute;inset:0}
.case p{grid-column:1;margin:0;font-size:.9375rem;color:var(--muted);max-width:60ch}
.case .status,.case .todo{grid-column:1;justify-self:start;margin-top:.35rem}
.case-note{margin:-.25rem 0 .75rem;font-size:.9375rem;color:var(--muted)}
.case>.icon{grid-column:2;grid-row:1 / span 3;color:var(--brand-ink);transition:transform .3s var(--ease)}
.case:hover{background:var(--surface);padding-left:.75rem}
.case:hover h3 a{text-decoration:underline}
.case:hover>.icon{transform:translateX(4px)}

/* ---------- panele boczne ---------- */
.aside{display:grid;gap:1.5rem}
.card{padding:1.25rem 1.35rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
.card--tint{background:var(--surface);border-color:transparent}
.card h2{font-size:1.125rem;margin-bottom:.75rem}
.card-phone{display:inline-flex;align-items:center;gap:.55rem;min-height:44px;font-size:1.375rem;font-weight:800;color:var(--brand-ink);text-decoration:none;font-variant-numeric:tabular-nums}
.card-phone:hover{text-decoration:underline}
.rows{display:grid;gap:.55rem;list-style:none;font-size:.9375rem;line-height:1.5}
.rows li{display:flex;gap:.6rem}
.rows .icon{margin-top:.15rem;color:var(--brand-ink)}
.card .more{font-size:.9375rem}
.link-list{list-style:none}
.link-list a{display:flex;align-items:center;min-height:44px;font-size:.9375rem}

/* ---------- sprawa: pięć pytań ---------- */
.case-layout{display:grid;grid-template-columns:11rem minmax(0,1fr) minmax(0,17.5rem);gap:2rem 2.75rem;align-items:start}
.five{position:sticky;top:1.25rem}
.five-title{margin-bottom:.75rem;font-size:.8125rem;font-weight:700;color:var(--muted)}
.five ol{position:relative;list-style:none}
.five ol::before{content:'';position:absolute;left:.4375rem;top:1.1rem;bottom:1.1rem;width:2px;background:var(--line)}
.five a{position:relative;display:flex;align-items:center;gap:.85rem;min-height:44px;color:var(--ink);font-size:.9375rem;font-weight:600;text-decoration:none}
.five a::before{content:'';position:relative;z-index:1;width:1rem;height:1rem;flex:none;border-radius:50%;background:var(--paper);box-shadow:inset 0 0 0 2px var(--brand-ink);transition:background-color .25s var(--ease),box-shadow .25s var(--ease)}
.five a:hover{text-decoration:underline}
.five a[aria-current="true"]{font-weight:800;color:var(--brand-ink)}
.five a[aria-current="true"]::before{background:var(--sun);box-shadow:inset 0 0 0 2px var(--brand-ink),0 0 0 4px var(--sun-tint)}
.five-print{margin-top:1.25rem}

.answers{min-width:0}
.answer{padding-top:1.6rem;padding-bottom:2.1rem;border-top:2px solid var(--brand-ink);scroll-margin-top:1rem}
.answer:first-child{padding-top:1.4rem}
.answer h2{margin-bottom:.9rem}
.answer>p,.answer>ul,.answer>ol{max-width:68ch}
.answer>ul:not([class]){margin:0 0 1rem 1.25rem}
.answer>ul:not([class]) li{margin-bottom:.4rem}
.steps{list-style:none;counter-reset:step;display:grid;gap:1rem;margin-bottom:1rem}
.steps li{counter-increment:step;display:grid;grid-template-columns:2.25rem minmax(0,1fr);gap:.9rem;align-items:start}
.steps li::before{content:counter(step);display:grid;place-items:center;width:2.25rem;height:2.25rem;border-radius:50%;background:var(--brand);color:var(--on-brand);font-weight:800;font-variant-numeric:tabular-nums}
.steps p{margin:.3rem 0 0}
.steps b{font-weight:700}
.checklist{list-style:none;display:grid;gap:.6rem;margin-bottom:1.5rem}
.checklist li{display:grid;grid-template-columns:1.5rem minmax(0,1fr);gap:.7rem;align-items:start}
.checklist .icon{margin-top:.2rem;padding:.15rem;border-radius:2px;background:var(--sun);color:var(--brand-deep)}
.sub{margin:1.5rem 0 .7rem;font-size:1.0625rem;font-weight:700}
.downloads{list-style:none;display:grid;gap:.6rem}
.downloads a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.9rem;align-items:center;min-height:56px;padding:.7rem 1rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);text-decoration:none;transition:border-color .2s var(--ease),background-color .2s var(--ease)}
.downloads a:hover{border-color:var(--brand-ink);background:var(--paper)}
.downloads a:hover .dl-name{text-decoration:underline}
.dl-name{font-weight:600;line-height:1.4}
.dl-meta{display:block;font-size:.8125rem;font-weight:400;color:var(--muted)}
.downloads .icon{color:var(--brand-ink)}
.place{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.25rem 2rem}
.place h3{margin-bottom:.4rem}
.place p{margin:0;font-size:.9375rem}
.gap{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;padding:.9rem 1rem;border:1px dashed var(--muted);border-radius:var(--radius);background:var(--surface);font-size:.9375rem}
.gap .icon{margin-top:.15rem;color:var(--muted)}
.gap p{margin:0}
.gap b{font-weight:700}
.gap:not(:last-child){margin-bottom:1rem}
.updated{margin-top:1.5rem;font-size:.8125rem;color:var(--muted)}

/* ---------- sprawa: tabele, rozwinięcia, uwagi, fakty ---------- */
.table-wrap{max-width:100%;overflow-x:auto;margin:0 0 1.25rem}
.table{width:100%;min-width:24rem;border-collapse:collapse;font-size:.9375rem;font-variant-numeric:tabular-nums}
.table-cap{margin:0 0 .5rem;font-size:.875rem;color:var(--muted)}
.table th,.table td{padding:.6rem .85rem;border-bottom:1px solid var(--line);text-align:right}
.table th:first-child,.table td:first-child{text-align:left}
.table thead th{border-bottom:2px solid var(--brand-ink);font-weight:700;vertical-align:bottom;line-height:1.35}
.table tbody th{font-weight:600}
.table tbody tr:hover{background:var(--surface)}
.fold{border-bottom:1px solid var(--line);max-width:68ch}
.fold:first-of-type{border-top:1px solid var(--line)}
.fold summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:52px;padding:.5rem 0;font-weight:700;color:var(--brand-ink);cursor:pointer;list-style:none}
.fold summary::-webkit-details-marker{display:none}
.fold summary:hover{text-decoration:underline;text-underline-offset:.2em}
.fold summary .icon{transition:transform .25s var(--ease)}
.fold[open] summary .icon{transform:rotate(180deg)}
.fold-body{padding:.25rem 0 1rem;font-size:.9375rem}
.fold-body ul{margin:0 0 1rem 1.25rem}
.fold-body li{margin-bottom:.35rem}
.fold-body>:last-child{margin-bottom:0}
.folds{margin:1.5rem 0 0}
.callout{display:grid;grid-template-columns:auto minmax(0,1fr);gap:.75rem;max-width:68ch;margin:1.25rem 0;padding:.9rem 1rem;border-radius:var(--radius);background:var(--sun-tint);color:var(--ink)}
.callout .icon{margin-top:.15rem;color:var(--sun-ink)}
.callout p{margin:0}
.callout--open{background:var(--ok-tint)}
.callout--open .icon{color:var(--ok)}
.callout--off{background:var(--surface)}
.callout--off .icon{color:var(--muted)}
.answers>.callout,.answers>.gap{max-width:none;margin:0 0 1.25rem}
html:not(.js) [data-faza]{display:none}
.limits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;max-width:68ch;margin:0 0 1rem;list-style:none}
.limits li{padding:.9rem 1rem;border:1px solid var(--line);border-radius:var(--radius)}
.limits b{display:block;font-size:1.375rem;font-weight:800;color:var(--brand-ink);font-variant-numeric:tabular-nums;line-height:1.3}
.limits span{font-size:.875rem;color:var(--muted)}
.facts{display:grid;gap:.7rem;margin:0}
.facts div{display:grid;gap:.05rem}
.facts dt{font-size:.8125rem;color:var(--muted)}
.facts dd{margin:0;font-weight:700;line-height:1.4}
.legal{margin-top:.5rem;padding-top:1.5rem;border-top:1px solid var(--line)}

/* ---------- lista aktualności: filtry, archiwum ---------- */
.filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem 2rem;margin-bottom:1.5rem}
.chips{display:flex;flex-wrap:wrap;gap:.5rem;list-style:none}
.chip{display:inline-flex;align-items:center;min-height:44px;padding:.3rem .95rem;border:2px solid var(--brand-ink);border-radius:2rem;background:var(--paper);color:var(--brand-ink);font-size:.9375rem;font-weight:700;text-decoration:none}
.chip:hover{background:var(--surface)}
.chip[aria-pressed="true"],.chip[aria-current="true"]{background:var(--brand);color:var(--on-brand)}
.field{display:flex;align-items:center;gap:.6rem;font-size:.9375rem;font-weight:600}
.field select{min-height:44px;padding:.3rem 2rem .3rem .75rem;border:2px solid var(--muted);border-radius:var(--radius);background:var(--paper)}
.year-mark{margin:2.5rem 0 0;padding-bottom:.5rem;font-size:1.5rem;font-weight:800;color:var(--brand-ink)}
.year-mark+.news-list{margin-top:0}
.archive-note{display:flex;gap:.75rem;margin-bottom:1.75rem;padding:.9rem 1rem;border-radius:var(--radius);background:var(--surface);font-size:.9375rem}
.archive-note .icon{margin-top:.15rem;color:var(--brand-ink)}
.archive-note p{margin:0}
.empty{padding:2rem 0;color:var(--muted)}
.pager{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin-top:2rem;list-style:none}
.pager a,.pager span{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:.3rem .7rem;border-radius:var(--radius);font-weight:700;text-decoration:none;font-variant-numeric:tabular-nums}
.pager a:hover{background:var(--surface);text-decoration:underline}
.pager [aria-current="page"]{background:var(--brand);color:var(--on-brand)}

/* ---------- wysoki kontrast (jak na stronie gminy) ---------- */
html[data-contrast="high"]{--brand-ink:#ff0;--brand:#000;--brand-deep:#000;--brand-soft:#1c1c00;--on-brand:#ff0;--on-brand-2:#ff0;--sun:#ff0;--sun-strong:#ff0;--sun-ink:#ff0;--sun-tint:#000;--paper:#000;--ink:#ff0;--muted:#ff0;--surface:#161600;--line:#ff0;--link:#ff0;--ok:#ff0;--ok-tint:#000;--off:#ff0;--off-tint:#000;--focus:#fff;--focus-on-brand:#fff;color-scheme:dark}
[data-contrast="high"] :is(.utility,.hero,.page-head,.notice,.urgent,.footer){border-block:1px solid #ff0}
[data-contrast="high"] :is(.tile,.today,.brand,.card,.status,.btn,.chip){box-shadow:none;border:1px solid #ff0}
[data-contrast="high"] :is(.notice,.btn--sun,.tile-icon,.checklist .icon,.chip[aria-pressed="true"],.pager [aria-current="page"],.steps li::before){background:#ff0;color:#000}
[data-contrast="high"] .notice a{color:#000}
[data-contrast="high"] .tile--util .tile-icon{background:#ff0;color:#000;box-shadow:none}
[data-contrast="high"] .brand img{background:#fff;padding:4px}
[data-contrast="high"] .utility-links img{filter:brightness(0) saturate(100%) invert(91%) sepia(100%) saturate(4000%) hue-rotate(360deg)}
[data-contrast="high"] .search input{background:#000;color:#ff0;border-color:#ff0}
[data-contrast="high"] .search-dialog{border-color:#ff0}
[data-contrast="high"] *{transition:none!important}
[data-contrast="high"] .five a::before{background:#000;box-shadow:inset 0 0 0 2px #ff0}
[data-contrast="high"] .five a[aria-current="true"]::before{background:#ff0}
[data-contrast="high"] .funding img{background:#fff;padding:4px}

/* ---------- szerokości ---------- */
@media (min-width:1500px){:root{--page:1360px}}
@media (max-width:1100px){
  :root{--badge:156px}
  .brand img{width:92px}
  .nav-link,.nav-drop>summary{padding-left:.55rem;padding-right:.55rem;font-size:.875rem}
  .hero-grid{grid-template-columns:var(--badge) minmax(0,1fr) minmax(0,19rem);gap:1.5rem}
  .tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
  .hotlines{grid-template-columns:repeat(2,minmax(0,1fr))}
  .case-layout{grid-template-columns:12rem minmax(0,1fr)}
  .case-layout>.aside{grid-column:2}
  .footer-grid{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr)}
  .footer-gmina{grid-column:1 / -1;flex-direction:row;justify-content:flex-start;text-align:left}
  .footer-gmina img{width:56px}
}
@media (max-width:900px){
  :root{--gutter:1rem}
  .utility-links{gap:1rem;font-size:.875rem}
  .utility-links .hide-s{display:none}
  .tools{position:relative;flex-wrap:nowrap}
  .js .a11y-toggle{display:inline-flex;width:auto;gap:.45rem;padding:0 .7rem;font-size:.875rem;font-weight:700}
  .js .a11y{display:none;position:absolute;top:calc(100% + .35rem);right:0;z-index:45;width:max-content;max-width:calc(100vw - 2 * var(--gutter));padding:.5rem;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 28px -10px #00000038}
  .js .tools.is-open .a11y{display:grid}
  .js .a11y .tool{justify-content:flex-start;gap:.75rem;width:auto;height:auto;min-height:48px;padding:.4rem .8rem;font-size:1rem;font-weight:600;text-align:left}
  .js .a11y .tool:hover{background:var(--surface)}
  .js .a11y .tool-label{display:inline}
  .js .a11y :focus-visible{outline-color:var(--focus)}
  .header-row{align-items:center;min-height:76px;gap:1rem}
  .brand{flex:1 1 auto;flex-direction:row;margin:0;padding:.6rem 0;box-shadow:none;border-radius:0;text-align:left;background:transparent}
  .brand img{width:64px}
  .nav{flex:0 0 auto;padding:0}
  .js .menu-toggle{display:inline-flex}
  .nav-list{flex-direction:column;align-items:stretch;gap:0;padding:.5rem;background:var(--paper)}
  .js .nav-list{display:none;position:absolute;top:100%;left:var(--gutter);right:var(--gutter);z-index:35;max-height:75vh;overflow-y:auto;border:1px solid var(--line);border-radius:var(--radius);box-shadow:0 12px 28px -10px #00000038}
  .js .nav.is-open .nav-list{display:flex}
  .nav-link,.nav-drop>summary{font-size:1rem;padding:.65rem .75rem}
  .nav-menu{position:static;border:0;box-shadow:none;padding:0 0 .25rem 1rem}
  .nav-contact{margin-left:0}
  .ask-lead,.ask-often,.today h2,.today-rows,.today .more{display:none}
  .today{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.2rem 1rem;padding:.55rem .9rem}
  .today-head{margin:0}
  .today-phone{font-size:1.25rem}
  .hero-grid{grid-template-columns:minmax(0,1fr);gap:1rem;padding-top:1.4rem;padding-bottom:1.4rem}
  .ask,.today{grid-column:1}
  .page-head-grid{grid-template-columns:minmax(0,1fr);min-height:0;padding-top:1.4rem;padding-bottom:1.6rem}
  .page-head-main{grid-column:1}
  .tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .urgent-inner{grid-template-columns:minmax(0,1fr);gap:1.25rem}
  .home-news-grid,.page-grid{grid-template-columns:minmax(0,1fr)}
  .case-layout{grid-template-columns:minmax(0,1fr);gap:1.25rem}
  .case-layout>.aside{display:contents}
  .aside>.card--tint{order:-1}
  .aside>.card:not(.card--tint){order:1}
  .five{position:sticky;top:0;z-index:10;margin-inline:calc(var(--gutter) * -1);padding:.5rem var(--gutter);background:var(--paper);border-bottom:1px solid var(--line)}
  .five-title,.five-print{display:none}
  .five ol{display:flex;flex-wrap:wrap;gap:.4rem}
  .five ol::before{display:none}
  .five a{min-height:44px;padding:.2rem .85rem;border:2px solid var(--brand-ink);border-radius:2rem;white-space:nowrap;color:var(--brand-ink)}
  .five a::before{display:none}
  .five a[aria-current="true"]{background:var(--brand);color:var(--on-brand)}
  .answer{scroll-margin-top:7.75rem}
  [data-font="2"] .five,[data-font="3"] .five{position:static}
  [data-font="2"] .answer,[data-font="3"] .answer{scroll-margin-top:1rem}
  .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .utility-links .hide-xs{display:none}
  .search{flex-wrap:wrap}
  .search input{flex:999 1 12rem}
  .search .btn{flex:1 0 auto}
  .utility-links{gap:0 .5rem}
  .utility-inner{gap:0 .5rem}
  .status{white-space:normal}
  [data-font="2"] .brand-name,[data-font="3"] .brand-name{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  [data-font="2"] .brand-short,[data-font="3"] .brand-short{display:block}
  .table-wrap{overflow:visible}
  .table{min-width:0}
  .table,.table tbody,.table tr,.table th,.table td{display:block}
  .table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .table tbody tr{padding:.75rem 0;border-bottom:1px solid var(--line)}
  .table tbody tr:first-child{border-top:2px solid var(--brand-ink)}
  .table tbody tr:hover{background:none}
  .table tbody th{padding:0 0 .3rem;border:0;font-weight:700}
  .table td{display:flex;justify-content:space-between;gap:1rem;padding:.15rem 0;border:0}
  .table td::before{content:attr(data-label);color:var(--muted);text-align:left}
  .brand-name{font-size:.8125rem}
  .brand img{width:56px}
  .tiles{grid-template-columns:minmax(0,1fr);gap:.6rem}
  .tile{grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto;column-gap:.9rem;row-gap:.15rem;align-items:center;min-height:0;padding:.85rem 1rem}
  .tile-icon{grid-row:1 / span 2;margin:0}
  .tile-name{align-self:end}
  .tile-hint{align-self:start}
  .tile:hover,.tile:focus-visible{transform:none}
  .hotlines{gap:1rem 1.25rem}
  [data-font="2"] .hotlines,[data-font="3"] .hotlines{grid-template-columns:minmax(0,1fr)}
  .nb{white-space:normal;overflow-wrap:anywhere}
  .hotline a{font-size:1.3rem}
  .news-row{grid-template-columns:4rem minmax(0,1fr);gap:.75rem}
  .news-date b{font-size:1.4rem}
  .place,.limits{grid-template-columns:minmax(0,1fr)}
  .downloads a{grid-template-columns:auto minmax(0,1fr)}
  .downloads a>.icon:last-child{display:none}
  .footer-grid{grid-template-columns:minmax(0,1fr)}
  .footer-bottom{flex-direction:column;align-items:flex-start}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
@media (forced-colors:active){.tile,.btn,.chip,.card,.today{border:1px solid ButtonText}.tile-icon{forced-color-adjust:none}}
@media print{
  .utility,.nav,.hero,.notice,.five,.urgent,.funding,.skip-link,.aside{display:none!important}
  .brand{position:static;margin:0;box-shadow:none}
  .page-head{background:none;color:#000}
  .page-head-grid{grid-template-columns:1fr;min-height:0}.page-head-main{grid-column:1}
  .case-layout{display:block}
  .footer{background:none;color:#000;border-top:1px solid #000}
  .footer *,.page-head *{color:#000!important}
  a{color:#000}
}
