/* SP1 Bento – arkusz motywu (kolorystyka turkusowa)
   Designed by: FazaFM.com · KW Wojciechowski (wojciechowski.cc) */

@font-face{font-family:"Nunito";font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/nunito-latin-ext.woff2) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Nunito";font-style:normal;font-weight:400 900;font-display:swap;src:url(../fonts/nunito-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --navy:#0878bd; --navy-2:#0b4d78; --blue:#0a6aa8; --blue-2:#33b3f0; --sky:#e4f5fd;
  --yellow:#ffd21f; --yellow-2:#f5b800; --red:#b91c1c;
  --pink:#e5408a; --pink-2:#c9246b; --green:#18a058; --green-2:#0c8445; --purple:#7a3fe4; --purple-2:#5525c0;
  --cream:#fdf1dc; --cream-2:#f8e3bf; --ink:#0f1f3d; --muted:#4a5a78; --line:#d2eaf5;
  --r:18px; --r-sm:12px; --shadow:0 10px 30px rgba(8,80,125,.15); --shadow-sm:0 4px 14px rgba(8,80,125,.10);
  --wrap:1500px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Nunito",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);font-size:1rem;line-height:1.55;
  background:linear-gradient(180deg,#c9ebfb 0,#e3f4fd 340px,#f1fafe 900px,#e7f6fd 100%);min-height:100vh}
img{max-width:100%;display:block}
h1,h2,h3,.tile p,.r3 p{text-wrap:balance}
p,li{text-wrap:pretty}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
button{font:inherit;cursor:pointer}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 18px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:#fff;padding:8px 14px;border-radius:8px;z-index:99}
.skip:focus{left:8px}
.ico{width:1.25em;height:1.25em;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;border-radius:6px}

/* ---------- Nagłówek ---------- */
.site-head{position:relative;color:#fff;overflow:hidden;
  background:linear-gradient(90deg,#065994 0%,#0868ac 45%,#0873b7 75%,#0878bd 100%)}
.site-head::before{content:"";position:absolute;top:0;right:0;bottom:0;width:58%;background:url(../img/szkola-z-drona.jpg) center 55%/cover no-repeat;opacity:.22;mix-blend-mode:luminosity;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.6) 40%,#000 75%);mask-image:linear-gradient(90deg,transparent 0,rgba(0,0,0,.6) 40%,#000 75%)}
.head-in{position:relative;display:flex;align-items:center;gap:22px;min-height:126px;padding-top:6px;padding-bottom:22px}
.brand{display:flex;align-items:center;gap:22px;color:#fff;text-decoration:none!important}
.brand-crest{width:118px;height:auto;filter:drop-shadow(0 6px 14px rgba(0,0,0,.35))}
.brand-txt strong{display:block;font-size:clamp(1.375rem,2.45vw,2.375rem);font-weight:800;line-height:1.08;letter-spacing:-.2px}
.brand-txt span{display:block;font-size:clamp(0.9375rem,1.55vw,1.5rem);font-weight:600;opacity:.96;margin-top:4px}
.head-prus{width:142px;height:auto;align-self:flex-end;margin-bottom:-4px;margin-left:4px;position:relative;z-index:1;filter:drop-shadow(0 8px 14px rgba(4,50,85,.45)) drop-shadow(0 0 1px rgba(255,255,255,.4))}
.head-contact{margin-left:auto;display:flex;gap:30px;align-items:center;font-size:0.9375rem;font-weight:600}
.head-contact a,.head-contact div{display:flex;align-items:center;gap:10px;color:#fff}
.head-contact .ico{width:24px;height:24px}
.head-herb{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:0.8125rem;font-weight:600;color:#fff;margin-left:10px}
.head-herb img{width:74px}

/* ---------- Nawigacja ---------- */
.nav-wrap{position:sticky;top:0;z-index:40;margin-top:-18px;padding-bottom:6px}
.nav{display:flex;align-items:center;gap:4px;background:rgba(255,255,255,.97);border-radius:18px;box-shadow:var(--shadow);padding:9px 12px;backdrop-filter:blur(8px)}
.nav>ul{display:flex;list-style:none;margin:0;padding:0;gap:2px;flex:1;justify-content:space-between}
.nav li{position:relative}
.nav a.nl,.nav button.nl{display:flex;align-items:center;gap:9px;padding:11px 16px;border-radius:14px;color:var(--navy-2);font-weight:800;font-size:1.031rem;background:none;border:0;white-space:nowrap;text-decoration:none}
.nav a.nl:hover,.nav button.nl:hover{background:var(--sky)}
.nav a.nl.on{background:linear-gradient(180deg,#0878bd,#06609a);color:#fff;box-shadow:0 6px 14px rgba(8,120,189,.35);padding:11px 26px}
.nav .nl .ico{width:22px;height:22px}
.nav .chev{width:15px;height:15px;stroke-width:2.6}
.sub{position:absolute;top:calc(100% + 8px);left:0;min-width:250px;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:8px;list-style:none;margin:0;opacity:0;visibility:hidden;transform:translateY(6px);transition:.18s}
.nav li:hover>.sub,.nav li:focus-within>.sub,.nav li.open>.sub{opacity:1;visibility:visible;transform:none}
.sub a{display:block;padding:9px 12px;border-radius:9px;color:var(--ink);font-weight:700;font-size:0.9375rem}
.sub a:hover{background:var(--sky);text-decoration:none}
.nav-search{border:0;background:none;color:var(--navy-2);padding:10px;border-radius:12px;margin-left:4px}
.nav-search:hover{background:var(--sky)}
.nav-search .ico{width:24px;height:24px}
.burger{display:none;border:0;background:var(--navy);color:#fff;border-radius:12px;padding:10px 14px;font-weight:800;align-items:center;gap:8px}

/* ---------- Karty ogólne ---------- */
.card{background:#fff;border-radius:var(--r);box-shadow:var(--shadow-sm);overflow:hidden}
.circle-arrow{width:38px;height:38px;border-radius:50%;background:#fff;color:var(--navy);display:grid;place-items:center;flex:none;box-shadow:0 3px 10px rgba(0,0,0,.18);transition:transform .2s}
.circle-arrow .ico{width:20px;height:20px;stroke-width:2.6}
a:hover .circle-arrow{transform:translateX(3px)}
.btn{display:inline-flex;align-items:center;gap:10px;padding:13px 26px;border-radius:999px;font-weight:800;font-size:1.062rem;text-decoration:none!important;transition:transform .15s,box-shadow .15s;border:0}
.btn:hover{transform:translateY(-2px)}
.btn-yellow{background:linear-gradient(180deg,#ffdb3a,#f7bf00);color:#14234a;box-shadow:0 6px 16px rgba(247,191,0,.45)}
.btn-ghost{border:2.5px solid #fff;color:#fff;background:rgba(255,255,255,.08)}
.btn-blue{background:linear-gradient(180deg,#0878bd,#06609a);color:#fff;box-shadow:0 6px 16px rgba(11,58,152,.35)}
.btn .ico{width:20px;height:20px}

/* ---------- Strona główna: rząd 1 ---------- */
main{padding:18px 0 10px}
.row1{display:grid;grid-template-columns:1.62fr 1fr .98fr;gap:16px}
.row1>*,.tiles>*,.row3>*,.news-grid>*,.layout>*,.grid2>*,.grid3>*{min-width:0}
html,body{overflow-x:clip}
.hero{position:relative;min-height:360px;border-radius:var(--r);overflow:hidden;border:4px solid #fff;box-shadow:var(--shadow);color:#fff;isolation:isolate}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1s ease,transform 7s ease;transform:scale(1.04);z-index:-2}
.hero-slide.on{opacity:1;transform:scale(1)}
.hero::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(6,22,60,.82) 0%,rgba(6,22,60,.55) 42%,rgba(6,22,60,.05) 78%),linear-gradient(0deg,rgba(6,22,60,.35),transparent 40%)}
.hero-in{padding:92px 38px 34px;max-width:640px}
.eyebrow{display:flex;align-items:center;gap:12px;font-weight:800;font-size:1.312rem}
.eyebrow::before{content:"";width:34px;height:7px;border-radius:9px;background:var(--yellow)}
.hero h1{font-size:clamp(1.875rem,3.3vw,3.125rem);line-height:1.08;margin:10px 0 10px;font-weight:900;text-shadow:0 3px 14px rgba(0,0,0,.35)}
.hero p{font-size:1.156rem;font-weight:600;margin:0 0 22px;text-shadow:0 2px 8px rgba(0,0,0,.4)}
.hero-btns{display:flex;gap:16px;flex-wrap:wrap}
.dots{position:absolute;right:22px;bottom:18px;display:flex;gap:9px}
.dots button{width:12px;height:12px;border-radius:50%;border:0;background:rgba(255,255,255,.55);padding:0}
.dots button.on{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.3)}

.news-box{border-radius:var(--r);background:linear-gradient(180deg,#0878bd,#06609a);padding:14px;box-shadow:var(--shadow);border:4px solid #fff;display:flex;flex-direction:column}
.box-h{display:flex;align-items:center;gap:12px;color:#fff;padding:2px 6px 12px}
.box-h h2{margin:0;font-size:1.562rem;font-weight:900}
.box-h .ico{width:32px;height:32px}
.box-h a{margin-left:auto;color:#fff;font-weight:700;font-size:0.875rem;display:flex;align-items:center;gap:6px;white-space:nowrap}
.box-h a .ico{width:18px;height:18px}
.feat{background:#fff;border-radius:14px;overflow:hidden;display:flex;flex-direction:column;flex:1;color:var(--ink);text-decoration:none!important}
.feat img{height:150px;width:100%;object-fit:cover;transition:transform .5s}
.feat:hover img{transform:scale(1.04)}
.feat-b{padding:12px 18px 14px}
.feat h3{margin:0 0 4px;font-size:1.312rem;line-height:1.2;font-weight:900;color:var(--navy-2)}
.feat p{margin:0 0 8px;font-size:0.9375rem;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.date{display:flex;align-items:center;gap:8px;font-size:0.875rem;font-weight:700;color:var(--muted)}
.date .ico{width:17px;height:17px}

.cal-box{border-radius:var(--r);background:linear-gradient(180deg,#fff4e2,#fde9c8);padding:18px 16px 14px;box-shadow:var(--shadow);border:4px solid #fff;display:flex;flex-direction:column}
.cal-box .box-h{color:var(--navy-2);padding:0 4px 12px}
.cal-box .box-h .ico{color:var(--red)}
.ev{display:flex;align-items:center;gap:16px;background:rgba(255,255,255,.7);border-radius:13px;padding:9px 14px;margin-bottom:9px}
.ev-d{width:58px;flex:none;text-align:center;border-right:2px solid #f3d4a6;padding-right:12px;color:var(--red);line-height:1}
.ev-d b{display:block;font-size:1.688rem;font-weight:900}
.ev-d small{font-size:0.9375rem;font-weight:800}
.ev strong{display:block;font-size:1rem;font-weight:900;color:var(--navy-2);line-height:1.2}
.ev span{font-size:0.875rem;color:var(--muted);font-weight:600}
.cal-more{margin:auto auto 0;font-weight:900;color:var(--navy-2);font-size:1.062rem;border-bottom:2px solid var(--navy-2);display:inline-flex;gap:8px;align-items:center;padding-top:6px}
.cal-more:hover{text-decoration:none;color:var(--blue)}

/* ---------- Kafle kolorowe ---------- */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:18px}
.tile{position:relative;display:flex;gap:18px;align-items:flex-start;padding:22px 22px 20px;border-radius:var(--r);color:#fff;text-decoration:none!important;box-shadow:var(--shadow);border:3px solid rgba(255,255,255,.85);min-height:124px;overflow:hidden;transition:transform .2s}
.tile:hover{transform:translateY(-4px)}
.tile::after{content:"";position:absolute;right:-40px;top:-60px;width:180px;height:180px;border-radius:50%;background:rgba(255,255,255,.09)}
.tile>.ico{width:60px;height:60px;stroke-width:1.7;flex:none}
.tile h2{margin:0 0 4px;font-size:clamp(1.312rem,1.75vw,1.688rem);font-weight:900;line-height:1.1;white-space:nowrap}
.tile p{margin:0;font-size:0.9688rem;font-weight:600;line-height:1.35}
.tile>div{min-width:0}
.tile p{padding-right:34px}
.tile .circle-arrow{position:absolute;right:16px;bottom:16px}
.t-blue{background:linear-gradient(135deg,#0878bd,#06609a)} .t-blue .circle-arrow{color:#06609a}
.t-pink{background:linear-gradient(135deg,#d6246e,#b01a58)} .t-pink .circle-arrow{color:#b01a58}
.t-green{background:linear-gradient(135deg,#13804a,#0a6b38)} .t-green .circle-arrow{color:#0a6b38}
.t-purple{background:linear-gradient(135deg,#7a3fe4,#5525c0)} .t-purple .circle-arrow{color:#5525c0}

/* ---------- Rząd 3: O szkole / Galeria / Kontakt ---------- */
.row3{display:grid;grid-template-columns:1fr 1.33fr 1.06fr;gap:16px;margin-top:18px}
.r3{position:relative;border-radius:var(--r);overflow:hidden;min-height:186px;box-shadow:var(--shadow);border:4px solid #fff;text-decoration:none!important;display:block}
.r3 h2{margin:0 0 6px;font-size:1.812rem;font-weight:900;line-height:1.1;display:flex;align-items:center;gap:14px}
.r3 h2 .ico{width:40px;height:40px}
.r3 p{margin:0;font-weight:600;font-size:1rem;line-height:1.4}
.r3 .circle-arrow{position:absolute;right:16px;bottom:16px}
.about{background:linear-gradient(90deg,#f6e8cf 0%,#efdcb7 55%,#d8bd8f 100%);color:#2d1d0b}
.about .r3-in{position:relative;z-index:2;padding:24px 26px;max-width:58%}
.about h2 .ico{color:#9a3b12}
.about img{position:absolute;right:0;bottom:0;top:auto;height:100%;width:auto;max-width:62%;object-fit:contain;object-position:right bottom;-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%);mask-image:linear-gradient(90deg,transparent,#000 35%);filter:sepia(.35)}
.gallery{background:linear-gradient(120deg,#0878bd,#06609a);color:#fff}
.gallery .r3-in{position:relative;z-index:2;padding:24px 26px;max-width:46%}
.polas{position:absolute;right:30px;top:12px;bottom:12px;width:52%}
.pola{position:absolute;background:#fff;padding:6px 6px 16px;border-radius:4px;box-shadow:0 8px 20px rgba(0,0,0,.3);width:44%;transition:transform .3s}
.pola img{width:100%;aspect-ratio:4/3;object-fit:cover}
.pola:nth-child(1){left:0;top:16%;transform:rotate(-7deg)}
.pola:nth-child(2){left:30%;top:34%;transform:rotate(3deg);z-index:2}
.pola:nth-child(3){right:0;top:0;transform:rotate(8deg)}
.gallery:hover .pola:nth-child(1){transform:rotate(-10deg) translateY(-4px)}
.gallery:hover .pola:nth-child(3){transform:rotate(11deg) translateY(-4px)}
.contact{background:#fff;color:var(--ink)}
.contact .r3-in{position:relative;z-index:2;padding:22px 26px}
.contact h2{color:var(--navy-2)}
.contact h2 .ico{color:var(--navy)}
.contact ul{list-style:none;margin:6px 0 0;padding:0 0 0 2px}
.contact li{display:flex;gap:14px;align-items:flex-start;font-weight:700;font-size:0.9688rem;margin-bottom:9px;color:var(--navy-2)}
.contact li .ico{width:21px;height:21px;margin-top:2px;color:var(--navy)}
.contact img.bld{position:absolute;right:0;top:0;height:100%;width:46%;object-fit:cover;object-position:30% 50%;-webkit-mask-image:linear-gradient(90deg,transparent,#000 40%);mask-image:linear-gradient(90deg,transparent,#000 40%)}

/* ---------- Sekcja aktualności ---------- */
.sec-h{display:flex;align-items:center;gap:14px;margin:30px 0 14px;flex-wrap:wrap}
.sec-h h2{margin:0;font-size:1.875rem;font-weight:900;color:var(--navy-2);display:flex;align-items:center;gap:12px}
.sec-h h2 .ico{width:34px;height:34px;color:var(--navy)}
.sec-h p{margin:0;font-weight:600;color:var(--muted)}
.sec-h .more{margin-left:auto;font-weight:800;display:flex;align-items:center;gap:6px}
.news-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px}
.nc{display:flex;flex-direction:column;background:#fff;border-radius:16px;overflow:hidden;box-shadow:var(--shadow-sm);color:var(--ink);text-decoration:none!important;transition:transform .2s,box-shadow .2s;border:3px solid #fff}
.nc:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.nc-img{position:relative;aspect-ratio:16/10;overflow:hidden;background:#dfe9f8}
.nc-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.nc:hover .nc-img img{transform:scale(1.05)}
.tag{position:absolute;left:10px;top:10px;background:rgba(11,47,122,.9);color:#fff;font-size:0.75rem;font-weight:800;padding:4px 10px;border-radius:999px}
.nc-b{padding:12px 14px 12px;display:flex;flex-direction:column;flex:1}
.nc h3{margin:0 0 6px;font-size:1.094rem;line-height:1.22;font-weight:900;color:var(--navy-2);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.nc p{margin:0 0 10px;font-size:0.9062rem;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nc-f{margin-top:auto;display:flex;align-items:center;justify-content:space-between}
.nc-f .ar{width:30px;height:30px;border-radius:50%;border:2px solid var(--blue);color:var(--blue);display:grid;place-items:center}
.nc-f .ar .ico{width:16px;height:16px;stroke-width:2.8}

/* ---------- Szybkie linki ---------- */
.quick{margin-top:26px;background:linear-gradient(90deg,#065994,#0878bd);border-radius:var(--r);color:#fff;display:flex;align-items:center;gap:10px;padding:14px 26px;box-shadow:var(--shadow);flex-wrap:wrap}
.quick strong{font-size:1.312rem;font-weight:900;margin-right:20px}
.quick nav{display:flex;flex:1;justify-content:space-around;gap:6px;flex-wrap:wrap}
.quick nav a{display:flex;align-items:center;gap:10px;color:#fff;font-weight:700;font-size:1.062rem;padding:8px 12px;border-radius:10px}
.quick nav a:hover{background:rgba(255,255,255,.1);text-decoration:none}
.quick nav .ico{width:24px;height:24px}
.socials{display:flex;gap:12px}
.socials a{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;color:#fff}
.socials a .ico{width:24px;height:24px;fill:currentColor;stroke:none}
.s-fb{background:#1877f2;border-radius:50%!important}.s-yt{background:#ff0000}.s-ig{background:radial-gradient(circle at 30% 110%,#fdf497 0,#fd5949 45%,#d6249f 60%,#285aeb 90%)}

/* ---------- Stopka ---------- */
.foot{margin-top:22px;background-color:#065994;background-image:linear-gradient(90deg,#054f84,#0873b7);color:#f2f9ff;padding:28px 0 18px;font-size:0.9375rem}
.foot-g{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:28px}
.foot h3{color:#fff;margin:0 0 10px;font-size:1.062rem;font-weight:900}
.foot a{color:#fff}
.foot ul{list-style:none;margin:0;padding:0}
.foot li{margin-bottom:6px}
.foot-brand{display:flex;gap:14px;align-items:center}
.foot-brand img{width:70px}
.foot-brand strong{display:block;color:#fff;font-size:1.125rem}
.foot-bot{margin-top:22px;padding-top:14px;border-top:1px solid rgba(255,255,255,.14);display:flex;align-items:center;gap:18px;flex-wrap:wrap;font-size:0.875rem}
.credits{margin-left:auto;display:flex;align-items:center;gap:16px}
.credits a{color:#fff;font-weight:700}
.credits img{height:40px;width:auto;opacity:.7;transition:opacity .2s}
.credits a:hover img{opacity:1}

/* ---------- Podstrony ---------- */
.page-head{position:relative;border-radius:var(--r);overflow:hidden;color:#fff;padding:34px 36px;box-shadow:var(--shadow);border:4px solid #fff;
  background:linear-gradient(100deg,rgba(5,79,132,.93),rgba(8,110,176,.86)),url(../img/szkola-z-drona.jpg) center/cover;background-size:cover;background-position:center}
.page-head h1{margin:6px 0 6px;font-size:clamp(1.75rem,3vw,2.75rem);font-weight:900;line-height:1.1}
.page-head p{margin:0;font-size:1.125rem;font-weight:600;max-width:760px;opacity:.95}
.crumbs{font-size:0.875rem;font-weight:700;opacity:.9}
.crumbs a{color:#fff}
.layout{display:grid;grid-template-columns:1fr 340px;gap:18px;margin-top:18px;align-items:start}
.panel{background:#fff;border-radius:var(--r);box-shadow:var(--shadow-sm);padding:26px 28px;border:3px solid #fff}
.panel+.panel{margin-top:18px}
.panel>h2{margin:0 0 14px;font-size:1.5rem;font-weight:900;color:var(--navy-2);display:flex;gap:10px;align-items:center}
.panel>h2 .ico{color:var(--blue);width:28px;height:28px}
.panel h3{color:var(--navy-2);font-weight:900;margin:18px 0 8px}
.prose{font-size:1.062rem;line-height:1.7}
.prose p{margin:0 0 14px}
.side .panel{padding:20px}
.side h2{font-size:1.25rem}
.mini{display:flex;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none!important}
.mini:last-child{border:0}
.mini img{width:74px;height:56px;border-radius:10px;object-fit:cover;flex:none}
.mini b{font-size:0.9062rem;line-height:1.25;color:var(--navy-2);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mini small{display:block;color:var(--muted);font-weight:700;font-size:0.7812rem;margin-top:2px}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.info-list{list-style:none;padding:0;margin:0}
.info-list li{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px dashed var(--line);font-weight:700}
.info-list li:last-child{border:0}
.info-list li span:first-child{color:var(--muted)}
.chip{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border-radius:999px;background:var(--sky);color:var(--navy-2);font-weight:800;font-size:0.875rem;border:2px solid transparent;cursor:pointer}
.chip.on{background:var(--navy);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.input{width:100%;padding:13px 16px 13px 46px;border-radius:14px;border:2px solid var(--line);font:inherit;font-weight:600;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%234a5a78' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='9' cy='9' r='6.5'/%3E%3Cpath d='m14 14 4.5 4.5'/%3E%3C/svg%3E") 16px center no-repeat}
.input:focus{border-color:var(--blue);outline:none}
.toolbar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.toolbar .input{max-width:380px}
.empty{padding:30px;text-align:center;color:var(--muted);font-weight:700;display:none}

/* Artykuł */
.art-cover{border-radius:14px;width:100%;max-height:520px;object-fit:cover;margin-bottom:20px}
.art-meta{display:flex;gap:16px;flex-wrap:wrap;margin-bottom:16px;align-items:center}
.gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin-top:10px}
.gal a{display:block;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:#e3ecf9}
.gal img{width:100%;height:100%;object-fit:cover;transition:transform .4s}
.gal a:hover img{transform:scale(1.06)}
.src{display:inline-flex;gap:8px;align-items:center;font-weight:800;margin-top:6px}
.pn{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:18px}
.pn a{background:#fff;border-radius:14px;padding:14px 18px;box-shadow:var(--shadow-sm);font-weight:800;color:var(--navy-2)}
.pn a small{display:block;color:var(--muted);font-size:0.8125rem}
.pn a:last-child{text-align:right}

/* Nauczyciele */
.t-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.tc{display:flex;gap:14px;align-items:flex-start;background:#fff;border-radius:16px;padding:16px;box-shadow:var(--shadow-sm);border:2px solid #fff;transition:border-color .2s}
.tc:hover{border-color:#bcd3f5}
.av{width:54px;height:54px;border-radius:16px;display:grid;place-items:center;font-weight:900;font-size:1.188rem;color:#fff;flex:none}
.tc b{display:block;font-size:1.062rem;color:var(--navy-2);line-height:1.2}
.tc .role{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.tc .role span{font-size:0.7812rem;font-weight:800;padding:3px 9px;border-radius:999px;background:var(--sky);color:var(--navy)}
.tc .role span.k{background:#fff1c7;color:#7a5200}
.lead-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px;margin-bottom:18px}
.lead{display:flex;gap:18px;align-items:center;border-radius:var(--r);padding:20px 22px;color:#fff;box-shadow:var(--shadow)}
.lead .av{width:66px;height:66px;font-size:1.438rem;background:rgba(255,255,255,.2);border:2px solid rgba(255,255,255,.5)}
.lead b{font-size:1.375rem;display:block}
.lead span{font-weight:700;opacity:.95}
.spec{border-radius:16px;background:var(--sky);padding:16px 18px}
.spec b{color:var(--navy-2);font-size:1.062rem}
.spec .who{font-weight:700;color:var(--muted);font-size:0.875rem;margin-bottom:6px}
.hours{list-style:none;padding:0;margin:0;font-size:0.9062rem}
.hours li{display:flex;justify-content:space-between;padding:4px 0;border-bottom:1px dashed #c8d9f3;font-weight:700}
.hours li:last-child{border:0}

/* Kalendarz */
.month{margin-bottom:22px}
.month h3{font-size:1.312rem;margin:0 0 10px;text-transform:capitalize}
.ev-row{display:flex;gap:16px;align-items:center;padding:10px 12px;border-radius:12px;border-left:6px solid var(--blue);background:#f6f9ff;margin-bottom:8px}
.ev-row .d{min-width:128px;font-weight:900;color:var(--navy-2)}
.ev-row .t{font-weight:700}
.ev-row .k{margin-left:auto;font-size:0.7812rem;font-weight:800;padding:3px 10px;border-radius:999px;background:#fff;color:var(--muted);white-space:nowrap}
.ev-row.wolne{border-color:var(--red);background:#fff4f4}
.ev-row.rodzice{border-color:var(--pink)}
.ev-row.egzamin{border-color:var(--purple);background:#f6f1ff}
.ev-row.swieto{border-color:var(--yellow-2);background:#fffaeb}
.ev-row.past{opacity:.55}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-weight:700;font-size:0.875rem}
.legend i{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:6px;vertical-align:-2px}

/* Dokumenty */
.doc{display:flex;align-items:center;gap:14px;overflow-wrap:anywhere;min-width:0;padding:12px 14px;border-radius:12px;color:var(--ink);font-weight:700;border:2px solid var(--line);margin-bottom:9px;text-decoration:none!important;background:#fff}
.doc:hover{border-color:var(--blue);background:#f6f9ff}
.doc .ext{font-size:0.75rem;font-weight:900;padding:5px 8px;border-radius:7px;color:#fff;min-width:46px;text-align:center}
.ext.pdf{background:#d92b2b}.ext.docx,.ext.doc,.ext.odt{background:#1e63e0}
.doc .ico{margin-left:auto;color:var(--blue)}

/* Stołówka i tabele */
.tbl{width:100%;border-collapse:separate;border-spacing:0;font-size:0.9375rem}
.tbl th{background:var(--navy);color:#fff;text-align:left;padding:10px 12px;font-weight:800}
.tbl th:first-child{border-radius:10px 0 0 0}.tbl th:last-child{border-radius:0 10px 0 0}
.tbl td{padding:10px 12px;border-bottom:1px solid var(--line);vertical-align:top}
.tbl tr:nth-child(even) td{background:#f7faff}
.bells{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.bell{background:var(--sky);border-radius:12px;padding:12px;text-align:center;font-weight:800;color:var(--navy-2)}
.bell small{display:block;color:var(--muted);font-weight:800;font-size:0.7812rem}

/* Galeria albumy */
.albums{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.album{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:4/3;box-shadow:var(--shadow-sm);display:block;border:3px solid #fff}
.album img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.album:hover img{transform:scale(1.06)}
.album div{position:absolute;inset:auto 0 0 0;padding:40px 14px 12px;background:linear-gradient(0deg,rgba(5,20,55,.88),transparent);color:#fff}
.album b{display:block;line-height:1.2}
.album small{font-weight:700;opacity:.9}
.album .cnt{position:absolute;top:10px;right:10px;background:rgba(0,0,0,.55);color:#fff;font-weight:800;font-size:0.8125rem;padding:4px 9px;border-radius:999px;display:flex;gap:5px;align-items:center}

/* Lightbox */
.lb{position:fixed;inset:0;background:rgba(4,12,32,.94);z-index:100;display:none;align-items:center;justify-content:center}
.lb.on{display:flex}
.lb img{max-width:92vw;max-height:86vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.6)}
.lb button{position:absolute;background:rgba(255,255,255,.14);border:0;color:#fff;width:52px;height:52px;border-radius:50%;display:grid;place-items:center}
.lb button:hover{background:rgba(255,255,255,.28)}
.lb .x{top:18px;right:18px}.lb .p{left:18px;top:50%}.lb .n{right:18px;top:50%}
.lb .c{position:absolute;bottom:16px;left:0;right:0;text-align:center;color:#fff;font-weight:700}

/* Wyszukiwarka */
.sx{position:fixed;inset:0;background:rgba(6,20,55,.6);backdrop-filter:blur(4px);z-index:90;display:none;align-items:flex-start;justify-content:center;padding:8vh 16px}
.sx.on{display:flex}
.sx-box{background:#fff;border-radius:20px;width:min(720px,100%);padding:18px;box-shadow:0 30px 80px rgba(0,0,0,.35)}
.sx-res{max-height:60vh;overflow:auto;margin-top:12px}
.sx-res a{display:block;padding:10px 12px;border-radius:10px;color:var(--ink)}
.sx-res a:hover,.sx-res a.sel{background:var(--sky);text-decoration:none}
.sx-res b{color:var(--navy-2)}
.sx-res small{display:block;color:var(--muted);font-weight:700}

.notice{background:#fff8e1;border:2px solid #ffe08a;border-radius:14px;padding:14px 16px;font-weight:700;display:flex;gap:12px;align-items:flex-start}
.notice .ico{color:#b07800;margin-top:2px}

/* ---------- Responsywność ---------- */
@media (max-width:1380px){
  .head-contact{gap:18px;font-size:0.875rem}
  .nav a.nl,.nav button.nl{padding:10px 11px;font-size:0.9688rem}
  .news-grid{grid-template-columns:repeat(4,1fr)} .news-grid .nc:nth-child(5){display:none}
}
@media (max-width:1180px){
  .head-contact,.head-prus{display:none}
  .head-herb{margin-left:auto}
  .row1{grid-template-columns:1fr 1fr}
  .hero{grid-column:1/-1}
  .tiles{grid-template-columns:repeat(2,1fr)}
  .row3{grid-template-columns:1fr 1fr}
  .row3 .contact{grid-column:1/-1}
  .news-grid{grid-template-columns:repeat(3,1fr)} .news-grid .nc:nth-child(n+4){display:none}
  .layout{grid-template-columns:1fr}
  .foot-g{grid-template-columns:1fr 1fr}
  .nav>ul{display:none;position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;flex-direction:column;border-radius:16px;box-shadow:var(--shadow);padding:10px}
  .nav.open>ul{display:flex}
  .nav{position:relative;justify-content:space-between}
  .burger{display:flex}
  .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;display:none;padding:0 0 0 30px}
  .nav li.open>.sub{display:block}
  .nav a.nl.on{padding:11px 16px}
}
@media (max-width:720px){
  .brand-crest{width:78px}
  .head-herb img{width:50px}.head-herb span{display:none}
  .head-in{min-height:100px;gap:12px}
  .brand{gap:12px}
  .row1,.tiles,.row3,.grid2,.grid3,.lead-grid{grid-template-columns:1fr}
  .hero-in{padding:56px 22px 54px}
  .hero{min-height:420px}
  .news-grid{grid-template-columns:1fr 1fr;gap:12px} .news-grid .nc:nth-child(n+4){display:flex} .news-grid .nc:nth-child(n+5){display:none}
  .nc h3{font-size:0.9688rem} .nc p{display:none}
  .gallery .r3-in{max-width:100%}
  .polas{position:relative;right:auto;top:auto;bottom:auto;width:auto;height:170px;margin:0 22px 22px}
  .about .r3-in{max-width:66%}
  .contact img.bld{display:none}
  .quick{padding:14px}
  .quick strong{width:100%}
  .quick nav{justify-content:flex-start}
  .foot-g{grid-template-columns:1fr}
  .credits{margin-left:0}
  .bells{grid-template-columns:1fr 1fr}
  .panel{padding:20px 18px}
  .ev-row{flex-wrap:wrap;gap:4px 12px}.ev-row .k{margin-left:0}
  .pn{grid-template-columns:1fr}
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block;width:100%}
  .tbl thead{display:none}
  .tbl tr{background:var(--sky);border-radius:14px;padding:12px 14px;margin-bottom:10px}
  .tbl tr:nth-child(even) td,.tbl td{background:none;border:0;padding:3px 0}
  .tbl td[data-l]::before{content:attr(data-l);display:block;font-size:0.75rem;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
  .tbl td:first-child{font-size:1.062rem;color:var(--navy-2);padding-bottom:6px}
  .tbl-wrap{overflow:visible!important}
  .info-list li{flex-wrap:wrap}
  .nc-f .date{font-size:0.7812rem}
  .prose h2{font-size:1.25rem}.prose h3{font-size:1.125rem}
  .box-h h2{font-size:1.375rem}
}
@media (max-width:480px){.head-herb{display:none}.brand-txt strong{font-size:1.312rem}.brand-txt span{font-size:0.875rem}}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ==========================================================================
   WordPress – treści, bloki, wtyczki
   ========================================================================== */
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.admin-bar .nav-wrap{top:32px}
@media (max-width:782px){.admin-bar .nav-wrap{top:0}}
.custom-logo{width:118px;height:auto}
.prose{overflow-wrap:break-word}
.prose>*:first-child{margin-top:0}
.prose h1,.prose h2,.prose h3,.prose h4{color:var(--navy-2);font-weight:900;line-height:1.2;margin:1.3em 0 .5em}
.prose h2{font-size:1.5rem}.prose h3{font-size:1.25rem}.prose h4{font-size:1.125rem}
.prose img,.prose video,.prose iframe{max-width:100%;height:auto;border-radius:12px}
.prose iframe{width:100%;min-height:320px;border:0}
.prose a{font-weight:700}
.prose ul,.prose ol{padding-left:1.3em;margin:0 0 14px}
.prose li{margin-bottom:4px}
.prose blockquote{margin:16px 0;padding:12px 18px;border-left:5px solid var(--yellow-2);background:#fffaeb;border-radius:0 12px 12px 0}
.prose figure{margin:0 0 16px}
.prose figcaption{font-size:0.875rem;color:var(--muted);text-align:center;margin-top:6px}
.prose hr{border:0;border-top:2px dashed var(--line);margin:20px 0}
.prose [style*="color:#0e107b"],.prose [style*="color:#131990"]{color:var(--navy-2)!important}
.prose .has-text-align-center{text-align:center}
.prose .alignleft{float:left;margin:0 18px 12px 0;max-width:50%}
.prose .alignright{float:right;margin:0 0 12px 18px;max-width:50%}
.prose .aligncenter{margin-left:auto;margin-right:auto;text-align:center}
.prose .wp-block-image img{display:inline-block}
.prose .wp-block-columns{display:flex;gap:18px;flex-wrap:wrap}
.prose .wp-block-column{flex:1 1 240px;min-width:0}
.prose .wp-block-gallery,.prose .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}
.prose .wp-block-gallery figure,.prose .gallery-item{margin:0;width:auto!important}
.prose .wp-block-gallery img,.prose .gallery img{width:100%;height:100%;aspect-ratio:4/3;object-fit:cover}
.prose .wp-block-button__link,.prose .wp-element-button{display:inline-block;background:linear-gradient(180deg,#0878bd,#06609a);color:#fff!important;border-radius:999px;padding:11px 22px;text-decoration:none}
.prose .wp-block-file{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 14px;border:2px solid var(--line);border-radius:12px;margin-bottom:9px}
.prose .wp-block-file__button{margin-left:auto;background:var(--navy);color:#fff!important;border-radius:999px;padding:6px 14px;font-size:0.875rem;text-decoration:none}
/* linki do plików jak przyciski dokumentów */
.prose a[href$=".pdf" i],.prose a[href$=".doc" i],.prose a[href$=".docx" i],.prose a[href$=".odt" i],.prose a[href$=".xlsx" i],.prose a[href$=".xls" i]{display:inline-flex;align-items:center;gap:10px;padding:8px 14px 8px 8px;margin:3px 0;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-decoration:none;max-width:100%}
.prose a[href$=".pdf" i]:hover,.prose a[href$=".doc" i]:hover,.prose a[href$=".docx" i]:hover,.prose a[href$=".odt" i]:hover{border-color:var(--blue);background:#f4fbff}
.prose a[href$=".pdf" i]::before,.prose a[href$=".doc" i]::before,.prose a[href$=".docx" i]::before,.prose a[href$=".odt" i]::before,.prose a[href$=".xlsx" i]::before,.prose a[href$=".xls" i]::before{content:"PLIK";font-size:0.6875rem;font-weight:900;color:#fff;background:var(--blue);border-radius:6px;padding:4px 7px;flex:none}
.prose a[href$=".pdf" i]::before{content:"PDF";background:#d92b2b}
.prose a[href$=".doc" i]::before,.prose a[href$=".docx" i]::before,.prose a[href$=".odt" i]::before{content:"DOC";background:#1e63e0}
.prose a[href$=".xlsx" i]::before,.prose a[href$=".xls" i]::before{content:"XLS";background:#18a058}
/* tabele w treści – mieszczą się w szerokości */
.table-wrap{overflow-x:auto;margin:0 0 16px;border-radius:12px}
.prose table{width:100%;border-collapse:collapse;font-size:0.9375rem}
.prose table td,.prose table th{border:1px solid var(--line);padding:8px 10px;vertical-align:top;word-break:normal;overflow-wrap:anywhere}
.prose table th,.prose table thead td{background:var(--navy);color:#fff;font-weight:800}
.prose table tr:nth-child(even) td{background:#f5fbff}
/* NextGEN Gallery */
.prose .ngg-galleryoverview{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px;margin:14px 0!important;overflow:visible!important}
.prose .ngg-gallery-thumbnail-box{width:auto!important;float:none!important;margin:0!important;max-width:none!important}
.prose .ngg-gallery-thumbnail{border:0!important;padding:0!important;margin:0!important;text-align:left}
.prose .ngg-gallery-thumbnail a{display:block;border-radius:12px;overflow:hidden;aspect-ratio:4/3;background:#e3f2fb}
.prose .ngg-gallery-thumbnail img{width:100%!important;height:100%!important;object-fit:cover;border:0!important;padding:0!important;margin:0!important;border-radius:0;transition:transform .4s}
.prose .ngg-gallery-thumbnail a:hover img{transform:scale(1.06)}
.prose .ngg-clear,.prose .ngg-navigation{grid-column:1/-1}
.prose .ngg-navigation{display:flex;gap:6px;justify-content:center;flex-wrap:wrap}
.prose .ngg-navigation a,.prose .ngg-navigation span{padding:6px 12px;border-radius:10px;background:var(--sky);font-weight:800;text-decoration:none}
.prose .ngg-imagebrowser,.prose .ngg-slideshow{max-width:100%}
/* paginacja i wyszukiwarka */
.pagination,.nav-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:20px}
.page-numbers{display:inline-grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);font-weight:800;color:var(--navy-2)}
.page-numbers.current{background:var(--navy);color:#fff}
a.page-numbers:hover{text-decoration:none;background:var(--sky)}
.search-form{display:flex;gap:10px}
.search-form .input{flex:1}
.search-form button{border:0}
.child-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.child{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:14px;background:var(--sky);color:var(--navy-2);font-weight:800;text-decoration:none!important;transition:background .2s}
.child:hover{background:#d3eefc}
.child .ico{color:var(--blue);flex:none}
.side-nav{list-style:none;margin:0;padding:0}
.side-nav li a{display:block;padding:8px 10px;border-radius:9px;color:var(--ink);font-weight:700;font-size:0.9375rem}
.side-nav li a:hover,.side-nav li.on a{background:var(--sky);text-decoration:none;color:var(--navy-2)}
.sx-res .sx-hint{padding:10px;color:var(--muted);font-weight:700;margin:0}
.nc-noimg{display:grid;place-items:center;height:100%;background:linear-gradient(135deg,#bfe7fb,#e8f7fe)}
.nc-noimg img{width:46%;height:auto;object-fit:contain;opacity:.9}
.err404{text-align:center;padding:50px 20px}
.err404 b{display:block;font-size:5.625rem;line-height:1;color:var(--navy);font-weight:900}
.sub .sub{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;padding:0 0 0 12px;min-width:0}
.sub li.menu-item-has-children>a{font-weight:900}

/* ujednolicenie starych, ręcznie formatowanych linków do plików */
.prose a[href$=".pdf" i],.prose a[href$=".doc" i],.prose a[href$=".docx" i],.prose a[href$=".odt" i],.prose a[href$=".xlsx" i],.prose a[href$=".xls" i]{font-size:0.9375rem!important;line-height:1.35;font-weight:800;color:var(--ink)!important;overflow-wrap:anywhere;text-transform:none}
.prose a[href$=".pdf" i] *,.prose a[href$=".doc" i] *,.prose a[href$=".docx" i] *,.prose a[href$=".odt" i] *,.prose a[href$=".xlsx" i] *,.prose a[href$=".xls" i] *{color:inherit!important;font-size:inherit!important;font-weight:inherit!important;background:none!important;text-transform:none!important}
.prose p:has(> a[href$=".pdf" i]:only-child),.prose p:has(> a[href$=".docx" i]:only-child),.prose p:has(> a[href$=".doc" i]:only-child){margin:0 0 6px}
.prose h1:has(> a[href*="/wp-content/uploads/"]),.prose h2:has(> a[href*="/wp-content/uploads/"]),.prose h3:has(> a[href*="/wp-content/uploads/"]){margin:0 0 6px;font-size:inherit}
/* stare treści, gdzie cała lista (np. jadłospis) jest wpisana jako nagłówek z łamaniami wierszy */
.prose h1:has(br),.prose h2:has(br),.prose h3:has(br),.prose h4:has(br){font-size:1.062rem!important;line-height:1.6;font-weight:800;margin:0 0 14px}

/* ==========================================================================
   Dostępność (WCAG 2.1 AA) – panel ułatwień i tryby wyświetlania
   ========================================================================== */
html.a11y-fs1{font-size:115%}
html.a11y-fs2{font-size:130%}
html.a11y-links a{text-decoration:underline!important;text-underline-offset:3px}
html.a11y-spacing body{line-height:1.8!important;letter-spacing:.06em!important;word-spacing:.16em!important}
html.a11y-spacing p,html.a11y-spacing li{margin-bottom:1.2em}
html.a11y-font body,html.a11y-font button,html.a11y-font input{font-family:Verdana,Tahoma,Arial,sans-serif!important}
html.a11y-noanim *,html.a11y-noanim *::before,html.a11y-noanim *::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}

/* Wysoki kontrast: żółty/biały na czarnym */
html.a11y-contrast,html.a11y-contrast body{background:#000!important}
html.a11y-contrast body *:not(svg):not(svg *):not(img):not(iframe):not(video){background-color:#000!important;background-image:none!important;color:#fff!important;border-color:#fff!important;box-shadow:none!important;text-shadow:none!important;-webkit-mask-image:none!important;mask-image:none!important}
html.a11y-contrast *::before,html.a11y-contrast *::after{background-image:none!important;box-shadow:none!important}
html.a11y-contrast .site-head::before,html.a11y-contrast .hero::after,html.a11y-contrast .tile::after,html.a11y-contrast .hero-slide{display:none!important}
html.a11y-contrast a,html.a11y-contrast a *,html.a11y-contrast button,html.a11y-contrast button *{color:#ff0!important}
html.a11y-contrast a{text-decoration:underline!important}
html.a11y-contrast .btn,html.a11y-contrast .chip,html.a11y-contrast .nav a.nl.on,html.a11y-contrast .circle-arrow,html.a11y-contrast .nc,html.a11y-contrast .tile,html.a11y-contrast .r3,html.a11y-contrast .panel,html.a11y-contrast .card,html.a11y-contrast .hero,html.a11y-contrast .news-box,html.a11y-contrast .cal-box,html.a11y-contrast .quick,html.a11y-contrast .nav,html.a11y-contrast .page-head,html.a11y-contrast .doc,html.a11y-contrast .ev,html.a11y-contrast .ev-row,html.a11y-contrast .tc,html.a11y-contrast .spec,html.a11y-contrast .lead,html.a11y-contrast .bell,html.a11y-contrast .child{border:2px solid #fff!important}
html.a11y-contrast .chip.on,html.a11y-contrast .nav a.nl.on{border-color:#ff0!important;outline:2px solid #ff0}
html.a11y-contrast .eyebrow::before{background:#ff0!important}
html.a11y-contrast img{filter:none!important}
html.a11y-contrast .head-prus{filter:grayscale(1) contrast(1.2)!important}
html.a11y-contrast .ico{stroke:currentColor}
html.a11y-contrast .socials a .ico{fill:#ff0!important}
html.a11y-contrast .prose a[href$=".pdf" i]::before,html.a11y-contrast .prose a[href$=".doc" i]::before,html.a11y-contrast .prose a[href$=".docx" i]::before,html.a11y-contrast .ext{background:#000!important;color:#ff0!important;border:1px solid #ff0}
html.a11y-contrast :focus-visible{outline:3px solid #0ff!important;outline-offset:2px}
html.a11y-contrast .d8b-sig img{filter:grayscale(1) brightness(1.6)!important}

/* Przycisk i panel ułatwień */
.a11y-fab{position:fixed;left:16px;bottom:16px;z-index:95;width:56px;height:56px;border-radius:50%;border:3px solid #fff;background:#06609a;color:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(5,60,100,.4);cursor:pointer}
.a11y-fab:hover{background:#054f84}
.a11y-fab svg{width:30px;height:30px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.a11y-panel{position:fixed;left:16px;bottom:84px;z-index:96;width:min(330px,calc(100vw - 32px));max-height:calc(100vh - 110px);overflow:auto;background:#fff;color:#0f1f3d;border-radius:18px;box-shadow:0 20px 60px rgba(5,40,80,.35);padding:16px;display:none;font-size:1rem}
.a11y-panel.on{display:block}
.a11y-panel h2{margin:0 0 4px;font-size:1.15rem;font-weight:900;color:#0b4d78}
.a11y-panel p{margin:0 0 12px;font-size:.85rem;color:#4a5a78}
.a11y-row{display:flex;gap:8px;margin-bottom:8px}
.a11y-panel button{font:inherit;font-weight:800;border:2px solid #cfe6f5;background:#f1f9fe;color:#0b4d78;border-radius:12px;padding:10px 12px;cursor:pointer;text-align:left;display:flex;align-items:center;gap:10px;width:100%}
.a11y-row button{justify-content:center;text-align:center}
.a11y-panel button[aria-pressed="true"]{background:#06609a;color:#fff;border-color:#06609a}
.a11y-panel button:hover{border-color:#0878bd}
.a11y-grid{display:grid;grid-template-columns:1fr;gap:8px}
.a11y-panel .a11y-reset{margin-top:10px;background:#fff;border-style:dashed;justify-content:center}
.a11y-panel .a11y-close{position:absolute;right:10px;top:10px;width:36px;height:36px;padding:0;justify-content:center;border-radius:50%}
.hero-pause{width:30px;height:30px;border-radius:50%;border:2px solid #fff;background:rgba(0,0,0,.35);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer;margin-left:4px;font-size:.8rem;line-height:1}
.dots{align-items:center}
@media print{.a11y-fab,.a11y-panel{display:none!important}}
html.a11y-contrast .dots button{border:2px solid #ff0!important}html.a11y-contrast .dots button.on{background:#ff0!important}html.a11y-contrast .hero-pause{border-color:#ff0!important}

/* Pas „Serwisy i programy” nad stopką */
.partners{background:#fff;border-top:1px solid var(--line);margin-top:26px;padding:24px 0 28px}
.partners h2{margin:0 0 18px;text-align:center;font-size:.8125rem;letter-spacing:.18em;text-transform:uppercase;color:var(--navy-2);font-weight:900}
.partners-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:18px 52px}
.partners a{display:inline-flex;align-items:center;line-height:0;filter:grayscale(1);opacity:.7;transition:filter .25s,opacity .25s;text-decoration:none!important}
.partners a:hover,.partners a:focus-visible{filter:none;opacity:1}
.partners img{height:52px;width:auto;max-width:170px;object-fit:contain}
.partners a span:not(.screen-reader-text):not(.sr-only){line-height:1.3;font-weight:800;color:var(--navy-2)}
.partners+.foot{margin-top:0}
@media (max-width:720px){.partners-row{gap:16px 30px}.partners img{height:42px;max-width:130px}}
html.a11y-contrast .partners a{filter:none;opacity:1}html.a11y-contrast .partners img{background:#fff!important;padding:4px}

/* Filmy w galerii (ładowane po kliknięciu) */
.vid-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;margin-top:6px}
.vid{margin:0;background:#fff;border-radius:16px;box-shadow:var(--shadow-sm);overflow:hidden;border:2px solid var(--line)}
.vid-play{position:relative;display:block;width:100%;aspect-ratio:16/9;border:0;padding:0;background:#000;cursor:pointer}
.vid-play img{width:100%;height:100%;object-fit:cover;opacity:.92}
.vid-btn{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:58px;height:58px;border-radius:50%;background:#c4120a;color:#fff;display:grid;place-items:center;font-size:1.3rem;box-shadow:0 6px 18px rgba(0,0,0,.4)}
.vid iframe{width:100%;aspect-ratio:16/9;border:0;display:block}
.vid figcaption{padding:9px 12px;font-size:.875rem;font-weight:700;color:var(--navy-2)}
/* Kalendarz wpisów (widżet WordPress) i archiwum */
.wpcal table{width:100%;border-collapse:collapse;font-size:.875rem;text-align:center}
.wpcal caption{font-weight:900;color:var(--navy-2);padding-bottom:6px;text-transform:capitalize}
.wpcal th{font-weight:800;color:var(--muted);padding:4px 0}
.wpcal td{padding:5px 0;border-radius:8px}
.wpcal td a{display:block;background:var(--navy);color:#fff;border-radius:8px;font-weight:800;text-decoration:none}
.wpcal td a:hover{background:var(--navy-2)}
.wpcal #today{outline:2px solid var(--yellow-2)}
.wpcal .wp-calendar-nav{display:flex;justify-content:space-between;font-weight:800;margin-top:6px;font-size:.875rem}
.arch-sel{margin-top:12px;padding-left:14px;background-image:none}
/* Mapa strony */
.sitemap details{border-bottom:1px solid var(--line);padding:8px 0}
.sitemap summary{cursor:pointer;font-weight:900;color:var(--navy-2)}
.sitemap summary a{color:var(--navy-2)}
.sitemap ul{margin:8px 0 6px;padding-left:1.3em;columns:2 300px;column-gap:28px}
.sitemap ul ul{columns:auto;margin:2px 0}
.sitemap li{margin:2px 0;break-inside:avoid}

/* Równe rzędy i stałe odstępy między blokami */
.layout>*{display:flex;flex-direction:column;gap:18px;min-width:0}
.layout>*>*{margin-top:0!important;margin-bottom:0!important}
.grid2,.grid3,.lead-grid{align-items:stretch}
.grid2>.panel,.grid3>.panel,.grid2>.tile,.grid3>.tile,.lead-grid>*{margin:0!important;height:100%}
.grid2+.panel,.grid3+.panel,.panel+.grid2,.panel+.grid3,.grid2+.grid2,.grid2+.grid3,.grid3+.grid2,.lead-grid+.panel,.panel+.notice,.notice+.panel,.panel+.pn,.panel+.pagination{margin-top:18px}
.lead-grid{margin-bottom:18px}
.side .panel+.panel{margin-top:0}
/* nagłówek: nazwa szkoły i adres bez łamania w 1180–1399 px */
@media (min-width:1181px){.brand-txt strong,.head-contact a,.head-contact div span{white-space:nowrap}}
@media (min-width:1181px) and (max-width:1399px){
  .head-in{gap:14px}.brand{gap:14px}.brand-crest{width:96px}
  .brand-txt strong{font-size:1.75rem}.brand-txt span{font-size:1.0625rem}
  .head-prus{width:118px;margin-left:0}
  .head-contact{gap:16px;font-size:0.8125rem}.head-contact a,.head-contact div{gap:6px}.head-contact .ico{width:20px;height:20px}
  .head-herb{margin-left:4px}.head-herb img{width:60px}
}

/* długie rozwijane menu (10+ pozycji) w dwóch kolumnach – komputer */
@media (min-width:1181px){.nav .sub:has(>li:nth-child(10)){display:grid;grid-template-columns:repeat(2,minmax(210px,1fr));column-gap:4px;min-width:470px}}
@media (min-width:1181px){.nav>ul>li:nth-last-child(-n+2)>.sub{left:auto;right:0}}

/* stopka z kolumną „Strony szkoły” (gdy w panelu dodano podstrony) */
.foot-g.z-spisem{grid-template-columns:1.3fr 1fr 1fr 1fr 1fr}
@media (max-width:1180px){.foot-g.z-spisem{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.foot-g.z-spisem{grid-template-columns:1fr}}
.prose .sp1-gal-h{margin-top:22px}
.mapa-ph{min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;background:linear-gradient(135deg,#e4f5fd,#d3ecf9);border-radius:12px;padding:24px}
.mapa-ph p{margin:0;max-width:520px;color:var(--navy-2)}
.mapa-link{font-weight:700}
/* Ujednolicone treści stron (inc/porzadek.php) */
.prose a.doc{display:flex;width:100%;padding:12px 14px;margin:0 0 9px;font-size:1rem!important}
.prose a.doc::before{content:none!important;display:none!important}
.prose .info-list{padding:0;margin:0 0 14px}
.prose .info-list li{margin:0}
.prose .info-list li span:last-child{text-align:right}
.panel>.src{margin-top:12px}
.doc .ext{flex:none}
.prose a.doc .ext.pdf{background:#d92b2b!important}.prose a.doc .ext.docx{background:#1e63e0!important}.prose a.doc .ext.xls,.prose a.doc .ext.xlsx,.prose a.doc .ext.ods{background:#18a058!important}.prose a.doc .ext.ppt,.prose a.doc .ext.pptx,.prose a.doc .ext.pps{background:#d9692b!important}.prose a.doc .ext:not(.pdf):not(.docx):not(.xls):not(.xlsx):not(.ods):not(.ppt):not(.pptx):not(.pps){background:var(--blue)!important}
.prose a.doc .ext{color:#fff!important;font-size:0.75rem!important;font-weight:900!important}
.tbl th{white-space:nowrap}
