/*
Theme Name:  Chrobák
Theme URI:   https://tomaschrobak.cz
Author:      Tomáš Chrobák
Author URI:  https://tomaschrobak.cz
Description: Lehká, výkonná custom šablona pro tomaschrobak.cz. Bez page builderu, bez frontend frameworků, postavená na theme.json a nativním Gutenbergu.
Version:     1.0.14
Requires at least: 6.4
Requires PHP: 8.0
Tested up to: 6.6
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chrobak
*/

/* ==========================================================================
   Obsah
   0. Vlastní fonty (self-hosted)
   1. Reset & základy
   2. Design tokeny (doplňky k theme.json)
   3. Typografie
   4. Layout & kontejnery
   5. Přístupnost & utility
   6. Header & navigace
   7. Homepage sekce
   8. Patička
   9. Redakční obsah (Gutenberg core bloky)
   10. Komponenty (karty, tlačítka mimo theme.json, badge)
   11. Média
   ========================================================================== */

/* -------------------------------------------------------------------------
   0. Vlastní fonty — stejné jako na současném webu (Alata pro nadpisy,
   Inter pro text). Lokální, jen latin + latin-ext (diakritika), font-display: swap.
   ------------------------------------------------------------------------- */
@font-face {
	font-family: 'Alata';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/alata-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: 'Alata';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fonts/alata-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: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter-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: 'Inter';
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url('assets/fonts/inter-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;
}

/* -------------------------------------------------------------------------
   1. Reset & základy
   ------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	background: var(--wp--preset--color--surface, #fff);
	color: var(--wp--preset--color--ink, #0f1b2d);
	font-family: var(--wp--preset--font-family--sans);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }

button, input, textarea, select { font: inherit; color: inherit; }

a { color: var(--wp--preset--color--accent, #29c4a9); }

ul, ol { padding: 0; margin: 0; list-style: none; }

/* -------------------------------------------------------------------------
   2. Design tokeny (doplňky k theme.json — přechody, stíny, rytmus sekcí)
   ------------------------------------------------------------------------- */
:root {
	--transition-fast: 150ms ease;
	--transition-base: 220ms cubic-bezier(.4,0,.2,1);
	--shadow-sm: 0 1px 2px rgba(15,27,45,.06), 0 1px 1px rgba(15,27,45,.04);
	--shadow-md: 0 8px 24px rgba(15,27,45,.10), 0 2px 6px rgba(15,27,45,.06);
	--shadow-lg: 0 20px 48px rgba(15,27,45,.16);
	--section-space: clamp(3.5rem, 3rem + 3vw, 7rem);
	--section-space-sm: clamp(2.25rem, 2rem + 1.5vw, 3.5rem);
	--header-h: 4.5rem;
	/* Tmavší varianta accent teal — samotná --color-accent na bílém pozadí neprochází WCAG AA kontrastem (cca 2,2:1) */
	--accent-contrast: #1b7a68;
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* -------------------------------------------------------------------------
   3. Typografie
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
	color: var(--wp--preset--color--ink);
}

.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4,
.on-dark p, .on-dark li, .on-dark { color: var(--wp--preset--color--surface); }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5em;
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-contrast);
	font-weight: 600;
	margin: 0 0 1em;
}

/* Nadpisy nemají výchozí prohlížečovou horní mezeru, když jdou hned po eyebrow */
.eyebrow + h1,
.eyebrow + h2,
.eyebrow + h3 { margin-top: 0; }

.balance { text-wrap: balance; }

.text-accent { color: var(--wp--preset--color--accent); }

/* -------------------------------------------------------------------------
   4. Layout & kontejnery
   ------------------------------------------------------------------------- */
.container {
	width: 100%;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.container--narrow { max-width: var(--wp--style--global--content-size, 720px); }

.section { padding-block: var(--section-space); }
.section-sm { padding-block: var(--section-space-sm); }

/* -------------------------------------------------------------------------
   5. Přístupnost & utility
   ------------------------------------------------------------------------- */
.skip-link {
	position: absolute;
	left: 1rem;
	top: -3rem;
	background: var(--wp--preset--color--ink);
	color: #fff;
	padding: .75rem 1.25rem;
	border-radius: var(--wp--custom--radius--sm, 6px);
	z-index: 1000;
	transition: top var(--transition-fast);
	text-decoration: none;
	font-weight: 600;
}

.skip-link:focus { top: 1rem; }

:focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 2px;
}

.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; overflow: hidden; position: absolute !important;
	word-wrap: normal !important; margin: -1px; padding: 0;
}

