/* Skup Aut Ruda Śląska – bordo i kremowy, Barlow, układ jasny i minimalistyczny */

:root {
	--bordo: #5b1a2a;
	--bordo-dark: #3d101b;
	--bordo-soft: #7a2c3f;
	--cream: #f4e9d8;
	--cream-light: #fbf7ef;
	--cream-deep: #e8d8bd;
	--paper: #fffdf8;
	--ink: #2a1a1e;
	--muted: #665056;
	--line: #dccbae;
	--field: #8c7660;
	--ok: #1f5a3a;
	--err: #9b1c1c;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 1px 0 rgba(91, 26, 42, .04), 0 18px 36px -24px rgba(91, 26, 42, .45);
	--font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--wrap: 1160px;
}

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

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { animation: none !important; transition: none !important; }
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ink);
	background: var(--cream-light);
	-webkit-font-smoothing: antialiased;
	padding-bottom: 64px; /* pasek mobilny */
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--bordo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--bordo-dark); text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { font-family: var(--font); font-weight: 700; line-height: 1.15; color: var(--bordo); margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 3.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }

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

.skip-link {
	position: absolute; left: 12px; top: -80px; z-index: 1000; background: var(--bordo); color: var(--cream);
	padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--cream); }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.container--narrow { max-width: 800px; }

/* ---------- Przyciski ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
	font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--bordo); color: var(--cream); border-color: var(--bordo); }
.btn--primary:hover { background: var(--bordo-dark); border-color: var(--bordo-dark); color: var(--cream); }
.btn--ghost { background: transparent; color: var(--bordo); border-color: var(--bordo); }
.btn--ghost:hover { background: var(--bordo); color: var(--cream); }
.btn--light { background: var(--cream); color: var(--bordo); border-color: var(--cream); }
.btn--light:hover { background: #fff; color: var(--bordo-dark); }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 1.1rem; }
.btn--block { display: flex; width: 100%; }
.btn--call { background: var(--bordo); color: var(--cream); border-color: var(--bordo); min-height: 44px; padding: 8px 18px; }
.btn--call:hover { background: var(--bordo-dark); color: var(--cream); }
.btn[disabled] { opacity: .7; cursor: wait; }

.icon { flex: none; vertical-align: middle; }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251, 247, 239, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bordo); }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-weight: 700; font-size: 1.3rem; letter-spacing: .02em; text-transform: uppercase; }
.brand__place { font-weight: 500; font-size: .95rem; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

.nav-toggle {
	display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
	background: transparent; color: var(--bordo); border: 2px solid var(--bordo); border-radius: 999px;
	font: 600 1rem var(--font); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: '';
}
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }

.site-nav { display: flex; flex-direction: column; gap: 14px; padding-bottom: 18px; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.site-nav .menu a {
	display: block; padding: 10px 4px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav .menu a:hover, .site-nav .menu a[aria-current="page"] { color: var(--bordo); border-bottom-color: var(--bordo); }

/* mobile: panel pod nagłówkiem */
@media (max-width: 959px) {
	.site-header__inner { flex-wrap: wrap; }
	.js .nav-toggle { display: inline-flex; }
	.site-nav { flex-basis: 100%; }
	.js .site-nav { display: none; }
	.js .site-nav.is-open { display: flex; }
}
@media (min-width: 960px) {
	.site-nav { flex-direction: row; align-items: center; gap: 28px; padding: 0; }
	.site-nav .menu { flex-direction: row; gap: 22px; }
	.site-nav .menu a { padding: 8px 0; }
}

/* ---------- Hero ---------- */
.hero { padding: 36px 0 48px; background: linear-gradient(180deg, var(--cream-light) 0%, var(--cream) 140%); }
.hero__inner { display: grid; gap: 32px; align-items: center; }
.eyebrow { font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--bordo-soft); margin: 0 0 .9em; }
.eyebrow--light { color: var(--cream-deep); }
.accent { color: var(--bordo-soft); box-shadow: inset 0 -.32em 0 rgba(91, 26, 42, .12); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.4em; }
.hero__ticks { list-style: none; margin: 0 0 1em; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; }
.hero__ticks li { display: inline-flex; align-items: center; gap: 8px; color: var(--bordo); }
.hero__hours { color: var(--muted); margin: 0; font-size: .98rem; }
.hero__art { max-width: 520px; margin-inline: auto; width: 100%; }

@media (min-width: 900px) {
	.hero { padding: 72px 0 80px; }
	.hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; }
}

