/*
Theme Name: Dinom
Description: Šablona webu Dinom s.r.o. – celní deklarace a Intrastat.
Version: 2.1.0
Requires at least: 6.3
Requires PHP: 8.0
Text Domain: dinom
*/

/* Písmo Archivo (proměnná šířka i tloušťka) a IBM Plex Mono pro kódy, uložené v šabloně */
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(assets/fonts/archivo-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(assets/fonts/archivo-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ibm-plex-mono-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
	--ink: #0f1b2d;
	--ink-2: #3b4757;
	--muted: #677284;
	--line: #e3e7ec;
	--paper: #ffffff;
	--paper-2: #f4f6f9;

	--red: #b91717;
	--red-dark: #961111;
	--red-tint: #fbe8e8;
	--blue: #1c4fa3;
	--blue-tint: #e5edf9;
	--green: #0c8f6f;
	--green-tint: #dff3ec;
	--yellow: #d99413;
	--yellow-tint: #fcf1da;
	--navy: #0f1b2d;

	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "Plex Mono", ui-monospace, Menlo, monospace;
	--ease: cubic-bezier(.16, 1, .3, 1);

	--gutter: clamp(20px, 5vw, 64px);
	--max: 1280px;
	--sec: clamp(72px, 9vw, 120px);
	--radius: 18px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--red); color: #fff; }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; font-stretch: 106%; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 4px; }

.icon { width: 24px; height: 24px; flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 8px; top: -60px; z-index: 30; padding: 10px 14px; background: var(--ink); color: #fff; }
.skip:focus { top: 8px; }

/* Tlačítka a odkazy */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 28px;
	background: var(--red); color: #fff; border-radius: 12px;
	font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
	transition: background-color .2s ease, transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; }
.btn:hover { background: var(--red-dark); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }

.text-link { color: var(--ink); font-weight: 600; }

.arrow-link {
	display: inline-flex; gap: .45em; align-items: baseline;
	font-weight: 600; text-decoration: none; color: var(--ink);
	border-bottom: 2px solid var(--line); padding-bottom: 2px;
	transition: border-color .2s ease, color .2s ease;
}
.arrow-link::after { content: "→"; transition: transform .3s var(--ease); }
.arrow-link:hover { color: var(--red); border-color: var(--red); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link--light { color: #fff; border-color: rgba(255, 255, 255, .3); }
.arrow-link--light:hover { color: #fff; border-color: #fff; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }

/* Hlavička */
.site-head { background: var(--paper); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; gap: 40px; min-height: 88px; }
.brand { flex: none; }
.brand img { width: 186px; height: auto; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.nav a {
	display: block; padding: 9px 14px; border-radius: 10px;
	font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none;
	transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--red); background: var(--red-tint); }

.head-tel {
	display: flex; flex-direction: column; align-items: flex-end;
	padding-left: 24px; border-left: 1px solid var(--line);
	text-decoration: none; line-height: 1.25;
}
.head-tel__label { font-size: .75rem; color: var(--muted); }
.head-tel__num { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.head-tel:hover .head-tel__num { color: var(--red); }

.nav-toggle {
	display: none; margin-left: auto;
	align-items: center; gap: 10px; min-height: 44px; padding: 0 4px;
	background: none; border: 0; color: var(--ink);
	font: 600 .9375rem var(--font); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s ease; }
.nav-toggle__bars { box-shadow: 0 -6px 0 currentColor; top: 3px; }
.nav-toggle__bars::before { content: ""; top: 6px; position: absolute; left: 0; }
.is-open .nav-toggle__bars { box-shadow: none; transform: rotate(45deg); top: 0; }
.is-open .nav-toggle__bars::before { transform: rotate(-90deg); top: 0; }

/* Slider v úvodu */
.slider { overflow: hidden; }
.slider__in {
	display: grid; grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "dots" "slides" "trust";
	padding-top: clamp(32px, 5vw, 64px);
}
.slider__dots { grid-area: dots; display: flex; gap: 8px; position: relative; z-index: 3; }
.slider__dot {
	position: relative; overflow: hidden; width: 12px; height: 8px; padding: 0; border: 0; border-radius: 99px;
	background: var(--line); cursor: pointer;
	transition: background-color .3s ease;
}
.slider__dot[aria-selected="true"] { width: 48px; }
.slider__dot::after { content: ""; position: absolute; inset: 0; background: var(--dot-tone, var(--red)); transform: scaleX(0); transform-origin: left; }
.slider__dot[aria-selected="true"]::after { transform: scaleX(1); }
.slider__dot:hover { background: #cfd5dc; }
.slider__dot--red { --dot-tone: var(--red); }
.slider__dot--blue { --dot-tone: var(--blue); }
.slider__dot--green { --dot-tone: var(--green); }

.slide {
	grid-area: slides; position: relative;
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 24px;
	min-height: clamp(400px, 36vw, 580px);
	visibility: hidden; opacity: 0; pointer-events: none;
	transition: opacity .5s ease, visibility 0s linear .5s;
}
.slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .5s ease; }

.slide__text { position: relative; z-index: 3; padding: 24px 0 40px; }
.slide__title { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.02; max-width: 11ch; }
.slide__lead { margin-top: 24px; max-width: 30em; font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.6; color: var(--ink-2); }
.slide .actions { margin-top: 36px; }

.slide__media { position: relative; height: 100%; min-height: inherit; align-self: stretch; }

/* Vozidlo a kontejnery na bílé, stín pod nimi je zapečený přímo v obrázku */
.vehicle { position: absolute; z-index: 2; aspect-ratio: var(--ratio); }
.vehicle img { display: block; width: 100%; height: 100%; }
.slide--blue .vehicle { width: min(64%, 460px); left: 50%; top: 50%; translate: -50% -46%; }

/* Kamion v záhlaví O nás se zleva plynule ztrácí do bílé, bez viditelného přechodu */
.page-head--kamion .vehicle img {
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .2) 13%, rgba(0, 0, 0, .42) 20%, rgba(0, 0, 0, .66) 27%, rgba(0, 0, 0, .86) 34%, #000 42%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .06) 6%, rgba(0, 0, 0, .2) 13%, rgba(0, 0, 0, .42) 20%, rgba(0, 0, 0, .66) 27%, rgba(0, 0, 0, .86) 34%, #000 42%);
}

/* Úvodní obrázek: loď, letadlo a kamion; začíná na kraji pravého sloupce a vpravo sahá blíž ke kraji obrazovky */
.slide__hero {
	--bleed: max(var(--gutter), (100vw - var(--max)) / 2);
	--right: calc(min(var(--bleed) * .65, 140px) - var(--bleed));
	position: absolute; z-index: 1; top: 50%;
	right: var(--right); width: calc(100% - var(--right)); aspect-ratio: 2780 / 1660;
	/* velikost a posun obrázku: hodnoty v řádku hero-nastaveni níže */
	scale: var(--hero-scale); transform-origin: right center;
	translate: var(--hero-x) calc(-50% + var(--hero-y));
}
/* hero-nastaveni */ .slide__hero { --hero-scale: 0.83; --hero-x: -26%; --hero-y: -1.5%; } /* /hero-nastaveni */
.slide__hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
/* zleva jemný bílý přechod, aby obrázek plynule vycházel z bílé */
.slide__hero img {
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .15) 6%, rgba(0, 0, 0, .45) 12%, rgba(0, 0, 0, .78) 19%, #000 27%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .15) 6%, rgba(0, 0, 0, .45) 12%, rgba(0, 0, 0, .78) 19%, #000 27%);
}

/* Mapa pro Intrastat */
.slide__map { position: absolute; z-index: 2; inset: 2% -4% 4% 0; display: grid; place-items: center; }
.slide__map > img, .slide__map .flows { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; }
.slide__map > img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.flows { overflow: visible; position: relative; z-index: 1; }
.flows__arc { fill: none; stroke: #0c8f6f; stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; opacity: .75; }
.flows__out { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
.flows__in { fill: var(--blue); stroke: #fff; stroke-width: 2.5; }
.flows__city { fill: #fff; stroke: var(--ink); stroke-width: 2.5; }
.flows__label { font: 600 17px var(--font); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 5px; }
.flows__home { fill: var(--red); stroke: #fff; stroke-width: 3; }
.flows__pulse { fill: var(--red); opacity: .25; transform-box: fill-box; transform-origin: center; }
.flows__home-label { font: 700 20px var(--font); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 6px; }

.slider__in { position: relative; }
.clo { position: absolute; z-index: 5; width: clamp(72px, 6vw, 92px); right: var(--gutter); top: clamp(12px, 2vw, 28px); overflow: visible; filter: drop-shadow(0 10px 14px rgba(15, 27, 45, .22)); transform-origin: 50% 0; }
.clo circle { fill: #fff; stroke: #d0161f; stroke-width: 12; }
.clo text { font: 700 26px var(--font); font-stretch: 100%; text-anchor: middle; fill: #161616; letter-spacing: .02em; }
.clo path { stroke: #161616; stroke-width: 3; }

.slider__trust { grid-area: trust; display: flex; align-items: center; gap: 10px; margin: 0; padding: 20px 0 28px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--ink-2); position: relative; z-index: 3; background: var(--paper); }
.slider__trust .icon { color: var(--red); width: 20px; height: 20px; }

/* Sekce */
.sec { padding: var(--sec) 0; }
.sec__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px 40px; margin-bottom: 40px; }

.about-home { background: var(--paper-2); }
.about-home__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }
.about-home h2 { margin-bottom: 24px; }
.about-home__lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink) !important; }
.about-home p { color: var(--ink-2); max-width: 38em; }
.why { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); box-shadow: 0 24px 48px -32px rgba(15, 27, 45, .3); }
.why h2 { font-size: 1.5rem; margin-bottom: 20px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.why__list li { display: flex; align-items: center; gap: 16px; font-weight: 600; font-size: 1.0625rem; }
.why__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; flex: none; }
.why__icon .icon { width: 24px; height: 24px; }
.why__icon--red { background: var(--red-tint); color: var(--red); }
.why__icon--blue { background: var(--blue-tint); color: var(--blue); }
.why__icon--green { background: var(--green-tint); color: var(--green); }
.why__icon--yellow { background: var(--yellow-tint); color: var(--yellow); }

.svc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc__item { --tone: var(--red); --tint: var(--red-tint); background: var(--tint); border-radius: var(--radius); padding: 28px 24px 30px; }
.svc__item--blue { --tone: var(--blue); --tint: var(--blue-tint); }
.svc__item--green { --tone: var(--green); --tint: var(--green-tint); }
.svc__item--yellow { --tone: var(--yellow); --tint: var(--yellow-tint); }
.svc__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--tone); color: #fff; }
.svc__icon .icon { width: 26px; height: 26px; }
.svc__item { position: relative; transition: box-shadow .25s ease; }
.svc__item:hover { box-shadow: 0 22px 40px -26px rgba(15, 27, 45, .45); }
.svc__item h3 { margin-top: 22px; }
.svc__item h3 a { color: inherit; text-decoration: none; }
.svc__item h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.svc__item:hover h3 a { color: var(--tone); }
.svc__item ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.svc__item ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: .9375rem; line-height: 1.45; }
.svc__item ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.svc__note { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: var(--ink-2); }
.svc__note .icon { color: var(--red); }

/* Intrastat na tmavém pásu */
.intra { background: var(--navy); color: #d5dce6; padding: var(--sec) 0; }
.intra h2 { color: #fff; margin-bottom: 20px; }
.intra p { max-width: 36em; }
.intra .arrow-link { margin-top: 24px; }
.intra__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: center; }

.flow { display: grid; gap: 32px; }
.flow__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 14px; }
.flow__node { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 10px; padding: 12px 18px; min-width: 100px; text-align: center; font-weight: 600; }
.flow__line { position: relative; height: 11px; overflow: hidden; }
.flow__line::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: rgba(255, 255, 255, .45); }
.flow__line::after { content: ""; position: absolute; right: 2px; top: 2px; width: 7px; height: 7px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
.flow__row--back .flow__line::after { right: auto; left: 2px; transform: rotate(-135deg); }
.flow__run { position: absolute; inset: 0; transform: translateX(-100%); }
.flow__dot { position: absolute; right: 0; top: 1px; width: 9px; height: 9px; border-radius: 50%; background: #3ed3a8; box-shadow: 0 0 0 4px rgba(62, 211, 168, .18); }
.flow__row--back .flow__run { transform: translateX(100%); }
.flow__row--back .flow__dot { right: auto; left: 0; background: #ffc94a; box-shadow: 0 0 0 4px rgba(255, 201, 74, .18); }
.flow__label { grid-column: 1 / -1; margin: 14px 0 0; }
.flow__label strong { display: block; margin-top: 2px; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; font-stretch: 106%; letter-spacing: -0.02em; color: #fff; }
.flow__note { font-size: .875rem; color: #9aa7b8; margin: 0; }

/* Reference */
.quote-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 96px); }
.quote { margin: 0; position: relative; padding-left: clamp(0px, 4vw, 56px); }
.quote::before { content: "„"; position: absolute; left: 0; top: -.35em; font-size: 5rem; line-height: 1; font-weight: 800; color: var(--red); }
.quote blockquote { margin: 0; font-size: clamp(1.25rem, 2.1vw, 1.625rem); line-height: 1.45; letter-spacing: -0.01em; max-width: 30em; }
.quote figcaption { margin-top: 20px; font-weight: 600; color: var(--muted); }

/* Kontakt na konci úvodní stránky */
.contact-close { background: var(--red); color: #fff; padding: clamp(64px, 8vw, 104px) 0; }
.contact-close__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px clamp(40px, 6vw, 96px); align-items: center; }
.contact-close__label { margin: 0 0 4px; font-weight: 600; color: #ffd9d9; }
.contact-close__tel { display: inline-block; white-space: nowrap; font-size: clamp(1.75rem, 5vw, 4.5rem); font-weight: 800; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; color: #fff; text-decoration: none; }
.contact-close__tel:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.contact-close__mail { margin-top: 16px; color: #ffd9d9; }
.contact-close a { color: #fff; }
.contact-close__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-close__list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; line-height: 1.5; }
.contact-close__list .icon { color: #ffd9d9; margin-top: 1px; }

/* Pole s kontakty (Kontakty) */
.doklad { border: 1px solid var(--line); background: var(--paper); margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 48px -32px rgba(15, 27, 45, .3); }
.doklad__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin: 0; }
.pole { background: var(--paper); padding: 18px 20px 20px; min-width: 0; }
.pole--wide { grid-column: 1 / -1; }
.pole dt { display: flex; gap: 10px; align-items: center; font-size: .8125rem; color: var(--muted); margin-bottom: 6px; }
.pole dt .icon { width: 18px; height: 18px; color: var(--red); }
.pole dd { margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.pole dd a { text-decoration: none; overflow-wrap: normal; }
.pole dd a:hover { text-decoration: underline; }
.pole__big { font-size: clamp(1.25rem, 2vw, 1.625rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* Podstránky */
.page-head { position: relative; overflow: hidden; background: var(--paper-2); }
.page-head__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px; align-items: center; padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(40px, 5vw, 64px); }
.page-head:not(.page-head--visual) .page-head__in { grid-template-columns: minmax(0, 1fr); }
.page-head__visual { position: relative; align-self: stretch; min-height: 380px; }
.page-head--kamion .vehicle { width: min(110%, 560px); right: 0; bottom: 6%; }
.page-head--kontejnery .vehicle { width: min(54%, 360px); left: 50%; bottom: 4%; translate: -50% 0; }
.page-head--cr .page-head__visual .slide__map > img { -webkit-mask-image: none; mask-image: none; }
.page-head--cr .slide__map { inset: 8% 0; }
.page-head__visual .slide__map { inset: 0; }
.page-head--mapa .page-head__visual, .page-head--cr .page-head__visual { min-height: 360px; }
.page-head__visual .slide__map > img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 62%, transparent 100%); }
.crumbs { display: flex; gap: 8px; font-size: .875rem; color: var(--muted); margin-bottom: 24px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--red); }
.page-head h1 { max-width: 18ch; }
.lead { margin-top: 20px; max-width: 36em; font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); color: var(--ink-2); }

.page-body { padding-top: clamp(48px, 6vw, 80px); padding-bottom: var(--sec); }

.list-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list-icons li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 20px; border-radius: 16px; background: var(--paper-2); line-height: 1.5; }
.list-icons__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red); }
.list-icons__icon .icon { width: 22px; height: 22px; }
.list-icons li:nth-child(4n+2) .list-icons__icon { background: var(--blue-tint); color: var(--blue); }
.list-icons li:nth-child(4n+3) .list-icons__icon { background: var(--green-tint); color: var(--green); }
.list-icons li:nth-child(4n+4) .list-icons__icon { background: var(--yellow-tint); color: var(--yellow); }

.two-col { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px clamp(40px, 6vw, 96px); align-items: start; }

.panel { background: var(--paper-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); }
.panel h2 { font-size: 1.375rem; margin-bottom: 16px; }
.panel p + h2 { margin-top: 24px; }
.contact-side { display: grid; gap: 20px; }
.contact-side .panel h2 { font-size: 1.125rem; margin-bottom: 8px; }

.call-band { background: var(--red); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.call-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.call-band p { font-size: clamp(1.125rem, 1.8vw, 1.375rem); line-height: 1.45; max-width: 30em; margin: 0; font-weight: 600; }
.call-band .btn { background: #fff; color: var(--red); }
.call-band .btn:hover { background: #fff3f3; color: var(--red-dark); }
.call-band .text-link { color: #fff; }

.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.375rem, 2vw, 1.75rem); margin: 48px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); }
.prose--page > p > strong:only-child { display: block; margin-top: 44px; color: var(--ink); font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.prose--page > p:first-child > strong:only-child { margin-top: 0; }

.side-note { background: var(--navy); color: #d5dce6; border-radius: var(--radius); padding: 28px; position: sticky; top: 24px; }
.side-note__title { font-size: 1.25rem; font-weight: 700; color: #fff; }
.side-note .btn { margin-top: 8px; }
.side-note .text-link { color: #fff; }

.threshold { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 24px 0 12px; }
.threshold div { background: var(--green-tint); border-radius: 14px; padding: 18px 20px 20px; }
.threshold dt { font-size: .875rem; color: var(--green); font-weight: 600; }
.threshold dd { margin: 4px 0 0; font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }

.svc-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.svc-page .panel ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.svc-page .panel li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid rgba(15, 27, 45, .08); }
.svc-page .panel li:last-child { border-bottom: 0; }
.svc-page .panel li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--red); transform: translateY(-2px); }
.svc-page .panel--blue { background: var(--blue-tint); }
.svc-page .panel--blue li::before { background: var(--blue); }
.svc-extra { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.svc-extra .panel { display: flex; gap: 16px; align-items: center; font-weight: 600; }
.svc-extra .panel .icon { width: 28px; height: 28px; color: var(--red); }
.svc-extra .panel--green { background: var(--green-tint); }
.svc-extra .panel--green .icon { color: var(--green); }

.hours { border-collapse: collapse; width: 100%; max-width: 380px; }
.hours th, .hours td { padding: 10px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 1px solid var(--line); }
.hours td { text-align: right; }

.ledger--links { list-style: none; margin: 0; padding: 0; max-width: 560px; }
.ledger--links li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger--links a { text-decoration: none; font-weight: 600; }

/* Patička */
.site-foot { background: var(--navy); color: #c3ccd8; font-size: .9375rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot__in { display: grid; grid-template-columns: 5fr 4fr 3fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.site-foot__name { color: #fff; font-weight: 700; margin-bottom: 8px; }
.site-foot__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-foot__legal { padding-top: 20px; padding-bottom: 28px; font-size: .8125rem; color: #8b97a8; background: linear-gradient(rgba(255, 255, 255, .12), rgba(255, 255, 255, .12)) no-repeat center top / calc(100% - 2 * var(--gutter)) 1px; }

/* Animace – jen se skriptem a když je uživatel nevypnul */
@keyframes in-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes pulse { from { transform: scale(1); opacity: .35; } to { transform: scale(2.6); opacity: 0; } }
@keyframes in-hero { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes sway { 0%, 100% { rotate: -5deg; } 50% { rotate: 5deg; } }
@keyframes in-shape { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes run-there { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes run-back { from { transform: translateX(100%); } to { transform: translateX(0); } }

@media (prefers-reduced-motion: no-preference) {
	.slide.is-active .slide__title { animation: in-up .8s var(--ease) both; }
	.slide.is-active .slide__lead { animation: in-up .8s var(--ease) .08s both; }
	.slide.is-active .actions { animation: in-up .8s var(--ease) .16s both; }
	.slide.is-active .vehicle { animation: in-up 1.1s var(--ease) .05s both; }
	.slide.is-active .slide__map { animation: in-shape 1.1s var(--ease) both; }
	.flows__pulse { animation: pulse 1.8s ease-out infinite; }
	.clo { animation: sway 5s ease-in-out infinite; }
	.slide.is-active .slide__hero img { animation: in-hero 1.4s var(--ease) both; }
	.slider.is-playing .slider__dot[aria-selected="true"]::after { animation: dot-fill var(--slide-ms, 7000ms) linear both; }
	.slider.is-paused .slider__dot[aria-selected="true"]::after { animation-play-state: paused; }

	.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
	.js [data-reveal].is-in { opacity: 1; transform: none; }

	.flow__run { animation: run-there 2.8s cubic-bezier(.45, 0, .55, 1) infinite; }
	.flow__row--back .flow__run { animation-name: run-back; animation-delay: 1.4s; }
}

@media (prefers-reduced-motion: reduce) {
	.flows__out, .flows__in { display: none; }
}

/* Tablet */
@media (max-width: 1180px) {
	.site-head__in { gap: 20px; }
	.nav a { padding: 9px 10px; }
	.svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobil a menší tablet */
@media (max-width: 960px) {
	.site-head__in { flex-wrap: wrap; min-height: 72px; gap: 0 16px; }
	.brand img { width: 150px; }
	.nav-toggle { display: inline-flex; order: 2; }
	.head-tel { order: 1; margin-left: auto; padding-left: 0; border-left: 0; }
	.head-tel__label { display: none; }
	.nav { display: none; order: 3; flex-basis: 100%; margin: 0; }
	.is-open .nav { display: block; }
	.nav ul { flex-direction: column; gap: 2px; padding: 8px 0 16px; border-top: 1px solid var(--line); }
	.nav a { padding: 12px 14px; font-size: 1.0625rem; }

	.slide { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 0; }
	.slide__text { padding: 16px 0 8px; }
	.slide__media { height: 420px; min-height: 0; }
	.slide--blue .vehicle { width: 70%; }
	.slide__map { inset: 0; }
	/* mobil: celý obrázek menší pod textem, text na střed */
	.slide__media:has(.slide__hero) { height: auto; }
	.slide__hero { position: relative; top: auto; right: auto; translate: none; scale: none; width: 100%; aspect-ratio: 2780 / 1660; margin: 8px 0 4px; }
	.slide__hero img { object-fit: contain; object-position: center; }
	.slider__dots { justify-content: center; }
	.slide__text { text-align: center; }
	.slide__title, .slide__lead { margin-inline: auto; }
	.slide .actions { justify-content: center; }
	.flows__label { font-size: 28px; stroke-width: 7px; }
	.flows__home-label { font-size: 32px; }
	.flows__city { r: 8; }
	.clo { width: 50px; right: var(--gutter); top: 10px; }

	.page-head__in, .list-icons { grid-template-columns: minmax(0, 1fr); }
	.page-head__visual { min-height: 240px; }
	.about-home__in, .intra__in, .quote-wrap, .contact-close__in, .two-col, .svc-page, .svc-extra { grid-template-columns: minmax(0, 1fr); }
	.side-note { position: static; }
	.site-foot__in { grid-template-columns: 1fr 1fr; }
	.site-foot__nav { grid-column: 1 / -1; }
	.site-foot__nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
}

@media (max-width: 600px) {
	body { font-size: 1rem; }
	.head-tel__num { font-size: .9375rem; }
	.brand img { width: 132px; }
	.svc { grid-template-columns: minmax(0, 1fr); }
	.slide .actions { flex-direction: column; align-items: stretch; }
	.slide .actions .arrow-link { align-self: center; }
	.slide__media { height: 360px; }
	.site-foot__in { grid-template-columns: minmax(0, 1fr); }
	.doklad__grid { grid-template-columns: minmax(0, 1fr); }
	.flow__node { min-width: 0; padding: 10px 12px; font-size: .9375rem; }
	.threshold { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
	.brand img { width: 120px; }
	.nav-toggle { font-size: 0; gap: 0; padding: 0 0 0 12px; }
	.head-tel__num { font-size: .875rem; }
}

@media print {
	.site-head .nav, .nav-toggle, .call-band, .side-note, .slider__dots { display: none; }
	.site-foot { background: none; color: #000; }
}
