/* ==========================================================================
   SM Oświecenia — main.css
   Zasady: Poppins wszędzie · navy #1a3560 · czerwień #cb002f
           BEZ box-shadow — tylko obramowania · karty 12px · flat design
   Spis:
     01 Fonty  02 Tokeny  03 Baza  04 Układ  05 Przyciski i drobne
     06 Navbar  07 Mega menu  08 Panele (awaria, logowanie)  09 Szukaj
     10 Szuflada mobilna  11 Hero  12 Sekcje, karty, listy  13 Prawa kolumna
     14 Artykuł i treść (prose)  15 Archiwum, szukaj, 404  16 Stopka
     17 Zgodność tagDiv/VC  18 Responsywność
   ========================================================================== */

/* 01 ─ FONTY (lokalnie, bez Google Fonts) ─────────────────────────────── */
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-latin-ext-400-normal.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: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-latin-400-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-latin-ext-500-normal.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: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-latin-500-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins/poppins-latin-ext-600-normal.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: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins/poppins-latin-600-normal.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; }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins/poppins-latin-ext-700-normal.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: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins/poppins-latin-700-normal.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; }

/* 02 ─ TOKENY ─────────────────────────────────────────────────────────── */
:root {
	--navy: #1a3560;
	--navy-2: #12294d;
	--navy-3: #2f3168;
	--red: #cb002f;
	--red-2: #a80027;
	--red-soft: #fff3f6;
	--green: #1a6632;
	--amber: #8a5a00;

	--t1: #1a2030;
	--t2: #4d5156;
	--t3: #5f6b80;
	--t4: #8a93a3;

	--bg: #ffffff;
	--surface: #f6f8fb;
	--surface-2: #eef2f8;
	--icon-bg: #e4ecf7;
	--line: rgba(20, 30, 60, .09);
	--line-2: rgba(20, 30, 60, .16);

	--r-sm: 8px;
	--r: 12px;
	--r-lg: 14px;

	--font: 'Poppins', 'Segoe UI', system-ui, -apple-system, sans-serif;
	--max: 1240px;
	--gut: 48px;
	--side: 340px;
	--nav-h: 76px;
	--adminbar: 0px;
	--ease: cubic-bezier(.16, 1, .3, 1);
}
body.admin-bar { --adminbar: 32px; }

/* 03 ─ BAZA ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + var(--adminbar) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.65;
	color: var(--t1);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
body.osw-lock { overflow: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font); color: var(--navy); line-height: 1.3; margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.osw-skip {
	position: absolute; left: 12px; top: -60px; z-index: 10000;
	padding: 10px 16px; border-radius: var(--r-sm);
	background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.osw-skip:focus { top: 12px; color: #fff; }
.osw-main:focus { outline: none; }

/* 04 ─ UKŁAD ──────────────────────────────────────────────────────────── */
.osw-wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.osw-main { display: block; min-height: 50vh; padding-bottom: 64px; }

