@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/inter-600.woff2") format("woff2");
}
@font-face {
	font-family: Inter;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
	font-family: "Barlow Condensed";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

:root {
	--sm-primary: #cc0000;
	--sm-accent: #8e0000;
	--sm-dark: #1a1a1a;
	--sm-light: #f6f6f6;
	--sm-text: #1c1c1c;
	--sm-muted: #5f6368;
	--sm-line: #e6e6e6;
	--sm-wa: #25d366;
	--sm-wa-text: #128c7e;
	--sm-phone: #1a73e8;
	--sm-footer: #555555;
	--sm-ckd: #e9631a;
	--sm-radius: 8px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	background: #fff;
	color: var(--sm-text);
	font-family: Inter, "Segoe UI", sans-serif;
	font-size: 15px;
	line-height: 1.65;
}

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

a { color: var(--sm-primary); }

button, input { font-family: inherit; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.skip-link {
	position: absolute;
	left: 12px;
	top: -40px;
	background: #fff;
	color: var(--sm-primary);
	padding: 8px 12px;
	z-index: 100;
}
.skip-link:focus { top: 8px; }

.icon { width: 18px; height: 18px; display: inline-block; vertical-align: middle; flex: 0 0 auto; }

.container,
.topbar-inner,
.nav-inner,
.footer-inner {
	width: min(900px, calc(100% - 32px));
	margin-inline: auto;
}

.site-main { padding-bottom: 28px; }

.section { margin: 38px 0; }
.hero-section { margin-top: 22px; margin-bottom: 28px; }

.section-title,
.page-title,
.car-title {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--sm-primary);
	line-height: 1.05;
	margin: 0 0 14px;
}

.section-title { font-size: 26px; }
.page-title { font-size: 36px; }
.car-title { font-size: 40px; margin: 0; }

.entry-title {
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: 38px;
	line-height: 1.1;
	color: var(--sm-primary);
	margin: 0 0 16px;
	text-transform: none;
}

.page-head { margin: 8px 0 18px; }
.lead { margin: 0 0 8px; color: #333; }
.entry-date, .post-card-date { color: var(--sm-muted); font-size: 13px; margin: 0 0 6px; }

.rich p { margin: 0 0 0.8em; }
.rich ul { margin: 0.4em 0 1em; padding-left: 1.15em; }
.rich li { margin: 0.28em 0; }
.rich li::marker { color: var(--sm-primary); }
.rich h2, .rich h3 { color: var(--sm-primary); }
.entry-content img, .rich img { height: auto; }

/* Header */
.topbar {
	background: var(--sm-light);
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.topbar-inner {
	min-height: 42px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
}
.topbar-text {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sm-primary);
}
.topbar-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #fff;
	color: var(--sm-primary);
	border: 1.5px solid var(--sm-primary);
	border-radius: 4px;
	padding: 5px 10px;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.topbar-btn .icon-whatsapp { color: var(--sm-wa); }
.topbar-btn:hover { background: var(--sm-light); }

.site-header { background: var(--sm-primary); }
.nav-inner {
	display: flex;
	align-items: stretch;
	min-height: 54px;
}
.logo-box {
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 14px;
	min-width: 108px;
	text-decoration: none;
}
.logo-box img { display: block; max-height: 40px; width: auto; }
.logo-text {
	color: var(--sm-primary);
	font-weight: 800;
	letter-spacing: 0.04em;
	font-size: 14px;
}
.primary-menu {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
}
.primary-menu a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 16px;
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	border-left: 1px solid rgba(255, 255, 255, 0.8);
	white-space: nowrap;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
	background: rgba(0, 0, 0, 0.12);
}
.nav-toggle {
	display: none;
	margin-left: auto;
	background: transparent;
	border: 0;
	color: #fff;
	width: 54px;
	cursor: pointer;
}
.nav-toggle .icon { width: 26px; height: 26px; }

/* Slider */
.slider { position: relative; }
.slider-viewport { overflow: hidden; border-radius: var(--sm-radius); }
.slider-track {
	display: flex;
	width: 100%;
	gap: var(--gap, 0px);
	transition: transform 0.35s ease;
}
.slider { --per: 1; --gap: 0px; }
.slider-slide {
	flex: 0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
	max-width: calc((100% - (var(--per) - 1) * var(--gap)) / var(--per));
	min-width: 0;
}
.slider-slide img,
.slider-slide a { display: block; width: 100%; }
.slider-slide img {
	width: 100%;
	max-width: 100%;
	aspect-ratio: var(--ratio, 3 / 2);
	object-fit: cover;
	background: #eee;
}
.slider-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #222;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.28);
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
}
.slider-prev { left: 10px; }
.slider-next { right: 10px; }
.slider.is-locked .slider-arrow { display: none; }

@media (min-width: 721px) {
	.slider[data-per="3"] { --per: 3; --gap: 12px; }
}

