/* ==========================================================================
   Cubes Web — home sections + blocks shared with the inner pages
   (section heading, stars, branches & map, check list).
   ========================================================================== */

:root { --c-accent-on-dark: #ff8597; }

/* ---------- Shared blocks ---------- */
.home-section { padding-block: 80px; }
@media (max-width: 767px) { .home-section { padding-block: 56px; } }

.sec-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 32px; }
.sec-head.is-center { margin-inline: auto; text-align: center; }
.sec-eyebrow { color: var(--c-primary); font-weight: 700; font-size: 0.875rem; }
.section-dark .sec-eyebrow,
.sec-eyebrow.is-light { color: var(--c-accent-on-dark); }
.sec-title { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); font-weight: 800; line-height: 1.3; color: inherit; }
.sec-sub { margin: 0; color: var(--c-muted); font-size: 1.05rem; line-height: 1.8; }
.section-dark .sec-sub { color: rgb(255 255 255 / 0.75); }
.sec-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-row .sec-head { margin-bottom: 0; }
.sec-link { font-weight: 700; color: var(--c-primary); }
.sec-link:hover { text-decoration: underline; }

.btn-light { background: #fff; color: var(--c-dark); }
.btn-light:hover { background: var(--c-surface); }

.stars { display: inline-flex; gap: 2px; color: #d1d5db; }
.stars .is-on { color: #f5a623; }
.stars .is-on .ic { fill: currentColor; }

.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.check-list li > span {
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-primary-soft);
	color: var(--c-primary);
}

.tab-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.tab-pills button {
	min-height: 44px;
	padding: 0 18px;
	border-radius: 12px;
	border: 1px solid var(--c-border);
	background: #fff;
	font-weight: 600;
	font-size: 0.875rem;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.tab-pills button:hover { border-color: var(--c-primary); }
.tab-pills button[aria-pressed="true"] { background: var(--c-primary); border-color: var(--c-primary); color: #fff; font-weight: 700; }

/* Branches + map (home, contact) */
.branches-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.branches-layout.has-map { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
.branch-list { display: grid; gap: 14px; align-content: start; }
.branch-list .sec-head { margin-bottom: 4px; }
.branch-card {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 18px 20px;
	border-radius: 18px;
	background: #fff;
	border: 1px solid var(--c-border);
}
.branch-icon {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: var(--c-primary-soft);
	color: var(--c-primary);
}
.branch-info { display: grid; gap: 4px; flex: 1; min-width: 0; }
.branch-info small { color: var(--c-muted); line-height: 1.7; }
.branch-hours { display: inline-flex; align-items: center; gap: 6px; color: var(--c-text) !important; font-weight: 600; }
.branch-phone { justify-self: start; font-weight: 600; font-size: 0.875rem; }
.branch-actions { display: grid; gap: 4px; align-self: center; justify-items: end; }
.branch-actions a,
.branch-actions button { display: inline-flex; align-items: center; min-height: 44px; font-size: 0.82rem; font-weight: 700; color: var(--c-primary); white-space: nowrap; }
.branch-actions a:hover,
.branch-actions button:hover { text-decoration: underline; }
.branch-map { min-height: 380px; border-radius: 24px; overflow: hidden; background: #e4e7ec; border: 1px solid #d9dde3; }
.branch-map iframe { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 900px) { .branches-layout.has-map { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Hero ---------- */
.home-hero { position: relative; overflow: hidden; padding-block: 56px 120px; background: var(--c-dark); color: #fff; }
.home-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; }
.home-hero-text { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero-badge {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid rgb(255 255 255 / 0.14);
	font-size: 0.82rem;
	color: rgb(255 255 255 / 0.85);
}
.hero-title { margin: 0; font-size: clamp(2.1rem, 5vw, 3.75rem); line-height: 1.25; font-weight: 800; color: #fff; }
.hero-words { color: var(--c-primary); }
.hero-sub { margin: 0; font-size: 1.125rem; line-height: 1.8; color: rgb(255 255 255 / 0.78); max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 200px; min-height: 54px; border-radius: 14px; }
@media (min-width: 992px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 22px; padding-top: 10px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 0.875rem; color: rgb(255 255 255 / 0.85); }
.hero-trust span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgb(255 255 255 / 0.07); }

.home-hero-visual { position: relative; min-width: 0; }
.hero-frame {
	position: relative;
	aspect-ratio: 16 / 11;
	display: grid;
	place-items: center;
	overflow: hidden;
	border-radius: 28px;
	background: #16161a;
	border: 1px solid rgb(255 255 255 / 0.08);
}
.hero-ring { position: absolute; top: -35%; left: -25%; width: 75%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgb(255 255 255 / 0.09); }
.hero-ring-2 { top: auto; left: auto; bottom: -30%; right: -20%; width: 60%; border: 1px solid rgb(255 255 255 / 0.05); }
.hero-road { position: absolute; inset-inline: 0; bottom: 21%; height: 3px; opacity: 0.22; }
.hero-glow { position: absolute; inset: auto 8% 12% 8%; height: 20%; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 35%, transparent); filter: blur(34px); }
.hero-car { position: relative; width: 78%; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Slides may carry printed text: show them whole (contain), cross-fading. */
.hero-slide { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity 0.8s var(--ease); }
/* Blurred copy of the slide fills the frame around the uncropped image. */
.hero-slide::before {
	content: "";
	position: absolute;
	inset: -24px;
	background: var(--slide-bg) center / cover no-repeat;
	filter: blur(24px) brightness(0.6);
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide a,
.hero-slide picture { position: relative; display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }

.hero-float {
	position: absolute;
	bottom: -22px;
	inset-inline-end: 24px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	border-radius: 18px;
	background: #fff;
	color: var(--c-text);
	box-shadow: 0 18px 40px rgb(0 0 0 / 0.35);
}
.hero-float-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
.hero-float > span:last-child { display: grid; line-height: 1.35; }
.hero-float small { color: var(--c-muted); font-size: 0.75rem; }
.hero-float strong { font-size: 1.25rem; }
.hero-float strong span { font-size: 0.8rem; font-weight: 500; color: var(--c-muted); }

.hero-dots { display: flex; justify-content: center; margin-top: 28px; }
.hero-dots button {
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
}
.hero-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 6px; background: rgb(255 255 255 / 0.35); transition: width 0.3s, background-color 0.3s; }
.hero-dots button[aria-current="true"]::before { width: 28px; background: var(--c-primary); }

@media (max-width: 991px) {
	.home-hero-inner { grid-template-columns: minmax(0, 1fr); }
	.home-hero { padding-bottom: 104px; }
}
@media (max-width: 575px) {
	.home-hero { padding-top: 36px; }
	.hero-float { inset-inline-end: 12px; padding: 10px 14px; }
}

/* ---------- Smart search ---------- */
.home-search-wrap { position: relative; z-index: 5; margin-top: -76px; }
.home-search { display: grid; gap: 18px; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgb(15 15 20 / 0.16); }
.home-search-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--c-surface); }
.seg button { min-height: 44px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 0.875rem; color: var(--c-muted); }
.seg button[aria-pressed="true"] { background: var(--c-dark); color: #fff; font-weight: 700; }
.home-search-hint { color: var(--c-muted); font-size: 0.875rem; }
.home-search-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px; align-items: end; }
.home-search-fields .form-field select { min-height: 52px; }
.home-search-btn { min-height: 52px; border-radius: 12px; }
.home-search-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; }
.home-search-popular span { color: var(--c-muted); }
.home-search-popular a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--c-surface); border: 1px solid var(--c-border); font-weight: 500; }
.home-search-popular a:hover { border-color: var(--c-primary); color: var(--c-primary); }
@media (max-width: 575px) {
	.home-search-wrap { margin-top: -64px; }
	.home-search { padding: 16px; }
}

/* ---------- Body types ---------- */
.home-body-types { padding-block: 64px 24px; }
.body-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; }
.body-type-tile {
	display: grid;
	justify-items: center;
	gap: 10px;
	padding: 20px 10px;
	border-radius: 18px;
	border: 1px solid var(--c-border);
	background: #fff;
	text-align: center;
	font-weight: 600;
}
.body-type-tile img { height: 48px; width: auto; object-fit: contain; }
.body-type-tile .car-silhouette { width: 86px; }
.body-type-tile small { color: var(--c-muted); font-size: 0.75rem; font-weight: 500; }
.body-type-tile:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- Featured cars ---------- */
.home-cars-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 20px; }
.home-cars-grid > div { min-width: 0; }

/* ---------- Budget finder ---------- */
.home-budget { padding-block: 80px; overflow: hidden; background: var(--c-dark); color: #fff; }
.home-budget-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px; align-items: center; }
.home-budget-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-budget .sec-sub { color: rgb(255 255 255 / 0.75); }
.budget-slider { display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--c-dark-2); border: 1px solid rgb(255 255 255 / 0.08); }
.budget-slider-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 600; }
.budget-slider-head strong { font-size: 2.1rem; font-weight: 800; }
.budget-slider-head small { font-size: 0.875rem; color: rgb(255 255 255 / 0.65); }
.budget-slider input,
.calc-range input { width: 100%; accent-color: var(--c-primary); min-height: 24px; }
.budget-slider-scale,
.calc-range-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: rgb(255 255 255 / 0.6); }
.budget-count { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; }
.home-budget-list { display: grid; gap: 12px; min-width: 0; }
.budget-items { display: grid; gap: 12px; }
.budget-item {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 16px;
	border-radius: 18px;
	background: var(--c-dark-2);
	border: 1px solid rgb(255 255 255 / 0.08);
	color: #fff;
	transition: border-color 0.2s;
}
.budget-item:hover { border-color: var(--c-primary); color: #fff; }
.budget-thumb { flex: 0 0 110px; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: #24242a; }
.budget-thumb img { width: 100%; height: 100%; object-fit: cover; }
.budget-thumb .car-silhouette { width: 86%; }
.budget-body { flex: 1; min-width: 0; display: grid; gap: 8px; }
.budget-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; }
.budget-monthly { color: var(--c-accent-on-dark); }
.budget-bar { height: 6px; border-radius: 6px; background: #2a2a31; overflow: hidden; }
.budget-bar span { display: block; height: 100%; border-radius: 6px; background: var(--c-primary); transition: width 0.4s ease; }
.budget-body small { color: rgb(255 255 255 / 0.62); }
.budget-empty { margin: 0; padding: 28px; border-radius: 18px; background: var(--c-dark-2); text-align: center; color: rgb(255 255 255 / 0.78); }
.home-budget-list > .btn { justify-self: start; }
@media (max-width: 991px) { .home-budget-inner { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .budget-thumb { flex-basis: 84px; } }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 18px; }
.why-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--c-border); }
.why-card-top { display: flex; align-items: center; justify-content: space-between; }
.why-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; background: var(--c-primary-soft); color: var(--c-primary); }
.why-num { font-size: 2.25rem; font-weight: 800; color: #eef0f3; }
.why-card h3 { margin: 0; font-size: 1.2rem; }
.why-card p { margin: 0; color: var(--c-muted); line-height: 1.8; font-size: 0.95rem; }

/* ---------- Quiz ---------- */
.home-quiz-wrap { padding-top: 80px; }
.home-quiz {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	overflow: hidden;
	border-radius: 28px;
	border: 1px solid var(--c-border);
	background: #fff;
	box-shadow: 0 30px 70px rgb(15 15 20 / 0.08);
}
.quiz-main { display: flex; flex-direction: column; gap: 20px; padding: 36px; min-width: 0; }
.quiz-badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--c-primary-soft); color: var(--c-primary); font-weight: 700; font-size: 0.82rem; }
.quiz-progress { display: flex; gap: 6px; }
.quiz-progress span { flex: 1; height: 6px; border-radius: 6px; background: var(--c-border); transition: background-color 0.3s; }
.quiz-progress .is-current { background: #f4b6c0; }
.quiz-progress .is-done { background: var(--c-primary); }
.quiz-step { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.quiz-step legend { display: grid; gap: 4px; padding: 0; margin-bottom: 14px; }
.quiz-step legend small { color: var(--c-muted); font-weight: 600; }
.quiz-step legend strong { font-size: 1.25rem; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.quiz-option {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding: 10px 14px;
	border-radius: 16px;
	border: 1px solid var(--c-border);
	background: #fff;
	text-align: start;
	font-weight: 600;
	font-size: 0.95rem;
	transition: border-color 0.2s, background-color 0.2s;
}
.quiz-option:hover { border-color: var(--c-primary); background: #fff7f8; }
.quiz-option-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--c-surface); color: var(--c-primary); }
.quiz-link { justify-self: start; min-height: 44px; color: var(--c-muted); font-weight: 600; }
.quiz-link:hover { color: var(--c-primary); }
.quiz-done { display: grid; gap: 10px; }
.quiz-done strong { font-size: 1.2rem; }
.quiz-done p { margin: 0; color: var(--c-muted); line-height: 1.9; }
.quiz-done .btn { justify-self: start; }

.quiz-side { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 36px; overflow: hidden; background: var(--c-dark); color: #fff; min-width: 0; }
.quiz-glow { position: absolute; inset: auto 10% 18% 10%; height: 30%; border-radius: 50%; background: color-mix(in srgb, var(--c-primary) 35%, transparent); filter: blur(40px); }
.quiz-idle,
.quiz-result { position: relative; display: grid; gap: 14px; }
.quiz-idle { justify-items: center; text-align: center; }
.quiz-idle svg { width: 90%; }
.quiz-idle strong { font-size: 1.4rem; }
.quiz-idle small { color: rgb(255 255 255 / 0.72); line-height: 1.8; }
.quiz-result-badge { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--c-primary); font-size: 0.75rem; font-weight: 700; }
.quiz-result-media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; }
.quiz-result-media img { width: 100%; height: 100%; object-fit: cover; }
.quiz-result-media .car-silhouette { width: 100%; }
.quiz-result > strong { font-size: 1.5rem; }
.quiz-result-prices { display: flex; flex-wrap: wrap; gap: 24px; }
.quiz-result-prices > span { display: grid; }
.quiz-result-prices small { color: rgb(255 255 255 / 0.65); }
@media (max-width: 900px) { .home-quiz { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .quiz-main, .quiz-side { padding: 24px 18px; } }

/* ---------- Calculator ---------- */
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.calc-controls { display: flex; flex-direction: column; gap: 28px; padding: 30px; border-radius: 24px; border: 1px solid var(--c-border); min-width: 0; }
.calc-range { display: grid; gap: 12px; }
.calc-range-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-weight: 600; }
.calc-range-head strong { color: var(--c-primary); }
.calc-range-scale { color: var(--c-muted); }
.calc-group { margin: 0; padding: 0; border: 0; display: grid; gap: 12px; min-width: 0; }
.calc-group legend { padding: 0; margin-bottom: 12px; font-weight: 600; }
.calc-months { grid-template-columns: repeat(auto-fit, minmax(min(100%, 84px), 1fr)); }
.calc-result-card { display: flex; flex-direction: column; gap: 18px; padding: 30px; border-radius: 24px; background: var(--c-dark); color: #fff; min-width: 0; }
.calc-result-card > small { color: rgb(255 255 255 / 0.7); font-size: 0.875rem; }
.calc-monthly { font-size: clamp(2.4rem, 5vw, 3.25rem); line-height: 1; font-weight: 800; }
.calc-monthly span:last-child { font-size: 1rem; font-weight: 500; color: rgb(255 255 255 / 0.7); }
.calc-breakdown { margin: 0; border-top: 1px solid rgb(255 255 255 / 0.1); }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgb(255 255 255 / 0.1); font-size: 0.875rem; }
.calc-breakdown dt { color: rgb(255 255 255 / 0.72); }
.calc-breakdown dd { margin: 0; font-weight: 700; }
.calc-result-card .btn { margin-top: auto; }
.calc-note { color: rgb(255 255 255 / 0.6); font-size: 0.75rem; line-height: 1.7; }
.banks-strip { display: grid; gap: 14px; margin-top: 36px; }
.banks-strip > span { font-size: 0.875rem; color: var(--c-muted); font-weight: 600; }
.banks-strip ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.banks-strip li {
	min-height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px;
	border-radius: 14px;
	border: 1px solid var(--c-border);
	font-weight: 600;
	font-size: 0.875rem;
	color: #3a3f47;
	text-align: center;
}
.banks-strip img { max-height: 40px; width: auto; object-fit: contain; }
.banks-strip .ic { color: var(--c-muted); flex-shrink: 0; }
@media (max-width: 991px) { .calc-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .calc-controls, .calc-result-card { padding: 22px 18px; } }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.step-card { display: flex; flex-direction: column; gap: 14px; padding: 28px 24px; border-radius: 22px; background: var(--c-dark-2); border: 1px solid rgb(255 255 255 / 0.08); }
.step-top { display: flex; align-items: center; gap: 14px; color: rgb(255 255 255 / 0.75); }
.step-num { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; font-size: 1.25rem; font-weight: 800; }
.step-line { flex: 1; height: 1px; background: rgb(255 255 255 / 0.14); }
.step-card h3 { margin: 0; font-size: 1.2rem; color: #fff; }
.step-card p { margin: 0; color: rgb(255 255 255 / 0.72); line-height: 1.8; font-size: 0.95rem; }
.step-card small { color: var(--c-accent-on-dark); font-weight: 600; }

/* ---------- Showroom tour ---------- */
.home-tour-wrap { padding-top: 80px; }
.home-tour {
	position: relative;
	min-height: 440px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding: 48px 24px;
	overflow: hidden;
	border-radius: 28px;
	background: #16161a;
	color: #fff;
	text-align: center;
}
.home-tour > :not(.tour-cover, .tour-grid, .tour-road) { position: relative; z-index: 1; }
.tour-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.tour-grid {
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(90deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 80px),
		repeating-linear-gradient(0deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 80px);
}
.tour-road { position: absolute; inset-inline: 0; bottom: 64px; height: 3px; opacity: 0.15; }
.tour-play { position: relative; width: 96px; height: 96px; display: grid; place-items: center; border-radius: 50%; background: var(--c-primary); color: #fff; }
.tour-play .ic { position: relative; }
.tour-play:hover { transform: scale(1.05); }
.home-tour h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.75rem); font-weight: 800; color: #fff; }
.home-tour p { margin: 0; max-width: 560px; color: rgb(255 255 255 / 0.75); font-size: 1.05rem; line-height: 1.8; }
.tour-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding-top: 6px; }
.tour-chips li { padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / 0.08); border: 1px solid rgb(255 255 255 / 0.12); font-size: 0.875rem; font-weight: 600; }
.tour-dialog { width: min(92vw, 880px); padding: 0; border: 0; border-radius: 18px; background: #000; overflow: visible; }
.tour-dialog::backdrop { background: rgb(0 0 0 / 0.88); }
.tour-player { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; }
.tour-player iframe,
.tour-player video { display: block; width: 100%; height: 100%; border: 0; }
.tour-close {
	position: absolute;
	top: -18px;
	inset-inline-end: -10px;
	width: 44px;
	height: 44px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: #fff;
	color: var(--c-dark);
	box-shadow: var(--shadow);
}

/* ---------- Limited offer ---------- */
.home-offer-wrap { padding-block: 80px 40px; }
.home-offer {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	align-items: center;
	gap: 32px;
	padding: 40px;
	overflow: hidden;
	border-radius: 28px;
	background: var(--c-primary);
	color: #fff;
}
.home-offer-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.offer-badge { align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: rgb(0 0 0 / 0.2); font-size: 0.82rem; font-weight: 700; }
.home-offer h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.25; color: #fff; }
.home-offer p { margin: 0; line-height: 1.8; color: rgb(255 255 255 / 0.9); }
.offer-countdown { display: flex; flex-wrap: wrap; gap: 10px; }
.offer-countdown div { min-width: 72px; display: grid; gap: 2px; padding: 12px 8px; border-radius: 14px; background: rgb(0 0 0 / 0.22); text-align: center; }
.offer-countdown strong { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.offer-countdown small { font-size: 0.75rem; color: rgb(255 255 255 / 0.85); }
.offer-ends,
.offer-terms { color: rgb(255 255 255 / 0.85); font-size: 0.8rem; line-height: 1.7; }
.home-offer .btn { align-self: flex-start; }
.home-offer-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 22px; background: rgb(0 0 0 / 0.18); min-width: 0; }
.home-offer-media img { width: 100%; height: 100%; object-fit: cover; }
.home-offer-media .car-silhouette { width: 80%; }
@media (max-width: 991px) { .home-offer { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
	.home-offer { padding: 24px 18px; }
	.offer-countdown div { min-width: 0; flex: 1; }
}

/* ---------- Promo banners: native scroll-snap row ---------- */
.home-promos { padding-top: 40px; }
.promo-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: min(86%, 380px);
	gap: 16px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 8px;
}
.promo-row:focus-visible { outline-offset: 4px; }
.promo-item { display: block; scroll-snap-align: start; overflow: hidden; border-radius: 20px; background: var(--c-surface); }
.promo-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.5s var(--ease); }
a.promo-item:hover img { transform: scale(1.04); }

