/*
Theme Name: BM & Partners 2026
Theme URI: https://dotacje-prow.pl
Author: BM & Partners
Description: Nowy, lekki motyw dla dotacje-prow.pl. Bez kreatorów stron, zgodny z PHP 7.4–8.4 i WordPress 4.9+.
Version: 1.0.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: bmp
*/

/* ==========================================================================
   1. Zmienne
   ========================================================================== */
:root {
	--navy: #0a1f44;
	--navy-900: #06142e;
	--ink: #0f172a;
	--text: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--line-dark: rgba(255,255,255,.12);
	--paper: #ffffff;
	--sand: #f6f4ef;
	--mist: #f1f5f9;
	--blue: #1d4ed8;
	--blue-700: #1e3a8a;
	--gold: #b8925a;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(15,23,42,.04), 0 10px 30px rgba(15,23,42,.06);
	--shadow-lg: 0 2px 6px rgba(15,23,42,.06), 0 24px 60px rgba(15,23,42,.12);
	--sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1240px;
	--header-h: 76px;
}

/* ==========================================================================
   2. Reset i podstawy
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: inline-block; vertical-align: middle; }
a { color: var(--blue); text-decoration: none; transition: color .2s, background-color .2s, border-color .2s, box-shadow .2s, transform .2s, opacity .2s; }
a:hover { color: var(--blue-700); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--display);
	color: var(--ink);
	font-weight: 650;
	line-height: 1.15;
	letter-spacing: -0.022em;
	margin: 0 0 .5em;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
hr { border: 0; height: 1px; background: var(--line); margin: 2.5rem 0; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 8vw, 120px) 0; }
.section--sand { background: var(--sand); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: rgba(255,255,255,.78); }
.section--navy h2, .section--navy h3 { color: #fff; }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--blue); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 720px; }
.section-head p { margin: 14px 0 0; color: var(--muted); max-width: 640px; font-size: 1.1rem; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); color: var(--muted); line-height: 1.6; }

/* Przyciski */
.btn, .wp-block-button__link, input[type="submit"], button[type="submit"], .wpcf7-submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 0 26px;
	border-radius: 999px; border: 0;
	font: 600 15px/1 var(--sans); letter-spacing: 0;
	background: var(--navy); color: #fff !important;
	cursor: pointer; text-decoration: none !important;
	transition: background-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn:hover, input[type="submit"]:hover, button[type="submit"]:hover, .wpcf7-submit:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29,78,216,.25); }
