/*
Theme Name: Skup Aut Suwałki
Description: Motyw strony skupu samochodów w Suwałkach i na Suwalszczyźnie.
Version: 1.0.0
Requires PHP: 8.0
Text Domain: skupautsuwalki
*/

:root {
	--red: #d7263d;
	--red-d: #b01b30;
	--red-soft: #fdecee;
	--graphite: #1c1d22;
	--graphite-2: #26282f;
	--graphite-3: #33363f;
	--ink: #17181c;
	--text: #3a3d45;
	--muted: #6b707c;
	--line: #e4e6eb;
	--bg: #ffffff;
	--bg-alt: #f4f5f7;
	--wa: #25d366;
	--radius: 14px;
	--radius-lg: 22px;
	--shadow: 0 10px 30px -12px rgba(23, 24, 28, .25);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.18; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.screen-reader-text { position: absolute; left: -9999px; }
.screen-reader-text:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 8px 12px; border-radius: 8px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-d); }
.btn--white { background: #fff; color: var(--red); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; }

/* Topbar & header */
.topbar { background: var(--graphite); color: #c9ccd3; font-size: .82rem; }
.topbar__in { display: flex; gap: 26px; justify-content: center; padding: 7px 20px; }
.topbar__in span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { color: var(--red); }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-stuck { border-color: var(--line); box-shadow: 0 6px 20px -14px rgba(0,0,0,.3); }
.site-header__in { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 1rem; letter-spacing: .02em; transform: rotate(-4deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b { font-size: 1.12rem; font-weight: 800; }
.brand__text small { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
.brand--light { color: #fff; }
.custom-logo { max-height: 52px; width: auto; }

.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--bg-alt); }
.header-phone { padding: .7em 1.15em; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; background: var(--graphite); color: #d6d8de; padding: 64px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; right: -180px; top: -180px; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(215,38,61,.35), transparent 65%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; background: var(--bg); }
.hero__in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-bottom: 48px; }
.hero h1 { color: #fff; }
.hero h1 em, .page-hero h1 em { font-style: normal; color: var(--red); background: linear-gradient(transparent 62%, rgba(215,38,61,.22) 0); }
.hero__lead { font-size: 1.12rem; max-width: 560px; color: #c3c6ce; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .85rem; font-weight: 600; margin-bottom: 18px; }
.pill svg { color: var(--red); }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; }
.ticks svg { color: #fff; background: var(--red); border-radius: 50%; padding: 3px; width: 22px; height: 22px; }
.ticks--dark li { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.quick { position: relative; padding: 32px 28px 28px; color: var(--text); }
.quick h2 { font-size: 1.6rem; margin-bottom: .2em; }
.quick > p { color: var(--muted); font-size: .95rem; }
.quick__badge { position: absolute; top: -14px; left: 28px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }

.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stats div { padding: 22px 24px; border-right: 1px solid var(--line); }
.stats div:last-child { border-right: 0; }
.stats b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stats span { font-size: .9rem; color: var(--muted); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; flex: 1; min-width: 0; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s; width: 100%; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.form__row { display: flex; gap: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; line-height: 1.45; color: var(--muted); margin: 6px 0 16px; }
.consent input { margin-top: 3px; accent-color: var(--red); }
.consent--sm { font-size: .78rem; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; font-size: .95rem; }
.form-msg--ok { background: #e8f7ee; color: #146c36; }
.form-msg--err { background: var(--red-soft); color: var(--red-d); }
.files { margin-bottom: 10px; }
.files__drop { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed #c8cbd3; border-radius: 12px; cursor: pointer; font-size: .9rem; position: relative; }
.files__drop:hover { border-color: var(--red); }
.files__drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files__drop svg { width: 28px; height: 28px; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 5px; }
.files__drop small { color: var(--muted); }
.files__list { list-style: none; padding: 0; margin: 8px 0 0; font-size: .82rem; color: var(--muted); }

/* Sections */
.section { padding: 88px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--graphite); color: #c3c6ce; }
.section--dark h2 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 10px; }
.kicker--light { color: #ff6b7d; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 26px; left: 8%; right: 8%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 18px); }
.steps li { position: relative; }
.steps__n { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--red); color: var(--red); font-weight: 800; font-size: 1.25rem; margin-bottom: 18px; position: relative; }
.steps li:last-child .steps__n { background: var(--red); color: #fff; }
.steps p { color: var(--muted); font-size: .96rem; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.bento__item { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.bento__item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento__item > svg { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--red-soft); color: var(--red); margin-bottom: 16px; }
.bento__item p { color: var(--muted); font-size: .95rem; margin: 0; }
.bento__item--wide { grid-column: span 2; }
.bento__item--red { background: var(--red); border-color: var(--red); }
.bento__item--red h3, .bento__item--red p { color: #fff; }
.bento__item--red > svg { background: rgba(255,255,255,.18); color: #fff; }
.bento__item--dark { background: var(--graphite); border-color: var(--graphite); }
.bento__item--dark h3 { color: #fff; }
.bento__item--dark p { color: #b8bbc4; }
.bento__item--dark > svg { background: rgba(255,255,255,.1); color: #fff; }
.brands { margin: 34px 0 0; text-align: center; color: var(--muted); font-weight: 600; font-size: .92rem; letter-spacing: .02em; }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.compare__col { padding: 28px; }
.compare__col h3 { margin-bottom: 14px; }
.compare__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .95rem; }
.compare__col:first-child { background: var(--bg-alt); color: var(--muted); }
.compare__col:first-child li { text-decoration: line-through; text-decoration-color: rgba(215,38,61,.5); }
.compare__col--us { background: var(--graphite); color: #fff; }
.compare__col--us h3 { color: #fff; }
.compare__col--us li { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.compare__col--us svg { color: var(--red); }

.towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.towns a, .towns div { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: var(--graphite-2); border: 1px solid var(--graphite-3); color: #fff; text-decoration: none; font-weight: 600; }
.towns a:hover { border-color: var(--red); background: var(--graphite-3); }
.towns small { color: #9599a4; font-weight: 500; font-size: .8rem; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 0 22px; }
.faq details[open] { border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--red); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s; }
.post-card a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card__img--empty { display: grid; place-items: center; background: linear-gradient(135deg, var(--graphite), var(--graphite-3)); }
.post-card__img--empty svg { width: 44px; height: 44px; color: var(--red); }
.post-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__body p { color: var(--muted); font-size: .94rem; flex: 1; }
.meta { font-size: .82rem; color: var(--muted); font-weight: 600; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; text-decoration: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.contact .form { padding: 30px; }
.contact__info { display: grid; gap: 14px; }
.info-tile { border-radius: var(--radius-lg); padding: 22px 24px; background: var(--bg-alt); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.info-tile p:last-child { margin: 0; }
.info-tile--dark { background: var(--graphite); border-color: var(--graphite); color: #b8bbc4; }
.info-tile__label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: #ff6b7d; }
.info-tile__big { display: block; font-size: 2rem; font-weight: 800; color: #fff; text-decoration: none; letter-spacing: -.01em; margin: 4px 0; }
.info-tile--wa { display: flex; align-items: center; gap: 14px; background: #eafaf0; border-color: #c6eed5; color: #0f5130; }
.info-tile--wa svg { width: 36px; height: 36px; color: var(--wa); }
.map { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Inner pages */
.page-hero { background: var(--graphite); color: #c3c6ce; padding: 56px 0 60px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -160px; bottom: -260px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(215,38,61,.3), transparent 65%); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { max-width: 640px; font-size: 1.08rem; }
.page-hero--sm { padding: 44px 0 48px; }
.page-hero--sm h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #8f939e; }
.crumbs a { color: #c3c6ce; text-decoration: none; }
.crumbs a:hover { color: #fff; }
.layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.prose h2 { font-size: 1.55rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--red); }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside__card { padding: 24px; }
.aside__towns ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.aside__towns a { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--bg-alt); color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; }
.aside__towns a:hover { background: var(--red); color: #fff; }
.post-thumb { margin: 0 0 28px; border-radius: var(--radius-lg); overflow: hidden; }
.inline-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 24px; margin-top: 40px; flex-wrap: wrap; }
.pagination { margin-top: 36px; }
.pagination .nav-links { display: flex; gap: 6px; }
.pagination .page-numbers { padding: 8px 14px; border-radius: 10px; background: var(--bg-alt); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .current { background: var(--red); color: #fff; }

/* CTA band & footer */
.cta-band { background: var(--red); color: #fff; padding: 40px 0; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 4px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); }
.site-footer { background: #121317; color: #9599a4; font-size: .93rem; padding: 64px 0 0; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #c3c6ce; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .brand { margin-bottom: 16px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; margin-top: 48px; border-top: 1px solid #26282f; font-size: .85rem; }

.mobilebar { display: none; }
.wa-btn { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37,211,102,.7); }
.wa-btn svg { width: 30px; height: 30px; }

.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; max-width: 420px; background: #fff; border-radius: var(--radius-lg); box-shadow: 0 20px 50px -18px rgba(0,0,0,.45); border: 1px solid var(--line); padding: 18px 20px; font-size: .88rem; display: none; }
.cookie.is-visible { display: block; }
.cookie p { margin: 0 0 12px; }
.cookie__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.cookie .btn { padding: .6em 1em; font-size: .88rem; }

/* Responsive */
@media (max-width: 1080px) {
	.nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px -18px rgba(0,0,0,.3); }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; padding: 10px 20px 18px; }
	.nav a { padding: 12px 10px; border-radius: 10px; }
	.nav-toggle { display: block; }
	.header-phone { margin-left: auto; }
	.hero__in { grid-template-columns: 1fr; }
	.quick { max-width: 560px; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; }
	.steps::before { display: none; }
	.bento { grid-template-columns: repeat(2, 1fr); }
	.split, .contact, .layout { grid-template-columns: 1fr; }
	.aside { position: static; }
	.posts { grid-template-columns: repeat(2, 1fr); }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
	body { font-size: 16px; padding-bottom: 64px; }
	.topbar__hide-sm { display: none !important; }
	.site-header__in { height: 64px; gap: 12px; }
	.header-phone span { display: none; }
	.header-phone { padding: .7em; }
	.brand__mark { width: 38px; height: 38px; }
	.hero { padding-top: 40px; }
	.section { padding: 60px 0; }
	.stats { grid-template-columns: 1fr 1fr; }
	.stats div:nth-child(2) { border-right: 0; }
	.stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.stats div { padding: 16px; }
	.stats b { font-size: 1.35rem; }
	.steps, .bento, .posts, .compare, .site-footer__grid { grid-template-columns: 1fr; }
	.bento__item--wide { grid-column: auto; }
	.form__row { flex-direction: column; gap: 0; }
	.contact .form, .quick { padding: 26px 20px 20px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: var(--graphite); }
	.mobilebar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 6px; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; }
	.mobilebar a:first-child { background: var(--red); }
	.wa-btn { display: none; }
	.cookie { left: 10px; right: 10px; bottom: 74px; max-width: none; }
}