.osw-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--side);
	gap: 40px;
	align-items: start;
}
.osw-content { min-width: 0; }
.osw-sidebar { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* 05 ─ PRZYCISKI I DROBNE ─────────────────────────────────────────────── */
.osw-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 42px; padding: 0 20px;
	border: 1px solid transparent; border-radius: 10px;
	font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 1;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background .15s, color .15s, border-color .15s;
}
.osw-btn .ti { font-size: 17px; }
.osw-btn--navy { background: var(--navy); color: #fff; }
.osw-btn--navy:hover { background: var(--navy-2); color: #fff; }
.osw-btn--red { background: var(--red); color: #fff; }
.osw-btn--red:hover { background: var(--red-2); color: #fff; }
.osw-btn--ghost { background: #fff; color: var(--navy); border-color: var(--line-2); }
.osw-btn--ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

.osw-eyebrow {
	display: block;
	font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
	color: var(--t3); margin-bottom: 10px;
}
.osw-pill {
	display: inline-flex; align-items: center;
	padding: 2px 9px; border-radius: 20px;
	background: var(--icon-bg); color: var(--navy);
	font-size: 11px; font-weight: 600; line-height: 1.6; text-decoration: none;
}
a.osw-pill:hover { background: var(--navy); color: #fff; }

.osw-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
	font-size: 12px; color: var(--t3); line-height: 1.4;
}
.osw-more {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.osw-more .ti { font-size: 14px; transition: transform .15s; }
.osw-more:hover { color: var(--red); }
.osw-more:hover .ti { transform: translateX(3px); }

.osw-empty { color: var(--t3); padding: 24px 0; }
.osw-mt { margin-top: 20px; }

.osw-callout {
	padding: 16px 20px; margin-bottom: 20px;
	background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--navy);
	border-radius: 0 var(--r) var(--r) 0;
}
.osw-callout p { margin-top: 4px; color: var(--t2); font-size: 14px; }

/* 06 ─ NAVBAR ─────────────────────────────────────────────────────────── */
.osw-nav {
	position: sticky; top: var(--adminbar); z-index: 900;
	background: #fff; /* bez backdrop-filter: tworzyłby kontener dla position:fixed (szuflada) */
	border-bottom: 1px solid var(--line);
	transition: border-color .2s;
}
.osw-nav.is-scrolled { border-bottom-color: var(--line-2); }

.osw-nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 8px; }

.osw-logo { display: flex; align-items: center; flex-shrink: 0; height: 100%; margin-right: 20px; }
.osw-logo img { height: 50px; width: auto; display: block; }

.osw-nav-links { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }

.osw-nav-trig,
.osw-nav-link {
	display: inline-flex; align-items: center; gap: 5px;
	height: 38px; padding: 0 13px;
	font-size: 13.5px; font-weight: 500; color: var(--t2); line-height: 1;
	background: none; border: 0; border-radius: var(--r-sm);
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: color .15s, background .15s;
}
.osw-nav-trig:hover, .osw-nav-link:hover { color: var(--t1); background: var(--surface); }
.osw-nav-trig.is-on { color: var(--navy); background: var(--surface-2); }
.osw-chev { font-size: 12px; color: var(--t4); transition: transform .2s var(--ease), color .15s; }
.is-on > .osw-chev { transform: rotate(180deg); color: currentColor; }

.osw-nav-ico {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: var(--r-sm);
	color: var(--t3); background: none; border: 0; cursor: pointer; text-decoration: none;
	transition: color .15s, background .15s;
}
.osw-nav-ico .ti { font-size: 18px; }
.osw-nav-ico:hover, .osw-nav-ico.is-on { color: var(--navy); background: var(--surface-2); }

.osw-nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }

.osw-btn-sos,
.osw-btn-login {
	display: inline-flex; align-items: center; gap: 7px;
	height: 40px; padding: 0 14px; border-radius: 10px;
	font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; white-space: nowrap;
	transition: background .15s, border-color .15s, color .15s;
}
.osw-btn-sos .ti, .osw-btn-login .ti { font-size: 16px; }
.osw-btn-sos .osw-chev, .osw-btn-login .osw-chev { font-size: 12px; }
.osw-btn-sos { background: var(--red-soft); color: var(--red); border: 1px solid rgba(203, 0, 47, .22); }
.osw-btn-sos .osw-chev { color: rgba(203, 0, 47, .6); }
.osw-btn-sos:hover, .osw-btn-sos.is-on { background: #ffe6ec; border-color: rgba(203, 0, 47, .45); }
.osw-btn-login { background: var(--red); color: #fff; border: 1px solid var(--red); padding: 0 18px; }
.osw-btn-login .osw-chev { color: rgba(255, 255, 255, .75); }
.osw-btn-login:hover { background: var(--red-2); border-color: var(--red-2); }
.osw-btn-login.is-on { background: var(--red-2); }

.osw-ham {
	display: none; flex-direction: column; justify-content: center; gap: 5px;
	width: 42px; height: 42px; padding: 11px; margin-left: 2px;
	background: none; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer;
}
.osw-ham span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .22s var(--ease), opacity .15s; }
.osw-ham.is-on span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.osw-ham.is-on span:nth-child(2) { opacity: 0; }
.osw-ham.is-on span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.osw-backdrop {
	position: fixed; inset: 0; z-index: 800;
	background: rgba(10, 18, 36, .28);
}

@keyframes oswDrop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* 07 ─ MEGA MENU ──────────────────────────────────────────────────────── */
.osw-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 910; }
.osw-mega-card {
	display: flex;
	background: #fff;
	border: 1px solid var(--line-2); border-top: 2px solid var(--navy);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	overflow: hidden;
	animation: oswDrop .2s var(--ease) both;
}
.osw-mega-featured {
	flex: 0 0 300px; padding: 26px 28px;
	background: var(--surface); border-right: 1px solid var(--line);
}
.osw-mega-fl {
	display: flex; align-items: flex-start; gap: 14px;
	padding: 10px 12px; margin: 0 -12px 2px;
	border-radius: var(--r); text-decoration: none; transition: background .15s;
}
.osw-mega-fl:hover { background: var(--surface-2); }
.osw-mega-fl-ic {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center;
	background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 18px;
}
.osw-mega-fl-t { display: block; font-size: 13.5px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.osw-mega-fl-d { display: block; font-size: 11.5px; color: var(--t3); line-height: 1.45; margin-top: 2px; }
.osw-mega-fl:hover .osw-mega-fl-t { color: var(--navy); }

.osw-mega-cols { display: flex; flex: 1; padding: 26px 28px; }
.osw-mega-col { min-width: 200px; }
.osw-mega-col + .osw-mega-col { margin-left: 32px; padding-left: 32px; border-left: 1px solid var(--line); }
.osw-mega-grp + .osw-mega-grp { margin-top: 20px; }
.osw-mega-sl {
	display: flex; align-items: center; gap: 10px;
	padding: 7px 10px; margin: 1px -10px;
	font-size: 13.5px; font-weight: 500; color: var(--t2); text-decoration: none;
	border-radius: var(--r-sm); transition: background .12s, color .12s;
}
.osw-mega-sl .ti { font-size: 16px; color: var(--t4); transition: color .12s; }
.osw-mega-sl:hover { background: var(--surface); color: var(--t1); }
.osw-mega-sl:hover .ti { color: var(--navy); }
.osw-mega-note {
	display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px;
	background: var(--surface); border-radius: var(--r-sm);
	font-size: 12px; color: var(--t3); line-height: 1.45;
}
.osw-mega-note .ti { font-size: 15px; color: var(--t4); flex-shrink: 0; margin-top: 1px; }
.osw-mega-note strong { color: var(--t2); font-weight: 600; }

/* 08 ─ PANELE: AWARIA, LOGOWANIE ──────────────────────────────────────── */
.osw-pop-anchor { position: absolute; top: 100%; left: 0; right: 0; height: 0; z-index: 910; }
.osw-pop {
	position: absolute; top: 0; right: var(--gut);
	width: 380px; max-height: calc(100vh - var(--nav-h) - var(--adminbar) - 16px); overflow-y: auto;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--line-2); border-top: 2px solid var(--navy);
	border-radius: 0 0 var(--r-lg) var(--r-lg);
	animation: oswDrop .18s var(--ease) both;
}
.osw-pop--sos { border-top-color: var(--red); }

.osw-sos-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 8px; background: var(--surface-2); border-radius: var(--r); }
.osw-sos-tab {
	flex: 1; padding: 8px; border: 1px solid transparent; border-radius: var(--r-sm);
	font-size: 12px; font-weight: 600; color: var(--t3); background: none; cursor: pointer;
}
.osw-sos-tab.is-on { background: #fff; color: var(--navy); border-color: var(--line-2); }
.osw-now {
	display: none; margin-left: 5px; padding: 1px 5px; border-radius: 4px; vertical-align: 1px;
	font-size: 9px; font-weight: 700; letter-spacing: .06em; background: #e3f3e9; color: #137a43;
}
.osw-sos-tab.is-now .osw-now { display: inline-block; }
.osw-sos-note { font-size: 11px; color: var(--t3); line-height: 1.45; margin: 0 2px 8px; }
.osw-sos-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.osw-sos-item:last-child { border-bottom: 0; }
.osw-sos-ic {
	flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center;
	background: var(--red-soft); color: var(--red); font-size: 17px;
}
.osw-sos-t { font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.35; }
.osw-sos-who { font-size: 11px; color: var(--t3); margin: 1px 0 6px; }
.osw-sos-tels { display: flex; flex-wrap: wrap; gap: 6px; }
.osw-sos-tel {
	display: inline-flex; align-items: center; gap: 5px;
	padding: 5px 11px; border-radius: 20px;
	font-size: 13px; font-weight: 600; color: var(--navy); text-decoration: none;
	background: var(--surface-2); transition: background .15s, color .15s;
}
.osw-sos-tel .ti { font-size: 14px; }
.osw-sos-tel:hover { background: var(--navy); color: #fff; }
.osw-sos-foot {
	display: flex; gap: 8px; margin-top: 10px; padding: 10px 12px;
	background: var(--surface); border-radius: var(--r-sm);
	font-size: 11.5px; color: var(--t2); line-height: 1.5;
}
.osw-sos-foot .ti { font-size: 16px; color: var(--t3); flex-shrink: 0; margin-top: 1px; }
.osw-sos-foot a { color: var(--red); font-weight: 600; text-decoration: none; }
.osw-sos-foot a:hover { text-decoration: underline; }
.osw-pop-more {
	display: flex; align-items: center; justify-content: space-between;
	margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.osw-pop-more:hover { color: var(--red); }

.osw-li {
	display: flex; align-items: center; gap: 12px;
	padding: 7px 12px; margin: 0 -12px 1px;
	border-radius: var(--r); text-decoration: none; transition: background .15s;
}
.osw-li:hover { background: var(--surface); }
.osw-li-ic {
	flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center;
	background: var(--surface-2); color: var(--navy); font-size: 16px;
}
.osw-li-txt { min-width: 0; }
.osw-li-label { display: block; font-size: 13px; font-weight: 600; color: var(--t1); line-height: 1.3; }
.osw-li.is-light .osw-li-label { font-weight: 400; }
.osw-li.is-accent .osw-li-label { color: var(--red); }
.osw-li-sub { display: block; font-size: 11px; color: var(--t3); line-height: 1.3; margin-top: 1px; }
.osw-li-ext { margin-left: auto; font-size: 14px; color: var(--t4); flex-shrink: 0; }
.osw-li-hint {
	margin: 8px 0 4px; padding: 10px 12px;
	font-size: 11.5px; color: var(--t2); background: var(--surface); border-radius: var(--r-sm);
}
.osw-li-hint a { color: var(--red); font-weight: 600; text-decoration: none; }
.osw-li-divider { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.osw-li-divider::before, .osw-li-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.osw-li-divider span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy); white-space: nowrap; }
.osw-li-user { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; color: var(--t1); }
.osw-li-av {
	width: 36px; height: 36px; border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
}

/* 09 ─ WYSZUKIWARKA (rozwijana) ───────────────────────────────────────── */
.osw-search {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 905;
	background: #fff; border-bottom: 2px solid var(--navy);
	animation: oswDrop .18s var(--ease) both;
}
.osw-search-form { display: flex; align-items: center; gap: 12px; height: 72px; }
.osw-search-ic { font-size: 20px; color: var(--t3); }
.osw-search-input {
	flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: none;
	font-family: var(--font); font-size: 17px; color: var(--t1); caret-color: var(--navy);
}
.osw-search-input::placeholder { color: var(--t4); }
.osw-search-close {
	width: 38px; height: 38px; border-radius: var(--r-sm); border: 0; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	background: var(--surface-2); color: var(--t3); font-size: 17px;
}
.osw-search-close:hover { color: var(--t1); }
.osw-search-quick { background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0; }
.osw-search-quick .osw-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.osw-search-quick .osw-eyebrow { margin: 0 4px 0 0; }
.osw-search-quick a {
	padding: 4px 12px; border-radius: 20px;
	font-size: 12.5px; font-weight: 500; color: var(--t2); text-decoration: none;
	background: #fff; border: 1px solid var(--line-2); transition: all .15s;
}
.osw-search-quick a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 10 ─ SZUFLADA MOBILNA ───────────────────────────────────────────────── */
.osw-drawer {
	position: fixed; z-index: 950;
	top: calc(var(--nav-h) + var(--adminbar)); left: 0; right: 0; bottom: 0;
	overflow-y: auto; overscroll-behavior: contain;
	padding: 16px 20px 40px;
	background: #fff; border-top: 1px solid var(--line);
	animation: oswDrop .2s var(--ease) both;
}
.osw-drawer-search {
	display: flex; align-items: center; gap: 10px;
	height: 46px; padding: 0 14px; margin-bottom: 12px;
	background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r);
}
.osw-drawer-search .ti { color: var(--t3); font-size: 18px; }
.osw-drawer-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--t1); }
.osw-drawer-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.osw-drawer-sec { border-bottom: 1px solid var(--line); }
.osw-drawer-sec summary {
	display: flex; align-items: center; gap: 12px;
	padding: 15px 2px; list-style: none; cursor: pointer;
	font-size: 15px; font-weight: 600; color: var(--t1);
}
.osw-drawer-sec summary::-webkit-details-marker { display: none; }
.osw-drawer-sec summary > .ti:first-child { font-size: 19px; color: var(--navy); }
.osw-drawer-sec summary .osw-chev { margin-left: auto; font-size: 16px; }
.osw-drawer-sec[open] summary .osw-chev { transform: rotate(180deg); }
.osw-drawer-links { padding: 0 0 12px 31px; }
.osw-drawer-links a {
	display: flex; align-items: center; gap: 10px;
	padding: 9px 0; font-size: 14px; color: var(--t2); text-decoration: none;
}
.osw-drawer-links a .ti { font-size: 16px; color: var(--t4); }
.osw-drawer-grp { margin: 10px 0 2px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--t3); }
.osw-drawer-link {
	display: flex; align-items: center; justify-content: space-between;
	padding: 15px 2px; border-bottom: 1px solid var(--line);
	font-size: 15px; font-weight: 600; color: var(--t1); text-decoration: none;
}
.osw-drawer-link .ti { color: var(--t4); }