.empty-hero {
	aspect-ratio: 3 / 2;
	display: grid;
	place-items: center;
	background: var(--sm-light);
	border-radius: var(--sm-radius);
	padding: 24px;
	text-align: center;
	color: var(--sm-muted);
}

/* Gallery */
.gallery { margin: 8px 0 18px; }
.gallery-main { position: relative; }
.gallery-stage {
	position: relative;
	background: #eee;
	border-radius: var(--sm-radius);
	overflow: hidden;
	aspect-ratio: 3 / 2;
}
.gallery-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
}
.gallery-slide.is-active { opacity: 1; }
.gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumbs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-top: 8px;
}
.gallery-thumb {
	padding: 0;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #eee;
	cursor: pointer;
	overflow: hidden;
}
.gallery-thumb.is-active { border-color: var(--sm-primary); }
.gallery-thumb img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Price */
.price-label { margin: 0; color: var(--sm-muted); font-size: 13px; }
.price-value {
	margin: 2px 0 10px;
	color: var(--sm-primary);
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.1;
}
.price-sub {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 14px;
	max-width: 520px;
}
.price-sub span { display: block; color: var(--sm-muted); font-size: 13px; }
.price-sub strong { font-size: 16px; }
.price-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 6px;
	padding: 10px 16px;
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
	border: 2px solid transparent;
	cursor: pointer;
	line-height: 1.2;
}
.btn-wa { background: var(--sm-wa); color: #fff; }
.btn-wa:hover { background: #1ebe5d; color: #fff; }
.btn-phone { background: #fff; color: var(--sm-primary); border-color: var(--sm-primary); }
.btn-phone:hover { background: var(--sm-light); }
.btn-primary { background: var(--sm-primary); color: #fff; border-color: var(--sm-primary); }
.btn-primary:hover { background: var(--sm-accent); border-color: var(--sm-accent); color: #fff; }
.section-actions { text-align: center; margin: 22px 0 0; }
.text-link {
	color: var(--sm-primary);
	font-weight: 700;
	text-decoration: none;
}
.text-link:hover { color: var(--sm-accent); text-decoration: underline; }

/* Tables */
.table-wrap { overflow-x: auto; }
.price-table, .credit-table, .info-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.price-table, .credit-table { min-width: 560px; }
.price-table th, .credit-table th {
	background: color-mix(in srgb, var(--sm-primary) 12%, #fff);
	text-align: left;
	padding: 10px 12px;
	font-weight: 700;
}
.price-table td, .credit-table td {
	padding: 10px 12px;
	border-bottom: 1px solid var(--sm-line);
}
.credit-table td:first-child, .credit-table th:first-child { font-weight: 700; }
.table-note { margin: 8px 0 0; color: var(--sm-muted); font-size: 12px; }
.info-table th, .info-table td {
	border-bottom: 1px solid var(--sm-line);
	padding: 10px 8px;
	text-align: left;
	vertical-align: top;
}
.info-table th { width: 32%; font-weight: 700; }
.info-table a { color: inherit; }
.dealer-name { margin: 4px 0 8px; font-weight: 800; }

/* Specs and colors */
.spec-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 10px;
}
.spec {
	background: var(--sm-light);
	border-radius: var(--sm-radius);
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-height: 112px;
}
.spec-icon {
	width: 34px;
	height: 34px;
	border: 1.5px solid var(--sm-primary);
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: var(--sm-primary);
	margin-bottom: 6px;
}
.spec-label { color: var(--sm-muted); font-size: 12px; }
.spec strong { font-size: 14px; }

.swatches { display: flex; flex-wrap: wrap; gap: 14px 18px; }
.swatch {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	text-align: center;
	width: 92px;
	color: inherit;
}
.swatch-dot {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-block;
	border: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 0 0 2px #fff, 0 0 0 2px transparent;
}
.swatch.is-active .swatch-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--sm-primary); }
.swatch-name { display: block; margin-top: 6px; font-size: 12px; line-height: 1.3; }
.swatch-selected { color: var(--sm-muted); font-size: 13px; }

/* Sales profile */
.profil-card {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: 28px;
	align-items: center;
}
.profil-card.no-photo { grid-template-columns: 1fr; }
.profil-photo { position: relative; margin: 0 16px 16px 0; }
.profil-photo-accent {
	position: absolute;
	right: -14px;
	bottom: -14px;
	width: 72%;
	height: 68%;
	background: var(--sm-primary);
	border-radius: 8px;
	z-index: 0;
}
.profil-photo img {
	position: relative;
	z-index: 1;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	background: #eee;
}
.profil-name {
	margin: 0 0 12px;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
}
.profil-line {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-weight: 700;
	font-size: 16px;
}
.profil-phone { color: var(--sm-phone); }
.profil-phone a { color: var(--sm-phone); text-decoration: none; }
.profil-wa { color: var(--sm-wa-text); }
.profil-wa a { color: var(--sm-wa-text); text-decoration: none; }
.profil-extra { margin: 6px 0 0; }
.profil-extra a { font-weight: 700; text-decoration: none; }

/* Cards */
.car-grid, .post-grid, .happy-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.happy-grid img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--sm-radius);
	display: block;
	background: #eee;
}
.car-card, .post-card {
	background: #fff;
	border: 1px solid #ececec;
	border-radius: var(--sm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.car-card-media, .post-card-media { position: relative; display: block; }
.car-card-media img, .car-card-fallback {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	background: #eee;
}
.badge, .pill {
	display: inline-block;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1;
	padding: 5px 7px;
	border-radius: 2px;
	color: #fff;
}
.badge { position: absolute; top: 8px; }
.badge-cat { left: 8px; background: var(--sm-dark); }
.badge-stack { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.badge-stack .badge { position: static; }
.badge-hot, .pill-hot { background: var(--sm-primary); }
.badge-promo, .pill-promo { background: var(--sm-accent); }
.pill-dark { background: var(--sm-dark); }
.car-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 4px 0 12px;
}
.title-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.car-card-body, .post-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.car-card-title {
	margin: 0;
	font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	line-height: 1;
}
.car-card-title a, .post-card-title a { color: #161616; text-decoration: none; }
.car-card-title a:hover, .post-card-title a:hover { color: var(--sm-primary); }
.car-card-price { margin: 0; color: #555; font-size: 13px; }
.car-card-price strong { color: var(--sm-primary); font-size: 15px; }
.car-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	border-top: 1px solid var(--sm-line);
	padding-top: 8px;
	margin-top: 2px;
	color: #444;
	font-size: 12px;
}
.car-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.car-card-meta .icon { color: var(--sm-primary); width: 16px; height: 16px; }
.car-more { margin-top: auto; }
.post-card-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.post-card-title { margin: 0; font-size: 16px; line-height: 1.35; }
.post-card-excerpt { margin: 0; color: #444; font-size: 14px; }
.entry-media { margin: 0 0 16px; }
.entry-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--sm-radius); display: block; }

.breadcrumb { font-size: 13px; color: var(--sm-muted); margin: 16px 0 8px; }
.breadcrumb a { color: var(--sm-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--sm-primary); }
.breadcrumb .sep { margin: 0 6px; color: #b0b0b0; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 26px 0 8px; }
.pagination .page-numbers {
	display: inline-flex;
	min-width: 36px;
	height: 36px;
	align-items: center;
	justify-content: center;
	padding: 0 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	background: #fff;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--sm-primary);
	border-color: var(--sm-primary);
	color: #fff;
}

.search-form { display: flex; gap: 8px; margin: 12px 0 20px; }
.search-form input[type="search"] {
	flex: 1;
	border: 1px solid #ccc;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 15px;
}

.empty-note { color: var(--sm-muted); }

.site-footer {
	background: var(--sm-footer);
	color: #f3f3f3;
	padding: 14px 0;
	font-size: 13px;
}
.footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}
.footer-copy, .footer-credit { margin: 0; }
.site-footer a { color: #f3f3f3; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .ckd { color: var(--sm-ckd); font-weight: 700; }

:focus-visible { outline: 2px solid var(--sm-primary); outline-offset: 2px; }
.site-header :focus-visible, .btn-primary:focus-visible, .btn-wa:focus-visible { outline-color: #fff; }

@media (max-width: 800px) {
	.nav-toggle { display: grid; place-items: center; }
	.primary-menu {
		display: none;
		flex-direction: column;
		width: 100%;
		background: var(--sm-primary);
	}
	.site-header.is-open .primary-menu { display: flex; }
	.nav-inner { flex-wrap: wrap; }
	.logo-box { min-height: 54px; }
	.primary-menu { flex-basis: 100%; }
	.primary-menu a {
		border-left: 0;
		border-top: 1px solid rgba(255, 255, 255, 0.35);
		padding: 12px 16px;
	}
}

@media (max-width: 720px) {
	.topbar-inner { align-items: flex-start; }
	.topbar-text { font-size: 11px; }
	.car-title, .page-title, .entry-title { font-size: 30px; }
	.section-title { font-size: 22px; }
	.price-value { font-size: 28px; }
	.price-sub, .spec-grid, .car-grid, .post-grid, .happy-grid, .profil-card { grid-template-columns: 1fr; }
	.spec-grid { grid-template-columns: 1fr 1fr; }
	.price-actions .btn { width: 100%; }
	.gallery-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer-inner { flex-direction: column; align-items: flex-start; }
	.profil-photo { margin-right: 12px; }
	.slider[data-per="3"] { --per: 1; --gap: 0px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.slider-track { transition: none; }
}