/* ---------- Brands marquee ---------- */
.brands-mq {
	display: grid;
	gap: 14px;
	overflow: hidden;
	padding-block: 6px;
	mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
	-webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.brands-mq .mq-r,
.brands-mq .mq-l { display: flex; gap: 14px; width: max-content; }
.brand-tile {
	flex: 0 0 170px;
	min-height: 92px;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 2px;
	padding: 14px;
	border-radius: 18px;
	border: 1px solid var(--c-border);
	background: #fff;
	text-align: center;
}
.brand-tile.is-alt { background: var(--c-surface); }
.brand-tile img { max-height: 44px; width: auto; object-fit: contain; }
.brand-tile strong { font-size: 1.05rem; }
.brand-tile small { color: var(--c-muted); font-size: 0.75rem; }
.brand-tile:hover { border-color: var(--c-primary); }

/* ---------- Trade-in ---------- */
.trade-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.trade-text { display: grid; gap: 4px; min-width: 0; }
.trade-text .sec-head { margin-bottom: 16px; }
.trade-form { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--c-border); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trade-form-title { font-size: 1.25rem; }
@media (max-width: 900px) { .trade-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) {
	.trade-form { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
}

/* ---------- Delivery trip ---------- */
.home-delivery { overflow: hidden; }
.trip-track { --stops: 4; position: relative; padding-top: 8px; }
.trip-line,
.trip-lane { position: absolute; top: 37px; inset-inline: calc(50% / var(--stops)); height: 4px; }
.trip-line { border-radius: 4px; background-image: repeating-linear-gradient(90deg, #d9dde3 0 14px, transparent 14px 24px); }
.trip-lane { z-index: 2; }
.trip-car {
	position: absolute;
	top: -20px;
	width: 44px;
	height: 44px;
	margin-right: -22px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-primary);
	color: #fff;
	box-shadow: 0 8px 20px color-mix(in srgb, var(--c-primary) 40%, transparent);
}
.trip-stops { position: relative; display: grid; grid-template-columns: repeat(var(--stops), minmax(0, 1fr)); gap: 12px; }
.trip-stops li { display: grid; justify-items: center; align-content: start; gap: 10px; text-align: center; }
.trip-stop-icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 2px solid var(--c-border); }
.trip-stops strong { font-size: 1rem; }
.trip-stops small { max-width: 200px; color: var(--c-muted); line-height: 1.7; }
/* Narrow screens: vertical list, no moving car */
@media (max-width: 640px) {
	.trip-line, .trip-lane { display: none; }
	.trip-stops { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.trip-stops li { grid-template-columns: 60px minmax(0, 1fr); justify-items: start; text-align: start; column-gap: 14px; row-gap: 2px; }
	.trip-stop-icon { grid-row: span 2; }
}

/* ---------- Stats ---------- */
.home-stats { padding-block: 56px; background: var(--c-dark); color: #fff; }
.home-stats .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; text-align: center; }
.home-stats .stat { display: grid; gap: 4px; }
.home-stats .stat-value { font-size: clamp(2.2rem, 4.5vw, 2.9rem); font-weight: 800; line-height: 1.1; color: #fff; }
.home-stats .stat-label { font-weight: 600; }
.home-stats small { color: rgb(255 255 255 / 0.65); }

/* ---------- Testimonials ---------- */
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr); gap: 28px; align-items: start; }
.reviews-summary { display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: 24px; background: var(--c-surface); min-width: 0; }
.reviews-summary .sec-head { margin: 0; }
.reviews-summary .btn { align-self: flex-start; }
.reviews-score { display: flex; align-items: center; gap: 10px; }
.reviews-score > strong { font-size: 2.75rem; }
.reviews-score > span { display: grid; gap: 4px; }
.reviews-score small { color: var(--c-muted); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; min-width: 0; }
.review-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 22px; border: 1px solid var(--c-border); }
.review-card p { flex: 1; margin: 0; line-height: 1.9; color: #3a3f47; }
.review-card footer { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--c-border); }
.review-card footer > span:last-child { display: grid; }
.review-card footer small { color: var(--c-muted); }
.review-avatar { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--c-dark); color: #fff; font-weight: 700; }
@media (max-width: 991px) { .reviews-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ (details / summary) ---------- */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; align-items: start; }
.faq-intro { display: grid; gap: 4px; justify-items: start; }
.faq-list { display: grid; gap: 10px; min-width: 0; }
.faq-item { border-radius: 18px; border: 1px solid var(--c-border); background: #fff; }
.faq-item[open] { background: var(--c-surface); }
.faq-item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
	padding: 16px 22px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-toggle {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--c-surface);
	transition: transform 0.25s var(--ease), background-color 0.2s, color 0.2s;
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); background: var(--c-primary); color: #fff; }
.faq-item p { margin: 0; padding: 0 22px 22px; color: var(--c-muted); line-height: 1.9; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }

/* ---------- Blog ---------- */
.home-blog { padding-top: 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border: 1px solid var(--c-border); }
.blog-media { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: #eef1f5; color: var(--c-muted); }
.blog-media img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { display: grid; gap: 8px; padding: 20px; }
.blog-body strong { font-size: 1.1rem; line-height: 1.5; }
.blog-body small { color: var(--c-muted); }
.blog-body .blog-tag { color: var(--c-primary); font-weight: 700; }

/* ---------- Final CTA ---------- */
.home-cta-wrap { padding-bottom: 80px; }
.page-home .home-cta-wrap { padding-top: 0; }
.home-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 44px;
	border-radius: 28px;
	background: var(--c-dark);
	color: #fff;
}
.home-cta > div:first-child { display: grid; gap: 8px; flex: 1 1 380px; min-width: 0; }
.home-cta h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; color: #fff; }
.home-cta p { margin: 0; color: rgb(255 255 255 / 0.75); font-size: 1.05rem; }
.home-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 575px) {
	.home-cta { padding: 28px 18px; }
	.home-cta-actions, .home-cta-actions .btn { width: 100%; }
}

