/*
Theme Name: Dinom
Description: Šablona webu Dinom s.r.o. – celní deklarace a Intrastat. Varianta s fotkami.
Version: 3.2.2
Requires at least: 5.5
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; white-space: nowrap; 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; }

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

/* Úvod: fotka přes celou šířku, text vlevo na ztmaveném přechodu */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__slides { display: grid; }
.slide {
	grid-area: 1 / 1; position: relative; display: flex; align-items: center;
	min-height: clamp(520px, 42vw, 660px);
	visibility: hidden; opacity: 0; pointer-events: none;
	transition: opacity .8s ease, visibility 0s linear .8s;
}
.slide.is-active { visibility: visible; opacity: 1; pointer-events: auto; transition: opacity .8s ease; }
.slide__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.slide__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.slide__photo::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .72) 30%, rgba(10, 18, 32, .3) 55%, rgba(10, 18, 32, 0) 72%),
		linear-gradient(0deg, rgba(10, 18, 32, .55) 0%, rgba(10, 18, 32, 0) 30%);
}
.slide__in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 104px; }
.slide__text { max-width: 600px; }
.slide__title { font-size: clamp(2.5rem, 5vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.02; color: #fff; }
.slide__lead { margin-top: 22px; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.6; color: #dde3eb; }
.slide .actions { margin-top: 34px; }

.hero__bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; padding-bottom: 36px; pointer-events: none; }
.hero__bar > * { pointer-events: auto; }
.slider__dots { display: flex; gap: 8px; }
.slider__dot {
	position: relative; overflow: hidden; width: 12px; height: 8px; padding: 0; border: 0; border-radius: 99px;
	background: rgba(255, 255, 255, .35); cursor: pointer;
	transition: width .3s var(--ease), background-color .3s ease;
}
.slider__dot[aria-selected="true"] { width: 48px; }
.slider__dot::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.slider__dot[aria-selected="true"]::after { transform: scaleX(1); }
.slider__dot:hover { background: rgba(255, 255, 255, .6); }

.clo { width: clamp(64px, 5.5vw, 84px); overflow: visible; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .35)); 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; }

/* Věta o firmě, karty s fotkami a postup */
.intro { padding: clamp(56px, 7vw, 96px) 0 var(--sec); }
.intro__text { max-width: 44em; margin: 0 auto; text-align: center; font-size: clamp(1.25rem, 2vw, 1.625rem); line-height: 1.5; letter-spacing: -0.01em; color: var(--ink-2); }
.intro__text strong { color: var(--red); font-weight: 700; }
.intro__place { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 18px 0 0; font-size: .9375rem; color: var(--muted); text-align: center; }
.intro__place .icon { width: 20px; height: 20px; color: var(--red); }

.cards { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.3; background: var(--navy); isolation: isolate; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 18, 32, .92) 0%, rgba(10, 18, 32, .55) 42%, rgba(10, 18, 32, 0) 70%); }
.card::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--red); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 26px 26px; color: #dde3eb; }
.card__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--red); color: #fff; margin-bottom: 16px; }
.card__icon .icon { width: 24px; height: 24px; }
.card__title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.card__title a { color: #fff; text-decoration: none; display: inline-flex; gap: .4em; align-items: baseline; }
.card__title a::after { content: "→"; font-weight: 500; transition: transform .3s var(--ease); }
.card__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card p { margin-top: 6px; font-size: .9375rem; line-height: 1.5; max-width: 26em; }
.card:hover img { transform: scale(1.05); }
.card:hover::after { transform: scaleY(1); }
.card:hover .card__title a::after { transform: translateX(4px); }
.card:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.card__title a:focus-visible { outline: none; }

.steps { margin-top: 20px; display: grid; gap: 28px; background: var(--paper-2); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px); }
.steps__title { font-size: clamp(1.375rem, 2vw, 1.75rem); }
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 64px; }
.steps__list li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; font-size: .9375rem; line-height: 1.45; color: var(--ink-2); }
.steps__list strong { display: block; color: var(--ink); font-size: 1.0625rem; line-height: 1.3; margin-bottom: 3px; }
.steps__list li + li::before { content: "→"; position: absolute; left: -44px; top: 50%; translate: 0 -50%; color: var(--red); font-size: 1.375rem; font-weight: 600; }
.steps__icon { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); color: var(--red); box-shadow: 0 10px 24px -14px rgba(15, 27, 45, .45); }
.steps__num { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: .75rem; font-weight: 700; }

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

/* Záhlaví s fotkou přes celou šířku (O nás, Naše služby) */
.page-head--photo { background: var(--navy); color: #fff; }
.page-head__photo { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-head__photo img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-head__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .7) 32%, rgba(10, 18, 32, .25) 60%, rgba(10, 18, 32, 0) 78%); }
.page-head--photo .page-head__in { min-height: clamp(360px, 30vw, 460px); padding-top: clamp(56px, 6vw, 88px); padding-bottom: clamp(56px, 6vw, 88px); }
.page-head--photo .page-head__text { max-width: 620px; }
.page-head--photo .crumbs, .page-head--photo .crumbs a { color: rgba(255, 255, 255, .72); }
.page-head--photo .crumbs a:hover { color: #fff; }
.page-head--photo h1 { color: #fff; }
.page-head--photo .lead { color: #dde3eb; }
.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 drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@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) .1s both; }
	.slide.is-active .slide__lead { animation: in-up .8s var(--ease) .18s both; }
	.slide.is-active .actions { animation: in-up .8s var(--ease) .26s both; }
	.slide.is-active .slide__photo img { animation: drift var(--slide-ms, 7000ms) linear both; }
	.page-head__photo img { animation: drift 9s var(--ease) both; }
	.flows__pulse { animation: pulse 1.8s ease-out infinite; }
	.clo { animation: sway 5s ease-in-out infinite; }
	.hero.is-playing .slider__dot[aria-selected="true"]::after { animation: dot-fill var(--slide-ms, 7000ms) linear both; }
	.hero.is-paused .slider__dot[aria-selected="true"]::after, .hero.is-paused .slide.is-active .slide__photo img { 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)); }
}

