/* -------------------------------------------------------------------------
 SEP WWW 2.0 v0.6.2 | wspolny jezyk wizualny instytucji Gminy Psary
 Design source: supplied ZGK website package (FTP_UPLOAD.zip).
 This layer preserves the CMS selectors, content structure and accessibility.
 ------------------------------------------------------------------------- */
:root{
  --sep-blue:#0873b7; --sep-blue-hover:#0b5f98; --sep-blue-dark:#07456f;
  --sep-green:#4ca66c; --sep-ink:#202c33; --sep-copy:#44525b;
  --sep-muted:#71818a; --sep-line:#e2eaee; --sep-surface:#f5f8fa;
  --green:#4ca66c; --green2:#277b4f; --forest:#173d32;
  --dark:#202c33; --text:#33434b; --muted:#71818a;
  --pale:#f5f8fa; --pale2:#edf5f8; --line:#e2eaee; --radius:12px;
}
body.zgk-system{background:#fff;color:var(--sep-copy);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;line-height:1.63}
body.zgk-system .container{width:min(1210px,calc(100% - 48px));max-width:1210px}
body.zgk-system h1,body.zgk-system h2,body.zgk-system h3{color:var(--sep-ink);letter-spacing:-.028em;font-weight:650}
body.zgk-system h1{font-size:clamp(2rem,3.7vw,3.1rem);line-height:1.14}
body.zgk-system h2{font-size:clamp(1.65rem,2.45vw,2.18rem);line-height:1.2}
body.zgk-system p{color:#667780}
body.zgk-system .overline{color:var(--sep-blue);letter-spacing:.12em;font-weight:700;font-size:.72rem;margin-bottom:10px}
body.zgk-system .overline.light{color:var(--sep-blue)}
body.zgk-system .section{padding:68px 0}
body.zgk-system .pale,body.zgk-system .how-preview{background:var(--sep-surface)}
body.zgk-system .btn{border-radius:999px;min-height:43px;padding:9px 20px;font-weight:650;font-size:.86rem;box-shadow:none;transition:background .15s ease,border-color .15s ease}
body.zgk-system .btn-green,body.zgk-system .btn-dark{color:#fff;background:var(--sep-blue);border-color:var(--sep-blue)}
body.zgk-system .btn-green:hover,body.zgk-system .btn-dark:hover{background:var(--sep-blue-hover);border-color:var(--sep-blue-hover)}
body.zgk-system .btn-outline-light{background:#fff;border:1px solid #cbd9e1;color:var(--sep-blue)}
body.zgk-system .btn-outline-light:hover{border-color:var(--sep-blue);background:#f6fafc;color:var(--sep-blue)}
body.zgk-system .text-link{color:var(--sep-blue);font-size:.88rem}
body.zgk-system .text-link:hover{color:var(--sep-blue-hover)}
body.zgk-system :focus-visible{outline:3px solid #0873b7;outline-offset:3px}

/* ZGK: top institutional utility bar + slim, usable accessibility strip */
body.zgk-system .utility-bar{background:#0b426c;color:#e9f4fa;font-size:.75rem;line-height:1.4}
body.zgk-system .utility-inner{min-height:32px;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:6px 0}
body.zgk-system .utility-context{display:inline-flex;align-items:center;gap:8px;font-weight:600}
body.zgk-system .utility-dot{width:7px;height:7px;background:#85c977;border-radius:50%}
body.zgk-system .utility-links{display:flex;align-items:center;gap:23px}
body.zgk-system .utility-links a{color:inherit;text-decoration:none}
body.zgk-system .utility-links a:hover{text-decoration:underline}
body.zgk-system .a11y-bar{background:#f4f7f9;border-bottom:1px solid var(--sep-line);color:#5c6b74}
body.zgk-system .a11y-inner{min-height:34px;gap:7px;justify-content:flex-end;padding:3px 0}
body.zgk-system .a11y-title{font-size:.72rem;font-weight:650;margin-right:10px;flex:none}
body.zgk-system .a11y-group{gap:4px}
body.zgk-system .a11y-group button{font-size:.71rem;border-color:#d9e3e9;min-height:27px;border-radius:5px;padding:3px 9px;background:#fff;color:#46555c}
body.zgk-system .a11y-group button:hover,body.zgk-system .a11y-group button[aria-pressed=true]{color:var(--sep-blue);border-color:#a5c6da;background:#edf5f8}

/* Header mirrors the ZGK structure — not a loud SaaS top navigation */
body.zgk-system .site-header{z-index:201;top:0;background:#fff;backdrop-filter:none;border-bottom:1px solid #e2eaf0;box-shadow:0 2px 8px rgba(16,52,71,.025)}
body.zgk-system .nav-wrap{min-height:78px;height:78px;gap:20px}
body.zgk-system .brand{flex:0 0 auto}
body.zgk-system .brand img{width:181px;height:55px;object-fit:contain;object-position:left center;max-width:100%}
body.zgk-system .main-nav{gap:3px;margin-left:auto;align-items:center}
body.zgk-system .main-nav>a{background:transparent!important;color:#364852;font-weight:600;font-size:.81rem;padding:10px 10px;white-space:nowrap;border-radius:4px;min-height:38px}
body.zgk-system .main-nav>a:hover,body.zgk-system .main-nav>a.active{color:var(--sep-blue)!important;background:#f3f8fb!important}
body.zgk-system .main-nav .platform-link{margin-left:11px;border-radius:999px;color:#fff!important;background:var(--sep-blue)!important;padding:9px 17px;font-size:.8rem}
body.zgk-system .main-nav .platform-link:hover{background:var(--sep-blue-hover)!important;color:#fff!important}
body.zgk-system .menu-toggle{border-radius:8px;border-color:#dce7ec}

/* ZGK visual family: white + soft pattern on the left, genuine SEP photo on the right */
body.zgk-system .home-hero{position:relative;min-height:475px;display:flex;align-items:center;background:#f4f9fb;isolation:isolate}
body.zgk-system .home-hero::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(90deg,rgba(255,255,255,.89),rgba(255,255,255,.88)),url("gmina-zgk-pattern.png") left center/260px repeat;opacity:.43;mask-image:linear-gradient(90deg,#000 0%,#000 30%,transparent 68%);-webkit-mask-image:linear-gradient(90deg,#000 0%,#000 30%,transparent 68%)}
body.zgk-system .home-hero-bg{z-index:0;inset:0 0 0 46%;opacity:1;filter:saturate(.88);background:url("hero-about.webp") center 46%/cover no-repeat!important}
body.zgk-system .home-hero-overlay{z-index:1;inset:0;background:linear-gradient(90deg,#f5f9fb 0%,rgba(245,249,251,.98) 31%,rgba(245,249,251,.86) 47%,rgba(245,249,251,.15) 73%,rgba(245,249,251,.01) 100%)}
body.zgk-system .home-hero-inner{position:relative;z-index:2;min-height:475px;display:flex;align-items:center;padding:46px 0;justify-content:flex-start;color:var(--sep-ink)}
body.zgk-system .home-copy{max-width:580px}
body.zgk-system .home-copy h1{font-size:clamp(2.3rem,3.65vw,3.25rem);max-width:580px;font-weight:650;line-height:1.15;letter-spacing:-.04em;color:#153b53;margin-bottom:17px}
body.zgk-system .home-copy h1 em{font-style:normal;color:#16704a}
body.zgk-system .home-copy>p{max-width:515px;font-size:.98rem;line-height:1.67;color:#50636e}
body.zgk-system .hero-buttons{gap:11px;margin-top:24px}

/* Narrow subpage banners like the unified ZGK page-hero family */
body.zgk-system .subhero{position:relative;min-height:300px;display:flex;align-items:center;background:#f4f9fb;isolation:isolate;border-bottom:1px solid var(--sep-line)}
body.zgk-system .subhero::before{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(rgba(255,255,255,.82),rgba(255,255,255,.82)),url("gmina-zgk-pattern.png") left center/270px repeat;opacity:.48;mask-image:linear-gradient(90deg,#000,#000 22%,transparent 66%);-webkit-mask-image:linear-gradient(90deg,#000,#000 22%,transparent 66%)}
body.zgk-system .subhero-bg{z-index:0;inset:0 0 0 49%;filter:saturate(.82) contrast(.98);opacity:1}
body.zgk-system .subhero-overlay{z-index:1;background:linear-gradient(90deg,#f4f9fb 0%,rgba(244,249,251,.99) 37%,rgba(244,249,251,.92) 48%,rgba(244,249,251,.06) 87%)}
body.zgk-system .subhero-inner{z-index:2;min-height:300px;display:flex;flex-direction:column;justify-content:center;padding:34px 0;color:var(--sep-ink)}
body.zgk-system .subhero-inner h1{font-size:clamp(1.95rem,3vw,2.62rem);line-height:1.17;letter-spacing:-.03em;max-width:620px;font-weight:650;margin:0 0 13px;color:#173e55}
body.zgk-system .subhero-inner p{font-size:.91rem;line-height:1.62;max-width:520px;color:#5b6973;margin:0}
body.zgk-system .subhero-breadcrumb{font-size:.74rem;color:#6c7e88;margin:0 0 19px}
body.zgk-system .subhero-breadcrumb a{color:var(--sep-blue);text-decoration:none}
body.zgk-system .subhero-breadcrumb a:hover{text-decoration:underline}

/* A ZGK-like quick information strip: compact, separated, no oversized pills */
body.zgk-system .numbers{background:#fff;border-bottom:1px solid var(--sep-line)}
body.zgk-system .numbers-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
body.zgk-system .numbers article{min-height:98px;padding:20px 22px;border-right:1px solid var(--sep-line);gap:13px}
body.zgk-system .numbers article:last-child{border-right:0}
body.zgk-system .numbers .num-icon{width:40px;height:40px;flex:0 0 40px;display:grid;place-items:center;background:#edf6f9;border-radius:11px;color:#167aad}
body.zgk-system .numbers .num-icon svg{width:22px;height:22px}
body.zgk-system .numbers strong{font-size:1.38rem;line-height:1.22;font-weight:650;color:#173d53}
body.zgk-system .numbers small{font-size:.78rem;line-height:1.4;color:#6d7d86;margin-top:5px}

/* Content: aligned information groups, understated borders and editorial hierarchy */
body.zgk-system .intro-grid,body.zgk-system .split-text{grid-template-columns:.86fr 1.14fr;gap:65px}
body.zgk-system .intro h2{font-size:clamp(1.68rem,2.45vw,2.17rem);margin-bottom:0;max-width:470px}
body.zgk-system .intro-text p,body.zgk-system .split-text p{font-size:.97rem;line-height:1.72;color:#5a6c76}
body.zgk-system .intro .text-link{margin-top:8px}
body.zgk-system .section-head{align-items:end;margin-bottom:27px;grid-template-columns:1fr .8fr}
body.zgk-system .section-head h2{font-size:clamp(1.65rem,2.35vw,2.13rem)}
body.zgk-system .section-head>p{font-size:.93rem;line-height:1.65;color:#60717a}
body.zgk-system .how-preview{background:#f6f9fb}
body.zgk-system .process-preview,body.zgk-system .energy-story{background:#fff;border:1px solid #e0eaf0;border-radius:12px;box-shadow:0 5px 18px rgba(25,73,104,.025)}
body.zgk-system .process-preview-card{background:#f6f9fa;border-color:#e4ecef;border-radius:10px}
body.zgk-system .process-preview-card strong{color:#23445a;font-weight:650}
body.zgk-system .process-preview-card small{color:#6c7e86}
body.zgk-system .process-preview-arrow span,body.zgk-system .story-arrow span,body.zgk-system .journey-link span{background:#71aa8d}
body.zgk-system .process-preview-arrow span:after,body.zgk-system .story-arrow span:after,body.zgk-system .journey-link span:after{border-left-color:#71aa8d}
body.zgk-system .installations-preview{padding:68px 0}
body.zgk-system .install-photo{min-height:330px;border-radius:11px}
body.zgk-system .install-copy h2{font-size:clamp(1.7rem,2.55vw,2.23rem);font-weight:650}
body.zgk-system .install-copy p{font-size:.97rem}
body.zgk-system .quick-list div{font-size:.9rem}
body.zgk-system .quick-list strong{color:#277b4f}
body.zgk-system .members{gap:14px;background:transparent;border:0}
body.zgk-system .members article{background:#fff;border:1px solid #e2eaf0;border-radius:10px;box-shadow:none;padding:24px}
body.zgk-system .members .round-icon{border-radius:9px;background:#eaf4f7;color:var(--sep-blue)}
body.zgk-system .members h3{font-size:.99rem;font-weight:650;color:#254250}
body.zgk-system .members p{font-size:.87rem}
body.zgk-system .timeline strong,body.zgk-system .inst-row strong{color:#176b4e}
body.zgk-system .timeline article{border-color:#8bbda2}
body.zgk-system .inst-summary{border:1px solid #dfe9ee;border-radius:12px;overflow:hidden}
body.zgk-system .inst-summary>div{background:#fff}
body.zgk-system .inst-summary .round-icon{background:#edf6f9;color:var(--sep-blue)}
body.zgk-system .inst-summary strong{color:#23445a}
body.zgk-system .inst-table{border-top:1px solid #e1e9ed}
body.zgk-system .inst-row{border-bottom:1px solid #e1e9ed}
body.zgk-system .inst-head{background:#f6f9fb;color:#60717a}
body.zgk-system .inst-row .place{color:#25445b}
body.zgk-system .energy-story-kicker{color:var(--sep-blue)}
body.zgk-system .energy-story-kicker span{color:#58727e}
body.zgk-system .story-art{background:#f4f8fa;border-radius:8px}
body.zgk-system .story-stage .stage-copy strong,body.zgk-system .journey-copy strong,body.zgk-system .cooperative-box strong{color:#244558}
body.zgk-system .stage-number{background:#e7f1f6;color:var(--sep-blue)}
body.zgk-system .journey-station{background:#f6f9fa;border-color:#e1eaef}
body.zgk-system .cooperative-box{background:#eef7f2;border-color:#d5e7da}
body.zgk-system .plain-language article{background:#fff;border:1px solid #e2eaee;border-radius:10px;min-height:180px}
body.zgk-system .plain-icon{background:#edf6f9;color:var(--sep-blue)}
body.zgk-system .contact-direct a{border:1px solid #dfe8ed;border-radius:10px;background:#f8fafb;padding:18px}
body.zgk-system .contact-direct a:hover{border-color:#abcbdc;background:#f1f7fa}
body.zgk-system .contact-direct strong{color:#176e9f}
body.zgk-system .register div{border-bottom:1px solid #e2eaee}

/* Exact ZGK footer composition: white identity, public institutions logos, legal row */
body.zgk-system .site-footer{background:#f8fafb;color:#42535d;border-top:1px solid #e1e9ee;padding:33px 0 24px}
body.zgk-system .site-footer .footer-top{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:30px;align-items:center;padding:0 0 26px;border-bottom:1px solid #dee7ec}
body.zgk-system .footer-brand img{width:182px;height:auto;max-height:56px;object-fit:contain;object-position:left center}
body.zgk-system .footer-brand p{font-size:.78rem;line-height:1.5;margin:10px 0 0;color:#687b84;max-width:280px}
body.zgk-system .footer-public-badges{display:flex;align-items:center;gap:28px}
body.zgk-system .footer-logo-link{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:110px;gap:6px;text-decoration:none;color:#5d7079;line-height:1.35;transition:opacity .18s ease}
body.zgk-system .footer-logo-link:hover{opacity:.75}
body.zgk-system .footer-logo-link img{display:block;object-fit:contain;background:transparent;border:0}
body.zgk-system .footer-gmina img{width:65px;height:65px}
body.zgk-system .footer-zgk img{width:139px;height:auto;max-height:46px}
body.zgk-system .footer-logo-link>span{font-size:.71rem;font-weight:650;white-space:nowrap}
body.zgk-system .footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
body.zgk-system .footer-links a,body.zgk-system .footer-links button{color:#526c7b;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:0;font-size:.76rem;white-space:nowrap}
body.zgk-system .footer-links :is(a,button):hover{color:var(--sep-blue)}
body.zgk-system .footer-lower{padding-top:17px;display:flex;justify-content:space-between;gap:22px;align-items:flex-end}
body.zgk-system .footer-address{display:flex;flex-wrap:wrap;align-items:center;gap:6px 17px;font-size:.73rem;max-width:900px}
body.zgk-system .footer-address strong{color:#344a55;display:block;width:100%;margin:0 0 2px;font-size:.77rem}
body.zgk-system .footer-address span,body.zgk-system .footer-address a{color:#6e7c83;text-decoration:none}
body.zgk-system .footer-address a:hover{text-decoration:underline;color:var(--sep-blue)}
body.zgk-system .footer-address span:last-child{flex-basis:100%}
body.zgk-system .footer-bottom{color:#7a8991;font-size:.72rem;border:0;padding:0;text-align:right;white-space:nowrap}

/* Accessible variants: visual family should never overwrite user-selected contrast. */
html[data-contrast="high"] body.zgk-system{background:#000!important;color:#fff!important;--sep-ink:#fff;--sep-copy:#fff;--sep-blue:#ffff00;--sep-line:#fff}
html[data-contrast="high"] body.zgk-system :is(.utility-bar,.a11y-bar,.site-header,.home-hero,.subhero,.numbers,.site-footer,.intro,.how-preview,.pale,.section,.process-preview,.energy-story,.members article,.inst-summary>div,.plain-language article,.footer-logo-link,.contact-direct a){background:#000!important;color:#fff!important;border-color:#fff!important}
html[data-contrast="high"] body.zgk-system :is(h1,h2,h3,p,.overline,.main-nav>a,.footer-address span,.footer-brand p,.footer-links a,.footer-links button,.footer-bottom,.numbers strong,.numbers small,.home-copy h1,.home-copy h1 em,.home-copy>p,.subhero-inner h1,.subhero-inner p,.subhero-breadcrumb){color:#fff!important}
html[data-contrast="high"] body.zgk-system :is(.home-hero-bg,.subhero-bg){display:none!important}
html[data-contrast="high"] body.zgk-system :is(.btn-green,.btn-dark,.main-nav .platform-link){background:#ffff00!important;border-color:#ffff00!important;color:#000!important}
html[data-contrast="high"] body.zgk-system :is(.footer-logo-link img,.story-art img,.process-preview img){background:#fff}
html[data-mono="true"] body.zgk-system :is(.home-hero-bg,.subhero-bg,.footer-logo-link img,.footer-brand img){filter:grayscale(1)}

@media(max-width:1120px){
 body.zgk-system .container{width:min(100% - 40px,1210px)}
 body.zgk-system .nav-wrap{gap:12px}
 body.zgk-system .main-nav>a{font-size:.76rem;padding-inline:7px}
 body.zgk-system .main-nav .platform-link{margin-left:5px;padding-inline:12px}
 body.zgk-system .site-footer .footer-top{grid-template-columns:1fr auto;gap:22px}
 body.zgk-system .footer-links{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
}
@media(max-width:1000px){
 body.zgk-system .nav-wrap{min-height:72px;height:72px}
 body.zgk-system .menu-toggle{display:block}
 body.zgk-system .main-nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;padding:14px 24px 20px;background:#fff;border-bottom:1px solid var(--sep-line);box-shadow:0 10px 18px rgba(16,48,65,.06)}
 body.zgk-system .main-nav.open{display:flex}
 body.zgk-system .main-nav>a{width:100%;justify-content:flex-start;font-size:.9rem;padding:9px 14px}
 body.zgk-system .main-nav .platform-link{width:auto;margin:10px 0 0;justify-content:center}
 body.zgk-system .numbers-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.zgk-system .numbers article:nth-child(2){border-right:0}
 body.zgk-system .numbers article:nth-child(-n+2){border-bottom:1px solid var(--sep-line)}
}
@media(max-width:760px){
 body.zgk-system .container{width:calc(100% - 32px)}
 body.zgk-system .utility-inner{min-height:30px}
 body.zgk-system .utility-context{font-size:.68rem}
 body.zgk-system .utility-links{gap:9px}
 body.zgk-system .utility-links a{font-size:.68rem}
 body.zgk-system .utility-links a:first-child{display:none}
 body.zgk-system .a11y-inner{justify-content:flex-start;gap:5px}
 body.zgk-system .a11y-title{font-size:.68rem;flex-basis:100%}
 body.zgk-system .nav-wrap{height:69px;min-height:69px}
 body.zgk-system .brand img{width:165px;height:50px}
 body.zgk-system .section{padding:48px 0}
 body.zgk-system .home-hero{min-height:0}
 body.zgk-system .home-hero-bg{inset:0;opacity:.21;background-position:58% center}
 body.zgk-system .home-hero-overlay{background:linear-gradient(90deg,rgba(247,251,252,.95),rgba(247,251,252,.93))}
 body.zgk-system .home-hero-inner{min-height:390px;padding:50px 0}
 body.zgk-system .home-copy h1{font-size:clamp(2rem,8vw,2.55rem)}
 body.zgk-system .home-copy>p{font-size:.92rem}
 body.zgk-system .numbers article{min-height:90px;padding:14px 9px;gap:9px}
 body.zgk-system .numbers .num-icon{width:34px;height:34px;flex-basis:34px}
 body.zgk-system .numbers strong{font-size:1.15rem}
 body.zgk-system .numbers small{font-size:.68rem}
 body.zgk-system .subhero{min-height:0}
 body.zgk-system .subhero-bg{inset:0;opacity:.17;background-position:center}
 body.zgk-system .subhero-overlay{background:rgba(246,250,251,.93)}
 body.zgk-system .subhero-inner{min-height:245px;padding:35px 0}
 body.zgk-system .subhero-inner h1{font-size:clamp(1.8rem,7vw,2.25rem)}
 body.zgk-system .subhero-inner p{font-size:.89rem}
 body.zgk-system .intro-grid,body.zgk-system .split-text,body.zgk-system .section-head,body.zgk-system .installations-preview-grid,body.zgk-system .contact-layout{grid-template-columns:1fr;gap:24px}
 body.zgk-system .members{grid-template-columns:1fr}
 body.zgk-system .site-footer{padding:28px 0 22px}
 body.zgk-system .site-footer .footer-top{grid-template-columns:1fr;gap:23px;padding-bottom:23px}
 body.zgk-system .footer-public-badges{gap:24px;justify-content:flex-start}
 body.zgk-system .footer-links{grid-column:auto;flex-direction:row;gap:18px}
 body.zgk-system .footer-lower{flex-direction:column;align-items:flex-start;gap:15px}
 body.zgk-system .footer-bottom{text-align:left}
 body.zgk-system .footer-address{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
 body.zgk-system .footer-address span:last-child{flex-basis:auto}
}
@media(prefers-reduced-motion:reduce){body.zgk-system *{animation:none!important;transition:none!important}}
@media print{
 body.zgk-system .utility-bar{display:none}
 body.zgk-system .home-hero-bg,body.zgk-system .subhero-bg{display:none}
 body.zgk-system .home-hero,body.zgk-system .subhero{background:#fff}
 body.zgk-system .site-footer{background:#fff;color:#000}
}