/* -------------------------------------------------------------------------
   6. Header & navigace
   ------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--wp--preset--color--ink);
	border-bottom: 1px solid rgba(234,240,240,.08);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	height: var(--header-h);
}

.site-logo { display: flex; align-items: center; flex: none; }
.site-logo a { display: flex; }
.site-logo svg,
.site-logo img { width: clamp(9.5rem, 8rem + 4vw, 11.5rem); height: auto; }
.site-logo .custom-logo-link { display: flex; }

.primary-nav { display: none; }

.primary-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(1.25rem, 2vw, 2.25rem);
}

.primary-nav__list a {
	color: var(--wp--preset--color--surface);
	text-decoration: none;
	font-weight: 400;
	font-size: var(--wp--preset--font-size--small);
	padding: .5rem 0;
	position: relative;
}

.primary-nav__list a::after {
	content: "";
	position: absolute;
	left: 0; right: 100%;
	bottom: 0;
	height: 2px;
	background: var(--wp--preset--color--accent);
	transition: right var(--transition-base);
}

.primary-nav__list a:hover::after,
.primary-nav__list a:focus-visible::after,
.primary-nav__list .current-menu-item a::after { right: 0; }

.primary-nav__list .current-menu-item a { color: var(--wp--preset--color--accent); }

.primary-nav__list > li { display: flex; align-items: center; }
.primary-nav__list > .has-submenu { position: relative; }

/* Šipka pro rozbalení podnabídky */
.submenu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	margin-left: .15rem;
	padding: 0;
	background: none;
	border: none;
	color: var(--wp--preset--color--surface);
	cursor: pointer;
}

.submenu-toggle svg {
	width: 1rem;
	height: 1rem;
	transition: transform var(--transition-base);
}

.has-submenu:hover .submenu-toggle svg,
.has-submenu:focus-within .submenu-toggle svg,
.has-submenu.is-open .submenu-toggle svg { transform: rotate(180deg); }

/* Mega menu panel (desktop) */
.sub-menu--mega {
	position: absolute;
	top: calc(100% + 1.25rem);
	left: 50%;
	display: grid;
	grid-template-columns: repeat(2, minmax(13rem, 1fr));
	gap: .15rem;
	width: max-content;
	max-width: 34rem;
	padding: 1rem;
	background: var(--wp--preset--color--ink);
	border: 1px solid rgba(234,240,240,.12);
	border-radius: var(--wp--custom--radius--lg, 20px);
	box-shadow: var(--shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -6px);
	transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
	z-index: 110;
}

.has-submenu:hover .sub-menu--mega,
.has-submenu:focus-within .sub-menu--mega,
.has-submenu.is-open .sub-menu--mega {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, 0);
}

.sub-menu--mega a {
	display: block;
	padding: .7rem .9rem;
	border-radius: var(--wp--custom--radius--md, 12px);
	color: var(--wp--preset--color--surface);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
}

.sub-menu--mega a::after { display: none; }
.sub-menu--mega li:hover > a,
.sub-menu--mega a:focus-visible { background: rgba(234,240,240,.08); }

/* Popisek je vnořený uvnitř odkazu (kvůli klikatelnosti), takže nepotřebuje
   vlastní boční odsazení — to už dává rodičovský odkaz. */
.submenu-desc {
	display: block;
	margin-top: .15rem;
	color: var(--wp--preset--color--surface-muted);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 400;
	line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
	.submenu-toggle svg,
	.sub-menu--mega { transition: none; }
}

.header-actions { display: flex; align-items: center; gap: .75rem; }

.header-actions .header-call {
	display: none;
	padding: .55rem 1.1rem;
}

.header-call .status-dot { margin-left: .3rem; }

.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--wp--custom--radius--sm, 6px);
	background: transparent;
	border: 1px solid rgba(234,240,240,.25);
	color: var(--wp--preset--color--surface);
	cursor: pointer;
	flex: none;
}

.menu-toggle svg { width: 1.25rem; height: 1.25rem; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
	position: fixed;
	inset: var(--header-h) 0 0 0;
	background: var(--wp--preset--color--ink);
	transform: translateY(-8px);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
	overflow-y: auto;
	z-index: 99;
}

.mobile-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; }

.mobile-nav__list {
	display: flex;
	flex-direction: column;
	padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
}

.mobile-nav__list li { border-bottom: 1px solid rgba(234,240,240,.08); }

.mobile-nav__list a {
	display: block;
	padding: 1.1rem 0;
	color: var(--wp--preset--color--surface);
	text-decoration: none;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
}

.mobile-nav__list .current-menu-item a { color: var(--wp--preset--color--accent); }

/* Podnabídka na mobilu funguje jako rozbalovací akordeon, ne jako mega panel */
.mobile-nav__list .has-submenu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}

.mobile-nav__list .has-submenu > a { flex: 1 1 auto; padding-right: 0; }