.btn--light { background: #fff; color: var(--navy) !important; }
.btn--light:hover { background: var(--gold); color: var(--navy) !important; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px #fff; }
.btn--outline { background: transparent; color: var(--navy) !important; box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--outline:hover { background: var(--navy); color: #fff !important; }
.btn .arrow, .link-arrow .arrow { transition: transform .2s; }
.btn:hover .arrow, .link-arrow:hover .arrow { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--navy); }
.link-arrow:hover { color: var(--blue); }

/* ==========================================================================
   3. Nagłówek
   ========================================================================== */
.topbar { background: var(--navy-900); color: rgba(255,255,255,.72); font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 20px; }
.topbar a { color: rgba(255,255,255,.85); }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 26px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; }
.topbar__contact svg { width: 15px; height: 15px; opacity: .8; }
.topbar__note { opacity: .75; }

.site-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,.88);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.admin-bar .site-header { top: 32px; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 30px rgba(15,23,42,.06); background: rgba(255,255,255,.95); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand img { max-height: 52px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.brand__tag { font-size: 12px; color: var(--muted); letter-spacing: .04em; }

.nav { display: flex; align-items: center; gap: 8px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.menu-primary { display: flex; align-items: center; gap: 2px; }
.menu-primary > li { position: relative; }
.menu-primary > li > a {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 10px 14px; border-radius: 999px;
	font-size: 15px; font-weight: 550; color: var(--ink);
}
.menu-primary > li > a:hover,
.menu-primary > li:hover > a,
.menu-primary > li.current-menu-item > a,
.menu-primary > li.current-menu-ancestor > a,
.menu-primary > li.current_page_item > a { background: var(--mist); color: var(--navy); }
.menu-primary > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); opacity: .6;
}
/* Wyróżnione pozycje (klasy CSS w menu: menu-zus, menu-sklep) */
.menu-primary > li.menu-zus > a { background: var(--blue); color: #fff; padding: 10px 18px; }
.menu-primary > li.menu-zus > a:hover { background: var(--blue-700); color: #fff; }
.menu-primary > li.menu-sklep > a { box-shadow: inset 0 0 0 1.5px var(--line); }
.menu-primary > li.menu-sklep > a:hover { box-shadow: inset 0 0 0 1.5px var(--navy); background: transparent; }

/* Rozwijane menu */
.menu-primary .sub-menu {
	position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-lg); padding: 10px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 50;
}
.menu-primary > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu-primary li:hover > .sub-menu,
.menu-primary li:focus-within > .sub-menu,
.menu-primary li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-primary .sub-menu a {
	display: block; padding: 9px 12px; border-radius: 8px;
	font-size: 14.5px; line-height: 1.4; color: var(--text);
}
.menu-primary .sub-menu a:hover { background: var(--mist); color: var(--navy); }
.menu-primary .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 0 0 0; min-width: 0; }
/* Mega menu: gdy podmenu ma kolejny poziom */
.menu-primary > li.is-mega { position: static; }
.menu-primary > li.is-mega > .sub-menu {
	left: 50%; transform: translate(-50%, 8px);
	width: min(1120px, calc(100vw - 48px));
	display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 24px;
	padding: 28px;
}
.menu-primary > li.is-mega:hover > .sub-menu,
.menu-primary > li.is-mega:focus-within > .sub-menu,
.menu-primary > li.is-mega.is-open > .sub-menu { transform: translate(-50%, 0); }
.menu-primary > li.is-mega > .sub-menu > li > a {
	font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy);
	padding: 8px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); border-radius: 0;
}
.menu-primary > li.is-mega > .sub-menu > li > a:hover { background: transparent; color: var(--blue); }
.menu-primary > li.is-mega .sub-menu .sub-menu a { font-size: 14px; padding: 7px 12px; text-transform: none; }

.header-cta { display: inline-flex; }
.nav-toggle { display: none; }
.submenu-toggle { display: none; }

/* ==========================================================================
   4. Hero
   ========================================================================== */
.hero {
	position: relative; overflow: hidden;
	background: var(--navy);
	color: rgba(255,255,255,.82);
	isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transform: scale(1.04); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(1200px 600px at 85% 10%, rgba(29,78,216,.35), transparent 60%),
		linear-gradient(90deg, rgba(6,20,46,.96) 0%, rgba(6,20,46,.82) 45%, rgba(6,20,46,.35) 100%);
}
.hero .wrap { padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); }
.hero__inner { max-width: 760px; }
.hero .eyebrow { color: #93c5fd; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #93c5fd, #e0c79b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255,255,255,.78); max-width: 620px; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats {
	margin-top: clamp(56px, 7vw, 96px);
	display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
	border-top: 1px solid var(--line-dark);
}
.hero__stat { padding: 26px 24px 0 0; }
.hero__stat + .hero__stat { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.hero__stat strong { display: block; font-family: var(--display); font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); font-weight: 650; color: #fff; letter-spacing: -0.03em; line-height: 1.1; }
.hero__stat span { font-size: 14px; color: rgba(255,255,255,.65); }

/* ==========================================================================
   5. Karty programów / nabory
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
	color: var(--text);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__tag { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.card__title { font-size: 1.25rem; line-height: 1.3; margin: 0; color: var(--ink); }
.card__title a { color: inherit; }
.card:hover .card__title a { color: var(--blue); }
.program-card:hover .card__title a { color: #fff; }
.card__text { font-size: 15.5px; color: var(--muted); margin: 0; }
.card__meta { font-size: 13.5px; color: var(--muted); margin-top: auto; padding-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.program-card { background: var(--navy); color: rgba(255,255,255,.8); border: 0; min-height: 360px; justify-content: flex-end; }
.program-card .card__media { position: absolute; inset: 0; aspect-ratio: auto; }
.program-card .card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,20,46,.1) 0%, rgba(6,20,46,.88) 75%); }
.program-card .card__body { position: relative; z-index: 1; }
.program-card .card__title { color: #fff; font-size: 1.45rem; }
.program-card .card__tag { color: #93c5fd; }
.program-card .link-arrow { color: #fff; }

/* Usługi */
.service {
	padding: 32px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	transition: border-color .25s, box-shadow .25s, transform .25s;
	position: relative;
}
.service:hover { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); color: var(--navy); display: grid; place-items: center; margin-bottom: 22px; }
.service__icon svg { width: 24px; height: 24px; }
.service h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service p { font-size: 15.5px; color: var(--muted); margin: 0 0 16px; }

