/* ==========================================================================
   Skup Aut Będzin – czerń i czerwień, Archivo + Archivo Narrow
   Telefon najpierw (mobile-first)
   ========================================================================== */

:root {
	--ink: #111111;
	--ink-2: #1a1a1c;
	--ink-3: #262629;
	--line: #3a3a40;
	--red: #e63946;
	--red-d: #c1121f;
	--red-l: #ff6b76;
	--paper: #f4f2ef;
	--paper-2: #e9e6e1;
	--white: #ffffff;
	--muted: #55555d;
	--muted-d: #b9b9c1;
	--f-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--f-nar: "Archivo Narrow", "Archivo", system-ui, sans-serif;
	--r: 10px;
	--wrap: 1200px;
	--shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
	margin: 0;
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--white);
	-webkit-font-smoothing: antialiased;
}

body.has-sticky-bar { padding-bottom: 4.25rem; }

img, svg { max-width: 100%; height: auto; }
a { color: var(--red-d); text-underline-offset: 0.2em; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

h1, h2, h3, h4 {
	font-family: var(--f-body);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	margin: 0 0 0.6em;
	text-wrap: balance;
}
h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.7rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.45rem); letter-spacing: -0.01em; }

.icon {
	width: 1.35em;
	height: 1.35em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -0.28em;
}

:focus-visible { outline: 3px solid var(--red-d); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.sticky-bar :focus-visible,
.tile--dark :focus-visible,
.tile--red :focus-visible { outline-color: #fff; }

.screen-reader-text,
.sr-only {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 0.5rem;
	top: -4rem;
	z-index: 1000;
	background: var(--red);
	color: var(--ink);
	font-weight: 700;
	padding: 0.7rem 1rem;
	border-radius: 0 0 var(--r) var(--r);
}
.skip-link:focus { top: 0; }

.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	min-height: 3.1rem;
	padding: 0.75rem 1.4rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--f-body);
	font-weight: 800;
	font-size: 1.02rem;
	line-height: 1.1;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: var(--ink); }
.btn-red:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--red); color: var(--ink); }
.btn-lg { min-height: 3.5rem; padding-inline: 1.8rem; font-size: 1.1rem; }

/* ---------- Pasek górny + nagłówek ---------- */
.topbar {
	background: var(--ink-2);
	color: var(--muted-d);
	font-family: var(--f-nar);
	font-weight: 600;
	font-size: 0.92rem;
	letter-spacing: 0.04em;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--red-l); }
.topbar .topbar-mail { display: none; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--ink);
	color: #fff;
	border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 4.2rem; }