.mobile-nav__list .submenu-toggle {
	width: 2.75rem;
	height: 2.75rem;
	color: var(--wp--preset--color--surface);
}

.mobile-nav__list .submenu-toggle svg { width: 1.15rem; height: 1.15rem; }

.mobile-nav__list .sub-menu--mega {
	position: static;
	transform: none;
	opacity: 1;
	visibility: visible;
	display: none;
	width: 100%;
	max-width: none;
	grid-template-columns: 1fr;
	gap: 0;
	margin: 0;
	padding: 0 0 1rem;
	background: none;
	border: none;
	box-shadow: none;
	border-radius: 0;
}

.mobile-nav__list .has-submenu.is-open .sub-menu--mega { display: grid; }

/* Vyšší specificita než u desktopového pravidla pro otevřený stav (jinak
   ho přebije translate(-50%, 0) a panel vyjede mimo obrazovku doleva). */
.mobile-nav__list .has-submenu:hover .sub-menu--mega,
.mobile-nav__list .has-submenu:focus-within .sub-menu--mega,
.mobile-nav__list .has-submenu.is-open .sub-menu--mega {
	transform: none;
}

/* Záporný boční margin drží text zarovnaný s položkami menu, ale hover
   pozadí (např. při najetí perem) má kolem textu vlastní vzduch. */
.mobile-nav__list .sub-menu--mega a {
	margin-inline: -.9rem;
	padding: .7rem .9rem;
	font-size: var(--wp--preset--font-size--medium);
	font-weight: 500;
	color: rgba(234,240,240,.85);
}

.mobile-nav__list .submenu-desc { padding: 0; }

.mobile-nav__contact {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

body.no-scroll { overflow: hidden; }

@media (min-width: 62rem) {
	.primary-nav { display: block; }
	.header-actions .header-call { display: inline-flex; }
	.menu-toggle { display: none; }
	.mobile-nav { display: none; }
}

/* -------------------------------------------------------------------------
   7. Homepage sekce
   ------------------------------------------------------------------------- */
.hero {
	position: relative;
	background: var(--wp--preset--color--ink);
	overflow: clip;
	padding-block: clamp(3rem, 4vw + 1rem, 6rem);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(60rem 30rem at 85% 15%, rgba(41,196,169,.18), transparent 60%),
		radial-gradient(40rem 24rem at 100% 100%, rgba(41,196,169,.10), transparent 60%);
	pointer-events: none;
}

.hero__grid {
	position: relative;
	display: grid;
	gap: clamp(2.5rem, 4vw, 4rem);
	align-items: center;
}

.hero__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--huge);
	color: var(--wp--preset--color--surface);
	margin: 0 0 1.25rem;
}

/* Druhá věta nadpisu v nativní tloušťce Alaty (400) — kontrast k ztučněné první větě */
.hero__title-light { font-weight: 400; }

/* Tečky v H1 jako čtverečky (motiv z loga). Skutečná tečka zůstává v textu
   kvůli čtečkám a SEO, jen je průhledná a čtverec se kreslí přes ni.
   Prázdný inline-block sedí spodní hranou na účaří; nowrap brání tomu, aby
   se čtverec odtrhl od tečky na další řádek. Rozměry a posuny jsou změřené
   z glyfu tečky v Alatě (šířka znaku .184em) zvlášť pro ztučněnou (700)
   a základní (400) řeznou tloušťku, takže čtverec kryje tečku přesně. */
.hero__dot {
	--dot-size: .175em;
	--dot-left: .005em;
	--dot-drop: -.025em;
	--dot-color: var(--wp--preset--color--surface);
	letter-spacing: 0; /* šířka znaku pak přesně .184em bez ohledu na letter-spacing nadpisu */
	white-space: nowrap;
	color: transparent;
}
.hero__title-light .hero__dot {
	--dot-size: .1425em;
	--dot-left: .02em;
	--dot-drop: -.01em;
	--dot-color: var(--wp--preset--color--accent);
}
.hero__dot::after {
	content: "";
	display: inline-block;
	width: var(--dot-size);
	height: var(--dot-size);
	margin-left: calc(var(--dot-left) - .184em);
	margin-right: calc(.184em - var(--dot-left) - var(--dot-size));
	vertical-align: var(--dot-drop);
	background: var(--dot-color);
}

.hero__lede {
	color: rgba(234,240,240,.72);
	font-size: var(--wp--preset--font-size--medium);
	max-width: 38ch;
	margin: 0 0 2rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Orbitující designový prvek nahrazující falešný "dashboard" panel */
.hero__orbit {
	position: relative;
	aspect-ratio: 1;
	width: 100%;
	max-width: 26rem;
	justify-self: center;
}

.orbit-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 1px solid rgba(234,240,240,.14);
}