/* ==========================================================================
   Contact & about pages
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 32px; align-items: start; }
.contact-channels { display: grid; gap: 12px; }
.contact-channels li { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--c-border); }
.contact-channels li > span:last-child { display: grid; gap: 2px; min-width: 0; }
.contact-channels small { color: var(--c-muted); }
.contact-channels a,
.contact-channels strong { font-weight: 700; overflow-wrap: anywhere; }
.contact-channels a:hover { color: var(--c-primary); }
.contact-icon { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: var(--c-primary-soft); color: var(--c-primary); }
.contact-address { display: flex; gap: 8px; margin: 16px 0 0; color: var(--c-muted); }
.contact-form { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--c-border); box-shadow: var(--shadow); }
.contact-form-title { font-size: 1.3rem; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575px) { .contact-form { padding: 20px 16px; } }

.about-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.about-content { font-size: 1.05rem; line-height: 2; color: #3a3f47; overflow-wrap: anywhere; }
.about-content h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.about-content img { max-width: 100%; height: auto; border-radius: 16px; }
.about-facts { display: grid; gap: 12px; }
.about-facts li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--c-surface); font-weight: 600; }
.about-facts li > span { width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; background: var(--c-primary-soft); color: var(--c-primary); }
@media (max-width: 900px) { .about-layout { grid-template-columns: minmax(0, 1fr); } }