.logo { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: #fff; margin-right: auto; }
.logo:hover { color: #fff; }
.logo-mark { width: 2.7rem; height: 2.7rem; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text strong { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; text-transform: uppercase; }
.logo-text span { font-family: var(--f-nar); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.42em; color: var(--red-l); text-transform: uppercase; margin-top: 0.2rem; }
.custom-logo { max-height: 3rem; width: auto; }

.nav-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.9rem;
	padding: 0.4rem 0.9rem;
	background: transparent;
	color: #fff;
	border: 2px solid var(--line);
	border-radius: 999px;
	font: 700 0.95rem var(--f-body);
	cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

.header-cta { display: none; }

.primary-nav {
	display: none;
	position: absolute;
	left: 0; right: 0; top: 100%;
	background: var(--ink);
	border-top: 1px solid var(--line);
	max-height: calc(100vh - 7rem);
	overflow-y: auto;
	padding: 0.5rem 1rem 1.2rem;
}
.primary-nav.is-open { display: block; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a {
	display: block;
	padding: 0.8rem 0.4rem;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	border-bottom: 1px solid var(--ink-3);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-menu-ancestor > a,
.primary-nav a[aria-current="page"] { color: var(--red-l); }
.primary-nav li { position: relative; }
.primary-nav .menu-item-has-children > a { padding-right: 3.2rem; }
.sub-toggle {
	position: absolute;
	right: 0; top: 0.2rem;
	width: 2.8rem; height: 2.8rem;
	background: transparent; color: #fff;
	border: 0; cursor: pointer;
	border-radius: 50%;
}
.sub-toggle .icon { transition: transform 0.2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.primary-nav .sub-menu { display: none; padding-left: 1rem; }
.primary-nav .is-open > .sub-menu { display: block; }
.primary-nav .sub-menu a { font-weight: 500; font-size: 0.98rem; }

/* ---------- Okruszki ---------- */
.breadcrumbs { font-family: var(--f-nar); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 1.2rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 0.55rem; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; color: var(--red-l); margin-right: 0.55rem; }
.breadcrumbs a { color: inherit; text-decoration: none; opacity: 0.85; }
.breadcrumbs a:hover { text-decoration: underline; opacity: 1; }
.breadcrumbs li[aria-current] { opacity: 0.7; }

/* ---------- Sekcje ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: #fff; }
.section--dark a { color: var(--red-l); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head p { color: var(--muted); font-size: 1.12rem; }
.section--dark .section-head p { color: var(--muted-d); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--red-d);
	margin: 0 0 0.9rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 3px; background: currentColor; }
.on-dark .eyebrow,
.section--dark .eyebrow,
.tile--dark .eyebrow { color: var(--red-l); }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: repeating-linear-gradient(115deg, transparent 0 26px, rgba(255, 255, 255, 0.03) 26px 28px);
}
.hero-grid { display: grid; gap: 2rem; padding: clamp(2.2rem, 6vw, 4.5rem) 0 0; }
.hero-title {
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: clamp(2.7rem, 11vw, 6.2rem);
	line-height: 0.92;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	margin-bottom: 1.1rem;
}
.hero-title .hl { color: var(--red); display: block; }
.hero-lead { font-size: clamp(1.05rem, 2.6vw, 1.3rem); color: #e4e4e8; max-width: 38rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0; }
.hero-facts { list-style: none; margin: 0 0 2rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-family: var(--f-nar); font-weight: 600; font-size: 1.02rem; letter-spacing: 0.03em; color: #e4e4e8; }
.hero-facts li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-facts .icon { color: var(--red); }

.hero-art {
	position: relative;
	background: var(--red);
	margin-inline: -1rem;
	padding: 2.2rem 1.2rem 0;
	clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}
.hero-art .car-art { display: block; width: 100%; max-width: 640px; margin: 1.2rem auto 0; }
.hero-badge {
	position: absolute;
	top: 3.2rem; right: 1.2rem;
	background: var(--ink);
	color: #fff;
	padding: 0.55rem 0.9rem;
	border-radius: 8px;
	font-family: var(--f-nar);
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	transform: rotate(4deg);
	box-shadow: var(--shadow);
}
.hero-badge b { display: block; font-family: var(--f-body); font-size: 1.9rem; font-weight: 900; color: var(--red-l); letter-spacing: -0.03em; }

/* ---------- Pasek marek ---------- */
.ticker { background: var(--red); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 55s linear infinite; }
.ticker-group { display: flex; flex: none; }
.ticker span {
	padding: 0.65rem 1.4rem;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 1.15rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
}
.ticker span::after { content: "/"; margin-left: 2.8rem; opacity: 0.55; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-track { animation: none; flex-wrap: wrap; width: auto; }
	.ticker-group[aria-hidden="true"] { display: none; }
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.tile {
	position: relative;
	grid-column: span 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 0.4rem;
	min-height: 11rem;
	padding: 1.3rem;
	border-radius: 16px;
	overflow: hidden;
	background: var(--paper);
	color: var(--ink);
}
.tile h3 { margin: 0; }
.tile p { margin: 0; }
.tile--half { grid-column: span 1; }
.tile--dark { background: var(--ink); color: #fff; }
.tile--dark p { color: var(--muted-d); }
.tile--line { background: var(--ink-2); color: #fff; border: 1px solid var(--line); }
.tile--line p { color: var(--muted-d); }
.tile--red { background: var(--red); color: var(--ink); }
.tile--red p { color: #1a1a1a; }
.tile--white { background: #fff; border: 2px solid var(--ink); }
.tile .big {
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: clamp(3.4rem, 10vw, 5.6rem);
	line-height: 0.82;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}
.tile--dark .big, .tile--line .big { color: var(--red); }
.tile .tile-label { font-family: var(--f-nar); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: auto; opacity: 0.85; }
a.tile { text-decoration: none; }
a.tile:hover { color: inherit; }
a.tile--dark:hover { color: #fff; }
a.tile--red:hover { color: var(--ink); }
a.tile:hover h3, a.tile:hover .big { text-decoration: underline; text-decoration-thickness: 3px; }
.tile--dark a, .tile--line a, .aside-card a:not(.btn) { color: var(--red-l); }
.tile--red a { color: var(--ink); }
.section--dark .quote-form a, .section--dark .quote-ok a { color: var(--red-d); }
.tile--hero-money { min-height: 18rem; }
.tile--hero-money .big { font-size: clamp(4.2rem, 17vw, 9rem); }
.tile--hero-money::after {
	content: "PLN";
	position: absolute;
	right: -0.4rem; top: -1.2rem;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 8rem;
	line-height: 1;
	color: rgba(17, 17, 17, 0.12);
	pointer-events: none;
}
.tile .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.chip {
	display: inline-block;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
	border: 1.5px solid currentColor;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.02em;
	line-height: 1.3;
	text-decoration: none;
}
.mini-steps { list-style: none; margin: 0.8rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.mini-steps li { display: flex; gap: 0.7rem; align-items: flex-start; color: #e8e8ec; }
.mini-steps .icon { color: var(--red); margin-top: 0.15rem; }
.tile-quote-icon { position: absolute; top: 1rem; right: 1rem; width: 4.5rem; height: 4.5rem; color: var(--red); opacity: 0.9; }
.tile-list { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.tile-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.tile-list .icon { margin-top: 0.2rem; }

/* ---------- Kroki ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; counter-reset: step; }
.steps li { position: relative; padding: 0 0 0 4.4rem; counter-increment: step; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: -0.3rem;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 4.2rem;
	line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--red);
}
.steps h3 { margin-bottom: 0.3rem; }
.steps p { margin: 0; color: var(--muted-d); }
.section--paper .steps p { color: var(--muted); }

/* ---------- Co skupujemy ---------- */
.split { display: grid; gap: 1.6rem; }
.brand-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brand-list li {
	padding: 0.35rem 0.85rem;
	border: 2px solid var(--ink);
	border-radius: 999px;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: 1.05rem;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}
.brand-list li:last-child { background: var(--ink); color: #fff; }
.state-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.state-list li { display: flex; gap: 0.7rem; align-items: center; padding: 0.8rem 1rem; background: var(--paper); border-left: 5px solid var(--red); border-radius: 0 var(--r) var(--r) 0; font-weight: 700; }
.state-list .icon { color: var(--red-d); }

/* ---------- Formularz ---------- */
.quote { display: grid; gap: 2rem; }
.quote-aside .phone-big {
	display: inline-block;
	font-family: var(--f-nar);
	font-weight: 700;
	font-size: clamp(2.4rem, 9vw, 3.8rem);
	line-height: 1;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.01em;
}
.quote-aside .phone-big:hover { color: var(--red-l); }
.contact-lines { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 0.7rem; color: #e4e4e8; }
.contact-lines li { display: flex; gap: 0.7rem; align-items: center; }
.contact-lines .icon { color: var(--red); }
.contact-lines a { color: #fff; }

.quote-form {
	background: #fff;
	color: var(--ink);
	padding: clamp(1.2rem, 4vw, 2rem);
	border-radius: 18px;
	border-top: 6px solid var(--red);
	display: grid;
	gap: 1rem;
	grid-template-columns: 1fr;
}
.quote-form .field { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.quote-form .field--full { grid-column: 1 / -1; }
.quote-form label, .quote-form .label { font-weight: 700; font-size: 0.97rem; }
.quote-form .req { color: var(--red-d); }
.quote-form .hint { font-size: 0.88rem; color: var(--muted); }
.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form input[type="number"],
.quote-form textarea {
	width: 100%;
	padding: 0.8rem 0.9rem;
	font: inherit;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid #c9c6c0;
	border-radius: 8px;
}
.quote-form textarea { min-height: 7rem; resize: vertical; }
.quote-form input:focus, .quote-form textarea:focus { border-color: var(--ink); outline: 3px solid var(--red); outline-offset: 1px; background: #fff; }
.quote-form input[type="file"] { padding: 0.6rem; border: 2px dashed #9a978f; border-radius: 8px; background: var(--paper); font: inherit; width: 100%; }
.quote-form .consent { flex-direction: row; gap: 0.7rem; align-items: flex-start; font-size: 0.93rem; line-height: 1.5; }
.quote-form .consent input { width: 1.35rem; height: 1.35rem; flex: none; margin-top: 0.15rem; accent-color: var(--red-d); }
.quote-form .consent label { font-weight: 500; }
.quote-form .btn { width: 100%; }
.quote-form .form-msg { color: var(--red-d); font-weight: 700; font-size: 0.95rem; min-height: 1.2em; margin: 0; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 1rem 1.2rem; border-radius: 12px; border-left: 6px solid var(--red-d); background: #fff; color: var(--ink); font-weight: 600; margin-bottom: 1rem; }
.notice--ok { border-color: #1b7f3b; background: #eaf6ee; }
.notice--err { border-color: var(--red-d); background: #fdecee; }
.notice strong { display: block; font-size: 1.2rem; }
.quote-ok { background: #fff; color: var(--ink); border-radius: 18px; padding: 2rem; border-top: 6px solid #1b7f3b; }
.quote-ok h3 { font-size: 1.7rem; }

/* ---------- Karty miejscowości / wpisów ---------- */
.loc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
.loc-card {
	display: flex; flex-direction: column; gap: 0.15rem;
	height: 100%;
	padding: 1rem;
	background: #fff;
	color: var(--ink);
	border: 2px solid var(--ink);
	border-radius: 12px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, transform 0.15s;
}
.loc-card strong { font-size: 1.08rem; line-height: 1.15; }
.loc-card small { font-family: var(--f-nar); font-weight: 600; font-size: 0.92rem; color: var(--muted); letter-spacing: 0.03em; }
.loc-card:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.loc-card:hover small { color: var(--red-l); }
.section--dark .loc-card { background: var(--ink-2); color: #fff; border-color: var(--line); }
.section--dark .loc-card small { color: var(--muted-d); }
.section--dark .loc-card:hover { background: var(--red); color: var(--ink); border-color: var(--red); }
.section--dark .loc-card:hover small { color: var(--ink); }

.post-grid { display: grid; gap: 1rem; }
.card { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--ink); border-radius: 16px; overflow: hidden; }
.card-art { position: relative; background: var(--ink); color: var(--red); min-height: 7rem; display: flex; align-items: flex-end; padding: 0.8rem 1rem; overflow: hidden; }
.card-art::before { content: ""; position: absolute; right: -2rem; top: -1rem; bottom: -1rem; width: 9rem; background: var(--red); transform: skewX(-18deg); }
.card-art span { position: relative; z-index: 1; font-family: var(--f-nar); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.card-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card-body h2, .card-body h3 { font-size: 1.3rem; margin: 0; }
.card-body h2 a, .card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h2 a:hover, .card-body h3 a:hover { color: var(--red-d); text-decoration: underline; }
.card-body p { margin: 0; color: var(--muted); }
.card-meta { font-family: var(--f-nar); font-weight: 600; font-size: 0.95rem; color: var(--muted); letter-spacing: 0.03em; }
.card-more { margin-top: auto; font-weight: 800; text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.card-more:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.6rem; max-width: 52rem; }
.faq details { background: #fff; border: 2px solid var(--ink); border-radius: 12px; }
.faq summary {
	cursor: pointer;
	list-style: none;
	display: flex; justify-content: space-between; align-items: center; gap: 1rem;
	padding: 1rem 1.1rem;
	font-weight: 800;
	font-size: 1.08rem;
	line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-nar); font-size: 2rem; line-height: 1; color: var(--red-d); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details[open] { background: var(--paper); }
.faq .faq-a { padding: 0 1.1rem 1.1rem; color: #2a2a2e; }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* ---------- Pasek CTA ---------- */
.cta-band { background: var(--red); color: var(--ink); padding: clamp(2.2rem, 5vw, 3.6rem) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: -3rem; top: 0; bottom: 0; width: 9rem; background: var(--ink); transform: skewX(-18deg); opacity: 0.1; }
.cta-inner { position: relative; display: grid; gap: 1.2rem; align-items: center; }
.cta-inner h2 { margin: 0; font-size: clamp(1.7rem, 4.6vw, 2.6rem); }
.cta-inner p { margin: 0.4rem 0 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.cta-band .btn-dark:hover { background: #fff; color: var(--ink); }
.cta-band .btn-ghost { color: var(--ink); border-color: var(--ink); }
.cta-band .btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Strony wewnętrzne ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(1.8rem, 5vw, 3.4rem) 0 clamp(2rem, 5vw, 3.2rem); position: relative; overflow: hidden; border-bottom: 5px solid var(--red); }
.page-hero::after { content: ""; position: absolute; right: -4rem; top: 0; bottom: 0; width: 12rem; background: var(--red); transform: skewX(-18deg); opacity: 0.16; pointer-events: none; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 0.4em; font-family: var(--f-nar); font-weight: 700; text-transform: uppercase; font-size: clamp(2.3rem, 8vw, 4.4rem); line-height: 0.96; }
.page-hero .lead { color: #e4e4e8; font-size: clamp(1.05rem, 2.4vw, 1.25rem); max-width: 46rem; margin: 0; }
.page-hero .meta { font-family: var(--f-nar); font-weight: 600; letter-spacing: 0.04em; color: var(--muted-d); margin-top: 1rem; }
.page-hero .breadcrumbs a { color: #fff; }

.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--red-d); font-weight: 800; }
.prose blockquote { margin: 1.5em 0; padding: 0.8rem 1.2rem; border-left: 6px solid var(--red); background: var(--paper); font-weight: 600; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
.prose th, .prose td { border: 1px solid #c9c6c0; padding: 0.55rem 0.7rem; text-align: left; }
.prose th { background: var(--paper); }
.prose strong { font-weight: 700; }
.prose .box { background: var(--paper); border-left: 6px solid var(--red); padding: 1rem 1.2rem; border-radius: 0 var(--r) var(--r) 0; }

.content-grid { display: grid; gap: 2rem; }
.aside-card { background: var(--ink); color: #fff; padding: 1.4rem; border-radius: 16px; border-top: 6px solid var(--red); }
.aside-card h2, .aside-card h3 { font-size: 1.4rem; }
.aside-card p { color: #e4e4e8; }
.aside-card .btn { width: 100%; margin-top: 0.4rem; }

.loc-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.loc-chips li { padding: 0.3rem 0.8rem; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--f-nar); font-weight: 700; font-size: 1rem; }
.loc-list { list-style: none; padding: 0; display: grid; gap: 0.4rem; }
.loc-list a { font-weight: 700; }
.fact-row { list-style: none; margin: 1.4rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.fact-row li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border: 2px solid var(--line); border-radius: 999px; font-family: var(--f-nar); font-weight: 700; letter-spacing: 0.03em; }
.fact-row .icon { color: var(--red); }

.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pagination .page-numbers { padding: 0.5rem 0.95rem; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 800; color: var(--ink); }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; }

.search-form { display: flex; gap: 0.5rem; max-width: 30rem; }
.search-form input[type="search"] { flex: 1; min-width: 0; padding: 0.8rem 1rem; font: inherit; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }

.related { margin-top: 3rem; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--ink); color: #d6d6dc; border-top: 5px solid var(--red); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0 2rem; }
.site-footer h2 { font-family: var(--f-nar); font-size: 1rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red-l); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--red-l); text-decoration: underline; }
.footer-brand p { max-width: 22rem; margin-top: 1rem; }
.footer-cols-2 { columns: 2; column-gap: 1rem; display: block; }
.footer-cols-2 li { break-inside: avoid; margin-bottom: 0.45rem; }
.footer-bottom { border-top: 1px solid var(--ink-3); padding: 1.1rem 0 1.4rem; font-size: 0.92rem; color: var(--muted-d); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

/* ---------- Dolny pasek mobilny ---------- */
.sticky-bar { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; padding: 0.5rem; background: var(--ink); border-top: 3px solid var(--red); }
.sticky-bar .btn { min-height: 2.9rem; padding-inline: 0.6rem; font-size: 1rem; }

/* ---------- Komunikat 404 ---------- */
.nf-code { font-family: var(--f-nar); font-weight: 700; font-size: clamp(6rem, 28vw, 14rem); line-height: 0.8; color: var(--red); margin: 0; }

/* ==========================================================================
   Tablet i większe
   ========================================================================== */
@media (min-width: 640px) {
	.topbar .topbar-mail { display: inline; }
	.loc-grid { grid-template-columns: repeat(3, 1fr); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
	.quote-form { grid-template-columns: 1fr 1fr; }
	.quote-form .btn { width: auto; justify-self: start; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
	.bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(10.5rem, auto); gap: 0.9rem; }
	.tile, .tile--half { grid-column: span 4; }
	.c3 { grid-column: span 3; }
	.c4 { grid-column: span 4; }
	.c5 { grid-column: span 5; }
	.c6 { grid-column: span 6; }
	.c7 { grid-column: span 7; }
	.c8 { grid-column: span 8; }
	.r2 { grid-row: span 2; }

	.split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
	.quote { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; }
	.content-grid { grid-template-columns: minmax(0, 1fr) 20rem; gap: 3rem; align-items: start; }
	.content-grid .aside-card { position: sticky; top: 6.5rem; }
	.steps { grid-template-columns: repeat(4, 1fr); }
	.steps li { padding: 4.4rem 0 0; }
	.steps li::before { top: 0; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }
	.loc-grid { grid-template-columns: repeat(4, 1fr); }
	.cta-inner { grid-template-columns: 1fr auto; }
	.footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr 1.2fr; }
}

@media (min-width: 1000px) {
	body.has-sticky-bar { padding-bottom: 0; }
	.sticky-bar { display: none; }
	.nav-toggle { display: none; }
	.header-cta { display: inline-flex; min-height: 2.8rem; padding-block: 0.5rem; }

	.primary-nav { display: block; position: static; background: transparent; border: 0; max-height: none; overflow: visible; padding: 0; }
	.primary-nav > ul { display: flex; align-items: center; gap: 0.2rem; }
	.primary-nav a { border: 0; padding: 0.55rem 0.8rem; font-size: 0.98rem; border-radius: 999px; }
	.primary-nav > ul > li > a:hover { background: var(--ink-3); }
	.primary-nav .menu-item-has-children > a { padding-right: 0.8rem; }
	.sub-toggle { position: static; width: 1.8rem; height: 1.8rem; margin-left: -0.5rem; }
	.primary-nav .menu-item-has-children { display: flex; align-items: center; }
	.primary-nav .sub-menu {
		display: none;
		position: absolute;
		left: 0; top: 100%;
		min-width: 15rem;
		padding: 0.5rem;
		background: var(--ink);
		border: 1px solid var(--line);
		border-top: 3px solid var(--red);
		border-radius: 0 0 14px 14px;
		box-shadow: var(--shadow);
		columns: 2;
		column-gap: 0.4rem;
		width: 31rem;
	}
	.primary-nav .menu-item-has-children:hover > .sub-menu,
	.primary-nav .menu-item-has-children:focus-within > .sub-menu,
	.primary-nav .is-open > .sub-menu { display: block; }
	.primary-nav .sub-menu li { break-inside: avoid; }
	.primary-nav .sub-menu a { border-radius: 8px; }
	.primary-nav .sub-menu a:hover { background: var(--ink-3); }

	.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 0; }
	.hero-copy { padding-bottom: clamp(2.5rem, 5vw, 4.5rem); padding-right: 2rem; }
	.hero-art { margin: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; padding: 2rem 1.5rem 0; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); margin-right: calc((100vw - min(var(--wrap), 100vw - 2rem)) / -2); }
	.hero-art .car-art { margin: 0 0 0 auto; }
	.hero-badge { top: 2.2rem; right: 2.5rem; }
}

@media (min-width: 1100px) {
	.logo-text strong { font-size: 1.45rem; }
	.primary-nav a { padding-inline: 1rem; }
}
