:root {
	--ink: #14161a;
	--ink-2: #3b404a;
	--muted: #6b7280;
	--line: #e6e8ec;
	--bg: #ffffff;
	--bg-alt: #f5f6f8;
	--accent: #f2a516;
	--accent-ink: #1a1300;
	--accent-dark: #d48b00;
	--radius: 16px;
	--shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
	--shadow-lg: 0 2px 4px rgba(20, 22, 26, .05), 0 18px 40px rgba(20, 22, 26, .12);
	--header-h: 72px;
	--surface: #ffffff;
	--tint: #fff5e0;
	--hover: #fafbfc;
	--header-bg: rgba(255, 255, 255, .92);
	--dark: #14161a;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #f3f4f6;
		--ink-2: #c9ccd3;
		--muted: #9097a3;
		--line: #2c3038;
		--bg: #121418;
		--bg-alt: #181b20;
		--accent-dark: #f2a516;
		--surface: #1e2127;
		--tint: rgba(242, 165, 22, .14);
		--hover: #23262d;
		--header-bg: rgba(18, 20, 24, .88);
		--dark: #0d0e11;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
		--shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 18px 40px rgba(0, 0, 0, .4);
	}
	.brand img { filter: invert(1); }
	.site-footer { background: #08090b; }
}

/* Delikatne pojawianie się sekcji przy przewijaniu */
.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.car.reveal { transition: opacity .6s ease, transform .6s ease; }

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

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
	margin: 0;
	font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--ink-2);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.02em; }

.container {
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 24px;
}
.narrow { max-width: 780px; }

svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	padding: 14px 24px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(242, 165, 22, .35); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 10px 18px; font-size: 15px; box-shadow: none; }

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-h);
	background: var(--header-bg);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid transparent;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20, 22, 26, .05); }

.header-inner {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
}
.brand img { height: 40px; width: auto; }
.brand-sub {
	font-size: 12px;
	line-height: 1.25;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--muted);
	padding-left: 14px;
	border-left: 1px solid var(--line);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 6px;
}
.main-nav > a:not(.btn) {
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	color: var(--ink-2);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.main-nav > a:not(.btn):hover { background: var(--bg-alt); color: var(--ink); }
.main-nav .btn { margin-left: 10px; }

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-toggle span {
	position: absolute;
	left: 11px;
	width: 22px;
	height: 2px;
	background: var(--ink);
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: min(78vh, 680px);
	display: flex;
	align-items: flex-end;
	color: #fff;
	overflow: hidden;
}
.hero picture, .hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.hero-img { object-fit: cover; }
.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(14, 15, 18, .82) 0%, rgba(14, 15, 18, .45) 55%, rgba(14, 15, 18, .1) 100%),
		linear-gradient(0deg, rgba(14, 15, 18, .55) 0%, rgba(14, 15, 18, 0) 50%);
}
.hero-content {
	position: relative;
	padding-top: 96px;
	padding-bottom: 88px;
}
.hero h1 {
	color: #fff;
	font-size: clamp(34px, 5.4vw, 60px);
	font-weight: 800;
	max-width: 760px;
}
.hero-lead {
	max-width: 520px;
	margin: 20px 0 32px;
	font-size: clamp(17px, 1.6vw, 20px);
	color: rgba(255, 255, 255, .85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-dark);
}
.hero .eyebrow, .section-dark .eyebrow { color: var(--accent); }

/* ---------- Features ---------- */
.features {
	position: relative;
	z-index: 2;
	margin-top: -44px;
}
.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}
.feature {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 20px;
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}
.feature-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: var(--tint);
	color: var(--accent-dark);
	font-size: 24px;
	flex: none;
}
.feature strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.3; }
.feature span { font-size: 14px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; margin-bottom: 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { margin: 0; color: var(--muted); }

#info { text-align: center; }
#info p { margin: 0 0 18px; }
#info a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
#info a:hover { text-decoration: underline; }
.callout {
	display: inline-block;
	padding: 12px 20px;
	border-radius: 12px;
	background: var(--tint);
	color: var(--ink);
	font-weight: 700;
}

/* ---------- Cars ---------- */
.cars {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.car {
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: transform .2s ease, box-shadow .2s ease;
}
.car:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-img {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--line);
}
.car-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}
.car:hover .car-img img { transform: scale(1.04); }
.badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(20, 22, 26, .82);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
}
.car-body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 20px 22px 22px;
}
.car-seg {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--muted);
}
.car h3 { font-size: 21px; font-weight: 800; margin: 4px 0 14px; }
.specs {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	font-size: 15px;
}
.specs li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--line);
	color: var(--ink);
	font-weight: 600;
	text-align: right;
}
.specs li span { color: var(--muted); font-weight: 500; text-align: left; }
.car-price {
	margin-top: auto;
	color: var(--muted);
	font-size: 15px;
}
.car-price strong { color: var(--ink); font-size: 22px; font-weight: 800; }

