/* ==========================================================================
   Nitro Motors SK — redesign 2026
   Jeden stylopis pro celý web. Bez frameworků, bez externích fontů.
   Stejná kostra jako heideker.cz, vlastní barevnost (oranžová „nitro“).
   ========================================================================== */

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

	--bg: #ffffff;
	--bg-alt: #f5f6f8;
	--surface: #ffffff;
	--ink: #111317;
	--ink-soft: #5a6472;
	--line: #e3e7ed;

	--accent: #ea5a0c;
	--accent-hover: #c74a07;
	--accent-ink: #ffffff;

	--dark: #111317;
	--dark-soft: #9aa4b2;
	--dark-line: #262b33;

	--shadow: 0 1px 2px rgba(17, 19, 23, .05), 0 10px 30px rgba(17, 19, 23, .07);
	--shadow-sm: 0 1px 2px rgba(17, 19, 23, .06);
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #111317;
		--bg-alt: #171a20;
		--surface: #1b1f26;
		--ink: #e9edf3;
		--ink-soft: #a0abba;
		--line: #272d36;
		--accent: #ff7a3d;
		--accent-hover: #ff9663;
		--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.4vw, 3.7rem); }
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 ------------------------------------------------------------ */

/* Hlavička je tmavá v obou režimech — původní logo Nitro Motors má tmavé pozadí */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: var(--dark);
	background: color-mix(in srgb, var(--dark) 90%, transparent);
	border-bottom: 1px solid var(--dark-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; text-decoration: none; }
.brand img { display: block; height: 40px; width: auto; border-radius: 6px; }

.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(--dark-soft); font-size: .95rem; font-weight: 500; text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.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;
}
.btn-primary {
	background: var(--accent); color: var(--accent-ink);
	box-shadow: 0 8px 24px rgba(234, 90, 12, .3);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
	background: transparent; color: #fff;
	box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35);
}
.btn-ghost:hover { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); transform: translateY(-2px); }
.btn svg { flex: none; }

/* --- Hero ---------------------------------------------------------------- */

.hero {
	position: relative; overflow: hidden; isolation: isolate;
	background: var(--dark); color: #fff;
	padding: clamp(72px, 10vw, 140px) 0 clamp(80px, 11vw, 150px);
}
.hero-bg {
	position: absolute; inset: 0; z-index: -2;
}
.hero-bg img {
	width: 100%; height: 100%; object-fit: cover; object-position: center 100%;
	filter: saturate(.9);
}
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(17, 19, 23, .92) 0%, rgba(17, 19, 23, .78) 45%, rgba(17, 19, 23, .35) 100%),
		linear-gradient(180deg, rgba(17, 19, 23, .25), rgba(17, 19, 23, .55));
}
.hero::after {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(55% 70% at 85% 15%, rgba(234, 90, 12, .35), transparent 65%);
}
.hero .wrap { position: relative; max-width: 940px; margin-inline: 0; padding-left: max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); }
.hero .eyebrow { color: #ff9b6a; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero p { color: #d2d8e2; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 58ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; }

/* 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 */
.tiles {
	display: grid; gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); /* 9 dlaždic = 3×3 */
	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: var(--bg-alt);
}
.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;
	display: inline-flex; align-items: center; gap: 6px;
}

/* Vybrané modely — karta s fotkou, parametry a odkazem do kategorie e-shopu */
.products {
	display: grid; gap: 22px;
	grid-template-columns: repeat(auto-fill, minmax(320px, 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: 3 / 2; background: #fff; }
.product-media img { width: 100%; height: 100%; object-fit: cover; 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-note { margin: 26px 0 0; color: var(--ink-soft); font-size: .9rem; max-width: 70ch; }

/* Karty „prečo“ */
.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čke — 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); }
.about figure img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.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 { margin: 0 0 14px; }
.footer-brand img { display: block; height: 46px; width: auto; border-radius: 6px; }
.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) {
	.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; }
	.hero .wrap { padding-left: 18px; }
	/* Na mobilu hlavička nelepí (brala by půl obrazovky): 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 img { height: 34px; }
	.nav { width: 100%; }
	.nav ul { gap: 0; }
	.nav a { padding: 6px 10px; font-size: .9rem; }
	.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-bg, .hero::before, .hero::after { display: none; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.hero { background: #fff; color: #000; padding: 0 0 20pt; }
	.hero h1, .hero p { color: #000; }
	.site-footer { background: #fff; color: #000; padding-top: 20pt; }
	a { color: #000; }
}
