/* ==========================================================================
   KXD Moto — redesign 2026
   Jeden stylopis pro celý web. Bez frameworků, bez externích fontů.
   Stejná kostra jako nitromotors.sk / heideker.cz, barevnost podle loga KXD
   (oranžová). Světlá hlavička i hero — fotky ze shopu jsou výřezy na bílé.
   ========================================================================== */

:root {
	--wrap: 1160px;
	--radius: 16px;
	--radius-sm: 10px;

	--bg: #ffffff;
	--bg-alt: #f6f6f7;
	--surface: #ffffff;
	--ink: #14161a;
	--ink-soft: #5b6470;
	--line: #e4e7eb;

	--accent: #f06a1e;
	--accent-hover: #cf560f;
	--accent-ink: #ffffff;

	--dark: #14161a;
	--dark-soft: #9aa3b0;
	--dark-line: #292e36;

	--shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 10px 30px rgba(20, 22, 26, .07);
	--shadow-sm: 0 1px 2px rgba(20, 22, 26, .06);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #14161a;
		--bg-alt: #1a1d22;
		--surface: #1e2228;
		--ink: #eaedf1;
		--ink-soft: #a2abb8;
		--line: #2a3038;
		--accent: #ff8a4a;
		--accent-hover: #ffa272;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
		--shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
	}
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow {
	display: inline-block; margin: 0 0 18px;
	font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.visually-hidden {
	position: absolute; width: 1px; height: 1px; margin: -1px;
	padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- Hlavička ------------------------------------------------------------ */

.site-header {
	position: sticky; top: 0; z-index: 20;
	background: var(--bg);
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	border-bottom: 1px solid var(--line);
	backdrop-filter: saturate(160%) blur(12px);
	-webkit-backdrop-filter: saturate(160%) blur(12px);
}
.site-header .wrap {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: block; height: 41px; width: auto; }

.nav ul { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav a {
	display: block; padding: 8px 14px; border-radius: 999px;
	color: var(--ink-soft); font-size: .95rem; font-weight: 500; text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: var(--bg-alt); color: var(--ink); }
.nav a.nav-shop {
	margin-left: 8px; padding: 9px 18px;
	background: var(--accent); color: var(--accent-ink); font-weight: 650;
}
.nav a.nav-shop:hover { background: var(--accent-hover); color: var(--accent-ink); }

/* --- Tlačítka ------------------------------------------------------------ */

.btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 26px; border: 0; border-radius: 999px;
	font-size: 1.02rem; font-weight: 650; text-decoration: none;
	transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn-primary {
	background: var(--accent); color: var(--accent-ink);
	box-shadow: 0 8px 24px rgba(240, 106, 30, .3);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary {
	background: var(--surface); color: var(--ink);
	box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-secondary:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent); transform: translateY(-2px); }
.btn svg { flex: none; }

/* --- Hero (světlý, text vlevo, výřez stroje vpravo) ---------------------- */

.hero {
	position: relative; overflow: hidden;
	background: var(--bg-alt);
	padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 10vw, 130px);
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(55% 75% at 85% 30%, rgba(240, 106, 30, .16), transparent 65%),
		radial-gradient(40% 60% at 5% 95%, rgba(240, 106, 30, .08), transparent 60%);
	pointer-events: none;
}
.hero-grid {
	position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
	gap: clamp(24px, 4vw, 56px); align-items: center;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { max-width: 15ch; }
.hero p { color: var(--ink-soft); font-size: clamp(1.05rem, .95rem + .5vw, 1.25rem); max-width: 56ch; }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }
.hero-media { margin: 0; position: relative; }
.hero-media::before {
	content: ""; position: absolute; inset: 8% 4% 2%;
	border-radius: 999px;
	background: radial-gradient(closest-side, rgba(240, 106, 30, .22), transparent 70%);
	filter: blur(18px);
}
.hero-media img {
	position: relative; display: block; width: 100%; max-width: 560px; margin-inline: auto;
	border-radius: var(--radius);
	mix-blend-mode: multiply; /* bílé pozadí fotky splyne se světlým heroem */
	filter: drop-shadow(0 24px 40px rgba(20, 22, 26, .18));
}
@media (prefers-color-scheme: dark) {
	.hero-media img { mix-blend-mode: normal; background: #fff; padding: 10px; }
}

/* Pás s čísly pod heroem */
.stats { position: relative; z-index: 2; margin-top: -46px; }
.stats ul {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
	margin: 0; padding: 0; list-style: none;
	background: var(--line); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.stats li { background: var(--surface); padding: 26px 24px; }
.stats b { display: block; font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; }
.stats span { color: var(--ink-soft); font-size: .92rem; }

/* Kotvy nesmí zmizet pod lepivou hlavičkou */
[id] { scroll-margin-top: 92px; }

/* --- Sekce --------------------------------------------------------------- */

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 62ch; margin-bottom: 42px; }
.section-head .eyebrow { color: var(--accent); }

/* Sortiment — dlaždice s fotkou, celá dlaždice je odkaz do e-shopu (9 = 3×3) */
.tiles {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	margin: 0; padding: 0; list-style: none;
}
.tile {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden;
	color: var(--ink); text-decoration: none;
	box-shadow: var(--shadow-sm);
	transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.tile:hover {
	color: var(--ink); transform: translateY(-4px);
	border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
	box-shadow: var(--shadow);
}
.tile-media { aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.tile-media img {
	width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .4s ease;
}
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body strong { font-size: 1.15rem; letter-spacing: -.02em; }
.tile-body span { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }
.tile-body em {
	margin-top: auto; padding-top: 10px;
	font-style: normal; font-weight: 600; color: var(--accent); font-size: .95rem;
}

/* Modely KXD — karta s fotkou (výřez na bílé, celá viditelná), parametry a odkazem */
.products {
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	margin: 0; padding: 0; list-style: none;
}
.product {
	display: flex; flex-direction: column;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
}
.product-media { aspect-ratio: 4 / 3; background: #fff; padding: 14px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h3 { margin: 0; }
.product-body p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
.product-body > a {
	margin-top: auto; padding-top: 6px;
	font-weight: 600; font-size: .95rem; text-decoration: none;
}
.product-body > a:hover { text-decoration: underline; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.specs li {
	padding: 4px 10px; border-radius: 999px;
	background: color-mix(in srgb, var(--accent) 10%, transparent);
	color: var(--accent); font-size: .8rem; font-weight: 600; letter-spacing: .01em;
}
.products-more {
	margin: 32px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
}
.products-more span { color: var(--ink-soft); font-size: .95rem; }

/* Karty „proč“ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card {
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 28px 26px;
	box-shadow: var(--shadow-sm);
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.card-icon {
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
	border-radius: 12px; background: var(--bg-alt);
	background: color-mix(in srgb, var(--accent) 12%, transparent);
	color: var(--accent);
}

/* O značce — text + fotka vedle sebe */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about figure {
	margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	background: #fff; padding: 18px;
}
.about figure img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.about p { color: var(--ink-soft); }
.about p:last-child { margin-bottom: 0; }

/* Kontaktní dlaždice */
.contact-grid {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	max-width: 760px; /* 2×2, ať nezůstane osamocená dlaždice ve druhé řadě */
	margin: 0;
}
.contact-grid dt {
	font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ink-soft); margin-bottom: 8px;
}
.contact-grid dd { margin: 0; font-size: 1.05rem; line-height: 1.6; }
.contact-grid .card { padding: 26px; }

/* Závěrečný pruh */
.cta-band {
	border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
	background: var(--bg-alt);
	padding: clamp(48px, 7vw, 80px) 0;
}
.cta-band .wrap {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
}
.cta-band h2 { margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--ink-soft); }

/* --- Patička ------------------------------------------------------------- */

.site-footer { background: var(--dark); color: var(--dark-soft); padding: 56px 0 40px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
	display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px;
	padding-bottom: 32px; border-bottom: 1px solid var(--dark-line);
}
.footer-grid h3 {
	font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: #fff; margin-bottom: 14px;
}
.footer-grid ul { margin: 0; padding: 0; list-style: none; line-height: 2; }
.footer-brand { font-size: 1.3rem; font-weight: 900; font-style: italic; letter-spacing: -.02em; color: #fff; }
.footer-brand span { color: var(--accent); font-style: normal; font-weight: 700; }
.footer-bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
	padding-top: 24px; font-size: .9rem;
}
.footer-bottom p { margin: 0; }

/* --- Responzivita -------------------------------------------------------- */

@media (max-width: 900px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-media img { max-width: 420px; }
	.about { grid-template-columns: 1fr; gap: 28px; }
	.about figure { order: -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.wrap { padding-inline: 18px; }
	/* Na mobilu hlavička nelepí: logo nahoře, odkazy + E-shop v jednom řádku pod ním */
	.site-header { position: static; }
	.site-header .wrap { flex-wrap: wrap; gap: 4px; padding-block: 10px; min-height: 0; }
	.brand-mark { height: 34px; }
	.nav { width: 100%; }
	.nav ul { flex-wrap: wrap; gap: 2px 0; }
	.nav a { padding: 6px 9px; font-size: .88rem; white-space: nowrap; }
	.nav a.nav-shop { margin-left: auto; padding: 7px 14px; }
	.stats { margin-top: -30px; }
	.stats ul { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 26px; }
}

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

/* --- Tisk ---------------------------------------------------------------- */

@media print {
	.site-header, .cta-band, .hero::before { display: none; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.hero { background: #fff; padding: 0 0 20pt; }
	.site-footer { background: #fff; color: #000; padding-top: 20pt; }
	a { color: #000; }
}