/* ---------- Prices ---------- */
.table-wrap {
	overflow-x: auto;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	box-shadow: var(--shadow);
	-webkit-overflow-scrolling: touch;
}
.prices {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	background: var(--surface);
	font-variant-numeric: tabular-nums;
}
.prices th, .prices td {
	padding: 18px 16px;
	text-align: center;
	border-bottom: 1px solid var(--line);
}
.prices thead th {
	background: var(--dark);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	white-space: nowrap;
}
.prices thead th:first-child { text-align: left; }
.prices tbody tr:last-child > * { border-bottom: 0; }
.prices tbody tr:hover { background: var(--hover); }
.prices tbody th {
	text-align: left;
	width: 34%;
	font-weight: 400;
}
.prices td { font-size: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.prices td.best { color: var(--accent-dark); }
.seg-name { display: block; font-weight: 800; color: var(--ink); }
.seg-cars { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); line-height: 1.45; }

.terms {
	list-style: none;
	margin: 36px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.terms li {
	position: relative;
	padding: 16px 18px 16px 46px;
	background: var(--bg-alt);
	border-radius: 12px;
	font-size: 15px;
	line-height: 1.5;
}
.terms li::before {
	content: '';
	position: absolute;
	left: 18px;
	top: 20px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a1300' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.terms strong { color: var(--ink); }

/* ---------- Contact ---------- */
.section-dark { background: var(--dark); color: rgba(255, 255, 255, .78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.contact-grid {
	display: grid;
	grid-template-columns: 1fr 1.15fr;
	gap: 56px;
	align-items: center;
}
.contact-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 8px 0 36px;
	font-size: clamp(28px, 3.4vw, 38px);
	font-weight: 800;
	color: var(--accent);
	text-decoration: none;
	letter-spacing: -.01em;
}
.contact-phone svg { font-size: .8em; }
.contact-phone:hover { color: #ffc04d; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.contact-cols h3 {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, .5);
	margin-bottom: 10px;
}
address { font-style: normal; color: #fff; }
.hours {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 18px;
	margin: 0;
	color: #fff;
}
.hours dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.hours dt:last-of-type, .hours dd:last-of-type { color: rgba(255, 255, 255, .5); }
.map {
	border-radius: var(--radius);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #22252b;
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
	background: #0d0e11;
	color: rgba(255, 255, 255, .55);
	font-size: 14px;
}
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	padding-bottom: 24px;
}
.footer-inner p { margin: 0; }
.social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: 999px;
	color: #fff;
	text-decoration: none;
	background: rgba(255, 255, 255, .08);
	transition: background-color .15s ease;
}
.social svg { font-size: 18px; }
.social:hover { background: #1877f2; }

.call-fab { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.features-grid { grid-template-columns: repeat(2, 1fr); }
	.cars { grid-template-columns: repeat(2, 1fr); }
	.terms { grid-template-columns: repeat(2, 1fr); }
	.contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 860px) {
	:root { --header-h: 64px; }
	.brand img { height: 34px; }
	.nav-toggle { display: block; }
	.main-nav {
		position: absolute;
		top: var(--header-h);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
		padding: 12px 16px 20px;
		background: var(--surface);
		border-bottom: 1px solid var(--line);
		box-shadow: 0 16px 30px rgba(20, 22, 26, .08);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
	}
	.main-nav.open { opacity: 1; visibility: visible; transform: none; }
	.main-nav > a:not(.btn) { padding: 12px 14px; font-size: 17px; }
	.main-nav .btn { margin: 10px 0 0; justify-content: center; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.container { padding: 0 16px; }
	.brand-sub { display: none; }
	.hero { min-height: 560px; }
	.hero-overlay { background: linear-gradient(0deg, rgba(14, 15, 18, .9) 0%, rgba(14, 15, 18, .55) 55%, rgba(14, 15, 18, .25) 100%); }
	.hero-content { padding-bottom: 72px; }
	.hero-actions .btn { flex: 1 1 100%; justify-content: center; }
	.features { margin-top: -36px; }
	.features-grid { gap: 10px; }
	.feature { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
	.feature strong { font-size: 15px; }
	.feature span { font-size: 13px; }
	.section { padding: 64px 0; }
	.section-head { margin-bottom: 32px; }
	.cars { grid-template-columns: 1fr; gap: 18px; }
	.prices { min-width: 640px; }
	.prices th:first-child {
		position: sticky;
		left: 0;
		z-index: 1;
		width: 180px;
		min-width: 180px;
		box-shadow: 1px 0 0 var(--line);
	}
	.prices thead th:first-child { background: var(--dark); }
	.prices tbody th { background: var(--surface); }
	.prices th, .prices td { padding: 14px 12px; }
	.prices td { font-size: 16px; }
	.terms { grid-template-columns: 1fr; }
	.contact-cols { grid-template-columns: 1fr; gap: 24px; }
	.hours { max-width: 260px; }
	.footer-inner { flex-direction: column; text-align: center; padding-bottom: 96px; }

	.call-fab {
		display: grid;
		place-items: center;
		position: fixed;
		right: 16px;
		bottom: 16px;
		z-index: 90;
		width: 58px;
		height: 58px;
		border-radius: 50%;
		background: var(--accent);
		color: var(--accent-ink);
		font-size: 24px;
		box-shadow: 0 8px 24px rgba(242, 165, 22, .5);
	}
}

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