/* ---------- Licznik ---------- */
.stats { background: var(--paper); border-block: 1px solid var(--line); }
.stats__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); }
.stat { padding: 26px 14px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { border-right: 1px solid var(--line); }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat__num { font-weight: 700; color: var(--bordo); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__unit { font-size: .5em; font-weight: 600; color: var(--bordo-soft); }
.stat__label { color: var(--muted); font-size: .98rem; line-height: 1.4; max-width: 26ch; }
@media (min-width: 800px) {
	.stats__list { grid-template-columns: repeat(4, 1fr); }
	.stat { padding: 34px 28px; border-bottom: 0; border-right: 1px solid var(--line); }
	.stat:last-child { border-right: 0; }
}

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; }
.section--tint { background: var(--cream); }
.section__head { max-width: 760px; margin-bottom: 32px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { font-size: 1.1rem; color: var(--muted); margin-bottom: 0; }
.section__more { margin: 28px 0 0; }
@media (min-width: 900px) { .section { padding: 88px 0; } }

.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---------- Karty kroków ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: none; }
.step {
	position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
	padding: 28px 24px 26px; box-shadow: var(--shadow); overflow: hidden;
}
.step__num {
	position: absolute; right: 18px; top: 4px; font-size: 5.5rem; font-weight: 700; line-height: 1;
	color: transparent; -webkit-text-stroke: 1.5px rgba(91, 26, 42, .22);
}
.step__icon, .tile__icon {
	display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px;
	background: var(--cream); color: var(--bordo); margin-bottom: 16px;
}
.step h3 { margin-bottom: .4em; }
.step p { margin: 0; color: var(--muted); }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Kafelki ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.tile { background: var(--cream-light); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; }
.tile__icon { background: var(--cream); }
.tile p { margin: 0; color: var(--muted); }
.section--tint .tile__icon { background: var(--cream); border: 1px solid var(--line); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Sekcja formularza ---------- */
.section--quote { background: var(--bordo); color: var(--cream); }
.section--quote h2 { color: var(--cream); }
.section--quote a { color: var(--cream); }
.section--quote :focus-visible { outline-color: var(--cream); }
.quote { display: grid; gap: 32px; align-items: start; }
.quote__list { list-style: none; margin: 1.4em 0 0; padding: 0; display: grid; gap: 12px; }
.quote__list li { display: flex; gap: 12px; align-items: center; }
.form-card { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 24px 20px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.form-card a { color: var(--bordo); }
.form-card :focus-visible { outline-color: var(--bordo); }
.form-card--inline { border: 1px solid var(--line); box-shadow: var(--shadow); margin: 1.5em 0; }
@media (min-width: 900px) {
	.quote { grid-template-columns: .9fr 1.1fr; gap: 56px; }
	.form-card { padding: 34px 32px; }
}

/* ---------- Formularz ---------- */
.form__grid { display: grid; gap: 16px; margin-bottom: 18px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--ink); font-size: .98rem; }
.req { color: var(--err); }
.opt { font-weight: 400; color: var(--muted); font-size: .9em; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="file"], .field textarea,
.search-form input[type="search"] {
	width: 100%; padding: 12px 14px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; color: var(--ink);
	font: 400 1rem/1.4 var(--font);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .search-form input:focus { outline: 3px solid var(--bordo); outline-offset: 1px; border-color: var(--bordo); }
.field input[type="file"] { padding: 10px; }
.field__hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; }
.field__hint.is-error { color: var(--err); font-weight: 600; }
.field--check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; }
.field--check input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--bordo); }
.field--check label { font-weight: 400; font-size: .92rem; line-height: 1.5; margin: 0; color: var(--muted); }
.form__submit { width: 100%; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; border: 1.5px solid; }
.notice--ok { background: #eaf4ec; border-color: var(--ok); color: #123b25; }
.notice--ok a { color: #123b25; }
.notice--err { background: #fbeaea; border-color: var(--err); color: #5e1010; }
.notice:focus { outline: 3px solid var(--bordo); outline-offset: 2px; }

/* ---------- Chipsy – miejscowości ---------- */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--paper);
	border: 1.5px solid var(--line); color: var(--bordo); font-weight: 600; text-decoration: none; min-height: 44px;
	transition: background-color .2s, border-color .2s, color .2s;
}
.chips a:hover { background: var(--bordo); color: var(--cream); border-color: var(--bordo); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item summary {
	cursor: pointer; padding: 18px 56px 18px 20px; font-weight: 600; font-size: 1.1rem; color: var(--bordo); list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
	content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.7rem; font-weight: 400; line-height: 1;
}
.faq__item[open] summary::after { content: '–'; }
.faq__item p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* ---------- Wpisy ---------- */
.post-grid { display: grid; gap: 20px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.post-card__media { display: block; aspect-ratio: 16 / 7; background: linear-gradient(135deg, var(--bordo) 0%, var(--bordo-soft) 100%); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__ph { display: flex; height: 100%; align-items: center; justify-content: center; color: var(--cream); opacity: .85; }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: .88rem; color: var(--muted); margin-bottom: .4em; }
.post-card__title { font-size: 1.28rem; margin-bottom: .5em; }
.post-card__title a { text-decoration: none; color: var(--bordo); }
.post-card__title a:hover { text-decoration: underline; }
.post-card__excerpt { color: var(--muted); flex: 1; }

.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.pagination a, .pagination span.page-numbers {
	display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 14px;
	border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--paper);
}
.pagination .current { background: var(--bordo); color: var(--cream); border-color: var(--bordo); }

/* ---------- Pasek telefon ---------- */
.section--call { background: var(--cream); text-align: center; }
.call p { max-width: 52ch; margin-inline: auto; color: var(--muted); font-size: 1.1rem; }
.section--call .btn--light { background: var(--bordo); color: var(--cream); border-color: var(--bordo); }
.section--call .btn--light:hover { background: var(--bordo-dark); }

.cta-band {
	display: grid; gap: 20px; margin: 0 0 56px; padding: 28px 24px; background: var(--bordo); color: var(--cream);
	border-radius: var(--radius-lg); align-items: center;
}
.cta-band__title { color: var(--cream); font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); margin-bottom: .3em; }
.cta-band p { margin: 0; color: var(--cream-deep); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--primary { background: var(--cream); color: var(--bordo); border-color: var(--cream); }
.cta-band .btn--primary:hover { background: #fff; }
.cta-band .btn--ghost { color: var(--cream); border-color: var(--cream); }
.cta-band .btn--ghost:hover { background: var(--cream); color: var(--bordo); }
.cta-band :focus-visible { outline-color: var(--cream); }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.4fr 1fr; padding: 36px 40px; } .cta-band__actions { justify-content: flex-end; } }

/* ---------- Podstrony ---------- */
.page-hero { background: var(--cream); padding: 28px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3rem); max-width: 22ch; }
.page-hero--post h1 { max-width: none; }
.page-hero .lead { margin-bottom: 0; }
.post-meta { color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin: 0; }
@media (min-width: 900px) { .page-hero { padding: 40px 0 56px; } }