/* 11 ─ HERO ───────────────────────────────────────────────────────────── */
.osw-hero { margin: 24px 0 40px; }
.osw-hero-photo {
	position: relative; height: 320px; overflow: hidden;
	border-radius: var(--r-lg); background: var(--navy);
}
.osw-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.osw-hero-photo::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background:
		linear-gradient(to right, rgba(10, 20, 50, .72) 0%, rgba(10, 20, 50, .25) 45%, rgba(10, 20, 50, 0) 70%),
		linear-gradient(to top, rgba(10, 20, 50, .85) 0%, rgba(15, 30, 70, .45) 55%, rgba(26, 53, 96, .2) 100%);
}
.osw-hero-content {
	position: absolute; inset: 0; z-index: 2;
	display: flex; flex-direction: column; justify-content: flex-end;
	padding: 0 40px 84px;
}
.osw-hero-title {
	max-width: 620px; padding-left: 14px; border-left: 3px solid var(--red);
	font-size: 30px; font-weight: 700; line-height: 1.22; color: #fff; letter-spacing: -.01em;
}
.osw-hero-stats { display: flex; margin: 14px 0 0; padding-left: 17px; }
.osw-hero-stat { display: flex; flex-direction: column; gap: 4px; padding-right: 18px; }
.osw-hero-stat + .osw-hero-stat { padding-left: 18px; border-left: 1px solid rgba(255, 255, 255, .25); }
.osw-hero-stat dt { font-size: 18px; font-weight: 700; color: #fff; line-height: 1; }
.osw-hero-stat dd { margin: 0; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }

.osw-qlinks {
	position: relative; z-index: 3;
	display: grid; grid-template-columns: repeat(4, 1fr);
	margin: -52px 24px 0;
	background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
}
.osw-qlink {
	display: flex; align-items: center; gap: 14px;
	min-height: 88px; padding: 18px 20px;
	border-right: 1px solid var(--line); border-top: 3px solid transparent;
	text-decoration: none; transition: background .13s;
}
.osw-qlink:last-child { border-right: 0; }
.osw-qlink-ic {
	flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r);
	display: flex; align-items: center; justify-content: center; font-size: 21px;
}
.osw-qlink-txt { flex: 1; min-width: 0; }
.osw-qlink-name { display: block; font-size: 14px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.osw-qlink-desc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: 11.5px; color: #5f7290; line-height: 1.35; }
.osw-qlink-tag {
	display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 4px;
	background: var(--surface-2); color: #3a4f72; font-size: 10px; font-weight: 600; white-space: nowrap;
}
.osw-qlink-arrow { font-size: 16px; color: #b8c7dc; flex-shrink: 0; transition: transform .13s, color .13s; }
.osw-qlink:hover .osw-qlink-arrow { transform: translateX(4px); color: var(--navy); }
.osw-qlink--blue { border-top-color: var(--navy); }
.osw-qlink--blue .osw-qlink-ic { background: #dce6f5; color: var(--navy); }
.osw-qlink--blue:hover { background: rgba(26, 53, 96, .04); }
.osw-qlink--amber { border-top-color: #b07a0b; }
.osw-qlink--amber .osw-qlink-ic { background: #fdefd3; color: #8a5f06; }
.osw-qlink--amber:hover { background: rgba(158, 111, 10, .05); }
.osw-qlink--green { border-top-color: #1d9a57; }
.osw-qlink--green .osw-qlink-ic { background: #dcf1e6; color: #137a43; }
.osw-qlink--green:hover { background: rgba(29, 154, 87, .05); }
.osw-qlink--purple { border-top-color: #3d38a8; }
.osw-qlink--purple .osw-qlink-ic { background: #e2e2f6; color: #3d38a8; }
.osw-qlink--purple:hover { background: rgba(61, 56, 168, .04); }

.osw-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); }
.osw-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa8bd; flex-shrink: 0; }
.osw-status.is-open { color: #137a43; }
.osw-status.is-open .osw-dot { background: #1d9a57; outline: 3px solid rgba(29, 154, 87, .18); }

/* 12 ─ SEKCJE, KARTY, LISTY ───────────────────────────────────────────── */
.osw-section + .osw-section { margin-top: 48px; }
.osw-section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 16px;
	margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.osw-section-title {
	position: relative; padding-left: 14px;
	font-size: 22px; font-weight: 700; color: var(--navy); line-height: 1.2;
}
.osw-section-title::before {
	content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 2px; background: var(--red);
}

.osw-thumb-ph {
	width: 100%; height: 100%; min-height: 140px;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--surface-2), var(--icon-bg)); color: rgba(26, 53, 96, .35); font-size: 40px;
}

/* wyróżniony */
.osw-feat {
	display: grid; grid-template-columns: 1.15fr 1fr;
	border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff;
	margin-bottom: 24px; transition: border-color .15s;
}
.osw-feat:hover { border-color: var(--line-2); }
.osw-feat-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.osw-feat-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.osw-feat:hover .osw-feat-img img { transform: scale(1.03); }
.osw-feat-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px; }
.osw-feat-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.osw-feat-title a { color: var(--navy); text-decoration: none; }
.osw-feat-title a:hover { color: var(--navy-3); }
.osw-feat-excerpt { font-size: 13.5px; color: var(--t2); line-height: 1.65; }
.osw-feat .osw-more { margin-top: auto; }

/* siatka kart */
.osw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.osw-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.osw-card {
	display: flex; flex-direction: column; min-width: 0;
	background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
	transition: border-color .15s;
}
.osw-card:hover { border-color: var(--line-2); }
.osw-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.osw-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.osw-card:hover .osw-card-img img { transform: scale(1.04); }
.osw-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 18px; }
.osw-card-title { font-size: 15px; font-weight: 600; line-height: 1.45; }
.osw-card-title a { color: var(--navy); text-decoration: none; }
.osw-card-title a:hover { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }

/* listy (przetargi, bloki tagDiv) */
.osw-list { list-style: none; margin: 0; padding: 0; }
.osw-list li + li { border-top: 1px solid var(--line); }
.osw-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; }
.osw-list-title { display: block; font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.osw-list-meta { display: block; font-size: 12px; color: var(--t3); margin-top: 2px; }
.osw-list a:hover .osw-list-title { color: var(--navy-3); text-decoration: underline; text-underline-offset: 3px; }
.osw-list--card { border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; }
.osw-list--card a { padding: 14px 0; }
.osw-list-ic {
	flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center;
	background: #e2e2f6; color: #3d38a8; font-size: 17px;
}
.osw-list-body { flex: 1; min-width: 0; }
.osw-list-arrow { color: var(--t4); font-size: 16px; transition: transform .15s; }
.osw-list a:hover .osw-list-arrow { transform: translateX(3px); color: var(--navy); }

/* 13 ─ PRAWA KOLUMNA ──────────────────────────────────────────────────── */
.osw-side-card {
	background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 18px 20px;
}
.osw-side-card--bare { padding: 0; border: 0; background: none; }
.osw-side-title {
	display: flex; align-items: center; gap: 10px;
	font-size: 15px; font-weight: 700; text-transform: uppercase; color: var(--t1); margin-bottom: 12px;
}
.osw-side-links { list-style: none; margin: 0; padding: 0; }
.osw-side-links li + li { border-top: 1px solid var(--line); }
.osw-side-links a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--t1); text-decoration: none; }
.osw-side-links a .ti { color: var(--t4); }
.osw-side-links a:hover { color: var(--navy); }
.osw-side-card .widget-title, .osw-side-card .wp-block-heading { font-size: 15px; text-transform: uppercase; margin-bottom: 12px; }
.osw-side-card ul:not([class]) { margin: 0; padding-left: 18px; font-size: 13.5px; }

/* widżety smosw-* w karcie: karta daje ramkę, widżet nie dokłada paddingu */
.osw-side-card .smosw-sf { padding: 0; }
.osw-side-card .smosw-sf-section { padding: 0; border: 0; }
/* WMK: ukryj pustą kartę, dopóki snippet nie wstrzyknie danych */
.osw-side-card.awarie-wody:not(:has(#wmk-alert-inner)) { display: none; }

/* 14 ─ ARTYKUŁ I TREŚĆ ────────────────────────────────────────────────── */
.osw-crumbs {
	display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
	padding: 20px 0 8px; font-size: 12.5px; color: var(--t3);
}
.osw-crumbs a { color: var(--t3); text-decoration: none; }
.osw-crumbs a:hover { color: var(--navy); text-decoration: underline; }
.osw-crumbs .sep, .osw-crumbs span[aria-current] { color: var(--t3); }
.osw-crumbs span[aria-current] { color: var(--t1); font-weight: 500; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.osw-article { padding-top: 8px; }
.osw-article-head { margin-bottom: 20px; }
.osw-article-head .osw-meta { margin-bottom: 12px; }
.osw-meta-sep { color: var(--t4); }
.osw-article-title { font-size: 32px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--navy); }
.osw-article-img { margin: 0 0 28px; }
.osw-article-img img { display: block; width: 100%; border-radius: var(--r-lg); }
.osw-article-img figcaption { margin-top: 8px; font-size: 12px; color: var(--t3); }
.osw-article--full { max-width: 100%; }

.osw-prose { font-size: 16px; line-height: 1.75; color: var(--t1); overflow-wrap: break-word; }
.osw-prose > * + * { margin-top: 1.1em; }
.osw-prose h2 { font-size: 24px; font-weight: 600; margin-top: 1.8em; }
.osw-prose h3 { font-size: 19px; font-weight: 600; margin-top: 1.6em; color: var(--navy-3); }
.osw-prose h4 { font-size: 16px; font-weight: 600; margin-top: 1.4em; }
.osw-prose a { color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.osw-prose a:hover { color: var(--red); }
.osw-prose strong { font-weight: 600; }
.osw-prose ul, .osw-prose ol { padding-left: 1.4em; }
.osw-prose li + li { margin-top: .35em; }
.osw-prose li::marker { color: var(--navy); }
.osw-prose blockquote {
	margin-left: 0; margin-right: 0; padding: 16px 20px;
	background: var(--surface); border-left: 4px solid var(--navy); border-radius: 0 var(--r) var(--r) 0;
	font-style: normal; color: var(--t2);
}
.osw-prose blockquote p { margin: 0; }
.osw-prose hr { border: 0; border-top: 1px solid var(--line-2); margin: 2em 0; }
.osw-prose img { border-radius: var(--r); }
.osw-prose figure { margin-left: 0; margin-right: 0; }
.osw-prose figcaption { font-size: 12.5px; color: var(--t3); margin-top: 6px; }
.osw-prose .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.osw-prose .alignright { float: right; margin: .3em 0 1em 1.5em; }
.osw-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.osw-prose::after { content: ''; display: table; clear: both; }
.osw-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); }
.osw-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.osw-prose th, .osw-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.osw-prose thead th { background: var(--surface); color: var(--navy); font-weight: 600; font-size: 13px; }
.osw-prose tbody tr:last-child td { border-bottom: 0; }
.osw-prose .wp-block-button__link { background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 24px; font-weight: 600; font-size: 14px; text-decoration: none; }
.osw-prose .wp-block-button__link:hover { background: var(--navy-2); color: #fff; }
.osw-prose .wp-block-file { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r); }
.osw-prose .wp-block-file__button { background: var(--navy); border-radius: 8px; font-size: 13px; padding: 6px 14px; color: #fff; text-decoration: none; }
.osw-prose iframe { max-width: 100%; border: 0; border-radius: var(--r); }

.osw-article-foot {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
}
.osw-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); }
.osw-tags a { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 20px; color: var(--t2); text-decoration: none; }
.osw-tags a:hover { border-color: var(--navy); color: var(--navy); }
.osw-share { height: 38px; font-size: 13px; }

.osw-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.osw-postnav-item {
	display: flex; flex-direction: column; gap: 4px;
	padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r);
	font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.4; text-decoration: none;
	transition: border-color .15s, background .15s;
}
.osw-postnav-item .osw-eyebrow { display: flex; align-items: center; gap: 4px; margin: 0; }
.osw-postnav-item:hover { border-color: var(--line-2); background: var(--surface); color: var(--navy); }
.osw-postnav-item.is-next { grid-column: 2; text-align: right; }
.osw-postnav-item.is-next .osw-eyebrow { justify-content: flex-end; }
.osw-related { margin-top: 48px; }
.osw-updated { display: flex; align-items: center; gap: 6px; margin-top: 32px; font-size: 12px; color: var(--t3); }
.osw-pages { margin-top: 24px; font-weight: 600; }

/* 15 ─ ARCHIWUM, SZUKAJ, 404 ──────────────────────────────────────────── */
.osw-page-head { padding: 8px 0 28px; }
.osw-page-title { font-size: 32px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.osw-page-desc { margin-top: 8px; font-size: 14.5px; color: var(--t2); max-width: 70ch; }

.osw-pagination { margin-top: 32px; }
.osw-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.osw-pagination .page-numbers {
	min-width: 40px; height: 40px; padding: 0 12px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line-2); border-radius: 10px;
	font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: none;
}
.osw-pagination .page-numbers:hover { background: var(--surface); }
.osw-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.osw-pagination .page-numbers.dots { border: 0; }

.osw-searchform {
	display: flex; align-items: center; gap: 8px;
	height: 48px; padding: 0 4px 0 14px;
	background: #fff; border: 1px solid var(--line-2); border-radius: var(--r);
}
.osw-searchform:focus-within { border-color: var(--navy); }
.osw-searchform .ti { color: var(--t3); font-size: 18px; }
.osw-searchform input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--t1); }
.osw-searchform .osw-btn { height: 40px; padding: 0 16px; }
.osw-side-card .osw-searchform .osw-btn { display: none; }
.osw-search-big { max-width: 560px; margin-top: 16px; }

