/* ==========================================================================
   Heideker.cz — redesign 2026
   Jeden stylopis pro celý web. Bez frameworků, bez externích fontů.
   Barvy navazují na původní schéma (červená #E01900, modrá #0099D9).
   ========================================================================== */

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

	--bg: #ffffff;
	--bg-alt: #f4f6f9;
	--surface: #ffffff;
	--ink: #0e1116;
	--ink-soft: #54606f;
	--line: #e2e8ef;

	--accent: #e01900;
	--accent-hover: #b31400;
	--accent-ink: #ffffff;
	--blue: #0099d9;

	--dark: #0e1116;
	--dark-soft: #98a4b4;
	--dark-line: #232b36;

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

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e1116;
		--bg-alt: #141a21;
		--surface: #171e26;
		--ink: #e8edf4;
		--ink-soft: #9dabbd;
		--line: #242d39;
		--accent: #ff3b21;
		--accent-hover: #ff5f4a;
		--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.6rem); }
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: baseline;
	font-size: 1.15rem; font-weight: 800; letter-spacing: -.03em;
	color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--accent); }

.nav ul { display: flex; 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.is-active { color: var(--ink); font-weight: 600; background: var(--bg-alt); }

/* --- 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(224, 25, 0, .28);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); transform: translateY(-2px); }
.btn-primary:active { transform: translateY(0); }
.btn svg { flex: none; }

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

.hero {
	position: relative; overflow: hidden;
	background: var(--dark); color: #fff;
	padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
}
.hero::before {
	content: ""; position: absolute; inset: 0;
	background:
		radial-gradient(60% 80% at 78% 12%, rgba(224, 25, 0, .32), transparent 62%),
		radial-gradient(50% 70% at 8% 92%, rgba(0, 153, 217, .22), transparent 60%);
}
.hero::after {
	content: ""; position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
	-webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 35%, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; max-width: 900px; }
.hero .eyebrow { color: #ff7a68; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero p { color: #c4cede; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); max-width: 62ch; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.hero-note { color: var(--dark-soft); font-size: .92rem; margin: 0; }

/* 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; }

/* Sortiment — štítky */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li {
	padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--surface); font-size: .98rem; font-weight: 500;
}

/* Hlavička podstránky */
.page-head {
	background: var(--bg-alt);
	border-bottom: 1px solid var(--line);
	padding: clamp(48px, 7vw, 88px) 0;
}
.page-head .eyebrow { color: var(--accent); }
.page-head h1 { max-width: 18ch; }
.page-head p { max-width: 62ch; margin-bottom: 0; color: var(--ink-soft); font-size: 1.12rem; }

/* --- 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); }

.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);
}

/* Odkazy na dopravce */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.link-card {
	display: flex; flex-direction: column; gap: 8px;
	background: var(--surface); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 26px;
	color: var(--ink); text-decoration: none;
	transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.link-card:hover {
	color: var(--ink); transform: translateY(-3px);
	border-color: var(--accent);
	border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
	box-shadow: var(--shadow);
}
.link-card strong { font-size: 1.15rem; letter-spacing: -.02em; }
.link-card span { color: var(--ink-soft); font-size: .95rem; }
.link-card em { font-style: normal; font-weight: 600; color: var(--accent); font-size: .95rem; }

/* 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ě */
}
.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; }

address { font-style: normal; }

/* 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: 800; letter-spacing: -.03em; color: #fff; }
.footer-brand span { color: var(--accent); }
.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: 860px) {
	.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; }
	.site-header .wrap { flex-direction: column; gap: 6px; padding-block: 12px; min-height: 0; }
	.nav ul { flex-wrap: wrap; justify-content: center; }
	.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, .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; }
}