.orbit-ring--inner {
	inset: 14%;
	border: none;
	animation: orbitSpin 32s linear infinite;
}

.orbit-ring--outer { animation: orbitSpin 60s linear infinite reverse; }

.orbit-gear {
	width: 100%;
	height: 100%;
	color: rgba(41,196,169,.4);
}

.orbit-tag-pos {
	position: absolute;
	left: var(--x);
	top: var(--y);
	transform: translate(-50%, -50%);
}

.orbit-tag {
	display: inline-flex;
	align-items: center;
	gap: .45em;
	white-space: nowrap;
	background: rgba(234,240,240,.06);
	border: 1px solid rgba(234,240,240,.14);
	color: var(--wp--preset--color--surface-muted);
	font-size: var(--wp--preset--font-size--x-small);
	padding: .45em .8em;
	border-radius: 999px;
	backdrop-filter: blur(6px);
	animation: orbitFloat 5s ease-in-out infinite;
	animation-delay: var(--delay, 0s);
}

.orbit-tag::before {
	content: "";
	width: .4em;
	height: .4em;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	flex: none;
}

/* Na malých šířkách zmenšíme štítky, ať se všech 13 vejde na kružnici bez přeplácání */
@media (max-width: 47.99rem) {
	.orbit-tag {
		font-size: 0.625rem;
		padding: .3em .55em;
		gap: .3em;
	}
	.orbit-tag::before {
		width: .3em;
		height: .3em;
	}
}

@keyframes orbitSpin {
	to { transform: rotate(360deg); }
}

@keyframes orbitFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

.status-dot {
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	flex: none;
	animation: statusPulse 2.2s ease-out infinite;
}

@keyframes statusPulse {
	0% { box-shadow: 0 0 0 0 rgba(41,196,169,.55); }
	70% { box-shadow: 0 0 0 9px rgba(41,196,169,0); }
	100% { box-shadow: 0 0 0 0 rgba(41,196,169,0); }
}

/* Jemná zář sledující kurzor — viditelná jen nad tmavým pozadím (mix-blend-mode: screen) */
.cursor-glow {
	position: fixed;
	top: 0;
	left: 0;
	width: 17rem;
	height: 17rem;
	margin: -8.5rem 0 0 -8.5rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(41,196,169,.2), transparent 70%);
	filter: blur(10px);
	mix-blend-mode: screen;
	pointer-events: none;
	z-index: 5;
	transform: translate3d(var(--gx, -100px), var(--gy, -100px), 0);
	will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
	.orbit-ring--inner, .orbit-ring--outer, .orbit-tag, .status-dot { animation: none; }
	.cursor-glow { display: none; }
}

@media (pointer: coarse) {
	.cursor-glow { display: none; }
}

@media (min-width: 62rem) {
	.hero__grid { grid-template-columns: 1.1fr .9fr; }
}

/* Pilíře služeb */
.pillars {
	background: linear-gradient(120deg, var(--wp--preset--color--ink) 0%, #163449 55%, #1b7f6f 100%);
	scroll-margin-top: var(--header-h);
}

.pillars__grid {
	display: grid;
	gap: 1px;
	background: rgba(234,240,240,.12);
	border-radius: var(--wp--custom--radius--lg, 20px);
	overflow: hidden;
}

.pillar {
	background: rgba(15,27,45,.55);
	padding: clamp(1.75rem, 3vw, 2.5rem);
	display: flex;
	flex-direction: column;
	gap: 1rem;
	text-decoration: none;
	transition: background var(--transition-base);
}

.pillar:hover, .pillar:focus-visible { background: rgba(15,27,45,.3); }

.pillar__icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: var(--wp--custom--radius--sm, 6px);
	background: rgba(234,240,240,.1);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wp--preset--color--accent);
}

.pillar__icon svg { width: 1.4rem; height: 1.4rem; }

.pillar h2 { color: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--large); margin: 0; }
.pillar p { color: var(--wp--preset--color--surface-muted); margin: 0; font-size: var(--wp--preset--font-size--small); }

.pillar__link {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.pillar__link svg { width: 1rem; height: 1rem; transition: transform var(--transition-base); }
.pillar:hover .pillar__link svg { transform: translateX(3px); }

@media (min-width: 48rem) {
	.pillars__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Proces / konzultace */
.process__grid {
	display: grid;
	gap: clamp(2rem, 4vw, 3rem);
	align-items: center;
}

.process__media {
	position: relative;
	border-radius: var(--wp--custom--radius--lg, 20px);
	overflow: hidden;
	box-shadow: var(--shadow-md);
}

.process__media img { width: 100%; height: auto; }

@media (min-width: 62rem) {
	.process__grid { grid-template-columns: 1.1fr .9fr; }
}

/* Výsledky / outcomes */
/* Stejné bílé pozadí jako sekce před ní — méně horního odsazení, ať mezi nimi není mrtvý prostor */
.outcomes { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); }

.outcomes__heading { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); margin-bottom: 2.5rem; }