.osw-results { list-style: none; margin: 0; padding: 0; }
.osw-result + .osw-result { border-top: 1px solid var(--line); }
.osw-result a { display: flex; gap: 14px; padding: 16px 0; text-decoration: none; }
.osw-result-ic {
	flex-shrink: 0; width: 38px; height: 38px; border-radius: var(--r-sm);
	display: flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--navy); font-size: 18px;
}
.osw-result-body { min-width: 0; }
.osw-result-type { display: block; font-size: 11.5px; color: var(--t3); }
.osw-result-title { display: block; font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.4; margin-top: 2px; }
.osw-result-excerpt { display: block; font-size: 13.5px; color: var(--t2); margin-top: 4px; }
.osw-result a:hover .osw-result-title { text-decoration: underline; text-underline-offset: 3px; }

.osw-quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.osw-quick-grid a {
	display: flex; align-items: center; gap: 12px; padding: 14px 16px;
	border: 1px solid var(--line); border-radius: var(--r);
	font-size: 14px; font-weight: 600; color: var(--t1); text-decoration: none; transition: border-color .15s, background .15s;
}
.osw-quick-grid a:hover { border-color: var(--line-2); background: var(--surface); color: var(--navy); }

.osw-404 { padding-top: 48px; }
.osw-404-head { max-width: 640px; margin-bottom: 32px; }
.osw-404-code { display: block; font-size: 72px; font-weight: 700; line-height: 1; color: var(--icon-bg); margin-bottom: 8px; }