/* Menu se do jednoho řádku nevejde: rozbalovací tlačítko */
@media (max-width: 1100px) {
	.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; }
}

/* Mobil a menší tablet */
@media (max-width: 960px) {

	.slide { align-items: flex-end; min-height: 600px; }
	.slide__photo img { object-position: 70% center; }
	.slide__photo::after { background: linear-gradient(0deg, rgba(10, 18, 32, .94) 0%, rgba(10, 18, 32, .8) 45%, rgba(10, 18, 32, .2) 80%, rgba(10, 18, 32, .1) 100%); }
	.slide__in { padding-top: 120px; padding-bottom: 88px; }
	.hero__bar { padding-bottom: 28px; }
	.cards { grid-template-columns: minmax(0, 1fr); }
	.card { aspect-ratio: 16 / 10; }
	.steps__list { grid-template-columns: minmax(0, 1fr); }
	.steps__list li + li::before { content: none; }
	.flows__label { font-size: 28px; stroke-width: 7px; }
	.flows__home-label { font-size: 32px; }
	.flows__city { r: 8; }
	.clo { width: 54px; }

	.page-head__in, .list-icons { grid-template-columns: minmax(0, 1fr); }
	.page-head__visual { min-height: 240px; }
	.page-head__photo img { object-position: 72% center; }
	.page-head__photo::after { background: linear-gradient(0deg, rgba(10, 18, 32, .92) 0%, rgba(10, 18, 32, .75) 50%, rgba(10, 18, 32, .35) 100%); }
	.page-head--photo .page-head__in { min-height: 420px; align-content: end; }
	.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: flex-start; gap: 20px; }
	.slide .actions .btn { align-self: stretch; }
	.intro__text { text-align: left; }
	.intro__place { justify-content: flex-start; text-align: left; }
	.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, .hero__bar { display: none; }
	.site-foot { background: none; color: #000; }
}

/* Poptávka */
.inquiry { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 5vw, 72px); padding-bottom: var(--sec); scroll-margin-top: 32px; }
.inquiry__intro { padding-top: 24px; }
.inquiry__eyebrow { color: var(--red); font-weight: 600; font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.inquiry__intro h2 { margin-bottom: 24px; }
.inquiry__intro > p:not(.inquiry__eyebrow) { color: var(--ink-2); max-width: 38ch; }
.inquiry__panel { min-width: 0; background: var(--paper-2); }
.inquiry__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.inquiry__field--wide { grid-column: 1 / -1; }
.inquiry__field label { display: block; margin-bottom: 7px; font-size: .9375rem; font-weight: 600; }
.inquiry__field input, .inquiry__field textarea { display: block; width: 100%; min-width: 0; border: 1px solid #a8b1bf; border-radius: 8px; padding: 12px 14px; color: var(--ink); background: var(--paper); font: inherit; line-height: 1.5; }
.inquiry__field textarea { resize: vertical; min-height: 150px; }
.inquiry__field [aria-invalid="true"] { border-color: var(--red); }
.inquiry__hint { font-size: .875rem; }
.inquiry__form button { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.inquiry__errors { margin-bottom: 24px; padding: 18px 20px; border-left: 3px solid var(--red); background: var(--red-tint); }
.inquiry__errors ul { margin: 8px 0 0; padding-left: 20px; }
.inquiry__success { padding: 20px 0; }
.inquiry__success > .icon { color: var(--green); width: 40px; height: 40px; margin-bottom: 18px; }
.inquiry__success h3 { margin-bottom: 16px; }
@media (max-width: 960px) {
	.inquiry { grid-template-columns: 1fr; }
	.inquiry__intro { padding-top: 0; }
	.inquiry__intro > p:not(.inquiry__eyebrow) { max-width: 60ch; }
}
@media (max-width: 540px) {
	.inquiry__fields { grid-template-columns: 1fr; }
	.inquiry__form button { width: 100%; }
}

/* Content blocks and the editor preview. */
.dinom-fotka img{display:block;width:100%;height:auto}.dinom-fotka figcaption{margin-top:1rem;color:#52616b}
html[data-zr-upravy] [data-reveal]{opacity:1!important;transform:none!important}
html[data-zr-upravy] .hero{height:auto;min-height:0}
html[data-zr-upravy] .hero__slides{display:block}
html[data-zr-upravy] .slide{position:relative!important;display:block!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;min-height:580px}
html[data-zr-upravy] .hero__bar{display:none}
html[data-zr-upravy] .slide__in{min-height:580px}