.outcomes__grid {
	display: grid;
	gap: 1.5rem;
}

.outcome-card {
	border-radius: var(--wp--custom--radius--lg, 20px);
	padding: clamp(2rem, 4vw, 3rem);
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface);
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.outcome-card--accent {
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
}

.outcome-card__icon {
	width: 3.75rem;
	height: 3.75rem;
	border-radius: var(--wp--custom--radius--md, 12px);
	background: rgba(234,240,240,.12);
	display: flex;
	align-items: center;
	justify-content: center;
}

.outcome-card--accent .outcome-card__icon { background: rgba(15,27,45,.14); }

.outcome-card__icon svg { width: 2rem; height: 2rem; }

.outcome-card h3 { font-size: var(--wp--preset--font-size--x-large); margin: 0; color: inherit; }
.outcome-card p { margin: 0; opacity: .82; font-size: var(--wp--preset--font-size--medium); }

@media (min-width: 48rem) {
	.outcomes__grid { grid-template-columns: repeat(3, 1fr); }
}

/* Klienti — statický řádek loga */
.clients { background: var(--wp--preset--color--surface-subtle); }

.clients__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-evenly;
	gap: clamp(1.5rem, 4vw, 3rem);
	padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.clients__row img {
	height: calc(clamp(1.75rem, 2vw + 1rem, 2.5rem) * var(--logo-scale, 1));
	width: auto;
	filter: grayscale(1);
	opacity: .6;
	transition: opacity var(--transition-base), filter var(--transition-base);
}

.clients__row img:hover { filter: none; opacity: 1; }

/* O mně */
.about {
	position: relative;
	overflow: clip;
	background: linear-gradient(155deg, var(--wp--preset--color--ink) 10%, #123246 55%, #1c8672 130%);
}

.about::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(44rem 26rem at 8% 12%, rgba(41,196,169,.16), transparent 60%);
	pointer-events: none;
}

.about__grid {
	position: relative;
	display: grid;
	gap: clamp(2rem, 4vw, 3.5rem);
	align-items: center;
}

.about__figure {
	position: relative;
	width: clamp(6.5rem, 12vw, 8.5rem);
	margin: 0 auto 1.75rem;
}

.about__figure::before {
	content: "";
	position: absolute;
	inset: -22%;
	border-radius: 50%;
	border: 1px dashed rgba(41,196,169,.35);
	animation: orbitSpin 34s linear infinite;
}

.about__figure::after {
	content: "";
	position: absolute;
	inset: -42%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(41,196,169,.25), transparent 70%);
	filter: blur(6px);
	z-index: -1;
}

.about__badge { position: relative; filter: drop-shadow(0 10px 24px rgba(0,0,0,.3)); }
.about__badge svg { width: 100%; height: auto; display: block; }

.about__figure--photo { width: clamp(13rem, 28vw, 19rem); }

.about__photo {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	border: 3px solid rgba(234,240,240,.15);
	filter: drop-shadow(0 14px 28px rgba(0,0,0,.35));
}

.about__lede {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--surface);
	max-width: 30ch;
	margin: 0 0 1.5rem;
}

.about p { color: rgba(234,240,240,.82); max-width: 60ch; }
.about p + p { margin-top: 1.1em; }

@media (min-width: 62rem) {
	.about__grid { grid-template-columns: .7fr 1.3fr; }
}

@media (prefers-reduced-motion: reduce) {
	.about__figure::before { animation: none; }
}

/* Finální CTA — velká, výrazná uzavírací sekce */
.final-cta {
	position: relative;
	overflow: clip;
	background: #000;
	text-align: center;
	padding-block: clamp(5rem, 8vw + 2rem, 10rem);
	display: flex;
	align-items: center;
	min-height: clamp(26rem, 50vw, 34rem);
}

.final-cta::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(50rem 30rem at 50% 0%, rgba(41,196,169,.28), transparent 65%),
		radial-gradient(36rem 24rem at 100% 100%, rgba(41,196,169,.12), transparent 60%);
	pointer-events: none;
}

.final-cta__inner { position: relative; width: 100%; }

.final-cta h2 {
	color: var(--wp--preset--color--surface);
	font-size: var(--wp--preset--font-size--huge);
	margin: 0 0 1.25rem;
}