.breadcrumbs { margin-bottom: 18px; font-size: .92rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.breadcrumbs li { display: inline-flex; gap: 8px; color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; color: var(--bordo-soft); }
.breadcrumbs a { color: var(--bordo); }

.prose { font-size: 1.1rem; }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--bordo-soft); }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid var(--bordo); background: var(--cream); border-radius: 0 12px 12px 0; }
.prose blockquote p:last-child { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 1rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cream); color: var(--bordo); }
.prose .callout { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 1.6em 0; }
.prose .callout p:last-child { margin: 0; }

/* Strona miejscowości */
.local { display: grid; gap: 32px; align-items: start; }
.local__facts { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.facts__title { font-size: 1.25rem; }
.facts { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.facts .icon { color: var(--bordo); margin-top: 3px; }
@media (min-width: 960px) {
	.local { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; }
	.local__facts { position: sticky; top: 96px; }
}

.link-list { padding-left: 1.2em; }
.link-list li { margin-bottom: .6em; }
.search-form { display: flex; gap: 10px; max-width: 520px; margin-top: 1.2em; }
.search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.search-list h2 { font-size: 1.35rem; margin-bottom: .2em; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--bordo-dark); color: var(--cream-deep); padding: 48px 0 0; }
.site-footer a { color: var(--cream); }
.site-footer a:hover { color: #fff; }
.site-footer :focus-visible { outline-color: var(--cream); }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.25rem; color: var(--cream); text-transform: uppercase; letter-spacing: .03em; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-title { font-size: 1.05rem; color: var(--cream); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9em; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-list--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 36px; padding-block: 20px; border-top: 1px solid rgba(244, 233, 216, .2); font-size: .92rem; }
.footer-bottom p { margin: 0; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr 1fr .8fr 1.4fr; gap: 40px; } }

/* ---------- Pasek mobilny ---------- */
.mobile-bar { position: fixed; z-index: 90; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr; background: var(--bordo); box-shadow: 0 -6px 20px rgba(0, 0, 0, .18); }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; color: var(--cream); font-weight: 600; text-decoration: none; }
.mobile-bar__quote { background: var(--bordo-dark); }
.mobile-bar :focus-visible { outline-color: var(--cream); outline-offset: -4px; }
@media (min-width: 900px) {
	.mobile-bar { display: none; }
	body { padding-bottom: 0; }
}

@media print {
	.site-header, .mobile-bar, .cta-band, .section--quote { display: none; }
}