/* 16 ─ STOPKA ─────────────────────────────────────────────────────────── */
.osw-footer-main { background: var(--surface); border-top: 1px solid var(--line); padding: 48px 0 44px; }
.osw-footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr; gap: 40px; align-items: start; }
.osw-footer-name { display: block; font-size: 19px; font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.3; margin-bottom: 10px; }
.osw-footer-name:hover { color: var(--red); }
.osw-footer-tagline { font-size: 13px; color: var(--t2); }
.osw-footer-osiedla { font-size: 12.5px; color: var(--t3); margin-top: 4px; line-height: 1.75; max-width: 520px; }
.osw-footer-fb { margin-top: 18px; height: 38px; font-size: 12.5px; font-weight: 500; }
.osw-footer-label { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t3); margin-bottom: 12px; }
.osw-footer-reg-name { font-size: 13px; font-weight: 600; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.osw-footer-reg { font-size: 12.5px; line-height: 1.9; color: var(--t1); }
.osw-footer-item { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 10px; font-size: 13px; color: var(--t1); text-decoration: none; line-height: 1.35; }
.osw-footer-item .ti { font-size: 15px; color: var(--t3); margin-top: 1px; }
.osw-footer-item strong { display: block; font-weight: 600; color: var(--navy); }
.osw-footer-item small { display: block; font-size: 11.5px; color: var(--t2); }
a.osw-footer-item:hover strong { color: var(--red); }
.osw-footer-more { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.osw-footer-bar { background: var(--navy); padding: 16px 0; }
.osw-footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.osw-footer-copy { font-size: 11.5px; color: rgba(255, 255, 255, .85); }
.osw-footer-links { display: flex; gap: 20px; }
.osw-footer-links a { font-size: 11.5px; color: #fff; text-decoration: none; }
.osw-footer-links a:hover { opacity: .75; color: #fff; }

/* 17 ─ ZGODNOŚĆ tagDiv / WPBakery ─────────────────────────────────────── */
.osw-vc-row { display: flex; flex-wrap: wrap; margin: 0 -12px; }
.osw-vc-row + .osw-vc-row { margin-top: 16px; }
.osw-vc-col { flex: 0 0 var(--w, 100%); max-width: var(--w, 100%); padding: 0 12px; min-width: 0; }
.osw-vc-col > * + * { margin-top: 1em; }
.osw-vc-space { height: 24px; }
.osw-vc-sep { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }
.osw-td-title { font-size: 20px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.osw-td + .osw-td, .osw-td-text + .osw-td-text { margin-top: 1.2em; }
.osw-canvas > .osw-vc-zone > .osw-vc-row, .osw-canvas > .osw-vc-row { max-width: var(--max); margin-left: auto; margin-right: auto; padding: 0 calc(var(--gut) - 12px); }

/* 18 ─ RESPONSYWNOŚĆ ──────────────────────────────────────────────────── */
@media (max-width: 1240px) {
	.osw-nav-trig, .osw-nav-link { padding: 0 10px; font-size: 13px; }
	.osw-logo { margin-right: 8px; }
	.osw-logo img { height: 44px; }
}

@media (max-width: 1100px) {
	:root { --gut: 24px; --nav-h: 68px; }
	.osw-nav-links, .osw-mega { display: none !important; }
	.osw-ham { display: flex; }
	.osw-layout { grid-template-columns: minmax(0, 1fr); }
	.osw-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.osw-qlinks { grid-template-columns: repeat(2, 1fr); }
	.osw-qlink:nth-child(2) { border-right: 0; }
	.osw-qlink:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.osw-footer-grid { grid-template-columns: 1fr 1fr; }
	.osw-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	body.admin-bar { --adminbar: 46px; }
	.osw-vc-col { flex-basis: 100%; max-width: 100%; }
	.osw-vc-col + .osw-vc-col { margin-top: 16px; }
	.osw-feat { grid-template-columns: 1fr; }
	.osw-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.osw-quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	body.admin-bar .osw-nav { top: 0; } /* WP chowa admin bar przy przewijaniu */
}

@media (max-width: 680px) {
	:root { --gut: 16px; --nav-h: 62px; }
	body { font-size: 14.5px; }
	.osw-logo img { height: 38px; }
	.osw-cta-txt, .osw-btn-sos .osw-chev, .osw-btn-login .osw-chev { display: none; }
	.osw-btn-sos, .osw-btn-login { width: 42px; height: 42px; padding: 0; justify-content: center; }
	.osw-btn-sos .ti, .osw-btn-login .ti { font-size: 19px; }
	.osw-nav-cta { gap: 6px; }

	.osw-pop-anchor { position: fixed; top: calc(var(--nav-h) + var(--adminbar)); }
	.osw-pop { left: 8px; right: 8px; width: auto; max-height: calc(100dvh - var(--nav-h) - var(--adminbar) - 16px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
	.osw-search-form { height: 64px; }
	.osw-search-form .osw-btn { display: none; }

	.osw-hero { margin: 12px 0 28px; }
	.osw-hero-photo { height: 230px; border-radius: var(--r); }
	.osw-hero-content { padding: 0 20px 56px; }
	.osw-hero-title { font-size: 20px; }
	.osw-hero-stat dt { font-size: 16px; }
	.osw-hero-stat dd { font-size: 10px; }
	.osw-qlinks { margin: -32px 10px 0; }
	.osw-qlink { gap: 10px; padding: 12px; min-height: 0; border-top-width: 2px; }
	.osw-qlink-ic { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
	.osw-qlink-name { font-size: 12.5px; }
	.osw-qlink-desc, .osw-qlink-arrow { display: none; }
	.osw-qlink--green { flex-wrap: wrap; row-gap: 8px; }
	.osw-qlink--green .osw-qlink-txt { display: contents; }
	.osw-qlink--green .osw-qlink-name { flex: 1; min-width: 0; }
	.osw-qlink--green .osw-qlink-desc { display: flex; flex: 0 0 100%; margin-top: 0; font-size: 10.5px; }

	.osw-section-title { font-size: 19px; }
	.osw-section-head { flex-wrap: wrap; }
	.osw-feat-body { padding: 18px; }
	.osw-feat-title { font-size: 18px; }
	.osw-grid, .osw-grid--3 { grid-template-columns: 1fr; gap: 12px; }
	.osw-grid .osw-card { flex-direction: row; }
	.osw-grid .osw-card-img { flex: 0 0 112px; aspect-ratio: auto; min-height: 96px; }
	.osw-grid .osw-thumb-ph { min-height: 96px; font-size: 28px; }
	.osw-grid .osw-card-body { padding: 12px 14px; gap: 6px; }
	.osw-grid .osw-card-title { font-size: 14px; }
	.osw-sidebar { grid-template-columns: 1fr; }

	.osw-article-title, .osw-page-title { font-size: 24px; }
	.osw-prose { font-size: 15.5px; }
	.osw-prose h2 { font-size: 20px; }
	.osw-prose .alignleft, .osw-prose .alignright { float: none; margin: 1em 0; }
	.osw-postnav { grid-template-columns: 1fr; }
	.osw-postnav-item.is-next { grid-column: 1; }
	.osw-quick-grid { grid-template-columns: 1fr; }

	.osw-footer-grid { grid-template-columns: 1fr; gap: 28px; }
	.osw-footer-bar-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
	.osw-nav, .osw-sidebar, .osw-footer-main, .osw-postnav, .osw-related, .osw-article-foot, .osw-backdrop { display: none !important; }
	.osw-layout { display: block; }
	.osw-footer-bar { background: none; color: #000; }
	.osw-footer-copy { color: #000; }
	body { font-size: 12pt; }
}

/* Listy motywu wewnątrz treści (bloki tagDiv) */
.osw-prose .osw-list { padding-left: 0; }
.osw-prose .osw-list li + li { margin-top: 0; }
.osw-prose .osw-list a { text-decoration: none; }

/* Strona główna: 3 kolumny — lewa: logowanie | treść | prawa: informacje */
.osw-layout--3 { grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 32px; }
.osw-sidebar-left {
	display: flex; flex-direction: column; gap: 16px; min-width: 0;
	position: sticky; top: calc(var(--nav-h) + var(--adminbar) + 16px);
}
@media (max-width: 1240px) {
	.osw-layout--3 { grid-template-columns: 230px minmax(0, 1fr) 270px; gap: 24px; }
}
@media (max-width: 1100px) {
	.osw-layout--3 { grid-template-columns: minmax(0, 1fr); }
	.osw-layout--3 .osw-content { order: 1; }
	.osw-layout--3 .osw-sidebar-left { order: 2; position: static; }
	.osw-layout--3 .osw-sidebar { order: 3; }
}

/* Wbudowana karta logowania */
.osw-side-card--login { background: var(--surface); }
.osw-side-ic { width: 28px; height: 28px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--navy); font-size: 15px; }
.osw-login-desc { font-size: 12.5px; color: var(--t2); line-height: 1.5; margin: -4px 0 14px; }
.osw-login-form { display: flex; flex-direction: column; gap: 6px; }
.osw-login-form label { font-size: 12.5px; font-weight: 600; color: var(--t1); }
.osw-login-form input[type="text"], .osw-login-form input[type="password"] {
	height: 40px; padding: 0 12px; margin-bottom: 6px;
	border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
	font: inherit; font-size: 13.5px; color: var(--t1);
}
.osw-login-form input:focus { outline: 0; border-color: var(--navy); }
.osw-btn--block { width: 100%; }
.osw-login-link { display: block; margin-top: 10px; text-align: center; font-size: 12px; font-weight: 600; color: var(--navy); text-decoration: none; }
.osw-login-link:hover { color: var(--red); }
.osw-login-err { font-size: 12px; color: var(--red); margin-bottom: 10px; }
.osw-login-small { display: block; font-size: 11px; color: var(--t3); }
.osw-login-ebok {
	display: flex; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
	font-size: 11.5px; line-height: 1.5; color: var(--t2);
}
.osw-login-ebok .ti { font-size: 15px; color: var(--red); flex-shrink: 0; margin-top: 1px; }
.osw-login-ebok a { color: var(--red); font-weight: 600; }
/* W układzie 3-kolumnowym wyróżniony wpis jeden pod drugim (zdjęcie na górze) */
.osw-layout--3 .osw-feat { grid-template-columns: 1fr; }
.osw-layout--3 .osw-feat-img { aspect-ratio: 2 / 1; }

/* Odstęp pod tabelami (np. awarie na Danych kontaktowych) */
.osw-prose .osw-table-wrap { margin-bottom: 32px; }
.osw-prose .osw-table-wrap:last-child { margin-bottom: 0; }

/* ── Przewodnik Mieszkańca ── */
.osw-guide-lead { margin-top: 10px; font-size: 15px; color: var(--t2); max-width: 68ch; }
.osw-guide-toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.osw-guide-toc a {
	padding: 6px 14px; border: 1px solid var(--line-2); border-radius: 20px;
	font-size: 13px; font-weight: 500; color: var(--t2); text-decoration: none; transition: all .15s;
}
.osw-guide-toc a:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.osw-guide-sec { margin-top: 44px; }
.osw-guide-sec > .osw-section-title { margin-bottom: 18px; }
.osw-guide-sec .osw-section-head { margin-bottom: 8px; }
.osw-guide-sec-d { font-size: 13.5px; color: var(--t2); margin-bottom: 14px; }

.osw-guide-alerts { display: grid; gap: 10px; }
.osw-guide-alert {
	display: flex; align-items: center; gap: 14px; padding: 14px 18px;
	background: var(--red-soft); border: 1px solid rgba(203, 0, 47, .18); border-left: 4px solid var(--red);
	border-radius: 0 var(--r) var(--r) 0; text-decoration: none; transition: border-color .15s;
}
.osw-guide-alert:hover { border-color: rgba(203, 0, 47, .4); }
.osw-guide-alert > span:nth-child(2) { flex: 1; min-width: 0; }
.osw-guide-alert-ic { flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: #fff; color: var(--red); font-size: 18px; }
.osw-guide-alert-t { display: block; font-size: 14.5px; font-weight: 600; color: var(--t1); line-height: 1.4; }

.osw-guide-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.osw-guide-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.osw-guide-card-ic, .osw-guide-tile-ic { width: 40px; height: 40px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; background: var(--icon-bg); color: var(--navy); font-size: 20px; flex-shrink: 0; }
.osw-guide-card-t { font-size: 16px; font-weight: 600; color: var(--navy); line-height: 1.35; margin-top: 4px; }
.osw-guide-card-d { font-size: 13.5px; color: var(--t2); line-height: 1.6; }
.osw-guide-card .osw-more { margin-top: auto; padding-top: 6px; }
.osw-guide-badge { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 2px 8px; border-radius: 4px; background: var(--surface-2); color: #3a4f72; font-size: 11px; font-weight: 600; }
.osw-guide-help { margin: 16px 0 0; }
.osw-guide-help strong { display: flex; align-items: center; gap: 6px; color: var(--navy); }
.osw-guide-help a { font-weight: 600; white-space: nowrap; }

.osw-guide-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.osw-guide-tile, .osw-guide-wide {
	display: flex; flex-direction: column; gap: 6px; padding: 18px;
	border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; transition: border-color .15s, background .15s;
}
.osw-guide-tile:hover, .osw-guide-wide:hover { border-color: var(--line-2); background: var(--surface); }
.osw-guide-tile-t { display: block; font-size: 15px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.osw-guide-tile-d { display: block; font-size: 13px; color: var(--t2); line-height: 1.55; }
.osw-guide-tile .osw-more { margin-top: auto; padding-top: 4px; }
.osw-guide-wide { flex-direction: row; align-items: center; gap: 16px; margin-top: 12px; background: var(--surface); }
.osw-guide-wide > span:nth-child(2) { flex: 1; min-width: 0; }
.osw-guide-wide .osw-guide-tile-t { margin-top: 0; }
.osw-guide-wide .osw-guide-tile-ic { background: #fff; border: 1px solid var(--line); }

@media (max-width: 680px) {
	.osw-guide-cards, .osw-guide-tiles { grid-template-columns: 1fr; }
	.osw-guide-wide { flex-direction: column; align-items: flex-start; }
}