.final-cta p { margin: 0 auto 2.5rem; max-width: 46ch; font-size: var(--wp--preset--font-size--medium); color: rgba(234,240,240,.72); }
.final-cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* -------------------------------------------------------------------------
   8. Patička
   ------------------------------------------------------------------------- */
.site-footer {
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--surface-muted);
	padding-block: var(--section-space-sm);
}

.site-footer a { color: var(--wp--preset--color--surface-muted); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--wp--preset--color--accent); }

.footer__top {
	display: grid;
	gap: 2.5rem;
	padding-bottom: 2.5rem;
	margin-bottom: 2.5rem;
	border-bottom: 1px solid rgba(234,240,240,.1);
}

.footer__brand svg { width: 9.5rem; height: auto; margin-bottom: 1rem; }
.footer__brand p { max-width: 32ch; font-size: var(--wp--preset--font-size--small); }

.footer__heading {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--surface);
	margin: 0 0 1rem;
}

.footer__col ul { display: flex; flex-direction: column; gap: .6rem; font-size: var(--wp--preset--font-size--small); }

/* Kontakt v patičce — drobná linková ikona před e-mailem a telefonem */
.footer__contact { display: inline-flex; align-items: center; gap: .6rem; }
.footer__contact svg {
	width: 1rem;
	height: 1rem;
	flex: none;
	color: var(--wp--preset--color--accent);
	opacity: .75;
	transition: opacity var(--transition-base);
}
.footer__contact:hover svg,
.footer__contact:focus-visible svg { opacity: 1; }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: .75rem 1.5rem;
	justify-content: space-between;
}

.footer__bottom p {
	font-size: var(--wp--preset--font-size--x-small);
	margin: 0;
}

@media (min-width: 48rem) {
	.footer__top { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* -------------------------------------------------------------------------
   9. Redakční obsah (Gutenberg core bloky) — page.php / single.php
   ------------------------------------------------------------------------- */
.page-hero {
	background: var(--wp--preset--color--ink);
	position: relative;
	overflow: clip;
	padding-block: clamp(2.75rem, 5vw, 4.5rem);
}

.page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(50rem 26rem at 100% 0%, rgba(41,196,169,.22), transparent 60%);
	pointer-events: none;
}

.page-hero__inner { position: relative; }

.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--surface-muted);
	margin: 0 0 1rem;
}

.breadcrumbs a { color: var(--wp--preset--color--surface-muted); }
.breadcrumbs a:hover { color: var(--wp--preset--color--accent); }
.breadcrumbs span[aria-current] { color: var(--wp--preset--color--surface); }

.page-hero h1 { color: var(--wp--preset--color--surface); margin: 0; max-width: 30ch; }

/* 404 */
.error-404 { position: relative; }

.error-404__code {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(4.5rem, 6vw + 3rem, 9rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
	color: var(--wp--preset--color--accent);
	margin: 0;
}

.error-404 h1 { margin-top: .25rem; }

.error-404__gear {
	position: absolute;
	top: 50%;
	right: 0;
	width: clamp(9rem, 18vw, 15rem);
	color: rgba(41,196,169,.12);
	transform: translateY(-50%);
	animation: orbitSpin 45s linear infinite;
	pointer-events: none;
}

.error-404__gear svg { width: 100%; height: 100%; }

@media (max-width: 61.99rem) {
	.error-404__gear { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.error-404__gear { animation: none; }
}

.page-hero__lede {
	color: rgba(234,240,240,.72);
	font-size: var(--wp--preset--font-size--medium);
	max-width: 60ch;
	margin: 1.1rem 0 0;
}

.page-hero__actions { margin-top: 1.75rem; }

/* Stejná šířka a odsazení jako .container u hero — obsah tak licuje s H1 */
.entry-content {
	/* Nahoře menší mezera — obsah navazuje na tmavé page-hero, dole plná mezera před patičkou */
	padding-block: var(--section-space-sm) var(--section-space);
}

.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.35em; }
.entry-content li { margin-bottom: .45em; }
.entry-content ol li { list-style: decimal; }
.entry-content li::marker { color: var(--wp--preset--color--accent); }

/* Odrážky: tyrkysová šipka (chevron) místo puntíku — SVG maska, barva z accent */
.entry-content ul { padding-left: 0; }
.entry-content ul li { list-style: none; position: relative; padding-left: 1.6em; }
.entry-content ul li::before {
	content: "";
	position: absolute;
	left: .05em;
	top: .42em;
	width: .8em;
	height: .8em;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 4 8 8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 4 8 8-8 8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.entry-content a { text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
.entry-content img { border-radius: var(--wp--custom--radius--md, 12px); }
.entry-content strong { font-weight: 700; }

.entry-content blockquote {
	border-left: 3px solid var(--wp--preset--color--accent);
	padding-left: 1.5em;
	margin: 1.8em 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--ink);
}

.entry-content .wp-block-quote cite {
	display: block;
	margin-top: .6em;
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--text-muted);
	font-style: normal;
}

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.8em;
	font-size: var(--wp--preset--font-size--small);
}

