/*
Theme Name: SP3 Hubala
Theme URI: https://sp3-hrubieszow.pl/
Author: SP3 Hrubieszów
Description: Motyw Szkoły Podstawowej nr 3 im. mjr. Henryka Dobrzańskiego "Hubala" w Hrubieszowie. Zbudowany wg wizualizacji 06.2026.
Version: 1.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: sp3hubala
*/

/* ====== RESET / BAZA ====== */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Inter',-apple-system,'Segoe UI',Roboto,Arial,sans-serif;background:#f4f6fb;color:#1c2b45;line-height:1.6;font-size:16px}
img{max-width:100%;height:auto}
a{color:#2e6fdd;text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible{outline:3px solid #ffc233;outline-offset:2px}
.wrap{max-width:1200px;margin:0 auto;padding:0 20px}
.screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* ====== TOPBAR ====== */
.topbar{background:#0d2445;color:#c9d6ec;font-size:13px}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:6px;padding-top:8px;padding-bottom:8px}
.topbar a{color:#c9d6ec}
.topbar strong{color:#fff;font-weight:600}
.topbar-right a{margin-left:18px}
.topbar-right .kontrast{font-weight:700;color:#fff}

/* ====== HEADER ====== */
.site-header{background:#fff;box-shadow:0 1px 0 rgba(13,36,69,.08);position:relative;z-index:20}
.site-header .wrap{display:flex;align-items:center;gap:16px;padding-top:14px;padding-bottom:14px;flex-wrap:wrap}
.logo-link{display:flex;align-items:center;gap:14px;text-decoration:none}
.logo-link:hover{text-decoration:none}
.logo-badge{width:52px;height:52px;border-radius:14px;background:linear-gradient(160deg,#2e6fdd,#12315e);color:#fff;font-size:26px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 -6px 0 #ffc233;flex:0 0 auto}
.logo-txt .l1{font-weight:700;font-size:17px;color:#12315e;line-height:1.25}
.logo-txt .l2{font-size:12.5px;color:#5b6b85;line-height:1.25}
.header-nav{margin-left:auto;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.header-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:2px;flex-wrap:wrap}
.header-nav li{position:relative}
.header-nav a{display:block;padding:8px 11px;color:#1c2b45;font-weight:500;font-size:14.5px;border-radius:8px}
.header-nav a:hover{background:#eef3fc;text-decoration:none;color:#12315e}
.header-nav .current-menu-item>a,.header-nav .current_page_item>a{color:#2e6fdd;font-weight:600}
.header-nav .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;box-shadow:0 10px 30px rgba(13,36,69,.15);border-radius:10px;padding:6px;min-width:210px;z-index:50}
.header-nav li:hover>.sub-menu,.header-nav li:focus-within>.sub-menu{display:block}
.header-nav .sub-menu a{padding:8px 12px}
.btn-dziennik{background:#ffc233;color:#12315e;font-weight:700;padding:10px 18px;border-radius:10px;font-size:14.5px;white-space:nowrap}
.btn-dziennik:hover{background:#ffcf5c;text-decoration:none}
.nav-toggle{display:none;margin-left:auto;background:#12315e;color:#fff;border:0;border-radius:8px;padding:9px 13px;font-size:15px;cursor:pointer}

/* ====== HERO ====== */
.hero{background:linear-gradient(115deg,#0d2445 0%,#12315e 45%,#2e6fdd 100%);color:#fff;position:relative;overflow:hidden}
.hero-decor{position:absolute;border-radius:50%;background:rgba(255,255,255,.07)}
.hero-decor.d1{width:420px;height:420px;right:-80px;top:-120px}
.hero-decor.d2{width:260px;height:260px;right:180px;bottom:-90px;background:rgba(255,255,255,.05)}
.hero-inner{position:relative;padding:64px 0 150px;max-width:640px}
.hero-chip{display:inline-block;border:1px solid rgba(255,255,255,.4);border-radius:999px;padding:5px 16px;font-size:12px;letter-spacing:.12em;font-weight:600}
.hero h1{font-size:52px;line-height:1.08;margin:18px 0 16px;font-weight:800}
.hero h1 .accent{color:#ffc233}
.hero p{font-size:17px;color:#dbe5f5;max-width:520px;margin:0 0 26px}
.hero-cta{display:flex;gap:14px;flex-wrap:wrap}
.btn{display:inline-block;padding:13px 24px;border-radius:11px;font-weight:700;font-size:15px}
.btn:hover{text-decoration:none}
.btn-yellow{background:#ffc233;color:#12315e}
.btn-yellow:hover{background:#ffcf5c}
.btn-ghost{border:1.5px solid rgba(255,255,255,.55);color:#fff}
.btn-ghost:hover{background:rgba(255,255,255,.1)}

/* ====== KAFLE SZYBKIE ====== */
.quick{margin-top:-78px;position:relative;z-index:5}
.quick-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}
.quick-card{background:#fff;border-radius:14px;padding:20px 12px 16px;text-align:center;box-shadow:0 6px 20px rgba(13,36,69,.08);color:#1c2b45;display:block}
.quick-card:hover{text-decoration:none;transform:translateY(-3px);box-shadow:0 10px 26px rgba(13,36,69,.14);transition:.15s}
.quick-ico{width:44px;height:44px;border-radius:11px;margin:0 auto 10px;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:19px}
.quick-card .t{font-weight:700;font-size:14px;line-height:1.3}
.quick-card .s{font-size:12px;color:#5b6b85;margin-top:2px}
.qc-purple{background:#7a3fd0}.qc-red{background:#e2492f}.qc-blue{background:#2e6fdd}.qc-green{background:#1d9a55}.qc-orange{background:#f09a12}.qc-gray{background:#5b6b85}

/* ====== SEKCJE ====== */
.section{padding:52px 0 8px}
.section-head{display:flex;align-items:center;gap:18px;margin-bottom:26px;flex-wrap:wrap}
.section-head h2{font-size:30px;font-weight:800;color:#12315e;margin:0;display:flex;align-items:center;gap:16px}
.section-head h2::after{content:"";width:56px;height:4px;border-radius:4px;background:#ffc233;display:inline-block}
.section-head .more{margin-left:auto;font-weight:600;font-size:14.5px}

/* ====== KARTY AKTUALNOŚCI ====== */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.news-card{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 4px 16px rgba(13,36,69,.07);display:flex;flex-direction:column}
.news-thumb{height:190px;position:relative;background:#eef2f7;display:block}
.thumb-clip{position:absolute;inset:0;overflow:hidden;z-index:0}
.thumb-clip::before{content:"";position:absolute;inset:0;background-image:var(--thumb-bg);background-size:cover;background-position:center;filter:blur(16px) saturate(1.15) brightness(.95);transform:scale(1.25);z-index:0}
.thumb-clip img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;display:block}
.news-date{position:absolute;z-index:2;left:16px;bottom:-16px;background:#12315e;color:#fff;border-radius:10px;padding:7px 12px;text-align:center;line-height:1.1;box-shadow:0 4px 10px rgba(13,36,69,.25)}
.news-date .d{font-size:17px;font-weight:800;display:block}
.news-date .m{font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.news-body{padding:28px 20px 18px;display:flex;flex-direction:column;flex:1}
.news-cat{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;display:inline-block;border-radius:6px;padding:4px 9px;margin-bottom:10px;align-self:flex-start;background:#e7effc;color:#2e6fdd}
.news-card h3{font-size:18.5px;line-height:1.35;margin:0 0 8px;font-weight:700}
.news-card h3 a{color:#12315e}
.news-card p{font-size:14px;color:#4a5a74;margin:0 0 14px;flex:1}
.news-more{font-weight:600;font-size:14px}
.g0{background:linear-gradient(135deg,#22b45a,#8fdc4e)}
.g1{background:linear-gradient(135deg,#2e6fdd,#7fb0ff)}
.g2{background:linear-gradient(135deg,#6f7f2a,#a9bb52)}
.g3{background:linear-gradient(135deg,#c23a68,#e77aa0)}
.g4{background:linear-gradient(135deg,#0e8f8f,#4ecab8)}
.g5{background:linear-gradient(135deg,#f09a12,#ffc95e)}

/* ====== ZAŁATW SPRAWĘ ====== */
.tasks-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.task-card{background:#fff;border-radius:12px;padding:18px 20px;border-left:4px solid #2e6fdd;box-shadow:0 3px 12px rgba(13,36,69,.06);display:block;color:#1c2b45}
.task-card:hover{text-decoration:none;box-shadow:0 8px 20px rgba(13,36,69,.12)}
.task-card .t{font-weight:700;font-size:15.5px;color:#12315e;margin-bottom:4px}
.task-card .s{font-size:13px;color:#5b6b85;line-height:1.45}

/* ====== PROJEKTY ====== */
.proj-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.proj-card{border-radius:16px;color:#fff;padding:30px 28px;position:relative;overflow:hidden;display:block}
.proj-card:hover{text-decoration:none}
.proj-card.p-blue{background:linear-gradient(120deg,#1b4dbf,#2e6fdd)}
.proj-card.p-pink{background:linear-gradient(120deg,#b32a5c,#d94f83)}
.proj-card .chip{display:inline-block;background:rgba(255,255,255,.2);border-radius:999px;padding:4px 13px;font-size:11px;font-weight:700;letter-spacing:.1em}
.proj-card h3{color:#fff;font-size:23px;margin:14px 0 10px;font-weight:800}
.proj-card p{color:rgba(255,255,255,.9);font-size:14.5px;margin:0;max-width:520px}
.proj-card .decor{position:absolute;width:230px;height:230px;border-radius:50%;background:rgba(255,255,255,.09);right:-60px;bottom:-90px}

/* ====== PATRON ====== */
.patron{background:#fff;border-radius:16px;box-shadow:0 4px 16px rgba(13,36,69,.07);display:grid;grid-template-columns:300px 1fr;overflow:hidden;margin:44px 0 10px}
.patron-photo{background:linear-gradient(150deg,#3c4a2a,#5a6b3c);display:flex;align-items:center;justify-content:center;min-height:230px}
.patron-photo img{width:100%;height:100%;object-fit:cover}
.patron-photo .ph{width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.15);color:#fff;font-size:44px;font-weight:800;display:flex;align-items:center;justify-content:center}
.patron-body{padding:28px 32px}
.patron-body .eyebrow{font-size:11px;font-weight:700;letter-spacing:.14em;color:#5b6b85;text-transform:uppercase}
.patron-body h3{font-size:24px;color:#12315e;margin:8px 0 10px;font-weight:800}
.patron-body p{font-size:14.5px;color:#4a5a74;margin:0 0 12px}
.patron-body .quote{font-style:italic;font-weight:700;color:#12315e}

/* ====== TREŚĆ / WPISY ====== */
.content-area{padding:44px 0 30px}
.layout-2col{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start}
.main-col{min-width:0}
.entry-card{background:#fff;border-radius:14px;box-shadow:0 4px 16px rgba(13,36,69,.07);padding:34px 38px;margin-bottom:26px}
.entry-card h1.entry-title{font-size:30px;color:#12315e;line-height:1.25;margin:0 0 8px;font-weight:800}
.entry-meta{font-size:13px;color:#5b6b85;margin-bottom:22px}
.entry-meta a{color:#2e6fdd}
.entry-content{font-size:16px;color:#2b3a55}
.entry-content h2{color:#12315e;font-size:23px;margin:28px 0 10px}
.entry-content h3{color:#12315e;font-size:19px;margin:24px 0 8px}
.entry-content img{border-radius:10px;margin:8px 0}
.entry-content .wp-caption{max-width:100%}
.entry-content blockquote{border-left:4px solid #ffc233;margin:18px 0;padding:6px 18px;background:#f8f9fd;border-radius:0 10px 10px 0}
.entry-content .video-embed{position:relative;padding-bottom:56.25%;height:0;margin:18px 0;border-radius:12px;overflow:hidden;background:#0d2445}
.entry-content .video-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.entry-content .galeria-siatka{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}
.entry-content .galeria-siatka img{width:100%;height:170px;object-fit:cover;border-radius:10px;margin:0}

/* lista wpisów (archiwum) */
.archive-title{font-size:28px;color:#12315e;font-weight:800;margin:0 0 24px;display:flex;align-items:center;gap:16px}
.archive-title::after{content:"";width:56px;height:4px;border-radius:4px;background:#ffc233;display:inline-block}
.post-list .news-card{flex-direction:row;margin-bottom:20px}
.post-list .news-thumb{width:270px;flex:0 0 270px;height:auto;min-height:180px}
.post-list .news-body{padding:22px 24px}
.pagination{display:flex;gap:8px;flex-wrap:wrap;margin:26px 0}
.pagination .page-numbers{background:#fff;border-radius:9px;padding:9px 15px;font-weight:600;color:#12315e;box-shadow:0 2px 8px rgba(13,36,69,.07)}
.pagination .page-numbers.current{background:#12315e;color:#fff}
.pagination a.page-numbers:hover{background:#e7effc;text-decoration:none}

/* sidebar */
.widget{background:#fff;border-radius:14px;box-shadow:0 4px 16px rgba(13,36,69,.07);padding:22px 24px;margin-bottom:22px}
.widget h2,.widget .widget-title{font-size:16px;color:#12315e;font-weight:800;margin:0 0 14px;text-transform:uppercase;letter-spacing:.06em}
.widget ul{list-style:none;margin:0;padding:0}
.widget li{padding:7px 0;border-bottom:1px solid #eef1f7;font-size:14.5px}
.widget li:last-child{border-bottom:0}
.widget select{width:100%;padding:9px;border-radius:8px;border:1px solid #d7deea}
.widget .wp-block-search__input,.widget input[type=search]{width:100%;padding:10px;border-radius:8px;border:1px solid #d7deea}
.widget .wp-block-search__button,.widget input[type=submit]{background:#12315e;color:#fff;border:0;border-radius:8px;padding:10px 16px;font-weight:700;cursor:pointer;margin-top:8px}

/* ====== STOPKA ====== */
.flag-bar{height:8px;background:linear-gradient(#fff 0 50%,#dc143c 50% 100%);border-top:1px solid #e3e8f1}
.site-footer{background:#0d2445;color:#c9d6ec;padding:44px 0 0;font-size:14.5px}
.footer-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:34px;padding-bottom:34px}
.site-footer h4{color:#fff;font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;margin:0 0 16px}
.site-footer a{color:#c9d6ec}
.site-footer a:hover{color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{padding:5px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px;color:#8fa2c2}

/* ====== TRYB KONTRASTU ====== */
body.kontrast{background:#000;color:#fff}
body.kontrast .site-header,body.kontrast .news-card,body.kontrast .task-card,body.kontrast .entry-card,body.kontrast .widget,body.kontrast .quick-card,body.kontrast .patron{background:#000;border:1px solid #ffe000;color:#fff;box-shadow:none}
body.kontrast a,body.kontrast .news-card h3 a,body.kontrast .task-card .t,body.kontrast .entry-card h1.entry-title{color:#ffe000}
body.kontrast .hero,body.kontrast .proj-card,body.kontrast .site-footer,body.kontrast .topbar{background:#000;border-bottom:1px solid #ffe000}
body.kontrast .btn-yellow,body.kontrast .btn-dziennik{background:#ffe000;color:#000}

/* ====== RESPONSYWNOŚĆ ====== */
@media(max-width:1024px){
.quick-grid{grid-template-columns:repeat(3,1fr)}
.news-grid{grid-template-columns:repeat(2,1fr)}
.tasks-grid{grid-template-columns:repeat(2,1fr)}
.layout-2col{grid-template-columns:1fr}
}
@media(max-width:760px){
.nav-toggle{display:block}
.header-nav{display:none}
.header-nav.open{display:block;position:absolute;top:100%;left:0;right:0;background:#fff;margin:0;padding:10px 20px 20px;max-height:calc(100vh - 100px);overflow-y:auto;box-shadow:0 14px 30px rgba(13,36,69,.18);border-radius:0 0 12px 12px;z-index:900}
.header-nav.open ul{flex-direction:column;width:100%}
.header-nav.open .sub-menu{display:none;position:static;box-shadow:none;padding-left:16px}
.header-nav.open li.sub-open>.sub-menu{display:block}
.header-nav.open .ma-drop>a{position:relative;padding-right:32px}
.header-nav.open .ma-drop>a::after{content:"\203A";position:absolute;right:8px;top:50%;transform:translateY(-50%) rotate(90deg);transition:transform .2s;font-size:17px;opacity:.65}
.header-nav.open .ma-drop.sub-open>a::after{transform:translateY(-50%) rotate(-90deg)}
.header-nav.open{-webkit-overflow-scrolling:touch;padding:8px 16px 14px}
.header-nav.open a{padding:7px 11px;line-height:1.35}
.header-nav.open .sub-menu a{padding:6px 12px 6px 22px;font-size:13.5px;line-height:1.3}
.temat-wybor{background:rgba(255,255,255,.14);padding:3px 7px;border-radius:20px;display:inline-flex;align-items:center;gap:6px}
body.kontrast .temat-wybor{background:rgba(255,255,255,.1);outline:1px solid #ffe000}
.btn-dziennik{display:inline-block;margin-top:8px}
.hero h1{font-size:34px}
.hero-inner{padding:44px 0 120px}
.quick-grid{grid-template-columns:repeat(2,1fr)}
.news-grid,.proj-grid,.tasks-grid,.footer-grid{grid-template-columns:1fr}
.patron{grid-template-columns:1fr}
.patron-photo{min-height:170px}
.post-list .news-card{flex-direction:column}
.post-list .news-thumb{width:100%;flex:auto;height:180px}
.entry-card{padding:24px 20px}
.entry-content .galeria-siatka{grid-template-columns:repeat(2,1fr)}
.section-head h2{font-size:24px}
}
@media(prefers-reduced-motion:reduce){
*{transition:none!important;animation:none!important}
}

/* ====== BLOKI SIDEBARA (przeniesione ze starej strony) ====== */
.sb-banner{padding:0;overflow:hidden;display:block}
.sb-banner img{display:block;width:100%}
.sb-godlo{text-align:center}
.sb-godlo img{max-width:120px;display:block;margin:8px auto}
.sb-sub{font-weight:700;font-size:13.5px;color:#12315e;margin:12px 0 4px}
.sb-login{text-align:center}
.sb-login img{max-width:200px;margin:4px auto;display:block}
.sb-login ul{text-align:left;margin-top:8px}
.sb-btn{display:inline-block;background:#12315e;color:#fff!important;border-radius:9px;padding:9px 16px;font-weight:700;font-size:13.5px;margin:6px 0}
.sb-btn:hover{background:#2e6fdd;text-decoration:none}
.sb-partnerzy{text-align:center}
.sb-partnerzy img{max-width:170px;display:block;margin:10px auto;border-radius:6px}
.sb-fb{text-align:center}
.layout-2col .news-grid{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
.layout-2col .tasks-grid{grid-template-columns:repeat(2,1fr)}
.layout-2col .proj-grid{grid-template-columns:1fr}
@media(max-width:760px){.layout-2col .tasks-grid{grid-template-columns:1fr}}
body.kontrast .sb-btn{background:#ffe000;color:#000!important}

/* baner górny pod nagłówkiem */
.baner-gorny{background:#fff;padding:10px 0;border-bottom:1px solid #e3e8f1}
.baner-gorny img{display:block;width:100%;border-radius:10px}
body.kontrast .baner-gorny{background:#000;border-color:#ffe000}

/* ====== MOBILE GUARD (tresci z Joomli + waskie ekrany) ====== */
.entry-content table{display:block;width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-collapse:collapse}
.entry-content td,.entry-content th{word-break:break-word}
.entry-content img{max-width:100%!important;height:auto!important}
.entry-content iframe,.entry-content video,.entry-content embed{max-width:100%}
.entry-content div[style*="width"]{max-width:100%!important}
@media(max-width:560px){
.topbar-left{display:none!important}
.topbar .wrap{justify-content:center}
.baner-gorny{padding:6px 0}
.baner-gorny img{border-radius:6px}
.quick{margin-top:-60px}
.hero-inner{padding:38px 0 104px}
.hero h1{font-size:29px}
.entry-card{padding:20px 14px}
.entry-card h1.entry-title{font-size:24px}
.post-list .news-thumb{min-height:150px}
.footer-bottom{justify-content:center;text-align:center}
.sb-fb iframe{width:100%}
}


/* FIX: tytul i podtytul kafli w osobnych liniach */
.quick-card .t,.quick-card .s,.task-card .t,.task-card .s{display:block}



/* ===== v1.5: SIDEBAR KOMPAKT + FOTO PATRONA ===== */
.sidebar-col{font-size:14px}
.sidebar-col .widget{padding:16px 18px}
.sidebar-col .widget-title{font-size:12.5px;letter-spacing:.7px;margin:0 0 10px}
.sidebar-col .sb-sub{font-size:12px;margin:12px 0 4px}
.sidebar-col .widget ul{margin:0;padding:0;list-style:none}
.sidebar-col .widget ul li{margin:0;padding:0;border:none}
.sidebar-col .widget ul li a{display:block;font-size:13px;line-height:1.35;padding:5px 0;border-bottom:1px solid #edf0f5}
.sidebar-col .widget ul li:last-child a{border-bottom:none}
.patron-photo img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}


/* ===== v1.6: LISTA WPISOW - MINIATURY POZIOMO ===== */
.post-list .news-card{display:flex;gap:18px;align-items:flex-start}
.post-list .news-thumb{position:relative;flex:0 0 280px;width:280px;margin:14px 0 30px 14px}
.post-list .news-thumb img{width:100%;height:190px;object-fit:contain;display:block;border-radius:10px}
.post-list .news-body{flex:1;min-width:0}
@media(max-width:700px){.post-list .news-card{display:block}.post-list .news-thumb{width:100%;flex:none;margin:0}.post-list .news-thumb img{height:200px;border-radius:0}}


/* ===== v1.8: PAS PARTNEROW POD AKTUALNOSCIAMI ===== */
.partnerzy-pas{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:28px 48px;background:#fff;border-radius:14px;padding:24px 28px}
.partnerzy-pas a{display:flex;align-items:center}
.partnerzy-pas img{max-height:64px;width:auto;max-width:200px;object-fit:contain}


/* ===== v1.9: PAS UCZESTNICZYMY NAD STOPKA ===== */
.uczestniczymy-pas-sekcja{background:#fff;border-top:1px solid #e8ecf3;padding:34px 0 38px;margin-top:40px}
.uczestniczymy-tytul{text-align:center;font-size:15px;letter-spacing:1.5px;text-transform:uppercase;color:#12315e;margin:0 0 22px}
.uczestniczymy-pas{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:26px 44px;max-width:1100px;margin:0 auto}
.uczestniczymy-pas a{display:flex;align-items:center}
.uczestniczymy-pas img{max-height:72px;width:auto;max-width:170px;object-fit:contain}
@media(max-width:560px){.uczestniczymy-pas{gap:18px 24px}.uczestniczymy-pas img{max-height:54px;max-width:130px}}


/* ===== v2.0: TYPOGRAFIA TRESCI ===== */
.entry-content{line-height:1.75}
.entry-content p{text-align:left!important}


/* ===== v2.2: KONTRAST DLA NOWYCH PASOW ===== */
body.kontrast .partnerzy-pas,body.kontrast .uczestniczymy-pas-sekcja{background:#000;border:1px solid #ffe000}
body.kontrast .uczestniczymy-tytul{color:#fff}


/* ===== v2.4: PARTNERZY W STOPCE ===== */
.partnerzy-w-stopce .partnerzy-pas{background:transparent;border-radius:0;padding:0}
body.kontrast .partnerzy-w-stopce .partnerzy-pas{border:none;background:transparent}


/* ===== v2.5: KADRA - DYREKCJA I NAUCZYCIELE ===== */
.kadra-dyr{display:flex;gap:18px;flex-wrap:wrap;margin:6px 0 26px}
.kadra-dyr-card{flex:1 1 240px;background:#fff;border:1px solid #e3e8f2;border-radius:14px;padding:20px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}
.kadra-avatar{width:56px;height:56px;border-radius:50%;background:#12315e;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:19px}
.kadra-imie{font-weight:700;color:#12315e;font-size:17px}
.kadra-rola{color:#2e6fdd;font-size:13px;text-transform:uppercase;letter-spacing:.6px;font-weight:600}
.kadra-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:14px;margin-top:12px}
.kadra-card{background:#fff;border:1px solid #e3e8f2;border-radius:12px;padding:16px 18px}
.kadra-przedmiot{font-size:12.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#2e6fdd;border-bottom:2px solid #ffc233;padding-bottom:8px;margin-bottom:10px}
.kadra-osoby{list-style:none;margin:0;padding:0}
.kadra-osoby li{padding:4px 0;font-size:14.5px;color:#1c2b45}
body.kontrast .kadra-dyr-card,body.kontrast .kadra-card{background:#000;border-color:#ffe000;color:#fff}
body.kontrast .kadra-imie,body.kontrast .kadra-osoby li{color:#fff}
body.kontrast .kadra-przedmiot,body.kontrast .kadra-rola{color:#ffe000}
body.kontrast .kadra-avatar{background:#ffe000;color:#000}


/* ===== v2.7: KARTA FACEBOOK ===== */
.fb-karta{display:flex;align-items:center;gap:12px;background:#1877f2;color:#fff;border-radius:12px;padding:14px 16px;text-decoration:none}
.fb-karta:hover{background:#145fce}
.fb-logo{flex:0 0 40px;width:40px;height:40px;border-radius:50%;background:#fff;color:#1877f2;font-weight:800;font-size:26px;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif}
.fb-tekst{display:flex;flex-direction:column;line-height:1.25}
.fb-tekst strong{font-size:14.5px}
.fb-tekst small{font-size:12px;opacity:.9}
body.kontrast .fb-karta{background:#000;border:2px solid #ffe000;color:#ffe000}
body.kontrast .fb-logo{background:#ffe000;color:#000}


/* ===== v3.0: KONTRAST - DOSWIETLENIE TEKSTOW ===== */
body.kontrast p,body.kontrast h2,body.kontrast h3,body.kontrast .quick-card .s,body.kontrast .task-card .s,body.kontrast .sb-sub,body.kontrast .l1,body.kontrast .l2,body.kontrast .patron-body,body.kontrast .patron-body .quote{color:#fff}
body.kontrast .section-head h2,body.kontrast .widget-title,body.kontrast .eyebrow{color:#ffe000}
body.kontrast .btn-yellow,body.kontrast .btn-dziennik,body.kontrast .sb-btn{color:#000!important}
body.kontrast .current-menu-item a,body.kontrast .current-menu-item > a{color:#ffe000!important}


/* ===== v3.3: BANER SKS - BIEZNIA ===== */
.sks-baner{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px;padding:24px 30px;border-radius:14px;text-decoration:none;position:relative;overflow:hidden;background:linear-gradient(90deg,rgba(13,36,69,.94) 0,rgba(13,36,69,.55) 45%,rgba(13,36,69,.12) 100%),repeating-linear-gradient(180deg,#c14a33 0,#c14a33 30px,#f4e9e6 30px,#f4e9e6 32px)}
.sks-baner .sks-tekst{display:flex;flex-direction:column;gap:4px}
.sks-baner .sks-eyebrow{align-self:flex-start;background:#ffc233;color:#12315e;font-weight:800;font-size:12px;letter-spacing:1.2px;padding:3px 10px;border-radius:20px}
.sks-baner strong{color:#fff;font-size:22px;line-height:1.2}
.sks-baner .sks-pod{color:#ffe3da;font-size:13.5px}
.sks-baner .sks-biegacze{display:flex;gap:18px;font-size:42px;line-height:1}
.sks-baner .sks-biegacze span{animation:sksbieg 1s ease-in-out infinite alternate}
.sks-baner .sks-biegacze span:nth-child(2){animation-delay:.2s;font-size:36px}
.sks-baner .sks-biegacze span:nth-child(3){animation-delay:.4s;font-size:30px}
@keyframes sksbieg{from{transform:translateX(0)}to{transform:translateX(8px)}}
@media(max-width:560px){.sks-baner{flex-direction:column;align-items:flex-start}.sks-baner .sks-biegacze{font-size:30px}}
body.kontrast .sks-baner{background:#000;border:1px solid #ffe000}
body.kontrast .sks-baner strong,body.kontrast .sks-baner .sks-pod{color:#fff}


/* ===== v3.7: STOPKA - ZWARTE LISTY LINKOW ===== */
footer .wrap ul{margin:0;padding:0;list-style:none}
footer .wrap ul li{margin:0;padding:3px 0}


/* ===== v3.7: NAGLOWEK SEKCJI SKS ===== */
.section-head.sks-head{margin-top:38px}


/* ===== v4.0: HERO - BLOK WYROZNIONYCH + PASEK KOMUNIKATU ===== */
.hero-grid{display:grid;grid-template-columns:1.05fr 1fr;gap:34px;align-items:center}
.hero-wyroznione{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);border-radius:16px;padding:14px}
.hw-glowny{display:block;color:#fff;text-decoration:none;border-radius:12px;overflow:hidden;position:relative;background:rgba(9,26,60,.35)}
.hw-glowny-foto{position:relative;height:190px;overflow:hidden;background:#eef2f7;display:block}
.hw-glowny-foto img{position:relative;z-index:1;width:100%;height:190px;object-fit:contain;display:block}
.hw-glowny-tekst{display:block;padding:10px 12px 12px}
.hw-glowny-tekst strong{display:block;font-size:17px;line-height:1.3}
.hw-zajawka{display:block;font-size:13px;color:#cdd9f2;margin-top:4px;line-height:1.45}
.hw-badge{position:absolute;top:10px;left:10px;background:#e11d2e;color:#fff;font-weight:800;font-size:12px;letter-spacing:.06em;padding:4px 10px;border-radius:999px;z-index:2;animation:hwpuls 1.1s ease-in-out infinite}
@keyframes hwpuls{0%,100%{box-shadow:0 0 0 0 rgba(225,29,46,.55)}50%{box-shadow:0 0 0 9px rgba(225,29,46,0)}}
.hw-hot{outline:2px solid #e11d2e;box-shadow:0 0 22px rgba(225,29,46,.45)}
.hw-male{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:10px}
.hw-mini{display:block;color:#fff;text-decoration:none;background:rgba(9,26,60,.35);border-radius:10px;overflow:hidden}
.hw-mini-foto{position:relative;height:64px;overflow:hidden;background:#eef2f7;display:block}
.hw-mini-foto img{position:relative;z-index:1;width:100%;height:64px;object-fit:contain;display:block}
.hw-mini-tytul{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12.5px;line-height:1.3;padding:7px 8px 2px;min-height:38px}
.hw-wiecej{display:block;font-size:11.5px;color:#ffc233;padding:0 8px 8px}
.hw-brak{display:block;height:190px;background:linear-gradient(135deg,#2e6fdd,#12315e)}
.hw-mini .hw-brak{height:64px}
@media(max-width:1023px){.hero-grid{grid-template-columns:1fr}.hero-wyroznione{margin-top:6px}}
.pasek-komunikatu{display:flex;align-items:center;gap:10px;background:#fff7df;border:1px solid #ffc233;border-left:6px solid #ffc233;border-radius:12px;padding:10px 14px;margin:0 0 18px;font-weight:600;color:#5a4a12}
.pk-okno{overflow:hidden;white-space:nowrap;flex:1}
.pk-przewija .pk-tekst{display:inline-block;white-space:nowrap;animation:pkjazda 16s linear infinite}
@keyframes pkjazda{from{transform:translateX(0)}to{transform:translateX(-50%)}}
body.kontrast .hero-wyroznione{background:#000;border-color:#ffe000}
body.kontrast .hw-glowny,body.kontrast .hw-mini{background:#000;border:1px solid #ffe000}
body.kontrast .hw-zajawka,body.kontrast .hw-mini-tytul{color:#fff}
body.kontrast .hw-wiecej{color:#ffe000}
body.kontrast .pasek-komunikatu{background:#000;border-color:#ffe000;color:#ffe000}

/* v4.0.1: hero-grid na pelna szerokosc (hero-grid-szerokosc) */
.hero-inner.hero-grid{max-width:1160px;width:100%;margin:0 auto}
.hero-lewa h1{font-size:clamp(28px,3.4vw,44px)}


/* === v4.2: TEMATY KOLORYSTYCZNE (przelacznik obok kontrastu; zielony + bajka dla klas 1-3) === */

.temat-wybor { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; align-items: center; }
.tw-krop { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); cursor: pointer; padding: 0; }
.tw-krop:hover { transform: scale(1.15); }
.tw-std { background: #12315e; }
.tw-ziel { background: #1f8a4c; }
.tw-baj { background: conic-gradient(#ff4fa3, #ffd23f, #37c86b, #4aa8ff, #b45bff, #ff4fa3); }
body.kontrast .tw-krop { border-color: #ffe000; }

/* --- temat zielony (lum-match) --- */
body.temat-zielony { background:#edf8f3; color:#143022; }
body.temat-zielony a { color:#15844c; }
body.temat-zielony .topbar { background:#082a19; color:#aae1c6; }
body.temat-zielony .topbar a { color:#aae1c6; }
body.temat-zielony .logo-badge { background:linear-gradient(160deg,#15844c,#0b3a22); }
body.temat-zielony .logo-txt .l1 { color:#0b3a22; }
body.temat-zielony .logo-txt .l2 { color:#4e7260; }
body.temat-zielony .header-nav a { color:#143022; }
body.temat-zielony .header-nav a:hover { background:#def9ec; color:#0b3a22; }
body.temat-zielony .header-nav .current-menu-item>a, body.temat-zielony .header-nav .current_page_item>a { color:#15844c; }
body.temat-zielony .btn-dziennik { color:#0b3a22; }
body.temat-zielony .nav-toggle { background:#0b3a22; }
body.temat-zielony .hero { background:linear-gradient(115deg,#082a19 0%,#0b3a22 45%,#15844c 100%); }
body.temat-zielony .hero p { color:#c2eed8; }
body.temat-zielony .btn-yellow { color:#0b3a22; }
body.temat-zielony .quick-card { color:#143022; }
body.temat-zielony .quick-card .s { color:#4e7260; }
body.temat-zielony .qc-blue { background:#15844c; }
body.temat-zielony .qc-gray { background:#4e7260; }
body.temat-zielony .section-head h2 { color:#0b3a22; }
body.temat-zielony .news-thumb { background:linear-gradient(135deg,#15844c,#00ca65); }
body.temat-zielony .news-date { background:#0b3a22; }
body.temat-zielony .news-cat { background:#cbf8e2; color:#15844c; }
body.temat-zielony .news-card h3 a { color:#0b3a22; }
body.temat-zielony .news-card p { color:#3e614f; }
body.temat-zielony .g1 { background:linear-gradient(135deg,#15844c,#00ca65); }
body.temat-zielony .task-card { border-left:4px solid #15844c; color:#143022; }
body.temat-zielony .task-card .t { color:#0b3a22; }
body.temat-zielony .task-card .s { color:#4e7260; }
body.temat-zielony .proj-card.p-blue { background:linear-gradient(120deg,#0e6338,#15844c); }
body.temat-zielony .patron-body .eyebrow { color:#4e7260; }
body.temat-zielony .patron-body h3 { color:#0b3a22; }
body.temat-zielony .patron-body p { color:#3e614f; }
body.temat-zielony .patron-body .quote { color:#0b3a22; }
body.temat-zielony .entry-card h1.entry-title { color:#0b3a22; }
body.temat-zielony .entry-meta { color:#4e7260; }
body.temat-zielony .entry-meta a { color:#15844c; }
body.temat-zielony .entry-content { color:#214030; }
body.temat-zielony .entry-content h2 { color:#0b3a22; }
body.temat-zielony .entry-content h3 { color:#0b3a22; }
body.temat-zielony .entry-content blockquote { background:#f3fcf7; }
body.temat-zielony .entry-content .video-embed { background:#082a19; }
body.temat-zielony .archive-title { color:#0b3a22; }
body.temat-zielony .pagination .page-numbers { color:#0b3a22; }
body.temat-zielony .pagination .page-numbers.current { background:#0b3a22; }
body.temat-zielony .pagination a.page-numbers:hover { background:#cbf8e2; }
body.temat-zielony .widget h2, body.temat-zielony .widget .widget-title { color:#0b3a22; }
body.temat-zielony .widget li { border-bottom:1px solid #e7f3ed; }
body.temat-zielony .widget select { border:1px solid #cbe4d7; }
body.temat-zielony .widget .wp-block-search__input, body.temat-zielony .widget input[type=search] { border:1px solid #cbe4d7; }
body.temat-zielony .widget .wp-block-search__button, body.temat-zielony .widget input[type=submit] { background:#0b3a22; }
body.temat-zielony .flag-bar { border-top:1px solid #d9ece3; }
body.temat-zielony .site-footer { background:#082a19; color:#aae1c6; }
body.temat-zielony .site-footer a { color:#aae1c6; }
body.temat-zielony .footer-bottom { color:#6bae8d; }
body.temat-zielony .sb-sub { color:#0b3a22; }
body.temat-zielony .sb-btn { background:#0b3a22; }
body.temat-zielony .sb-btn:hover { background:#15844c; }
body.temat-zielony .baner-gorny { border-bottom:1px solid #d9ece3; }
body.temat-zielony .sidebar-col .widget ul li a { border-bottom:1px solid #e9f3ee; }
body.temat-zielony .uczestniczymy-pas-sekcja { border-top:1px solid #e1efe8; }
body.temat-zielony .uczestniczymy-tytul { color:#0b3a22; }
body.temat-zielony .kadra-dyr-card { border:1px solid #d7ece2; }
body.temat-zielony .kadra-avatar { background:#0b3a22; }
body.temat-zielony .kadra-imie { color:#0b3a22; }
body.temat-zielony .kadra-rola { color:#15844c; }
body.temat-zielony .kadra-card { border:1px solid #d7ece2; }
body.temat-zielony .kadra-przedmiot { color:#15844c; }
body.temat-zielony .kadra-osoby li { color:#143022; }
body.temat-zielony .fb-karta:hover { background:#0b733f; }
body.temat-zielony .sks-baner .sks-eyebrow { color:#0b3a22; }
body.temat-zielony .hw-zajawka { color:#a4e7c5; }
body.temat-zielony .hw-brak { background:linear-gradient(135deg,#15844c,#0b3a22); }

/* --- temat bajka (lum-match) --- */
body.temat-bajka { background:#fcf3f8; color:#3c1e4b; }
body.temat-bajka a { color:#d5238a; }
body.temat-bajka .topbar { background:#3a0f4f; color:#f3cade; }
body.temat-bajka .topbar a { color:#f3cade; }
body.temat-bajka .logo-badge { background:linear-gradient(160deg,#d5238a,#4e146a); }
body.temat-bajka .logo-txt .l1 { color:#4e146a; }
body.temat-bajka .logo-txt .l2 { color:#885d77; }
body.temat-bajka .header-nav a { color:#3c1e4b; }
body.temat-bajka .header-nav a:hover { background:#feeef6; color:#4e146a; }
body.temat-bajka .header-nav .current-menu-item>a, body.temat-bajka .header-nav .current_page_item>a { color:#d5238a; }
body.temat-bajka .btn-dziennik { color:#4e146a; }
body.temat-bajka .nav-toggle { background:#4e146a; }
body.temat-bajka .hero { background:linear-gradient(115deg,#3a0f4f 0%,#4e146a 45%,#d5238a 100%); }
body.temat-bajka .hero p { color:#f9ddeb; }
body.temat-bajka .btn-yellow { color:#4e146a; }
body.temat-bajka .quick-card { color:#3c1e4b; }
body.temat-bajka .quick-card .s { color:#885d77; }
body.temat-bajka .qc-blue { background:#d5238a; }
body.temat-bajka .qc-gray { background:#885d77; }
body.temat-bajka .section-head h2 { color:#4e146a; }
body.temat-bajka .news-thumb { background:linear-gradient(135deg,#d5238a,#ff88c3); }
body.temat-bajka .news-date { background:#4e146a; }
body.temat-bajka .news-cat { background:#fee8f3; color:#d5238a; }
body.temat-bajka .news-card h3 a { color:#4e146a; }
body.temat-bajka .news-card p { color:#764c65; }
body.temat-bajka .g1 { background:linear-gradient(135deg,#d5238a,#ff88c3); }
body.temat-bajka .task-card { border-left:4px solid #d5238a; color:#3c1e4b; }
body.temat-bajka .task-card .t { color:#4e146a; }
body.temat-bajka .task-card .s { color:#885d77; }
body.temat-bajka .proj-card.p-blue { background:linear-gradient(120deg,#a21768,#d5238a); }
body.temat-bajka .patron-body .eyebrow { color:#885d77; }
body.temat-bajka .patron-body h3 { color:#4e146a; }
body.temat-bajka .patron-body p { color:#764c65; }
body.temat-bajka .patron-body .quote { color:#4e146a; }
body.temat-bajka .entry-card h1.entry-title { color:#4e146a; }
body.temat-bajka .entry-meta { color:#885d77; }
body.temat-bajka .entry-meta a { color:#d5238a; }
body.temat-bajka .entry-content { color:#4b2e5a; }
body.temat-bajka .entry-content h2 { color:#4e146a; }
body.temat-bajka .entry-content h3 { color:#4e146a; }
body.temat-bajka .entry-content blockquote { background:#fef8fb; }
body.temat-bajka .entry-content .video-embed { background:#3a0f4f; }
body.temat-bajka .archive-title { color:#4e146a; }
body.temat-bajka .pagination .page-numbers { color:#4e146a; }
body.temat-bajka .pagination .page-numbers.current { background:#4e146a; }
body.temat-bajka .pagination a.page-numbers:hover { background:#fee8f3; }
body.temat-bajka .widget h2, body.temat-bajka .widget .widget-title { color:#4e146a; }
body.temat-bajka .widget li { border-bottom:1px solid #f9eef4; }
body.temat-bajka .widget select { border:1px solid #f0d6e3; }
body.temat-bajka .widget .wp-block-search__input, body.temat-bajka .widget input[type=search] { border:1px solid #f0d6e3; }
body.temat-bajka .widget .wp-block-search__button, body.temat-bajka .widget input[type=submit] { background:#4e146a; }
body.temat-bajka .flag-bar { border-top:1px solid #f5e3ec; }
body.temat-bajka .site-footer { background:#3a0f4f; color:#f3cade; }
body.temat-bajka .site-footer a { color:#f3cade; }
body.temat-bajka .footer-bottom { color:#c492af; }
body.temat-bajka .sb-sub { color:#4e146a; }
body.temat-bajka .sb-btn { background:#4e146a; }
body.temat-bajka .sb-btn:hover { background:#d5238a; }
body.temat-bajka .baner-gorny { border-bottom:1px solid #f5e3ec; }
body.temat-bajka .sidebar-col .widget ul li a { border-bottom:1px solid #f8ecf2; }
body.temat-bajka .uczestniczymy-pas-sekcja { border-top:1px solid #f7e8ef; }
body.temat-bajka .uczestniczymy-tytul { color:#4e146a; }
body.temat-bajka .kadra-dyr-card { border:1px solid #f6e2ec; }
body.temat-bajka .kadra-avatar { background:#4e146a; }
body.temat-bajka .kadra-imie { color:#4e146a; }
body.temat-bajka .kadra-rola { color:#d5238a; }
body.temat-bajka .kadra-card { border:1px solid #f6e2ec; }
body.temat-bajka .kadra-przedmiot { color:#d5238a; }
body.temat-bajka .kadra-osoby li { color:#3c1e4b; }
body.temat-bajka .fb-karta:hover { background:#bf1277; }
body.temat-bajka .sks-baner .sks-eyebrow { color:#4e146a; }
body.temat-bajka .hw-zajawka { color:#f7cde2; }
body.temat-bajka .hw-brak { background:linear-gradient(135deg,#d5238a,#4e146a); }

/* === v4.3: STOPKA - INTERLINIA JAK W KONTAKCIE + PRZELACZNIK TEMATOW === */
footer .wrap ul li { padding: 0; }
.temat-wybor-stopka { display: flex; align-items: center; gap: 7px; margin: 10px 0 0 !important; padding: 0; }
.temat-wybor-stopka .tw-krop { border-color: rgba(255,255,255,.55); }
body.kontrast .temat-wybor-stopka .tw-krop { border-color: #ffe000; }

/* === v4.4: TEMATY - CZYTELNOSC KART I PRZYCISKOW === */
body.temat-zielony .proj-card, body.temat-bajka .proj-card, body.temat-zielony .proj-card * , body.temat-bajka .proj-card * { color: #fff; }
body.temat-zielony .proj-card .chip, body.temat-bajka .proj-card .chip { background: rgba(255,255,255,.22); color: #fff; }
body.temat-zielony .proj-card.p-pink, body.temat-bajka .proj-card.p-pink { filter: brightness(.82); }
body.temat-zielony .btn-ghost, body.temat-bajka .btn-ghost { color: #fff; border-color: rgba(255,255,255,.85); }
body.temat-zielony .fb-karta, body.temat-bajka .fb-karta, body.temat-zielony .fb-karta *, body.temat-bajka .fb-karta * { color: #fff; }

/* === v4.6: SEKCJA SPORT - siatka kart (Rekordy LA + miejsce na kolejne) === */
.sport-grid { display: grid; gap: 16px; }


/* v4.8: GALERIE WPISOW (wspolna klasa dla galerii z katalogow Joomli) */
.sp3-galeria{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;margin:14px 0 6px}
.sp3-galeria a{display:block;border-radius:10px;overflow:hidden;background:#eef1f6}
.sp3-galeria img{width:100%;aspect-ratio:4/3;height:auto;object-fit:cover;display:block;transition:transform .25s}
.sp3-galeria a:hover img{transform:scale(1.04)}
@media(max-width:560px){.sp3-galeria{grid-template-columns:repeat(2,1fr);gap:7px}}
body.kontrast .sp3-galeria a{outline:2px solid #ffe000}

/* v4.8b: GALERIE - br z wpautop nie moze byc itemem grida */
.sp3-galeria br{display:none}


/* v5.3: SIDEBAR - SZUKAJ NAD DOKUMENTAMI + POGODA I POWIETRZE */
.sb-szukaj form{display:flex;gap:6px}
.sb-szukaj input[type=search],.sb-szukaj input[type=text]{flex:1;min-width:0;padding:8px 10px;border:1px solid #cdd4df;border-radius:8px;font:inherit;box-sizing:border-box}
.sb-szukaj button,.sb-szukaj input[type=submit]{padding:8px 14px;border:none;border-radius:8px;background:#12315e;color:#fff;font:inherit;font-weight:600;cursor:pointer}
body.temat-zielony .sb-szukaj button,body.temat-zielony .sb-szukaj input[type=submit]{background:#125e3b}
body.temat-bajka .sb-szukaj button,body.temat-bajka .sb-szukaj input[type=submit]{background:#3d125e}
.sp3pg{font-size:.92rem}
.sp3pg-mia{color:#6b7688;font-size:.8rem;margin:0 0 6px}
.sp3pg-lad{color:#6b7688;font-size:.85rem}
.sp3pg-glowne{display:flex;align-items:center;gap:10px;margin:2px 0 8px}
.sp3pg-iko{font-size:1.7rem;line-height:1}
.sp3pg-temp{font-size:1.5rem;font-weight:700}
.sp3pg-opis{color:#5a6b83}
.sp3pg-rzad{color:#5a6b83;margin:0 0 8px}
.sp3pg-pow{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-top:1px solid #eef1f5;padding-top:8px}
.sp3pg-kropka{width:12px;height:12px;border-radius:50%;flex:0 0 12px}
.sp3pg-pm{flex-basis:100%;color:#6b7688;font-size:.82rem}
body.kontrast .sb-szukaj button,body.kontrast .sb-szukaj input[type=submit]{background:#000;border:1px solid #ffe000;color:#ffe000}
body.kontrast .sp3pg-pow{border-top-color:#ffe000}


/* v4.0: STICKY HEADER */
.sticky-header { position: sticky; top: 0; z-index: 1000; }

/* v4.0: SEKCJA DLACZEGO WARTO */
.dlaczego-section { padding: 40px 34px; margin: 24px 0; background: #cdb8ec; border-radius: 24px; }
.dlaczego-section h2 { text-align: center; margin-bottom: 32px; }
.dlaczego-grid { display: flex; gap: 24px; max-width: 1100px; margin: 0 auto; }
.dlaczego-col { flex: 1; background: #fff; border-radius: 14px; padding: 28px 24px; }
.dlaczego-col h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: 12px; padding-bottom: 7px; border-bottom: 3px solid; white-space: nowrap; }
.dlaczego-zap h3 { color: #2e6fdd; border-color: #2e6fdd; }
.dlaczego-ofer h3 { color: #ffc233; border-color: #ffc233; }
.dlaczego-tworza h3 { color: #e85d75; border-color: #e85d75; }
.dlaczego-col ul { list-style: none; padding: 0; margin: 0; }
.dlaczego-col li { padding: 3px 0 3px 22px; position: relative; font-size: 14px; line-height: 1.35; }
.dlaczego-col li::before { content: "\2714"; position: absolute; left: 0; color: inherit; }
.dlaczego-zap li::before { color: #2e6fdd; }
.dlaczego-ofer li::before { color: #ffc233; }
.dlaczego-tworza li::before { color: #e85d75; }
@media(max-width:768px) { .dlaczego-grid { flex-direction: column; } }
body.kontrast .dlaczego-section { background: #000; }
body.kontrast .dlaczego-col { background: #111; border: 1px solid #ffe000; }
body.kontrast .dlaczego-col h3, body.kontrast .dlaczego-col li { color: #fff; }


/* v10.08: STICKY HEADER - offset paska admina WP (zeby nie zaslanial logo zalogowanemu adminowi) */
body.admin-bar .sticky-header{top:32px}
@media screen and (max-width:782px){body.admin-bar .sticky-header{top:46px}}


/* v10.08b: ZALATW SPRAWE - 3 karty, jedna pod druga */
.layout-2col .tasks-grid{grid-template-columns:1fr}


/* v10.08c: SIDEBAR SZUKAJ - wyrownanie inputu i przycisku */
.sb-szukaj .search-form{display:flex;align-items:center;gap:8px}
.sb-szukaj .search-form label{flex:1;margin:0;display:block}
.sb-szukaj .search-field{display:block;box-sizing:border-box;width:100%;height:42px;padding:0 12px;border:1px solid #d7dce6;border-radius:8px;font-size:14px;line-height:normal;vertical-align:top}
.sb-szukaj .search-submit{display:block;vertical-align:top}
.sb-szukaj .search-submit{box-sizing:border-box;height:42px;margin:0!important;padding:0 20px;background:#12315e;color:#fff;border:0;border-radius:8px;font-weight:700;font-size:14px;cursor:pointer;white-space:nowrap;align-self:center}
.sb-szukaj .search-submit:hover{background:#2e6fdd}


/* v10.08e: blok wyroznionych - kadrowanie zdjec jak w artykulach (blurred fill) */
.hw-glowny-foto .thumb-clip, .hw-mini-foto .thumb-clip{position:absolute;inset:0;overflow:hidden;z-index:0;display:block}
.hw-glowny-foto .thumb-clip::before, .hw-mini-foto .thumb-clip::before{content:"";position:absolute;inset:0;background-image:var(--thumb-bg);background-size:cover;background-position:center;filter:blur(16px) saturate(1.15) brightness(.95);transform:scale(1.25);z-index:0}
.hw-glowny-foto .thumb-clip img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;display:block}
.hw-mini-foto .thumb-clip img{position:relative;z-index:1;width:100%;height:100%;object-fit:contain;display:block}


/* v10.08f: PODSTRONA PROJEKTY - kolorowe karty gradientowe */
.proj-karty{display:flex;flex-direction:column;gap:18px;margin:24px 0}
.proj-karta{display:block;position:relative;overflow:hidden;border-radius:18px;padding:26px 30px;color:#fff!important;text-decoration:none;box-shadow:0 8px 24px rgba(13,36,69,.14);transition:transform .15s,box-shadow .15s}
.proj-karta:hover{transform:translateY(-3px);box-shadow:0 14px 32px rgba(13,36,69,.22);text-decoration:none;color:#fff}
.proj-karta::after{content:"";position:absolute;right:-40px;bottom:-60px;width:220px;height:220px;background:rgba(255,255,255,.12);border-radius:50%}
.pk-erasmus{background:linear-gradient(120deg,#1d4ed8,#3b82f6)}
.pk-fers{background:linear-gradient(120deg,#be1256,#e0447f)}
.pk-pmu{background:linear-gradient(120deg,#0d7a5f,#15a87f)}
.pk-chip{display:inline-block;background:rgba(255,255,255,.22);border-radius:20px;padding:4px 14px;font-size:12px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;margin-bottom:12px;position:relative;z-index:1}
.pk-tytul{display:block;font-size:23px;font-weight:800;margin-bottom:8px;position:relative;z-index:1}
.pk-opis{display:block;font-size:14.5px;line-height:1.5;opacity:.95;max-width:640px;position:relative;z-index:1}
.pk-wiecej{display:inline-block;margin-top:14px;font-weight:700;font-size:14px;position:relative;z-index:1}
body.kontrast .proj-karta{outline:2px solid #ffe000;outline-offset:-2px}


/* v10.08g: SIDEBAR - blok Na skroty */
.sb-naskroty-lista{list-style:none;margin:0;padding:0}
.sb-naskroty-lista li{margin:0;padding:0;border-bottom:1px solid #eef1f6}
.sb-naskroty-lista li:last-child{border-bottom:0}
.sb-naskroty-lista a{display:block;padding:9px 4px 9px 18px!important;position:relative;color:#12315e;font-weight:600;font-size:14px;text-decoration:none}
.sb-naskroty-lista a::before{content:"\203A";position:absolute;left:4px;top:9px;color:#2e6fdd;font-weight:700}
.sb-naskroty-lista a:hover{color:#2e6fdd;padding-left:22px}
body.temat-zielony .sb-naskroty-lista a{color:#0b3a22}
body.temat-zielony .sb-naskroty-lista a::before{color:#15844c}
body.temat-bajka .sb-naskroty-lista a{color:#4e146a}
body.temat-bajka .sb-naskroty-lista a::before{color:#d5238a}
body.kontrast .sb-naskroty-lista a{color:#ffe000}


/* ===== v11.08: wszystkie wpisy dol - dopasowanie do gornego + odstep Zalatw sprawe o polowe ===== */
.more-dol .more{font-weight:600;font-size:14.5px}
#zalatw-sprawe{padding-top:30px}
@media(max-width:560px){
.topbar .wrap{padding:7px 16px}
.topbar .wrap>div:first-child{gap:5px 8px;font-size:12.5px;line-height:1.5}
.topbar-right{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:4px}
.topbar-right a{font-size:12.5px}
}


/* v11.08b: entry-content obrazki mobile pelna szerokosc */
@media(max-width:560px){
.entry-content img{float:none!important;width:100%!important;max-width:100%!important;height:auto!important;margin:0 0 12px 0!important;display:block!important}
}

/* v11.08d: topbar-right mobile - usun zbedny margines, dociagnij kropki */
@media(max-width:560px){
.topbar-right a{margin-left:0}
.topbar-right{gap:5px 8px}
.temat-wybor{padding:2px 5px;gap:4px;margin-left:2px}
.tw-krop{width:13px;height:13px}
}