/* Proces */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 32px 28px 0 0; counter-increment: step; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { content: "0" counter(step); display: block; font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--blue); letter-spacing: .08em; margin-bottom: 18px; }
.step h3 { font-size: 1.2rem; }
.step p { font-size: 15.5px; color: var(--muted); margin: 0; }

/* Pasek CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 24px; background: var(--navy); padding: clamp(40px, 6vw, 72px); color: rgba(255,255,255,.8); display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 100% 0%, rgba(29,78,216,.55), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(184,146,90,.25), transparent 60%); }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.cta-band__phone { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); font-weight: 650; color: #fff; letter-spacing: -0.02em; }
.cta-band__phone:hover { color: var(--gold); }

/* ==========================================================================
   6. Nagłówek podstron
   ========================================================================== */
.page-hero { background: var(--sand); padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); margin: 0; max-width: 900px; }
.page-hero .lead { margin: 18px 0 0; max-width: 720px; }
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--navy); }
.breadcrumbs span[aria-hidden] { opacity: .5; }
.post-meta { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); margin-top: 22px; align-items: center; }
.post-meta a { color: var(--navy); font-weight: 600; }

/* ==========================================================================
   7. Treść (artykuły i podstrony)
   ========================================================================== */
.content-area { padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 112px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.layout--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.sidebar { position: sticky; top: calc(var(--header-h) + 32px); display: flex; flex-direction: column; gap: 20px; }
.admin-bar .sidebar { top: calc(var(--header-h) + 64px); }
.side-box { background: var(--sand); border-radius: var(--radius); padding: 28px; }
.side-box h3 { font-size: 1.15rem; }
.side-box p { font-size: 15px; color: var(--muted); }
.side-box--navy { background: var(--navy); color: rgba(255,255,255,.78); }
.side-box--navy h3 { color: #fff; }
.side-box ul { list-style: none; padding: 0; margin: 0; }
.side-box li + li { border-top: 1px solid var(--line); }
.side-box li a { display: block; padding: 10px 0; font-size: 15px; color: var(--ink); line-height: 1.4; }
.side-box li a:hover { color: var(--blue); }

.entry-content { font-size: 18px; line-height: 1.75; color: var(--text); overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { margin-top: 2em; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); }
.entry-content h3 { margin-top: 1.8em; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.55rem); }
.entry-content h4 { margin-top: 1.6em; }
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 { color: var(--ink) !important; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: rgba(29,78,216,.35); }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content h1 a, .entry-content h2 a, .entry-content h3 a, .entry-content h4 a { text-decoration: none; color: inherit; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.entry-content li { margin-bottom: .5em; }
.entry-content li::marker { color: var(--blue); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content .alignleft { float: left; margin: .3em 1.6em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.6em; }
.entry-content .aligncenter { display: block; margin: 1.5em auto; }
.entry-content figure { margin: 2em 0; }
.entry-content figcaption, .wp-caption-text { font-size: 14px; color: var(--muted); text-align: center; margin-top: 10px; }
.wp-caption { max-width: 100%; }
.entry-content blockquote {
	margin: 2em 0; padding: 24px 28px; border-left: 3px solid var(--blue);
	background: var(--mist); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	color: var(--ink); font-size: 1.05em;
}
.entry-content blockquote p:last-child { margin: 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 2em 0; font-size: 15.5px; display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; vertical-align: top; }
.entry-content th { background: var(--mist); color: var(--ink); font-weight: 600; }
.entry-content iframe { border: 0; border-radius: var(--radius-sm); }
.entry-content::after { content: ""; display: table; clear: both; }
/* Stare treści ze stylami inline – wyrównanie do nowego wyglądu */
.entry-content [style*="font-family"] { font-family: inherit !important; }
.entry-content span[style*="color: #ff0000"], .entry-content span[style*="color: #0000ff"] { color: var(--blue) !important; }
.entry-content .boxhead { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 0 0 24px; box-shadow: var(--shadow); background: #fff; display: flow-root; }
.entry-content .boxhead .boxhead { border: 0; box-shadow: none; padding: 0; margin: 0; }
.entry-content .boxhead:not(:has(img)) { border: 0; box-shadow: none; padding: 0; background: transparent; }
.entry-content .boxhead img { border-radius: 12px; }

.entry-footer { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tags a { display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--text); margin: 0 6px 6px 0; }
.tags a:hover { background: var(--navy); color: #fff; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.post-nav a { display: block; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; line-height: 1.4; }
.post-nav a:hover { border-color: var(--navy); }
.post-nav small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.post-nav .next { text-align: right; }
.featured-image { margin: 0 0 48px; border-radius: var(--radius); overflow: hidden; }
.featured-image img { width: 100%; border-radius: 0; }

/* Formularze */
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], input[type="password"], input[type="date"], textarea, select {
	width: 100%; max-width: 100%;
	font: 16px/1.4 var(--sans); color: var(--ink);
	padding: 14px 16px; border: 1px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff;
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none; appearance: none;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(29,78,216,.12); }
textarea { min-height: 160px; resize: vertical; }
label { font-size: 15px; font-weight: 500; color: var(--ink); }
.wpcf7 form p { margin-bottom: 18px; }
.wpcf7-not-valid-tip { font-size: 13px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output { border-radius: var(--radius-sm); padding: 14px 18px; margin: 20px 0 0; }

/* Wyszukiwarka */
.search-form { display: flex; gap: 10px; }
.search-form input[type="search"] { flex: 1; }

/* Paginacja */
.pagination { margin-top: 56px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 15px; }
.pagination .page-numbers:hover { border-color: var(--navy); }
.pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; }

/* Filtr kategorii */
.cat-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.cat-filter a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; font-weight: 550; color: var(--text); }
.cat-filter a:hover, .cat-filter a.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 404 */
.not-found { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.not-found .code { font-family: var(--display); font-size: clamp(5rem, 12vw, 9rem); font-weight: 700; letter-spacing: -0.05em; color: var(--mist); line-height: 1; -webkit-text-stroke: 1.5px var(--line); }
.not-found .search-form { max-width: 520px; margin: 32px auto 0; }

/* ==========================================================================
   8. Stopka
   ========================================================================== */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #fff; }
.footer-top { padding: clamp(64px, 8vw, 96px) 0 48px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }
.footer-brand img { max-height: 56px; width: auto; background: #fff; padding: 8px; border-radius: 10px; margin-bottom: 20px; }
.footer-brand p { max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; line-height: 1.45; }
.footer-contact a { display: flex; gap: 10px; align-items: center; }
.footer-contact svg { width: 16px; height: 16px; opacity: .7; flex-shrink: 0; }
.footer-cities { padding: 28px 0; border-top: 1px solid var(--line-dark); font-size: 14px; color: rgba(255,255,255,.55); }
.footer-cities strong { color: rgba(255,255,255,.85); font-weight: 600; margin-right: 8px; }
.footer-bottom { padding: 24px 0 32px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bottom li { margin: 0; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: var(--blue); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }

.to-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border-radius: 999px; background: var(--navy); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background-color .2s; z-index: 90; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); color: #fff; }

/* ==========================================================================
   9. Animacje pojawiania
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal[data-delay="1"] { transition-delay: .08s; }
.js .reveal[data-delay="2"] { transition-delay: .16s; }
.js .reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   10. Responsywność
   ========================================================================== */
@media (max-width: 1180px) {
	.menu-primary > li > a { padding: 10px 10px; font-size: 14.5px; }
	.header-cta { display: none; }
}
@media (max-width: 1024px) {
	:root { --header-h: 68px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	.layout { grid-template-columns: 1fr; gap: 48px; }
	.sidebar { position: static; }
	.footer-top { grid-template-columns: 1fr 1fr; }
	.steps { grid-template-columns: 1fr 1fr; }
	.step:nth-child(3) { padding-left: 0; border-left: 0; }
	.step { padding-bottom: 28px; }
	.cta-band { grid-template-columns: 1fr; }

	/* Menu mobilne (bez rozmycia – inaczej panel fixed liczy się względem nagłówka) */
	.site-header, .site-header.is-scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
	}
	.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform .25s, background-color .25s; }
	.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
	.nav-toggle span::before { top: -6px; }
	.nav-toggle span::after { top: 6px; }
	.nav-open .nav-toggle span { background: transparent; }
	.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
	.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

	.nav {
		position: fixed; inset: calc(var(--header-h) + 40px) 0 0 0; z-index: 99;
		background: #fff; display: block; overflow-y: auto; padding: 16px 24px 48px;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .25s, transform .25s, visibility .25s;
	}
	.admin-bar .nav { top: calc(var(--header-h) + 40px + 46px); }
	.is-scrolled-past-topbar .nav { top: var(--header-h); }
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.menu-primary { flex-direction: column; align-items: stretch; gap: 0; }
	.menu-primary > li, .menu-primary > li.is-mega { border-bottom: 1px solid var(--line); position: relative; }
	.menu-primary > li > a { display: flex; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 17px; background: transparent !important; }
	.menu-primary > li.menu-item-has-children > a::after { display: none; }
	.menu-primary > li.menu-zus > a, .menu-primary > li.menu-sklep > a { margin: 12px 0; justify-content: center; border-radius: 999px; }
	.menu-primary > li.menu-zus > a { background: var(--blue) !important; }
	.submenu-toggle { display: grid; position: absolute; right: 0; top: 8px; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
	.submenu-toggle::before { content: ""; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); margin-top: -4px; transition: transform .2s; }
	.is-open > .submenu-toggle::before { transform: rotate(-135deg); margin-top: 4px; }
	.menu-primary .sub-menu,
	.menu-primary > li.is-mega > .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none !important;
		width: auto; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 12px 8px;
		display: none; min-width: 0;
	}
	.menu-primary li.is-open > .sub-menu { display: block; }
	.menu-primary > li.is-mega > .sub-menu > li > a { border: 0; padding-top: 12px; }
	.menu-primary .sub-menu .sub-menu { display: block; padding-left: 8px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
@media (max-width: 720px) {
	body { font-size: 16px; }
	.wrap, .wrap-narrow { padding: 0 20px; }
	.topbar__note { display: none; }
	.topbar__contact { gap: 16px; }
	.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
	.hero__stats { grid-template-columns: 1fr 1fr; }
	.hero__stat:nth-child(3) { padding-left: 0; border-left: 0; }
	.hero__stat { padding-bottom: 20px; }
	.steps { grid-template-columns: 1fr; }
	.step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.footer-top { grid-template-columns: 1fr; gap: 36px; }
	.entry-content { font-size: 17px; }
	.entry-content .alignleft, .entry-content .alignright { float: none; margin: 1em auto; display: block; }
	.post-nav { grid-template-columns: 1fr; }
	.brand img { max-height: 42px; }
	.section-head { margin-bottom: 32px; }
}

/* ==========================================================================
   11. Kafelki naborów (strona główna)
   ========================================================================== */
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.tile {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.tile__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__tag { align-self: flex-start; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #166534; background: #dcfce7; padding: 4px 10px; border-radius: 999px; }
.tile__tag--firm { color: var(--blue-700); background: #dbeafe; }
.tile__title { font-size: 1.08rem; line-height: 1.3; margin: 2px 0 0; letter-spacing: -0.015em; }
.tile__title a { color: var(--ink); }
.tile:hover .tile__title a { color: var(--blue); }
.tile__text { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tile__date { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.tile__date svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; margin-top: 1px; }
.tile__date small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tile .link-arrow { font-size: 14px; }

/* Pozostała treść strony głównej */
.home-extra .entry-content { font-size: 17px; }
.home-extra .entry-content img { display: none; }
.home-extra .entry-content h2 { margin-top: 1.2em; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.home-extra .entry-content > *:first-child h2:first-child { margin-top: 0; }
.home-extra .entry-content p:empty, .home-extra .entry-content hr { display: none; }

/* ==========================================================================
   12. Siatka obrazków z podpisami (np. lista urządzeń na stronie BHP)
   ========================================================================== */
.entry-content .media-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px;
	margin: 28px 0 36px; clear: both;
}
.entry-content .media-grid .wp-caption {
	width: auto !important; max-width: none; margin: 0 !important; float: none !important;
	background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px 10px;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	transition: box-shadow .25s, transform .25s, border-color .25s;
}
.entry-content .media-grid .wp-caption:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: transparent; }
.entry-content .media-grid img { width: 100%; height: 96px; object-fit: contain; border-radius: 0; margin: 0 auto; }
.entry-content .media-grid .wp-caption-text { font-size: 13px; line-height: 1.4; color: var(--text); margin: 10px 0 0; }
.entry-content .media-grid .wp-caption-text span, .entry-content .media-grid .wp-caption-text strong { display: inline; }
@media (max-width: 720px) {
	.entry-content .media-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.entry-content .media-grid .wp-caption { padding: 8px 6px; }
	.entry-content .media-grid img { height: 64px; }
	.entry-content .media-grid .wp-caption-text { font-size: 11.5px; margin-top: 6px; }
	.tiles { grid-template-columns: 1fr 1fr; gap: 14px; }
	.tile__body { padding: 14px; }
	.tile__text { display: none; }
}
@media (max-width: 420px) { .tiles { gap: 10px; } .tile__body { padding: 12px; gap: 6px; } .tile__title { font-size: .95rem; } .tile__tag { font-size: 10px; padding: 3px 8px; } .tile__date { font-size: 12px; gap: 6px; } .tile__date svg { width: 15px; height: 15px; } .tile .link-arrow { font-size: 13px; } }

/* ==========================================================================
   13. Media społecznościowe
   ========================================================================== */
.sxc-follow-buttons, .entry-content .sxc-follow-buttons { display: none !important; } /* stara wtyczka – ikony są teraz w motywie */
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__social { display: flex; gap: 4px; }
.topbar__social a { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.topbar__social a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topbar__social svg { width: 14px; height: 14px; fill: currentColor; }
.socials--box { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-dark); }
.socials--box a { color: #fff; }

.social-buttons { display: grid; gap: 12px; }
.social-btn {
	display: flex; align-items: center; gap: 14px;
	padding: 14px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
	color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.social-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.social-btn__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.social-btn__icon svg { width: 22px; height: 22px; fill: currentColor; }
.social-btn--facebook .social-btn__icon { background: #1877f2; }
.social-btn--instagram .social-btn__icon { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-btn--linkedin .social-btn__icon { background: #0a66c2; }
.social-btn__text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.social-btn__text strong { font-size: 15.5px; font-weight: 650; }
.social-btn__text small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.social-btn__cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.social-btn:hover .social-btn__cta { color: var(--blue); }
.social-btn:hover .arrow { transform: translateX(3px); }

.social-band__inner {
	display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center;
	background: var(--mist); border-radius: 24px; padding: clamp(28px, 4vw, 52px);
}
.social-band__text h2 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); margin-bottom: 12px; }
.social-band__text p { color: var(--muted); margin: 0; }
.social-band .social-buttons { grid-template-columns: 1fr; }

/* ==========================================================================
   14. Strona Kontakt
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.contact-card {
	display: flex; gap: 16px; align-items: flex-start;
	padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
	color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.contact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; color: var(--ink); }
.contact-card__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--mist); color: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 20px; height: 20px; }
.contact-card > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.contact-card small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 16.5px; font-weight: 650; overflow-wrap: anywhere; }
.contact-card em { font-style: normal; font-size: 14.5px; color: var(--muted); }
.contact-card .link-arrow { margin-top: 8px; font-size: 14px; }
.contact-card--primary { background: var(--navy); border-color: var(--navy); color: #fff; padding: 28px; }
.contact-card--primary:hover { color: #fff; background: var(--blue-700); }
.contact-card--primary .contact-card__icon { background: rgba(255,255,255,.12); color: #fff; }
.contact-card--primary small, .contact-card--primary em { color: rgba(255,255,255,.7); }
.contact-card--primary strong { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -0.02em; }
.contact-social { margin-top: 8px; }
.contact-social h3 { font-size: 1.05rem; margin-bottom: 14px; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .contact-form { top: calc(var(--header-h) + 56px); }
.contact-form h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 8px; }
.contact-form > p { color: var(--muted); font-size: 15.5px; }
.contact-form .wpcf7 label { display: block; margin-bottom: 6px; }
.contact-form .wpcf7 input[type="submit"] { width: 100%; }
.contact-form__note { font-size: 13px !important; margin: 14px 0 0; }

/* Stare shortcody */
mark.hl { background: linear-gradient(transparent 55%, rgba(29,78,216,.18) 55%); color: inherit; padding: 0 2px; }
.check-pills { list-style: none; padding: 0 !important; margin: 1.2em 0; display: flex; flex-wrap: wrap; gap: 8px; }
.check-pills li { margin: 0 !important; padding: 6px 14px 6px 32px; border-radius: 999px; background: var(--mist); font-size: 14px; font-weight: 600; color: var(--ink); position: relative; }
.check-pills li::before { content: ""; position: absolute; left: 13px; top: 50%; width: 10px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-70%) rotate(-45deg); }

@media (max-width: 1024px) {
	.contact-layout, .social-band__inner { grid-template-columns: 1fr; gap: 28px; }
	.contact-form { position: static; }
}
@media (max-width: 720px) {
	.contact-grid { grid-template-columns: 1fr; }
	.topbar__social { display: none; }
	.social-btn { padding: 12px 14px; }
	.social-btn__cta { font-size: 0; gap: 0; }
	.social-btn__cta .arrow { width: 18px; height: 18px; }
}

/* ==========================================================================
   15. Kafelki tekstowe (strona główna – doradztwo podatkowe, korzyści)
   ========================================================================== */
.text-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.text-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 30px; display: flex; flex-direction: column; }
.text-card h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 10px; }
.text-card__body p { font-size: 15.5px; line-height: 1.65; color: var(--muted); margin: 0 0 .8em; }
.text-card .link-arrow { margin-top: auto; padding-top: 8px; font-size: 14.5px; }
@media (max-width: 720px) { .text-cards { grid-template-columns: 1fr; } .text-card { padding: 22px; } }