.entry-content table th, .entry-content table td {
	border: 1px solid var(--wp--preset--color--border);
	padding: .65em .85em;
	text-align: left;
}

.entry-content table th { background: var(--wp--preset--color--surface-subtle); font-weight: 700; }

.entry-content hr { border: 0; border-top: 1px solid var(--wp--preset--color--border); margin: 2.5em 0; }

.entry-content figcaption {
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--text-muted);
	margin-top: .6em;
	text-align: center;
}

/* Rozcestník na podstránky (např. Služby → jednotlivé služby) — tmavé karty jako kontaktní karty */

.child-pages__grid {
	display: grid;
	gap: 1.5rem;
}

@media (min-width: 48rem) {
	.child-pages__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 62rem) {
	.child-pages__grid { grid-template-columns: repeat(3, 1fr); }

	/* 2 nebo 4 karty: mřížka 2 × N, ať žádná nezůstane osamocená na řádku */
	.child-pages__grid:has(> :last-child:nth-child(2)),
	.child-pages__grid:has(> :last-child:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
}

.child-page-card {
	position: relative;
	isolation: isolate;
	overflow: clip;
	display: flex;
	flex-direction: column;
	gap: .75rem;
	padding: clamp(1.5rem, 3vw, 2rem);
	background: linear-gradient(155deg, var(--wp--preset--color--ink) 20%, #123246 70%, #1c8672 140%);
	border: 1px solid rgba(41,196,169,.18);
	border-radius: var(--wp--custom--radius--lg, 20px);
	text-decoration: none;
	transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.child-page-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(22rem 14rem at 100% 0%, rgba(41,196,169,.16), transparent 60%);
	pointer-events: none;
}

.child-page-card:hover, .child-page-card:focus-visible {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.child-page-card h2 { margin: 0; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--surface); }
.child-page-card p { margin: 0; color: rgba(234,240,240,.72); font-size: var(--wp--preset--font-size--small); }

.child-page-card__link {
	margin-top: auto;
	padding-top: .5rem;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: var(--wp--preset--color--accent);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--x-small);
	text-transform: uppercase;
	letter-spacing: .06em;
}

.child-page-card__link svg { width: 1rem; height: 1rem; transition: transform var(--transition-base); }
.child-page-card:hover .child-page-card__link svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
	.child-page-card:hover, .child-page-card:focus-visible { transform: none; }
	.child-page-card:hover .child-page-card__link svg { transform: none; }
}

/* Kroky spolupráce (vzor chrobak/steps) — časová osa s kartami.
   Čísla i popisek „Krok X / Y“ dopočítává CSS, kroky jde v editoru volně přidávat/mazat. */
.steps {
	--steps-total: "";
	--step-dot: 3.25rem;
	--step-gutter: 4.75rem;
	counter-reset: step;
	position: relative;
	padding-left: var(--step-gutter);
	margin-block: 2rem 3rem;
}

.steps:has(> .step:nth-child(2):last-child) { --steps-total: " / 2"; }
.steps:has(> .step:nth-child(3):last-child) { --steps-total: " / 3"; }
.steps:has(> .step:nth-child(4):last-child) { --steps-total: " / 4"; }
.steps:has(> .step:nth-child(5):last-child) { --steps-total: " / 5"; }
.steps:has(> .step:nth-child(6):last-child) { --steps-total: " / 6"; }
.steps:has(> .step:nth-child(7):last-child) { --steps-total: " / 7"; }
.steps:has(> .step:nth-child(8):last-child) { --steps-total: " / 8"; }
.steps:has(> .step:nth-child(9):last-child) { --steps-total: " / 9"; }

.steps > .step {
	counter-increment: step;
	position: relative;
	margin-block: 0;
	padding: 1.75rem 2rem;
	background: var(--wp--preset--color--surface-subtle);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--lg, 20px);
}

.steps > .step + .step { margin-top: 1.5rem; }

/* Číslo kroku — tmavé kolečko vlevo od karty */
.steps > .step::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	top: 1.5rem;
	left: calc(-1 * var(--step-gutter));
	width: var(--step-dot);
	height: var(--step-dot);
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: var(--wp--preset--color--ink);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .95rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .04em;
	box-shadow: 0 0 0 6px rgba(41,196,169,.14);
	z-index: 1;
}

/* Přerušovaná spojnice ke dalšímu kroku */
.steps > .step::after {
	content: "";
	position: absolute;
	top: calc(1.5rem + var(--step-dot));
	bottom: -3rem;
	left: calc(-1 * var(--step-gutter) + var(--step-dot) / 2 - 1px);
	border-left: 2px dashed rgba(41,196,169,.45);
}

.steps > .step:last-child::after { display: none; }

/* Popisek „Krok 2 / 5“ nad nadpisem kroku */
.steps > .step > :first-child::before {
	content: "Krok " counter(step) var(--steps-total);
	display: block;
	margin-bottom: .45rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .72rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--accent-contrast);
}

.steps > .step > * { margin-block: 0 1rem; }
.steps > .step > h3 { margin-bottom: .9rem; }
.steps > .step > :last-child { margin-bottom: 0; }

/* Mobil: kolečko uvnitř karty vedle nadpisu (text má celou šířku), mezi kartami krátká spojnice */
@media (max-width: 40rem) {
	.steps { --step-dot: 2.5rem; padding-left: 0; }
	.steps > .step { padding: 1.25rem 1.25rem 1.35rem; }
	.steps > .step::before { top: 1.25rem; left: 1.25rem; font-size: .8rem; box-shadow: 0 0 0 4px rgba(41,196,169,.14); }
	.steps > .step::after { top: 100%; bottom: auto; height: 1.5rem; left: calc(1.25rem + var(--step-dot) / 2 - 1px); }
	.steps > .step > :first-child { padding-left: calc(var(--step-dot) + .9rem); min-height: var(--step-dot); }
}

/* Kontaktní karty (vzor chrobak/contact-cards) — tmavý přechod jako sekce „O mně“ */
.contact-card {
	position: relative;
	isolation: isolate;
	height: 100%;
	overflow: clip;
	background: linear-gradient(155deg, var(--wp--preset--color--ink) 20%, #123246 70%, #1c8672 140%) !important;
	border: 1px solid rgba(41,196,169,.18);
	transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.contact-card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: radial-gradient(22rem 14rem at 100% 0%, rgba(41,196,169,.16), transparent 60%);
	pointer-events: none;
}

.contact-card h3 { margin-top: 1rem; margin-bottom: .35rem; }
.contact-card p { margin-block: 0 .35rem; }
.contact-card a { color: inherit; text-decoration: none; }

/* Odkaz roztažený přes celou kartu → klikatelná celá plocha */
.contact-card--link a::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.contact-card--link:hover,
.contact-card--link:focus-within {
	border-color: var(--wp--preset--color--accent);
	box-shadow: var(--shadow-md);
	transform: translateY(-2px);
}

.contact-card--link a:focus-visible { outline: none; }
.contact-card--link a:focus-visible::after {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.contact-card--link:hover, .contact-card--link:focus-within { transform: none; }
}

/* -------------------------------------------------------------------------
   10. Komponenty
   ------------------------------------------------------------------------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .85rem 1.6rem;
	border-radius: var(--wp--custom--radius--sm, 6px);
	font-weight: 600;
	font-size: var(--wp--preset--font-size--small);
	text-decoration: none;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn:hover, .btn:focus-visible { transform: translateY(-1px); }

.btn-accent { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.btn-accent:hover, .btn-accent:focus-visible { background: #3fd8bb; color: var(--wp--preset--color--ink); box-shadow: var(--shadow-md); }

.btn-dark { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--surface); }
.btn-dark:hover, .btn-dark:focus-visible { background: #16283d; color: var(--wp--preset--color--surface); box-shadow: var(--shadow-md); }

.btn-outline-light { border-color: rgba(234,240,240,.35); color: var(--wp--preset--color--surface); }
.btn-outline-light:hover, .btn-outline-light:focus-visible { border-color: var(--wp--preset--color--surface); color: var(--wp--preset--color--surface); }

.btn-outline-dark { border-color: var(--wp--preset--color--border); color: var(--wp--preset--color--ink); }
.btn-outline-dark:hover, .btn-outline-dark:focus-visible { border-color: var(--wp--preset--color--ink); }

@media (prefers-reduced-motion: reduce) {
	.btn:hover, .btn:focus-visible { transform: none; }
}

/* -------------------------------------------------------------------------
   11. Média (WP responsive images, galerie)
   ------------------------------------------------------------------------- */
.wp-block-image img,
.wp-block-gallery img { border-radius: var(--wp--custom--radius--md, 12px); }

.wp-caption, figure.wp-block-image { margin: 0 0 1.8em; }

.alignfull, .alignwide { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }

.wp-block-embed { margin: 0 0 1.8em; }
.wp-block-embed iframe { width: 100%; border-radius: var(--wp--custom--radius--md, 12px); }
