/*
 * První Mac — styly webu (vzhled 2026).
 *
 * Jeden soubor pro všechny šířky, psaný od mobilu nahoru. Zlomy: 720 px (tablet, dva sloupce)
 * a 1024 px (desktop, navigace v řádku a megamenu). Tmavý režim se přepíná sám podle systému,
 * návštěvník si ho může v patičce nastavit natrvalo (data-theme="light|dark" na <html>). Každý blok
 * pro tmavý režim je proto dvakrát: pro systém bez ruční volby a pro ruční volbu.
 *
 * Vrstvy: base (proměnné a prvky) → layout (záhlaví, patička, rozvržení) → components (bloky
 * stránek) → content (obsah průvodce z databáze, jeho třídy pocházejí z původního webu).
 */

@layer base, layout, components, content;

/* ==========================================================================
   Base
   ========================================================================== */

@layer base {
	:root {
		color-scheme: light dark;

		--bg: #ffffff;
		--bg-soft: #f5f5f7;
		--bg-raised: #ffffff;
		--text: #1d1d1f;
		--text-2: #6e6e73;
		--line: #d2d2d7;
		--line-soft: #e8e8ed;
		--link: #0066cc;
		--accent: #0071e3;
		--accent-hover: #0077ed;
		--on-accent: #ffffff;
		--tip: #fff8e1;
		--warning: #fff1f0;
		--header-bg: rgb(255 255 255 / 0.8);
		/* Sklo okna hledání a závoj přes stránku pod ním */
		--glass: rgb(255 255 255 / 0.7);
		--glass-edge: rgb(255 255 255 / 0.75);
		--scrim: rgb(0 0 0 / 0.08);

		--font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

		/* Typografická stupnice: text 17 px jako v systému, nadpisy rostou s šířkou okna */
		--step--1: 0.875rem;
		--step-0: 1.0625rem;
		--step-1: 1.3125rem;
		--step-2: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
		--step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
		--step-4: clamp(2.5rem, 1.6rem + 3.6vw, 4.25rem);

		--measure: 42rem;
		--wide: 56rem;
		--page: 75rem;
		--gutter: clamp(1.25rem, 4vw, 3rem);
		/* Lišty přes celou šířku mají okraj uvnitř: aby jejich obsah lícoval s obsahem stránky,
		   musí být o oba okraje širší */
		--page-padded: calc(var(--page) + 2 * var(--gutter));
		--header-h: 4rem;
		--radius: 1.125rem;
		--radius-s: 0.625rem;
	}

	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		& {
			--bg: #000000;
			--bg-soft: #161617;
			--bg-raised: #1c1c1e;
			--text: #f5f5f7;
			--text-2: #a1a1a6;
			--line: #424245;
			--line-soft: #2c2c2e;
			--link: #2997ff;
			--accent: #0a84ff;
			--accent-hover: #409cff;
			--tip: #2a2410;
			--warning: #2e1615;
			--header-bg: rgb(22 22 23 / 0.8);
			--glass: rgb(36 36 38 / 0.62);
			--glass-edge: rgb(255 255 255 / 0.14);
			--scrim: rgb(0 0 0 / 0.35);
		}
		}
	}
	:root[data-theme="dark"] {
		& {
			--bg: #000000;
			--bg-soft: #161617;
			--bg-raised: #1c1c1e;
			--text: #f5f5f7;
			--text-2: #a1a1a6;
			--line: #424245;
			--line-soft: #2c2c2e;
			--link: #2997ff;
			--accent: #0a84ff;
			--accent-hover: #409cff;
			--tip: #2a2410;
			--warning: #2e1615;
			--header-bg: rgb(22 22 23 / 0.8);
			--glass: rgb(36 36 38 / 0.62);
			--glass-edge: rgb(255 255 255 / 0.14);
			--scrim: rgb(0 0 0 / 0.35);
		}
	}

	/* Ruční volba v patičce (data-theme na <html>, viz web.js) má přednost před nastavením systému */
	:root[data-theme="light"] { color-scheme: light; }
	:root[data-theme="dark"] { color-scheme: dark; }

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

	html {
		-webkit-text-size-adjust: 100%;
		text-size-adjust: 100%;
		scroll-padding-top: calc(var(--header-h) + 1.5rem);
	}

	@media (prefers-reduced-motion: no-preference) {
		html { scroll-behavior: smooth; }
	}

	body {
		margin: 0;
		background: var(--bg);
		color: var(--text);
		font: 400 var(--step-0) / 1.6 var(--font);
		letter-spacing: -0.011em;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		text-rendering: optimizeLegibility;
	}

	h1, h2, h3, h4 {
		margin: 0;
		font-weight: 600;
		line-height: 1.15;
		letter-spacing: -0.022em;
		text-wrap: balance;
	}

	p, ul, ol, figure, table { margin: 0; }
	p { text-wrap: pretty; }

	a { color: var(--link); text-decoration: none; }
	a:hover { text-decoration: underline; text-underline-offset: 0.18em; }

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

	button, input { font: inherit; letter-spacing: inherit; color: inherit; }
	button { cursor: pointer; }

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

	.i { width: 1.25em; height: 1.25em; flex: none; }

	/* Ikona kategorie: kresba v barvě kategorie; velikost upravují bloky, které ji obsahují */
	.cat-icon {
		display: block;
		flex: none;
		width: 1.5rem;
		height: 1.5rem;
		color: var(--cat);
	}
	.cat-icon svg { width: 100%; height: 100%; }

	/* Pastelový podklad v barvě kategorie; --cat nastavuje šablona na boxu */
	[style*="--cat"], .quote, .prose .content-box {
		--cat-soft: color-mix(in srgb, var(--cat) 9%, var(--bg));
		--cat-ink: color-mix(in srgb, var(--cat) 80%, #000);
	}
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		[style*="--cat"], .quote, .prose .content-box {
			--cat-soft: color-mix(in srgb, var(--cat) 12%, var(--bg-soft));
			--cat-ink: color-mix(in srgb, var(--cat) 70%, #fff);
		}
		}
	}
	:root[data-theme="dark"] {
		[style*="--cat"], .quote, .prose .content-box {
			--cat-soft: color-mix(in srgb, var(--cat) 12%, var(--bg-soft));
			--cat-ink: color-mix(in srgb, var(--cat) 70%, #fff);
		}
	}

	.visually-hidden,
	.honeypot {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.skip-link {
		position: absolute;
		left: 1rem;
		top: -4rem;
		z-index: 100;
		padding: 0.5rem 1rem;
		border-radius: var(--radius-s);
		background: var(--accent);
		color: var(--on-accent);
	}
	.skip-link:focus { top: 0.75rem; }
}

/* ==========================================================================
   Layout
   ========================================================================== */

@layer layout {
	/* --- Oznamovací pruh --- */

	.announcement {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.75rem;
		padding: 0.625rem var(--gutter);
		background: var(--bg-soft);
		font-size: var(--step--1);
		text-align: center;
	}
	.announcement[hidden] { display: none; }
	.announcement__close {
		display: grid;
		place-items: center;
		width: 1.75rem;
		height: 1.75rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: none;
		color: var(--text-2);
	}

	/* --- Záhlaví --- */

	.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
		background: var(--header-bg);
		-webkit-backdrop-filter: saturate(180%) blur(20px);
		backdrop-filter: saturate(180%) blur(20px);
		border-bottom: 1px solid var(--line-soft);
	}

	.site-header__bar {
		display: flex;
		align-items: center;
		justify-content: space-between;
		max-width: var(--page-padded);
		height: var(--header-h);
		margin: 0 auto;
		padding: 0 var(--gutter);
	}

	/* Logo: původní dvoubarevný nápis, jen v řezech systémového písma */
	.logo {
		font-size: 1.5rem;
		font-weight: 600;
		letter-spacing: -0.03em;
		color: var(--text);
		white-space: nowrap;
	}
	.logo span { font-weight: 400; color: var(--text-2); }
	.logo:hover { text-decoration: none; }

	.nav-toggle {
		display: grid;
		place-items: center;
		width: 2.75rem;
		height: 2.75rem;
		margin-right: -0.625rem;
		padding: 0;
		border: 0;
		background: none;
	}
	.nav-toggle .i { width: 1.5rem; height: 1.5rem; }
	.nav-toggle__close,
	.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
	.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

	/* Mobil: navigace je panel přes celou výšku pod záhlavím */
	.site-nav {
		display: none;
		position: fixed;
		inset: var(--header-h) 0 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0.5rem var(--gutter) 3rem;
		background: var(--bg);
	}
	.nav-open .site-nav { display: block; }
	.nav-open { overflow: hidden; }
	/* backdrop-filter dělá ze záhlaví rámec pro position: fixed, panel by se počítal od jeho výšky */
	.nav-open .site-header {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: var(--bg);
	}

	.site-nav__list { list-style: none; display: flex; flex-direction: column; padding: 0; }
	.site-nav__list > li { border-bottom: 1px solid var(--line-soft); }

	.site-nav__link {
		display: flex;
		align-items: center;
		gap: 0.25rem;
		width: 100%;
		padding: 0.875rem 0;
		border: 0;
		background: none;
		color: var(--text);
		font-size: var(--step-1);
		font-weight: 600;
		letter-spacing: -0.02em;
		text-align: left;
	}
	.site-nav__link:hover { text-decoration: none; }
	.site-nav__link[aria-current="page"] { color: var(--link); }

	/* Na mobilu se průvodce rozbaluje pod tlačítkem, šipka ukazuje stav */
	.mega-toggle { justify-content: space-between; }
	.mega-toggle .i { width: 1.25rem; height: 1.25rem; color: var(--text-2); transition: transform 0.2s; }
	.mega-toggle[aria-expanded="true"] .i { transform: rotate(180deg); }
	.mega { display: none; }
	.mega-open .mega { display: block; }
	.mega__title { display: none; }

	.mega__grid {
		list-style: none;
		display: grid;
		gap: 1.25rem;
		padding: 0.25rem 0 1.25rem;
	}

	.mega__heading {
		display: flex;
		align-items: center;
		gap: 0.625rem;
		color: var(--text);
		font-weight: 600;
	}
	.mega__heading:hover { text-decoration: none; }
	.mega__icon { width: 1.75rem; height: 1.75rem; }

	.mega__pages {
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		gap: 0.125rem 1rem;
		padding: 0.25rem 0 0 2.375rem;
		font-size: 0.9375rem;
	}
	.mega__pages a { display: inline-block; padding: 0.3125rem 0; color: var(--text-2); }
	.mega__pages a:hover,
	.mega__pages a[aria-current="page"] { color: var(--link); }

	/* Slovníček pod kapitolami: patří k průvodci, ale není kapitola, proto bez pastelové karty */
	.mega__extra { padding: 0 0 1.25rem; }
	.mega__extra a { display: flex; align-items: flex-start; gap: 0.625rem; color: var(--text-2); font-size: 0.9375rem; line-height: 1.45; }
	.mega__extra a:hover { text-decoration: none; }
	.mega__extra b { display: block; color: var(--text); font-size: 1rem; font-weight: 600; }
	.mega__extra a:hover b,
	.mega__extra a[aria-current="page"] b { color: var(--link); }

	.site-nav__list > .site-nav__cta { border-bottom: 0; padding: 1.25rem 0; }

	.site-nav__list > .site-nav__author {
		display: grid;
		grid-template-columns: auto 1fr;
		align-items: center;
		gap: 1rem 0.875rem;
		padding: 1rem 0 0;
		border-bottom: 0;
		color: var(--text-2);
		font-size: 0.9375rem;
		line-height: 1.4;
	}
	.site-nav__author img { width: 3.5rem; height: 3.5rem; border-radius: 50%; }
	.site-nav__author p a { color: var(--text); font-weight: 600; }
	.site-nav__contact { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
	.site-nav__contact a {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 0.5rem;
		padding: 0.75rem 1rem;
		border-radius: 999px;
		background: var(--bg-soft);
		color: var(--link);
		font-size: var(--step-0);
		font-weight: 500;
	}
	.site-nav__contact a:hover { text-decoration: none; }
	.site-nav__contact .i { width: 1.25rem; height: 1.25rem; }

	@media (min-width: 1024px) {
		:root { --header-h: 5rem; }
		.logo { font-size: 1.625rem; }
		.nav-toggle { display: none; }

		.site-nav {
			display: block;
			position: static;
			overflow: visible;
			padding: 0;
			background: none;
		}

		.site-nav__list { flex-direction: row; align-items: center; gap: 0.5rem; }
		.site-nav__list > li { border: 0; }

		.site-nav__link {
			padding: 0.5rem 0.875rem;
			border-radius: 999px;
			font-size: 1rem;
			font-weight: 400;
			letter-spacing: -0.01em;
			color: var(--text);
			opacity: 0.85;
		}
		.site-nav__link:hover,
		.site-nav__link[aria-expanded="true"] { opacity: 1; background: var(--bg-soft); }
		.site-nav__link[aria-current="page"],
		.site-nav__link[data-current] { opacity: 1; color: var(--text); font-weight: 600; }

		.mega-toggle { justify-content: flex-start; }
		.mega-toggle .i { width: 1rem; height: 1rem; color: inherit; }

		.site-nav__list > .site-nav__cta { padding: 0 0 0 1rem; }
		.site-nav__list > .site-nav__author { display: none; }

		/* Megamenu: panel pod záhlavím přes celou šířku */
		.mega {
			display: none;
			position: absolute;
			left: 0;
			right: 0;
			top: 100%;
			padding: 2rem var(--gutter) 2.5rem;
			background: var(--bg);
			border-bottom: 1px solid var(--line-soft);
			box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.18);
		}
		.mega-open .mega { display: block; }

		.mega__title {
			display: block;
			max-width: var(--page-padded);
			margin: 0 auto 1.25rem;
			padding: 0 var(--gutter);
			color: var(--text-2);
			font-size: var(--step--1);
		}

		.mega__grid {
			/* Tři sloupce, stránky kapitoly vedle sebe: panel zůstane nízký i s devíti a více kapitolami */
			grid-template-columns: repeat(3, 1fr);
			gap: 0.75rem;
			max-width: var(--page-padded);
			margin: 0 auto;
			padding: 0 var(--gutter);
		}

		.mega__section {
			padding: 1.25rem 1.375rem 1.125rem;
			border-radius: var(--radius);
			background: var(--cat-soft);
		}
		.mega__heading { gap: 0.625rem; font-size: 1.0625rem; }
		.mega__heading:hover { color: var(--cat-ink); }
		.mega__icon { width: 1.75rem; height: 1.75rem; --icon-stroke: 1.3; }
		.mega__pages a:hover, .mega__pages a[aria-current="page"] { color: var(--cat-ink); }

		.mega__pages {
			gap: 0 0.875rem;
			padding: 0.375rem 0 0 2.375rem;
		}
		.mega__pages a { padding: 0.125rem 0; }

		.mega__extra {
			max-width: var(--page-padded);
			margin: 0.75rem auto 0;
			padding: 0 var(--gutter);
		}
		.mega__extra a { align-items: center; padding: 0.625rem 1.375rem; }
		.mega__extra b { display: inline; margin-right: 0.5rem; font-size: 1.0625rem; }
		.mega__extra a:hover b,
		.mega__extra a[aria-current="page"] b { color: var(--cat-ink); }
	}

	@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
		.mega-open .mega { animation: mega-in 0.22s ease-out; }
		@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } }
	}

	/* --- Hledání (okno po vzoru Spotlightu) --- */

	/* Lupa: na mobilu v liště vlevo od menu, na desktopu v navigaci před tlačítkem konzultace */
	.search-open {
		display: grid;
		place-items: center;
		padding: 0;
		border: 0;
		border-radius: 999px;
		background: none;
		color: var(--text);
	}
	.search-open .i { width: 1.375rem; height: 1.375rem; }
	.search-open--bar { order: 1; width: 2.75rem; height: 2.75rem; margin-left: auto; }
	.nav-toggle { order: 2; }
	.site-nav__list > .site-nav__search { display: none; }
	.search-open[hidden] { display: none; }

	@media (min-width: 1024px) {
		.search-open--bar { display: none; }
		.site-nav__list > .site-nav__search { display: block; }
		.site-nav__search .search-open { width: 2.5rem; height: 2.5rem; opacity: 0.85; }
		.site-nav__search .search-open:hover { opacity: 1; background: var(--bg-soft); }
		.site-nav__search .search-open .i { width: 1.25rem; height: 1.25rem; }
	}

	.search-active { overflow: hidden; }

	/* Okno přes celou plochu, aby klik vedle boxu zavřel hledání (web.js) */
	.spotlight {
		position: fixed;
		inset: 0;
		width: 100%;
		max-width: none;
		height: 100%;
		max-height: none;
		margin: 0;
		padding: 0.75rem;
		border: 0;
		background: none;
		color: var(--text);
		overflow: hidden;
		overscroll-behavior: contain;
	}
	.spotlight::backdrop { background: var(--scrim); }
	/* Stránka pod oknem se rozmaže filtrem přímo na obsahu: backdrop-filter na ::backdrop
	   WebKit nevykreslí vždy, filter umí všechny prohlížeče */
	.search-active body > :not(.spotlight) { filter: blur(6px) saturate(120%); }

	/* Sklo: průsvitná plocha, rozmazání toho, co je pod ní, světlá hrana a měkký stín */
	.spotlight__box {
		display: flex;
		flex-direction: column;
		width: min(42rem, 100%);
		max-height: calc(100dvh - 1.5rem);
		margin: 0 auto;
		border-radius: 1.375rem;
		background: var(--glass);
		-webkit-backdrop-filter: blur(36px) saturate(180%);
		backdrop-filter: blur(36px) saturate(180%);
		box-shadow:
			inset 0 1px 0 var(--glass-edge),
			inset 0 0 0 1px color-mix(in srgb, var(--glass-edge) 45%, transparent),
			0 0 0 0.5px rgb(0 0 0 / 0.12),
			0 30px 80px -20px rgb(0 0 0 / 0.35);
		overflow: hidden;
	}

	.spotlight__field {
		display: flex;
		align-items: center;
		gap: 0.625rem;
		flex: none;
		padding: 0.5rem 0.5rem 0.5rem 1.125rem;
	}
	.spotlight__field > .i { flex: none; width: 1.5rem; height: 1.5rem; color: var(--text-2); }

	.spotlight__input {
		flex: 1;
		min-width: 0;
		height: 2.75rem;
		padding: 0;
		border: 0;
		background: none;
		color: var(--text);
		font: 400 1.25rem / 1.2 var(--font);
		letter-spacing: -0.015em;
		outline: none;
		-webkit-appearance: none;
		appearance: none;
	}
	.spotlight__input::placeholder { color: var(--text-2); opacity: 0.8; }
	/* Vlastní křížek prohlížeče by se tloukl se zavíracím tlačítkem */
	.spotlight__input::-webkit-search-cancel-button { display: none; }

	.spotlight__close {
		display: grid;
		place-items: center;
		flex: none;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: none;
		color: var(--text-2);
	}
	.spotlight__close:hover { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--text); }
	.spotlight__close .i { width: 1.25rem; height: 1.25rem; }

	.spotlight__results {
		flex: 1 1 auto;
		min-height: 0;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 0.25rem 0.5rem 0.5rem;
		border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
	}
	.spotlight__results[hidden] { display: none; }

	.spotlight__group { padding-top: 0.5rem; }
	.spotlight__heading {
		padding: 0.25rem 0.75rem 0.25rem;
		color: var(--text-2);
		font-size: 0.75rem;
		font-weight: 600;
	}

	.spotlight__item {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 0.75rem;
		padding: 0.5rem 0.75rem;
		border-radius: 0.75rem;
		color: var(--text);
		scroll-margin: 2rem 0 0.5rem;
	}
	.spotlight__item:hover { text-decoration: none; }

	.spotlight__icon {
		width: 2rem;
		height: 2rem;
		padding: 0.3rem;
		border-radius: 0.5rem;
		background: var(--cat-soft);
		--icon-stroke: 1.5;
	}
	.spotlight__icon svg { width: 100%; height: 100%; }

	.spotlight__text { display: grid; min-width: 0; }
	.spotlight__title,
	.spotlight__desc {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}
	.spotlight__title { font-size: 1rem; line-height: 1.35; }
	.spotlight__title mark { background: none; color: inherit; font-weight: 600; }
	.spotlight__desc { color: var(--text-2); font-size: 0.8125rem; line-height: 1.35; }

	/* Heslo slovníčku má celé vysvětlení přímo ve výsledku, je to krátký odstavec */
	.spotlight__item--term { align-items: start; }
	.spotlight__item--term .spotlight__desc {
		margin-top: 0.125rem;
		white-space: normal;
		font-size: 0.875rem;
		line-height: 1.45;
		text-wrap: pretty;
	}
	.spotlight__item--term .spotlight__meta { padding-top: 0.125rem; }

	.spotlight__meta {
		display: none;
		align-items: center;
		gap: 0.125rem;
		color: var(--text-2);
		font-size: 0.8125rem;
		white-space: nowrap;
	}
	.spotlight__meta .i { width: 0.875rem; height: 0.875rem; }

	/* Nejlepší výsledek je větší, jako ve Spotlightu */
	.spotlight__group--top .spotlight__icon { width: 2.5rem; height: 2.5rem; padding: 0.4rem; border-radius: 0.625rem; }
	.spotlight__group--top .spotlight__title { font-size: 1.0625rem; font-weight: 600; }

	.spotlight__more {
		display: block;
		width: 100%;
		padding: 0.375rem 0.75rem 0.375rem 3.5rem;
		border: 0;
		border-radius: 0.75rem;
		background: none;
		color: var(--link);
		font: inherit;
		font-size: 0.875rem;
		text-align: left;
	}

	/* Vybraný řádek: plná barva zvýraznění jako na Macu, šipkami i myší */
	.spotlight__item[aria-selected="true"],
	.spotlight__more[aria-selected="true"] {
		background: var(--accent);
		color: var(--on-accent);
	}
	.spotlight__item[aria-selected="true"] .spotlight__desc,
	.spotlight__item[aria-selected="true"] .spotlight__meta { color: color-mix(in srgb, var(--on-accent) 80%, transparent); }
	.spotlight__item[aria-selected="true"] .spotlight__icon { background: rgb(255 255 255 / 0.92); }

	.spotlight__status {
		flex: none;
		padding: 0 1.25rem;
		color: var(--text-2);
		font-size: 0.875rem;
	}
	.spotlight__status:not(:empty) { padding-block: 0.875rem 1rem; border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); }
	/* Počet výsledků je pro čtečky; vidět je jen hláška bez výsledků nebo o načítání */
	.spotlight__results:not([hidden]) + .spotlight__status {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	@media (min-width: 720px) {
		.spotlight { padding: 14vh 1.5rem 1.5rem; }
		.spotlight__box { max-height: min(36rem, 100%); }
		.spotlight__field { padding: 0.625rem 0.625rem 0.625rem 1.25rem; }
		.spotlight__input { height: 3rem; font-size: 1.5rem; }
		.spotlight__field > .i { width: 1.75rem; height: 1.75rem; }
		.spotlight__meta { display: inline-flex; }
	}

	@media (prefers-reduced-motion: no-preference) {
		.spotlight[open] .spotlight__box { animation: spotlight-in 0.18s ease-out; }
		.spotlight[open]::backdrop { animation: spotlight-fade 0.18s ease-out; }
		body > :not(.spotlight) { transition: filter 0.18s ease-out; }
		@keyframes spotlight-in { from { opacity: 0; transform: scale(0.97) translateY(-6px); } }
		@keyframes spotlight-fade { from { opacity: 0; } }
	}

	/* --- Obsah stránky --- */

	main {
		display: block;
		padding: 0 var(--gutter);
	}

	/* --- Spodek stránky --- */

	/* Newsletter a patička na jednom podkladu se stejnou mezerou nad i pod newsletterem */
	.newsletter {
		margin-top: clamp(4rem, 8vw, 7rem);
		padding: clamp(3rem, 6vw, 4.5rem) var(--gutter);
		background: var(--bg-soft);
	}
	.newsletter__inner {
		display: grid;
		gap: 1.25rem;
		max-width: var(--page);
		margin: 0 auto;
	}
	.newsletter h2 { font-size: var(--step-1); }
	.newsletter__text p { color: var(--text-2); }
	.newsletter__form { display: flex; gap: 0.5rem; position: relative; }
	.newsletter__form input[type="email"] {
		flex: 1;
		min-width: 0;
		padding: 0.6875rem 1rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--bg-raised);
	}
	.newsletter__form input[type="email"]:focus-visible { outline-offset: 1px; }
	/* Hláška z /js/forms.js se vkládá do formuláře; pod polem, aby neposouvala pole ani tlačítko */
	.newsletter__form .form-status {
		position: absolute;
		top: 100%;
		left: 1rem;
		margin-top: 0.5rem;
		color: #d70015;
		font-size: var(--step--1);
	}
	.newsletter__form .form-status:empty { display: none; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.newsletter__form .form-status { color: #ff6961; }
		}
	}
	:root[data-theme="dark"] {
		.newsletter__form .form-status { color: #ff6961; }
	}

	@media (min-width: 720px) {
		.newsletter__inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
	}

	.site-footer {
		padding: 0 var(--gutter) 2.5rem;
		background: var(--bg-soft);
		color: var(--text-2);
		font-size: var(--step--1);
	}
	.site-footer__inner {
		display: grid;
		gap: 2.5rem 2rem;
		max-width: var(--page);
		margin: 0 auto;
		padding-top: clamp(3rem, 6vw, 4.5rem);
		border-top: 1px solid var(--line);
	}
	.site-footer a { color: var(--text-2); }
	.site-footer a:hover { color: var(--text); }
	.site-footer__brand .logo { color: var(--text); font-size: 1.375rem; }
	.site-footer__brand p { max-width: 20rem; margin-top: 0.625rem; }
	.site-footer__brand p a { color: var(--text); font-weight: 500; }
	.site-footer__contact { list-style: none; display: grid; gap: 0.5rem; margin-top: 1.25rem; padding: 0; }
	.site-footer__contact a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 1.5rem; }
	.site-footer__contact .i { width: 1.125rem; height: 1.125rem; }
	.site-footer__title { margin-bottom: 0.875rem; color: var(--text); font-weight: 600; }
	.site-footer__links { list-style: none; display: grid; gap: 0.625rem; padding: 0; }
	.site-footer__social { list-style: none; display: flex; gap: 0.25rem; margin-top: 1.25rem; margin-left: -0.625rem; padding: 0; }
	.site-footer__social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
	.site-footer__social .i { width: 1.625rem; height: 1.625rem; }
	/* Stejná výška řádku s ikonou i bez ní, oba sloupce odkazů pak běží souběžně */
	.site-footer__links li { display: flex; }
	.site-footer__links a { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 1.5rem; }
	.site-footer__links--icons .cat-icon { width: 1.25rem; height: 1.25rem; --icon-stroke: 1.5; }
	/* Po najetí barva sítě a její pastelový podklad */
	.site-footer__social a { transition: color 0.15s, background-color 0.15s; }
	.social--youtube { --cat: #ff0000; }
	.social--linkedin { --cat: #0a66c2; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		/* Tmavě modrá LinkedInu by na tmavém podkladu zanikla */
		.social--linkedin { --cat: #4a9fe8; }
		}
	}
	:root[data-theme="dark"] {
		/* Tmavě modrá LinkedInu by na tmavém podkladu zanikla */
		.social--linkedin { --cat: #4a9fe8; }
	}
	.site-footer__social a:hover { color: var(--cat); background: color-mix(in srgb, var(--cat) 12%, transparent); }
	.site-footer__bottom {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: 0.75rem 2rem;
		padding-top: 1.5rem;
		border-top: 1px solid var(--line-soft);
	}
	/* Přepínač světlý / tmavý: nenápadný segmentový ovladač v patičce */
	.theme-switch {
		display: inline-flex;
		margin: 0;
		padding: 0.1875rem;
		border: 0;
		border-radius: 999px;
		background: var(--line-soft);
	}
	.theme-switch[hidden] { display: none; }
	.theme-switch label {
		display: inline-flex;
		align-items: center;
		gap: 0.375rem;
		padding: 0.3125rem 0.75rem;
		border-radius: 999px;
		color: var(--text-2);
		cursor: pointer;
	}
	.theme-switch input { position: absolute; opacity: 0; pointer-events: none; }
	.theme-switch .i { width: 1rem; height: 1rem; }
	.theme-switch label:has(:checked) { background: var(--bg-raised); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.12); }
	.theme-switch label:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
	.site-footer__bottom { align-items: center; }
	.site-footer__legal { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0; }
	/* Skok nahoru: kulaté tlačítko v podobě přepínače vzhledu vedle */
	.site-footer__top {
		display: inline-grid;
		place-items: center;
		width: 2rem;
		height: 2rem;
		border-radius: 50%;
		background: var(--line-soft);
		color: var(--text-2);
	}
	.site-footer__top:hover { color: var(--text); text-decoration: none; }
	.site-footer__top .i { width: 1rem; height: 1rem; }

	/* Na telefonu jsou oba seznamy odkazů vedle sebe, značka a spodní řádek přes celou šířku */
	.site-footer__inner { grid-template-columns: 1fr 1fr; }
	.site-footer__brand,
	.site-footer__bottom { grid-column: 1 / -1; }
	@media (min-width: 720px) {
		.site-footer__inner { grid-template-columns: 2fr 1fr 1fr; }
		.site-footer__brand { grid-column: auto; }
	}
}

/* ==========================================================================
   Components
   ========================================================================== */

@layer components {
	/* --- Tlačítka a odkazy --- */

	.button {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.375rem;
		padding: 0.6875rem 1.375rem;
		border: 0;
		border-radius: 999px;
		background: var(--accent);
		color: var(--on-accent);
		font-size: var(--step-0);
		font-weight: 500;
		line-height: 1.25;
		white-space: nowrap;
	}
	.button:hover { background: var(--accent-hover); text-decoration: none; }
	.button--small { padding: 0.375rem 0.9375rem; font-size: 0.875rem; }
	/* V mobilním menu velké tlačítko přes celou šířku, na desktopu stejně vysoké jako položky menu */
	.site-nav__cta .button { width: 100%; padding: 0.875rem 1.25rem; font-size: var(--step-0); }
	@media (min-width: 1024px) {
		.site-nav__cta .button { width: auto; padding: 0.5rem 1.125rem; font-size: 1rem; line-height: 1.6; }
	}
	.button--large { padding: 0.875rem 1.75rem; font-size: var(--step-1); }
	.button.success { background: #30b158; }
	.button--secondary { background: var(--bg-raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
	.button--secondary:hover { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--text-2); }

	.more { font-weight: 500; }
	.more::after { content: " ›"; }

	/* --- Nadpisy sekcí --- */

	.section-title { font-size: var(--step-3); }
	.section-head {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 1rem;
	}

	/* --- Úvodní stránka --- */

	.hero {
		max-width: 50rem;
		margin: 0 auto;
		padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 5.5rem);
		text-align: center;
	}
	.hero { max-width: var(--page); }
	.hero h1 {
		font-size: var(--step-4);
		font-weight: 700;
		letter-spacing: -0.035em;
		line-height: 1.05;
	}
	/* Na tabletu a výš je nadpis na jednom řádku a druhá věta podtitulu začíná na novém */
	@media (min-width: 720px) {
		.hero h1 { font-size: min(var(--step-4), 6vw); white-space: nowrap; }
	}
	.hero__break { display: none; }
	@media (min-width: 720px) {
		.hero__break { display: inline; }
	}
	/* Druhá věta podtitulu se na desktopu vejde na jeden řádek */
	@media (min-width: 1024px) {
		.hero .hero__lead { max-width: 60rem; }
	}
	.hero__lead {
		max-width: 46rem;
		margin: 1.5rem auto 2.25rem;
		color: var(--text-2);
		font-size: var(--step-1);
		line-height: 1.5;
	}

	.guide-overview,
	.latest {
		max-width: var(--page);
		margin: 0 auto;
	}

	.guide-overview .section-title { margin-bottom: 1.75rem; }

	/* Průvodce: pastelové karty v odstínu kategorie. Text vlevo nahoře, velká tenká ikona
	   vpravo dole jako jediný výrazný prvek. */
	.guide-grid {
		list-style: none;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.625rem;
		padding: 0;
	}
	.guide-card {
		position: relative;
		overflow: hidden;
		min-height: 7.5rem;
		padding: 1.125rem 1.125rem 3.5rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
		isolation: isolate;
	}
	.guide-card__heading {
		display: block;
		color: var(--text);
		font-size: 1.0625rem;
		font-weight: 600;
		letter-spacing: -0.02em;
		line-height: 1.2;
	}
	.guide-card__heading:hover { text-decoration: none; color: var(--cat-ink); }
	/* Celá karta je odkazem na první stránku kategorie, odkazy na stránky leží nad ní */
	.guide-card__heading::after { content: ""; position: absolute; inset: 0; z-index: -1; }
	.guide-card__pages { display: none; }

	.guide-card__icon {
		position: absolute;
		right: 0.875rem;
		bottom: 0.875rem;
		z-index: -1;
		width: 2.5rem;
		height: 2.5rem;
		--icon-stroke: 1.1;
		color: color-mix(in srgb, var(--cat) 75%, var(--cat-soft));
		pointer-events: none;
	}

	@media (min-width: 720px) {
		.guide-grid { gap: 1rem; }
		.guide-card { min-height: 15rem; padding: 1.75rem 7.5rem 2rem 1.75rem; }
		.guide-card__heading { font-size: var(--step-2); }
		.guide-card__pages {
			display: block;
			list-style: none;
			margin-top: 0.875rem;
			padding: 0;
			font-size: 0.9375rem;
			line-height: 1.45;
		}
		.guide-card__pages li + li { margin-top: 0.3125rem; }
		.guide-card__pages a { color: var(--text-2); }
		.guide-card__pages a:hover { color: var(--cat-ink); text-decoration: none; }
		.guide-card__icon { right: 1.75rem; bottom: 1.75rem; width: 5.5rem; height: 5.5rem; --icon-stroke: 0.55; }
	}

	@media (min-width: 1024px) {
		.guide-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
		/* Když by poslední řádek zůstal se dvěma kartami (8, 11… kapitol), je první kapitola dvojnásobně
		   široká a mřížka vyjde beze zbytku */
		.guide-card:first-child:nth-last-child(3n + 2) { grid-column: span 2; }
		.guide-card:first-child:nth-last-child(3n + 2) .guide-card__icon { right: 3rem; width: 8.5rem; height: 8.5rem; --icon-stroke: 0.4; }
	}

	.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }

	/* Rozcestník služeb na úvodu: pastelové karty s ikonou, celá karta je odkaz */
	.services__list {
		list-style: none;
		display: grid;
		gap: 1rem;
		padding: 0;
	}
	.services__item {
		position: relative;
		display: flex;
		flex-direction: column;
		padding: 1.5rem 1.5rem 1.625rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.services__item .cat-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; --icon-stroke: 1.1; }
	.services__item h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
	.services__item h3 a { color: var(--text); }
	.services__item h3 a::after { content: ""; position: absolute; inset: 0; }
	.services__item h3 a:hover { text-decoration: none; }
	.services__item:hover h3 a { color: var(--cat-ink); }
	.services__item p { margin-top: 0.5rem; color: var(--text-2); }
	.services__item .services__price { margin-top: auto; padding-top: 1rem; color: var(--text); font-weight: 600; }
	@media (min-width: 720px) { .services__list { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 1024px) { .services__list { grid-template-columns: repeat(4, 1fr); gap: 1.25rem; } }

	/* Důvěryhodnost pod službami: čísla */
	.trust { margin-top: clamp(2.5rem, 5vw, 4rem); }
	.trust .prices__value { font-size: var(--step-3); }

	.latest { margin-top: clamp(4rem, 9vw, 7rem); }
	.latest__list {
		display: grid;
		gap: 2rem;
		margin-top: 1.75rem;
	}
	.latest__item { padding-top: 1.25rem; border-top: 1px solid var(--line); }
	.latest__date { color: var(--text-2); font-size: var(--step--1); }
	.latest__item h3 { margin-top: 0.375rem; font-size: var(--step-1); line-height: 1.25; }
	.latest__item h3 a { color: var(--text); }
	.latest__item h3 a:hover { color: var(--link); text-decoration: none; }
	.latest__perex {
		display: -webkit-box;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
		overflow: hidden;
		margin-top: 0.625rem;
		color: var(--text-2);
		font-size: 0.9375rem;
	}

	@media (min-width: 720px) {
		/* Nadpisy mají jeden až tři řádky: řádky mřížky sdílí všechny články, perexy tak začínají stejně */
		.latest__list { grid-template-columns: repeat(3, 1fr); gap: 0 2.5rem; }
		.latest__item { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; }
		.latest__item h3 { align-self: start; }
	}

	/* --- Konzultace a autor pod obsahem --- */

	.closing {
		display: grid;
		gap: 1.25rem;
		max-width: var(--page);
		margin: clamp(4rem, 9vw, 7rem) auto 0;
	}

	/* Konzultace: stejný blok jako autor (viz níže). Na desktopu je fotka vlevo, aby se Martin díval
	   k textu; u autora je naopak vpravo */
	.consult {
		display: grid;
		overflow: hidden;
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.consult__photo {
		width: 100%;
		aspect-ratio: 3 / 2;
		object-fit: cover;
		object-position: 60% 50%;
	}
	.consult__text { padding: 2rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem; }
	.consult h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
	.consult p { max-width: 34rem; margin-top: 1.25rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
	.consult p.consult__action { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2rem; font-size: var(--step-0); }
	/* Poděkování kávou až za nabídkou pomoci, jen drobný řádek */
	.consult p.consult__coffee { margin-top: 1.25rem; font-size: var(--step--1); }

	@media (min-width: 720px) {
		/* Fotka čtvercová jako u autora, oba bloky jsou tak stejně vysoké */
		.consult { grid-template-columns: minmax(16rem, 5fr) 7fr; align-items: center; }
		.consult__photo { height: 100%; aspect-ratio: 1; }
		.consult__text { padding-block: 3rem; }
	}

	/* Autor: velká fotka a vedle ní text, na mobilu fotka nahoře */
	.author {
		display: grid;
		overflow: hidden;
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.author__photo {
		width: 100%;
		aspect-ratio: 1;
		object-fit: cover;
		/* Fotka na šířku, Martin stojí kousek vlevo od středu */
		object-position: 45% 50%;
	}
	.author__text { padding: 2rem clamp(1.5rem, 5vw, 3.5rem) 2.5rem; }
	.author h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
	.author p { max-width: 34rem; margin-top: 1.25rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
	.author p.author__links { margin-top: 2rem; font-size: var(--step-0); }

	@media (min-width: 720px) {
		.author { grid-template-columns: 7fr minmax(16rem, 5fr); align-items: center; }
		.author__photo { order: 1; }
		.author__photo { height: 100%; }
		.author__text { padding-block: 3rem; }
	}

	/* --- Stránka průvodce --- */

	/* Kapitola: přepínač stránek jedné sekce, na mobilu vodorovně posuvný */
	.chapter {
		border-bottom: 1px solid var(--line-soft);
	}
	.chapter__inner {
		display: flex;
		align-items: center;
		gap: 1.25rem;
		max-width: var(--page-padded);
		margin: 0 auto;
		padding: 0.625rem var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
	}
	.chapter__inner::-webkit-scrollbar { display: none; }
	.chapter__name {
		display: flex;
		align-items: center;
		gap: 0.5rem;
		flex: none;
		font-size: 0.9375rem;
		font-weight: 600;
	}
	.chapter__pages {
		list-style: none;
		display: flex;
		gap: 0.25rem;
		padding: 0;
		font-size: 0.875rem;
	}
	.chapter__pages a {
		display: block;
		padding: 0.3125rem 0.75rem;
		border-radius: 999px;
		color: var(--text-2);
		white-space: nowrap;
	}
	.chapter__pages a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }
	.chapter__pages a[aria-current="page"] { color: var(--text); background: var(--bg-soft); font-weight: 500; }

	.article { max-width: var(--wide); margin: 0 auto; }

	.article__header {
		max-width: 48rem;
		margin: 0 auto;
		padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
		text-align: center;
	}
	.article__header h1 {
		font-size: var(--step-4);
		font-weight: 700;
		letter-spacing: -0.035em;
		line-height: 1.08;
	}
	.article__perex {
		max-width: 38rem;
		margin: 1.5rem auto 0;
		color: var(--text-2);
		font-size: var(--step-1);
		line-height: 1.5;
	}
	.article__byline {
		display: inline-flex;
		align-items: center;
		gap: 0.625rem;
		margin-top: 1.75rem;
		color: var(--text-2);
		font-size: var(--step--1);
	}
	.article__byline img { width: 2rem; height: 2rem; border-radius: 50%; }

	/* Přepínač na šířku obrázků a tabulek, ne jen textu: dvě karty vedle sebe pak nelámou nadpisy */
	.pager {
		display: grid;
		gap: 0.75rem;
		max-width: var(--wide);
		margin: 4rem auto 0;
	}
	.pager__link {
		display: grid;
		gap: 0.25rem;
		padding: 1.125rem 1.375rem;
		border: 1px solid var(--line);
		border-radius: var(--radius);
		color: var(--text);
	}
	.pager__link:hover { border-color: var(--accent); text-decoration: none; }
	.pager__label { display: flex; align-items: center; gap: 0.375rem; color: var(--text-2); font-size: var(--step--1); }
	.pager__title { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; }
	.pager__link--next { text-align: right; }
	.pager__link--next .pager__label { flex-direction: row-reverse; justify-content: flex-start; }

	@media (min-width: 720px) {
		.pager { grid-template-columns: 1fr 1fr; }
		.pager__link--next:only-child { grid-column: 2; }
	}

	/* Rozcestník přechodu z Windows pod tabulkou rozdílů: kapitoly průvodce v pořadí */
	.switch { max-width: var(--measure); margin: 4rem auto 0; }
	.switch h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
	.switch__lead { margin-top: 0.75rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
	.switch__steps { list-style: none; margin-top: 1.5rem; padding: 0; border-top: 1px solid var(--line-soft); }
	.switch__steps li {
		display: flex;
		align-items: flex-start;
		gap: 1rem;
		padding: 1rem 0;
		border-bottom: 1px solid var(--line-soft);
	}
	.switch__steps .cat-icon {
		width: 2.5rem;
		height: 2.5rem;
		padding: 0.4375rem;
		border-radius: 0.75rem;
		background: var(--cat-soft);
		--icon-stroke: 1.3;
	}
	.switch__steps a { color: var(--text); font-weight: 600; }
	.switch__steps a:hover { color: var(--cat-ink); text-decoration: none; }
	.switch__steps p { margin-top: 0.125rem; color: var(--text-2); line-height: 1.45; }

	/* --- Stránky služeb a kurzů --- */

	/* Záhlaví stránky: stejný rytmus jako nadpis článku průvodce */
	.page-hero {
		max-width: 50rem;
		margin: 0 auto;
		padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
		text-align: center;
	}
	.page-hero h1 {
		font-size: var(--step-4);
		font-weight: 700;
		letter-spacing: -0.035em;
		line-height: 1.05;
	}
	.page-hero__lead {
		max-width: 38rem;
		margin: 1.5rem auto 0;
		color: var(--text-2);
		font-size: var(--step-1);
		line-height: 1.5;
	}
	.page-hero__action { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2rem; }

	/* Záhlaví s fotkou: text vlevo, fotka vpravo; na mobilu fotka pod textem */
	.page-hero--split {
		display: grid;
		gap: 2.5rem;
		max-width: var(--page);
		padding-top: clamp(2.5rem, 6vw, 4.5rem);
		text-align: left;
	}
	.page-hero--split .page-hero__lead { margin-inline: 0; }
	.page-hero--split .page-hero__action { justify-content: flex-start; }
	.page-hero__photo {
		width: 100%;
		aspect-ratio: 4 / 3;
		object-fit: cover;
		border-radius: var(--radius);
	}
	@media (min-width: 1024px) {
		.page-hero--split { grid-template-columns: 6fr 5fr; gap: 4rem; align-items: center; }
		.page-hero--split .page-hero__photo { aspect-ratio: 1; }
	}

	/* Odkazy na části stránky pod záhlavím webu */
	.subnav { border-bottom: 1px solid var(--line-soft); }
	.subnav__inner {
		list-style: none;
		display: flex;
		gap: 0.25rem;
		max-width: var(--page-padded);
		margin: 0 auto;
		padding: 0.625rem var(--gutter);
		overflow-x: auto;
		scrollbar-width: none;
		font-size: 0.875rem;
	}
	.subnav__inner::-webkit-scrollbar { display: none; }
	/* Na mobilu lišta vždy začíná vlevo. Na širším displeji na střed, jen když se vejde; jinak automatické
	   okraje zmizí a lišta začíná první položkou (justify-content: center by při posouvání schoval začátek
	   vlevo mimo dosah) */
	@media (min-width: 720px) {
		.subnav__inner > :first-child { margin-left: auto; }
		.subnav__inner > :last-child { margin-right: auto; }
	}
	.subnav a {
		display: block;
		padding: 0.3125rem 0.875rem;
		border-radius: 999px;
		color: var(--text-2);
		white-space: nowrap;
	}
	.subnav a:hover { color: var(--text); background: var(--bg-soft); text-decoration: none; }

	.section {
		max-width: var(--page);
		margin: clamp(4rem, 9vw, 7rem) auto 0;
	}
	.section > .section-title { margin-bottom: 2rem; }
	.section__lead { max-width: 40rem; margin: -1rem 0 2rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
	.section__note { margin-top: 1.5rem; color: var(--text-2); }

	/* Objednávka: sazby vlevo, formulář vpravo */
	.order {
		display: grid;
		gap: 2.5rem;
		max-width: var(--page);
		margin: 0 auto;
	}
	.order__info h2 { font-size: var(--step-2); }
	.order__note { margin-top: 1.5rem; color: var(--text-2); }

	@media (min-width: 1024px) {
		.order { grid-template-columns: 5fr 7fr; gap: 4rem; align-items: start; }
		.order__info { padding-top: 2.5rem; }
	}

	/* Ceny a čísla: velká hodnota, nad ní co to je, pod ní podmínky */
	.prices { display: grid; margin: 1.5rem 0 0; }
	.prices > div { padding: 1.25rem 0; border-top: 1px solid var(--line); }
	.prices dt { color: var(--text-2); font-size: 0.9375rem; }
	.prices dd { margin: 0; color: var(--text-2); font-size: 0.9375rem; }
	.prices .prices__value {
		margin: 0.125rem 0 0.375rem;
		color: var(--text);
		font-size: var(--step-2);
		font-weight: 600;
		letter-spacing: -0.025em;
		line-height: 1.2;
	}
	/* Vedle sebe tam, kde nejsou vedle formuláře */
	.prices--row { gap: 0 2.5rem; }
	@media (min-width: 720px) {
		.prices--row { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
	}

	/* Formulář v panelu */
	.order__form {
		padding: clamp(1.5rem, 4vw, 2.5rem);
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.125rem 1rem; }
	.form > * { grid-column: 1 / -1; }
	.form__title { margin-bottom: 0.25rem; font-size: var(--step-2); }
	/* align-content: start – chybová hláška pod polem nesmí natáhnout pole vedle ve stejném řádku */
	.field { position: relative; display: grid; gap: 0.375rem; align-content: start; }
	.field--half { grid-column: auto / span 2; }
	@media (min-width: 560px) {
		.field--half { grid-column: auto / span 1; }
	}
	.field label { font-size: 0.9375rem; font-weight: 500; }
	.field label span { color: var(--text-2); font-weight: 400; }
	.field input,
	.field textarea {
		width: 100%;
		padding: 0.75rem 0.9375rem;
		border: 1px solid var(--line);
		border-radius: var(--radius-s);
		background: var(--bg-raised);
		color: var(--text);
		font: inherit;
		letter-spacing: inherit;
	}
	.field textarea { min-height: 8rem; resize: vertical; }
	.field input:focus-visible,
	.field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
	.form__submit { margin-top: 0.5rem; }
	.form .ares-result-row { margin-top: -0.5rem; font-size: 0.9375rem; color: var(--text-2); }
	.form .ares-result-row[hidden] { display: none; }
	.ares-ok { color: #248a3d; }
	.ares-error { color: #d70015; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.ares-ok { color: #30d158; }
		.ares-error { color: #ff6961; }
		}
	}
	:root[data-theme="dark"] {
		.ares-ok { color: #30d158; }
		.ares-error { color: #ff6961; }
	}
	.message-sent {
		padding: 2rem 0;
		font-size: var(--step-1);
		line-height: 1.5;
	}
	.message-sent strong { display: block; margin-bottom: 0.375rem; font-size: var(--step-2); }
	.message-sent em { display: block; margin-top: 1rem; color: var(--text-2); font-size: 0.9375rem; font-style: normal; }

	/* Výčet služeb nebo výhod: nadpis a krátký text, bez ikon */
	.features {
		list-style: none;
		display: grid;
		gap: 2rem 3rem;
		padding: 0;
	}
	.features li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
	.features h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
	.features p { margin-top: 0.5rem; color: var(--text-2); }
	@media (min-width: 720px) {
		.features { grid-template-columns: repeat(2, 1fr); }
	}
	@media (min-width: 1024px) {
		.features--4 { grid-template-columns: repeat(4, 1fr); }
		.features--3 { grid-template-columns: repeat(3, 1fr); }
	}

	/* Úvodní text stránky a výčet témat */
	.intro { max-width: var(--page); margin: 0 auto; }
	.intro__text { max-width: 46rem; font-size: var(--step-1); line-height: 1.55; }
	.intro__label { margin-bottom: 1.25rem; }
	.intro__label { margin-top: 2rem; color: var(--text-2); }
	.topics {
		list-style: none;
		display: grid;
		gap: 0 2.5rem;
		margin-top: 0.75rem;
		padding: 0;
	}
	.topics li { padding: 0.875rem 0 0.875rem 1.75rem; border-top: 1px solid var(--line-soft); position: relative; }
	.topics li::before {
		content: "";
		position: absolute;
		left: 0.125rem;
		top: 1.375rem;
		width: 0.75rem;
		height: 0.375rem;
		border-left: 2px solid var(--accent);
		border-bottom: 2px solid var(--accent);
		transform: rotate(-45deg);
	}
	@media (min-width: 720px) {
		.topics { grid-template-columns: 1fr 1fr; }
	}

	/* Loga klientů: jednobarevná, ať nepřekřikují obsah */
	.logos {
		list-style: none;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
		padding: 0;
	}
	.logos a {
		display: grid;
		place-items: center;
		height: 6.5rem;
		padding: 1.5rem 2rem;
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.logos img {
		max-width: 100%;
		max-height: 2.75rem;
		width: auto;
		filter: grayscale(1);
		opacity: 0.75;
	}
	.logos a:hover img { opacity: 1; }
	/* Na mobilu jsou sloupce úzké, zúžení by z nápisu udělalo drobek */
	.logos img.logo--wide { max-height: 1.75rem; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.logos img { filter: grayscale(1) invert(1); }
		}
	}
	:root[data-theme="dark"] {
		.logos img { filter: grayscale(1) invert(1); }
	}
	@media (min-width: 720px) {
		.logos { grid-template-columns: repeat(3, 1fr); }
		.logos img.logo--wide { max-width: 52%; }
	}

	/* O mně: fotka a představení vedle sebe */
	.profile {
		display: grid;
		gap: 2rem;
		max-width: var(--page);
		margin: 0 auto;
	}
	/* Fotka na šířku ořezaná do čtverce; posunutá, aby byl Martin s notebookem na středu */
	.profile__photo { width: 100%; max-width: 30rem; aspect-ratio: 1; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); }
	.profile h2 { font-size: var(--step-3); letter-spacing: -0.03em; }
	.profile p { margin-top: 1.125rem; font-size: var(--step-1); line-height: 1.55; }
	.profile .profile__social { color: var(--text-2); font-size: var(--step-0); }
	.profile .profile__action { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.75rem; font-size: var(--step-0); }
	.profile b { font-weight: 600; }
	@media (min-width: 720px) {
		.profile { grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
	}

	/* Milníky: svislá linka s body, texty jdou po sobě v čase */
	.milestones {
		list-style: none;
		max-width: var(--wide);
		margin: 0 auto;
		padding: 0;
	}
	.milestones li {
		position: relative;
		padding: 0 0 1.75rem 2.25rem;
		font-size: var(--step-1);
		line-height: 1.5;
	}
	.milestones li::before {
		content: "";
		position: absolute;
		left: 0.3125rem;
		top: 0.75rem;
		bottom: -0.75rem;
		width: 1px;
		background: var(--line);
	}
	.milestones li:last-child::before { display: none; }
	.milestones li::after {
		content: "";
		position: absolute;
		left: 0;
		top: 0.5rem;
		width: 0.6875rem;
		height: 0.6875rem;
		border-radius: 50%;
		background: var(--bg);
		box-shadow: inset 0 0 0 2px var(--accent);
	}

	.prices--big .prices__value { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; }

	/* Kontakt */
	.contact-card { max-width: var(--page); margin: 0 auto; }
	.contact-card__who h2 { font-size: var(--step-2); }
	.contact-card__who h2 a { color: var(--text); }
	.contact-card .role { margin-top: 0.25rem; color: var(--text-2); }
	.contact-card .prices__value { font-size: var(--step-1); overflow-wrap: anywhere; }
	.contact-card .prices__value a { color: var(--link); }
	/* Rozcestník pod vizitkou: menší karty služeb, ikona vedle textu */
	.contact-paths { max-width: var(--page); margin: clamp(2.5rem, 6vw, 4rem) auto 0; }
	.contact-paths h2 { margin-bottom: 1rem; font-size: var(--step-1); letter-spacing: -0.02em; }
	.services__item--compact { display: grid; grid-template-columns: auto 1fr; align-items: start; column-gap: 1rem; padding: 1.25rem 1.375rem; }
	.services__item--compact .cat-icon { grid-row: span 2; width: 2.25rem; height: 2.25rem; margin: 0; }
	.services__item--compact p { margin-top: 0.25rem; }
	@media (min-width: 1024px) { .services__list--pair { grid-template-columns: repeat(2, 1fr); } }
	/* Tři služby (úvod prvymac.sk, bez živých kurzů) */
	@media (min-width: 1024px) { .services__list--three { grid-template-columns: repeat(3, 1fr); } }
	.billing { margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.55; }
	.billing--small { margin-top: 0.75rem; color: var(--text-2); font-size: 0.9375rem; }

	/* Sekce hned pod záhlavím stránky nepotřebuje velkou mezeru */
	.section--first { margin-top: 0; }
	.order.section { margin-top: clamp(4rem, 9vw, 7rem); }
	@media (min-width: 1024px) {
		.order--single { grid-template-columns: minmax(0, var(--wide)); }
	}
	.empty { max-width: 40rem; color: var(--text-2); font-size: var(--step-1); line-height: 1.5; }
	.section__note a + a { display: table; margin-top: 0.375rem; }
	.sold-out { color: #d70015; font-weight: 600; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.sold-out { color: #ff6961; }
		}
	}
	:root[data-theme="dark"] {
		.sold-out { color: #ff6961; }
	}
	.form__summary { margin-top: -0.75rem; color: var(--text-2); font-size: 0.9375rem; }
	.order__info .prose { margin-top: 1rem; }

	/* Termíny kurzů: datum, kurz a místo, tlačítko */
	.terms { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
	.term {
		display: grid;
		gap: 0.5rem 2rem;
		padding: 1.5rem 0;
		border-top: 1px solid var(--line);
	}
	/* Datum a kurz mají stejnou skladbu (řádek velikosti nadpisu + šedý řádek), aby oba sloupce seděly na sebe */
	.term__date,
	.term__course h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
	.term__date span,
	.term__course p { display: block; margin-top: 0.25rem; color: var(--text-2); font-size: var(--step-0); font-weight: 400; letter-spacing: 0; line-height: 1.4; }
	.term__course h3 a { color: var(--text); }
	.term__action { margin-top: 0.5rem; }
	.term--full .term__date,
	.term--full .term__course h3 a { color: var(--text-2); }
	@media (min-width: 720px) {
		.term { grid-template-columns: 13rem 1fr auto; align-items: center; }
		.term__action { margin-top: 0; }
	}

	/* Online kurzy */
	.online {
		list-style: none;
		display: grid;
		gap: 1rem;
		padding: 0;
	}
	.online__item {
		display: flex;
		flex-direction: column;
		padding: 1.75rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.online__item > .cat-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; --icon-stroke: 1.1; }
	.online__item h3 { font-size: var(--step-1); letter-spacing: -0.02em; line-height: 1.25; }
	.online__desc { margin-top: 0.5rem; color: var(--text-2); }
	.online__meta { display: flex; gap: 1.25rem; margin-top: 0.75rem; color: var(--text-2); font-size: 0.9375rem; }
	.online__meta span { display: inline-flex; align-items: center; gap: 0.375rem; }
	.online__meta-icon { width: 1.25rem; height: 1.25rem; --icon-stroke: 1.5; }

	/* Odkazy dál jako karty s ikonou a šipkou */
	.link-cards { list-style: none; display: grid; gap: 0.75rem; margin-top: 1.5rem; padding: 0; }
	.link-cards a {
		display: flex;
		align-items: center;
		gap: 1rem;
		height: 100%;
		padding: 1.125rem 1.375rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
		color: var(--text);
		font-weight: 500;
	}
	.link-cards a:hover { text-decoration: none; color: var(--cat-ink); }
	.link-cards .cat-icon { width: 2.25rem; height: 2.25rem; --icon-stroke: 1.2; }
	.link-cards a > span:not(.cat-icon) { flex: 1; }
	.link-cards .i { color: var(--cat); }
	@media (min-width: 720px) { .link-cards { grid-template-columns: 1fr 1fr; } }
	.online__buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-top: auto; padding-top: 1.5rem; }
	.online__buy del { color: var(--text-2); }
	@media (min-width: 720px) { .online { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 1024px) { .online { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; } }

	/* Pastelové karty s ikonou v barvě karty (--cat nastavuje šablona), stejný jazyk jako průvodce */
	.prices--cards { gap: 0.75rem; }
	.prices--cards > div {
		padding: 1.375rem 1.5rem 1.5rem;
		border: 0;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.prices--cards dt { display: flex; align-items: center; gap: 0.625rem; color: var(--text); font-weight: 500; }
	.prices--cards dt .cat-icon { width: 1.75rem; height: 1.75rem; --icon-stroke: 1.3; }
	.prices--cards .prices__value { margin-top: 0.75rem; }
	.prices--cards.prices--row { gap: 0.75rem 1rem; }
	.prices--big.prices--cards .prices__value { color: var(--cat-ink); }

	.features--cards { gap: 1rem; }
	.features--cards li {
		padding: 1.5rem 1.5rem 1.625rem;
		border: 0;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.features--cards .cat-icon { width: 2.5rem; height: 2.5rem; margin-bottom: 1rem; --icon-stroke: 1.1; }
	.features--topics li { display: flex; align-items: center; gap: 1rem; padding: 1.125rem 1.25rem; }
	.features--topics .cat-icon { width: 2.25rem; height: 2.25rem; margin: 0; }
	.features--topics p { margin: 0; color: var(--text); }
	@media (min-width: 1024px) {
		.features--topics { grid-template-columns: repeat(3, 1fr); }
	}

	/* Druhý řádek nadpisu menším řezem (Kávárna) */
	.page-hero__sub { display: block; margin-top: 0.5rem; color: var(--text-2); font-size: 0.55em; font-weight: 600; letter-spacing: -0.025em; }
	.subnav a[aria-current="page"] { color: var(--text); background: var(--bg-soft); font-weight: 500; }

	/* Výpis článků: typografický seznam, datum a štítky nad nadpisem */
	.posts { max-width: var(--page); margin: 0 auto; border-bottom: 1px solid var(--line-soft); }
	/* Náhled celý v původním poměru stran (bez ořezu), vlevo od textu */
	.post--image { display: grid; gap: 1.25rem; }
	.post__image img { width: 100%; border-radius: var(--radius-s); }
	@media (min-width: 720px) {
		.post--image { grid-template-columns: minmax(14rem, 22rem) 1fr; gap: 2.5rem; align-items: start; }
		.post .post__text { padding-top: 0.25rem; }
	}
	.post { padding: 2rem 0; border-top: 1px solid var(--line-soft); }
	.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.875rem; color: var(--text-2); font-size: var(--step--1); }
	.post__meta a,
	.article__tags a {
		padding: 0.1875rem 0.6875rem;
		border-radius: 999px;
		background: color-mix(in srgb, var(--accent) 10%, var(--bg));
		color: var(--link);
	}
	.post__meta a:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
	.post h2 { margin-top: 0.5rem; font-size: var(--step-2); letter-spacing: -0.025em; line-height: 1.2; }
	.post h2 a { color: var(--text); }
	.post h2 a:hover { color: var(--link); text-decoration: none; }
	.post__perex { max-width: var(--measure); margin-top: 0.75rem; color: var(--text-2); }
	.pager--posts { max-width: var(--page); }

	/* Článek */
	.article__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-bottom: 1.25rem; font-size: var(--step--1); }
	.article__tags a {
		padding: 0.25rem 0.75rem;
		border-radius: 999px;
		background: color-mix(in srgb, var(--accent) 10%, var(--bg));
		color: var(--link);
	}
	.article__tags a:hover { text-decoration: none; background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
	.article__cover { max-width: var(--wide); margin: 0 auto 2.5rem; }
	.article__cover img { width: 100%; border-radius: var(--radius); }

	/* Slovníček: písmeno vlevo, hesla jako rozbalovací řádky */
	.glossary { max-width: var(--wide); margin: 0 auto; }
	.glossary__letter { display: grid; gap: 0.5rem 2rem; padding: 1.5rem 0; border-top: 1px solid var(--line-soft); }
	.glossary__letter h2 { font-size: var(--step-3); color: var(--accent); line-height: 1; }
	@media (min-width: 720px) {
		.glossary__letter { grid-template-columns: 5rem 1fr; }
	}
	.term-item { border-bottom: 1px solid var(--line-soft); }
	.term-item:last-child { border-bottom: 0; }
	.term-item summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		padding: 0.875rem 0;
		cursor: pointer;
		font-size: var(--step-1);
		font-weight: 500;
		letter-spacing: -0.015em;
		list-style: none;
	}
	.term-item summary::-webkit-details-marker { display: none; }
	.term-item dfn { font-style: normal; }
	.term-item summary::after {
		content: "";
		flex: none;
		width: 0.5rem;
		height: 0.5rem;
		margin-right: 0.25rem;
		border-right: 2px solid var(--text-2);
		border-bottom: 2px solid var(--text-2);
		transform: rotate(45deg) translateY(-2px);
		transition: transform 0.2s;
	}
	.term-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
	.term-item summary:hover { color: var(--link); }
	.term-item__body { padding: 0 0 1.5rem; color: var(--text); }
	/* Obrázek hesla je ikona (často černá kresba): malá vedle textu, na světlém podkladu i v tmavém režimu */
	.term-item__body { display: flex; align-items: flex-start; gap: 1.25rem; }
	.term-item__body figure { flex: none; width: 4.5rem; margin: 0.25rem 0 0; }
	.term-item__body figure img { padding: 0.625rem; border-radius: var(--radius-s); background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); }
	/* Text hesla je v obalu: holý text s odkazem by se ve flexu rozpadl na samostatné sloupce */
	.term-item__text { flex: 1; min-width: 0; }
	.term-item__body > :first-child,
	.term-item__body .text-wrap > :first-child { margin-top: 0; }

	/* Právní texty: jen čitelná šířka */
	.prose--legal { max-width: var(--wide); margin: 0 auto; }
	.prose--legal h2 { font-size: var(--step-1); }
	.prose--legal h3 { font-size: var(--step-0); }

	/* Kávárna */
	/* Text nad formulářem, formulář samostatně na středu */
	.coffee-order { display: grid; gap: 2.5rem; max-width: 40rem; margin: 0 auto; }
	.coffee-order .intro__text { font-size: var(--step-0); line-height: 1.65; text-align: center; }
	.coffee-order__form {
		padding: clamp(1.5rem, 4vw, 2.5rem);
		border-radius: var(--radius);
		background: var(--cat-soft);
	}

	/* Vlastní formulář pozvání na kávu (pozvani-na-kavu.php, chování v objednavka.js).
	   Nabídka káv je širší než text, aby se na počítači vešlo pět dlaždic vedle sebe; údaje a platba
	   mají čitelnou šířku formuláře. */
	.coffee-order--shop { max-width: var(--wide); }
	.coffee-order--shop .intro__text { max-width: 40rem; margin-inline: auto; }
	.coffee-form { display: grid; gap: 2rem; }
	.coffee-form fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
	.coffee-form legend { padding: 0; }
	.coffee-form__title { width: 100%; margin-bottom: 1rem; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.022em; text-align: center; }
	.coffee-form__subtitle { margin-bottom: 0.875rem; font-size: var(--step-1); font-weight: 600; letter-spacing: -0.015em; }

	/* Nabídka: jeden seznam, na telefonu řádky (kresba, název a cena, počítadlo), od 720 px dlaždice vedle sebe.
	   Názvy se zalamují, aby se vešly i delší položky (kurz s datem). */
	.coffee-pick__list { display: grid; gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
	.coffee-item {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 0.875rem;
		padding: 0.75rem 0.875rem;
		border: 2px solid transparent;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.coffee-item.is-on { border-color: var(--cat); }
	.coffee-item__art { width: 3rem; height: 3rem; color: var(--cat); }
	.coffee-item__text { display: grid; gap: 0.125rem; min-width: 0; }
	.coffee-item__name { font-weight: 600; line-height: 1.3; overflow-wrap: break-word; }
	.coffee-item__price { color: var(--text-2); font-size: 0.9375rem; }
	@media (min-width: 720px) {
		.coffee-pick__list { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
		.coffee-item {
			grid-template-columns: minmax(0, 1fr);
			grid-template-rows: auto 1fr auto;
			justify-items: center;
			gap: 0.625rem;
			padding: 1.125rem 0.5rem 1rem;
			text-align: center;
		}
		.coffee-item__art { width: 3.5rem; height: 3.5rem; }
		.coffee-item__text { align-content: start; }
	}

	/* Počítadlo −/+ (tlačítka ukáže skript, bez něj zůstane číselné pole) */
	.stepper { display: inline-flex; align-items: center; gap: 0.5rem; }
	.stepper__button {
		display: grid;
		place-items: center;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0 0 0.125rem;
		border: 1px solid var(--line);
		border-radius: 50%;
		background: var(--bg-raised);
		color: var(--text);
		font: inherit;
		font-size: 1.25rem;
		line-height: 1;
		cursor: pointer;
	}
	.stepper__button[hidden] { display: none; }
	.stepper__button:hover { border-color: var(--cat); color: var(--cat-ink); }
	.stepper__button[aria-disabled="true"] { color: var(--line); border-color: var(--line-soft); cursor: default; }
	.stepper__count { min-width: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; }
	.stepper__count[hidden], .stepper__input[hidden] { display: none; }
	.stepper__input {
		width: 4rem;
		padding: 0.375rem 0.5rem;
		border: 1px solid var(--line);
		border-radius: var(--radius-s);
		background: var(--bg-raised);
		color: var(--text);
		font: inherit;
		text-align: center;
	}

	/* Součet pod nabídkou */
	.coffee-pick__sum {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 1rem;
		margin-top: 1rem;
		padding: 0.875rem 0.25rem 0;
		border-top: 1px solid var(--line-soft);
	}
	.coffee-pick__sum[hidden] { display: none; }
	.coffee-pick__sum strong { font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }

	/* Údaje a platba v panelu */
	.coffee-form__panel {
		display: grid;
		gap: 1.75rem;
		width: 100%;
		max-width: 40rem;
		margin-inline: auto;
		padding: clamp(1.25rem, 4vw, 2.25rem);
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.coffee-summary {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 1rem;
		padding: 0.75rem 1rem;
		border-radius: var(--radius-s);
		background: var(--cat-soft);
	}
	.coffee-summary[hidden] { display: none; }
	.coffee-summary strong { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
	.coffee-check { display: flex; align-items: center; gap: 0.625rem; margin: 0.25rem 0 0; }
	.coffee-check input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--accent); }
	/* IČO jen se zaškrtnutými fakturačními údaji (funguje i bez skriptu) */
	.coffee-ico { display: none; gap: 0.75rem; }
	.coffee-form:has(#coffee-invoice:checked) .coffee-ico { display: grid; }
	.coffee-ico .field { max-width: 14rem; }
	.coffee-ares {
		display: grid;
		gap: 0.125rem;
		padding: 0.875rem 1rem;
		border-radius: var(--radius-s);
		background: var(--bg-raised);
		box-shadow: inset 0 0 0 1px var(--line-soft);
		font-size: 0.9375rem;
		line-height: 1.5;
	}
	.coffee-ares[hidden] { display: none; }
	.coffee-ares strong { font-weight: 600; }
	.coffee-ares small { margin-top: 0.25rem; color: var(--text-2); font-size: 0.8125rem; }
	.coffee-ares__name::before { content: "✓\00a0"; color: #248a3d; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.coffee-ares__name::before { color: #30d158; }
		}
	}
	:root[data-theme="dark"] {
		.coffee-ares__name::before { color: #30d158; }
	}

	/* Volby platby: přepínače jako karty, každá s jednou ikonou */
	.coffee-pay__options { display: grid; gap: 0.75rem; }
	@media (min-width: 560px) {
		.coffee-pay__options { grid-template-columns: 1fr 1fr; }
	}
	.pay-option {
		position: relative;
		display: grid;
		align-content: start;
		gap: 0.375rem;
		padding: 1rem 1.125rem;
		border: 2px solid var(--line);
		border-radius: var(--radius);
		background: var(--bg-raised);
		cursor: pointer;
	}
	.pay-option:hover { border-color: var(--text-2); }
	.pay-option:has(:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg-raised)); }
	.pay-option:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
	.pay-option__icon { width: 1.75rem; height: 1.75rem; margin-bottom: 0.25rem; color: var(--text-2); }
	.pay-option:has(:checked) .pay-option__icon { color: var(--accent); }
	.pay-option__title { font-weight: 600; }
	.pay-option__note { color: var(--text-2); font-size: 0.875rem; line-height: 1.45; }

	.coffee-form__submit { width: 100%; white-space: normal; }
	.coffee-form__submit:disabled { opacity: 0.6; cursor: default; }

	/* Chyby u skupin (u polí je .field .error-bubble) */
	.coffee-form__error { margin: 0.75rem 0 0; color: #d70015; font-size: 0.875rem; }
	.coffee-form__error[hidden] { display: none; }
	.coffee-form__error--form { margin: 0; font-size: 0.9375rem; }
	.coffee-pick .coffee-form__error { text-align: center; }
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.coffee-form__error { color: #ff6961; }
		}
	}
	:root[data-theme="dark"] {
		.coffee-form__error { color: #ff6961; }
	}

	/* Detail kurzu (course.php): obsah kurzu vedle bloku Co je dobré vědět */
	.about-course { display: grid; gap: 2.5rem; }
	.about-course > * { min-width: 0; }
	.about-course .section-title { margin-bottom: 1.25rem; }
	@media (min-width: 900px) {
		.about-course { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
	}
	/* Pastelové řádky s tónovanou ikonou, nadpisem a krátkým textem */
	.facts { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
	.facts li {
		display: flex;
		align-items: flex-start;
		gap: 0.875rem;
		padding: 1.125rem 1.25rem;
		border-radius: var(--radius);
		background: color-mix(in srgb, var(--cat) 9%, var(--bg));
	}
	.facts .cat-icon { flex: none; width: 2.25rem; height: 2.25rem; }
	.facts h3 { margin: 0.125rem 0 0.25rem; font-size: var(--step-0); font-weight: 600; }
	.facts p { margin: 0; color: var(--text-2); font-size: var(--step--1); line-height: 1.45; }

	/* Přihláška na kurz: široký panel, na počítači účastníci vlevo a fakturace s platbou vpravo.
	   IČO, ARES, volby platby a chyby jsou sdílené s formulářem kávy (coffee-*, pay-option). */
	.signup {
		display: grid;
		gap: 1.5rem;
		padding: clamp(1.25rem, 4vw, 3rem);
		border-radius: var(--radius);
		background: var(--bg-soft);
	}
	.signup > * { min-width: 0; }
	.signup__title { margin: 0; font-size: var(--step-2); }
	.signup__ticket {
		display: flex;
		align-items: center;
		gap: 0.75rem;
		margin: 0;
		padding: 0.875rem 1rem;
		border-radius: var(--radius-s);
		background: color-mix(in srgb, var(--cat) 10%, var(--bg));
		font-size: var(--step--1);
		line-height: 1.4;
	}
	.signup__ticket .cat-icon { flex: none; width: 2rem; height: 2rem; }
	.signup__group { display: grid; gap: 0.75rem; min-width: 0; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
	.signup__group legend { padding: 0; }
	.signup__people { display: contents; }
	.person {
		padding: 1rem 1.125rem 1.125rem;
		border: 1px solid var(--line-soft);
		border-radius: var(--radius-s);
		background: var(--bg-raised);
	}
	.person__label { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 0.75rem; font-size: var(--step--1); font-weight: 600; }
	.person__remove { padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 400; cursor: pointer; }
	.person__remove:hover { text-decoration: underline; }
	.signup__add {
		justify-self: start;
		padding: 0.625rem 1.125rem;
		border: 1px dashed var(--line);
		border-radius: 999px;
		background: none;
		color: var(--link);
		font: inherit;
		cursor: pointer;
	}
	.signup__add:hover { border-color: var(--link); }
	.signup__add[hidden] { display: none; }
	.signup .coffee-check { margin: 0; }
	.signup:has(#coffee-invoice:checked) .coffee-ico { display: grid; }
	.signup .coffee-form__error { margin: 0; }
	.signup__total {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 1rem;
		padding-top: 1rem;
		border-top: 1px solid var(--line);
		color: var(--text-2);
	}
	.signup__total strong { flex: none; color: var(--text); font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }
	.signup__submit { width: 100%; white-space: normal; }
	.signup__submit:disabled { opacity: 0.6; cursor: default; }
	.signup__guarantee { display: flex; align-items: center; gap: 0.625rem; margin: 0; color: var(--text-2); font-size: var(--step--1); }
	.signup__guarantee .cat-icon { flex: none; width: 1.75rem; height: 1.75rem; }
	@media (min-width: 900px) {
		.signup { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 3rem; }
		.signup > * { grid-column: 1 / -1; }
		.signup__group:nth-of-type(1) { grid-column: 1; grid-row: 3 / span 2; align-self: start; }
		.signup__group:nth-of-type(2) { grid-column: 2; grid-row: 3; }
		.signup > .field { grid-column: 2; grid-row: 4; }
		.signup > .signup__total,
		.signup > .coffee-form__error--form,
		.signup > .signup__submit,
		.signup > .signup__guarantee { grid-column: 2; }
		.signup .coffee-pay__options { grid-template-columns: 1fr; }
	}

	/* Poděkování a nedokončená platba: pastelová karta s kresbou a jedním hlavním tlačítkem */
	.coffee-done {
		display: grid;
		justify-items: center;
		gap: 1rem;
		max-width: 36rem;
		margin: 0 auto;
		padding: clamp(1.75rem, 5vw, 2.75rem) clamp(1.25rem, 5vw, 2.5rem);
		border-radius: var(--radius);
		background: var(--cat-soft);
		text-align: center;
	}
	.coffee-done__art { width: 4.5rem; height: 4.5rem; color: var(--cat); }
	.coffee-done p { margin: 0; font-size: var(--step-0); line-height: 1.6; }
	.coffee-done .button { margin-top: 0.5rem; white-space: normal; }
	@media (max-width: 559px) {
		.coffee-done .button--large { padding-inline: 1.375rem; font-size: var(--step-0); }
	}
	.coffee-done__alt { width: 100%; margin-top: 0.75rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--cat) 25%, transparent); }
	.coffee-done__alt p { color: var(--text-2); font-size: 0.9375rem; }
	.coffee-done__alt .button { margin-top: 0.875rem; }

	/* Dárek */
	.order__subtitle { margin-top: 2.5rem; font-size: var(--step-1); }
	.conditions { margin-top: 1rem; padding-left: 1.25em; color: var(--text-2); }
	.conditions li + li { margin-top: 0.625rem; }
	.conditions b { color: var(--text); font-weight: 600; }
	.prices--cards dd b { color: var(--text); font-weight: 600; }

	/* 404: točící se kolečko nad nadpisem a kapitoly průvodce jako štítky */
	/* Výška podle skutečného poměru stran animace, ať není šišatá */
	.error-wheel { width: 9rem; height: auto; margin: clamp(2rem, 6vw, 4rem) auto 0; }
	.page-error .page-hero { padding-top: 0.5rem; }
	.page-error .section { text-align: center; }
	.page-error .section-title { font-size: var(--step-2); }
	/* Užší řádek, ať se kategorie zalomí na dvě vyrovnané řady (5 + 4), ne na jednu s osamocenou poslední */
	.page-error .chips { justify-content: center; max-width: 52rem; margin-inline: auto; }
	.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.625rem; padding: 0; }
	.chips a {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.625rem 1.125rem 0.625rem 0.875rem;
		border-radius: 999px;
		background: var(--cat-soft);
		color: var(--text);
		font-weight: 500;
	}
	.chips a:hover { text-decoration: none; color: var(--cat-ink); }

	/* Konzultace: fakta pod záhlavím, průběh v krocích, výzva k telefonu, ohlasy u formuláře */
	.hero-facts {
		list-style: none;
		display: flex;
		flex-wrap: wrap;
		gap: 0.625rem;
		max-width: var(--page);
		margin: -1rem auto 0;
		padding: 0;
	}
	.hero-facts li {
		display: inline-flex;
		align-items: center;
		gap: 0.5rem;
		padding: 0.5rem 1rem 0.5rem 0.75rem;
		border-radius: 999px;
		background: var(--cat-soft);
		font-weight: 500;
	}
	.hero-facts .cat-icon { width: 1.5rem; height: 1.5rem; --icon-stroke: 1.4; }

	/* Průběh: číslované kroky (opravdu jdou po sobě) */
	.steps {
		list-style: none;
		counter-reset: step;
		display: grid;
		gap: 1.5rem 2rem;
		padding: 0;
	}
	.steps li { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--accent); }
	.steps li::before {
		content: counter(step);
		display: block;
		margin-bottom: 0.5rem;
		color: var(--accent);
		font-size: var(--step-2);
		font-weight: 700;
		line-height: 1;
	}
	.steps h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
	.steps p { margin-top: 0.5rem; color: var(--text-2); }
	@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
	@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

	.prices__value small { color: var(--text-2); font-size: 0.5em; font-weight: 500; letter-spacing: 0; }

	.call-me {
		display: flex;
		align-items: center;
		gap: 0.875rem;
		margin-top: 1.5rem;
		padding: 1rem 1.25rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
		font-size: var(--step-1);
	}
	.call-me .cat-icon { width: 2rem; height: 2rem; --icon-stroke: 1.2; }
	.call-me a { font-weight: 600; white-space: nowrap; }

	/* Vybrané ohlasy pod ceníkem i formulářem, vedle sebe */
	.order__quotes { display: grid; gap: 1rem; }
	@media (min-width: 720px) { .order__quotes { grid-template-columns: repeat(3, 1fr); } }
	.section:has(> .order__quotes) { margin-top: clamp(2rem, 4vw, 3rem); }
	.order__quotes .quote { margin: 0; }
	.quote .quote__tag {
		display: inline-block;
		margin-bottom: 0.625rem;
		padding: 0.125rem 0.625rem;
		border-radius: 999px;
		background: var(--bg);
		color: var(--cat-ink);
		font-size: var(--step--1);
		font-weight: 600;
	}

	/* Volby ve formuláři: osobně/online a štítky situací */
	.form fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
	.form legend { margin-bottom: 0.5rem; padding: 0; font-size: 0.9375rem; font-weight: 500; }
	.form legend span { color: var(--text-2); font-weight: 400; }
	.choice, .tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
	.choice legend, .tags legend { width: 100%; }
	.choice label, .tags label {
		display: inline-flex;
		align-items: center;
		gap: 0.375rem;
		padding: 0.5rem 0.875rem;
		border: 1px solid var(--line);
		border-radius: 999px;
		background: var(--bg-raised);
		font-size: 0.9375rem;
		cursor: pointer;
	}
	/* .field input by z nich udělal široká textová pole */
	.choice input, .tags input { width: auto; margin: 0; padding: 0; border: 0; accent-color: var(--accent); }
	.choice label, .tags label { font-weight: 400; }
	.choice label:has(:checked), .tags label:has(:checked) {
		border-color: var(--accent);
		background: color-mix(in srgb, var(--accent) 10%, var(--bg-raised));
		color: var(--text);
	}

	/* Časté dotazy na středu v čitelné šířce */
	.faq { text-align: center; }
	.faq__list { max-width: var(--wide); margin: 0 auto; text-align: left; }

	/* Ohlasy ve sloupcích, každý celý v jednom sloupci */
	.quotes__list { columns: 1; column-gap: 1.25rem; }
	@media (min-width: 720px) { .quotes__list { columns: 2; } }
	@media (min-width: 1024px) { .quotes__list { columns: 3; } }
	.quote {
		--cat: #0a84ff;
		/* inline-block: Safari jinak přenese spodní okraj ohlasu na začátek dalšího sloupce */
		display: inline-block;
		width: 100%;
		break-inside: avoid;
		margin: 0 0 1.25rem;
		padding: 1.5rem 1.625rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	/* Střídání barev ohlasů (pořadí odstínů jako u karet) */
	.quote:nth-child(4n + 2) { --cat: #30b158; }
	.quote:nth-child(4n + 3) { --cat: #ff9f0a; }
	.quote:nth-child(4n + 4) { --cat: #bf5af2; }
	.quote::before {
		content: "“";
		display: block;
		height: 2rem;
		margin-bottom: 0.25rem;
		color: var(--cat);
		font-size: 3.5rem;
		font-weight: 700;
		line-height: 1;
	}
	.quote p { font-size: var(--step-0); line-height: 1.55; }
	.quote footer { margin-top: 1rem; font-size: 0.9375rem; font-weight: 600; }
	.quote footer a { color: var(--text); }
	.quote footer span { display: block; color: var(--text-2); font-weight: 400; }

	/* --- Formuláře (chybové stavy z /js/forms.js) --- */

	.error-bubble,
	.form-failed {
		position: absolute;
		top: calc(100% + 0.375rem);
		left: 0;
		z-index: 2;
		padding: 0.375rem 0.75rem;
		border-radius: var(--radius-s);
		background: #d70015;
		color: #fff;
		font-size: var(--step--1);
	}
	/* Ve formulářích nového vzhledu je chyba text pod polem, ne bublina přes další pole */
	.field .error-bubble {
		position: static;
		padding: 0;
		background: none;
		color: #d70015;
		font-size: 0.875rem;
	}
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		.field .error-bubble { color: #ff6961; }
		}
	}
	:root[data-theme="dark"] {
		.field .error-bubble { color: #ff6961; }
	}
	.field:has(.error-bubble) :is(input, textarea) { border-color: #d70015; }
	.form .form-failed { position: static; justify-self: start; }
	input.error { border-color: #d70015 !important; }
	input.success { border-color: #30b158 !important; }
}

/* ==========================================================================
   Content — obsah průvodce a článků z databáze
   Třídy (.text-wrap, .text-img, .content-box…) vznikly na původním webu a jsou uložené přímo
   v textech, proto se tu stylují tak, jak jsou. Text drží čitelnou šířku, obrázky smějí být širší.
   ========================================================================== */

@layer content {
	.prose { font-size: var(--step-0); line-height: 1.65; }

	.prose > *,
	.prose .text-wrap > * {
		max-width: var(--measure);
		margin-inline: auto;
	}
	.prose .text-wrap { max-width: none; }
	.prose--flush > *,
	.prose--flush .text-wrap > * { margin-inline: 0; }
	.prose--flush .text-wrap > :first-child,
	.prose--flush .term-item__text > :first-child { margin-top: 0; }

	.prose p,
	.prose ul,
	.prose ol { margin-top: 1.1em; }

	.prose h2 {
		margin-top: 2.6em;
		font-size: var(--step-2);
		line-height: 1.2;
	}
	.prose h3 {
		margin-top: 2em;
		font-size: var(--step-1);
		line-height: 1.3;
	}
	.prose h2 + p,
	.prose h3 + p { margin-top: 0.6em; }

	.prose a { text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--link) 35%, transparent); text-underline-offset: 0.18em; }
	.prose a:hover { text-decoration-color: currentColor; }

	.prose ul { padding-left: 1.25em; }
	.prose li + li { margin-top: 0.75em; }
	.prose li::marker { color: var(--text-2); }

	.prose b, .prose strong { font-weight: 600; }

	/* Obrázky a videa: širší než text, se zaoblením. Pod nimi stejná mezera jako nad nimi
	   (okraj následujícího odstavce se s ní slučuje); totéž u tabulek a rámečků níže */
	.prose .text-img {
		max-width: var(--wide);
		margin-top: 2.5rem;
		margin-bottom: 2.5rem;
	}
	.prose .text-img img {
		margin-inline: auto;
		border-radius: var(--radius-s);
	}
	.prose .text-img iframe {
		width: 100%;
		height: auto;
		aspect-ratio: 16 / 9;
		border: 0;
		border-radius: var(--radius-s);
	}

	/* Klávesa v textu: ⌘ Command */
	.prose .key {
		display: inline-block;
		margin: 0.15em 0.1em;
		padding: 0.1em 0.6em;
		box-shadow: 0 1px 0 var(--line);
		border: 1px solid var(--line);
		border-bottom-width: 2px;
		border-radius: 0.35em;
		background: var(--bg-raised);
		font-size: 0.85em;
		line-height: 1.5;
		white-space: nowrap;
	}

	/* Tabulky: širší než text (jako obrázky), vzdušné řádky a záhlaví */
	.prose table {
		width: 100%;
		max-width: var(--wide);
		margin-top: 2.5rem;
		margin-bottom: 2.5rem;
		border-collapse: separate;
		border-spacing: 0;
		line-height: 1.55;
	}
	/* Popisek tabulky jen pro čtečky: v textech nad tabulkou bývá stejný nadpis (jako ve starém vzhledu) */
	.prose caption {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
	.prose th {
		padding: 0.75rem 1.25rem;
		background: var(--bg-soft);
		color: var(--text-2);
		font-size: var(--step--1);
		font-weight: 600;
		text-align: left;
	}
	.prose th:first-child { border-radius: var(--radius-s) 0 0 var(--radius-s); }
	.prose th:last-child { border-radius: 0 var(--radius-s) var(--radius-s) 0; }
	.prose td {
		padding: 1.25rem;
		border-bottom: 1px solid var(--line-soft);
		vertical-align: top;
		text-align: left;
	}
	.prose tr:last-child td { border-bottom: 0; }
	.prose td:first-child { padding-left: 0; }
	.prose th:first-child { padding-left: 1.25rem; }
	.prose thead + tbody td:first-child { padding-left: 1.25rem; }
	.prose td.middle { vertical-align: middle; }
	/* Obrázky v tabulce bez podkladu: klávesy i ikony mají vlastní tělo, nebo jsou průhledné */
	.prose td.middle img { max-width: 7.5rem; border-radius: var(--radius-s); }
	@media (max-width: 719px) {
		.prose td.middle:nth-child(2) { display: none; }
		/* Ikony v tabulce: na mobilu menší, ať nezabírají místo textu */
		.prose td.middle img { max-width: 4rem; }
		.prose td { padding: 1rem 0.75rem; }
	}

	/* Rámeček s tipem, nabídkou kurzu nebo upozorněním: pastelový podklad a velká ikona v barvě rámečku */
	.prose .content-box {
		--cat: #ff9f0a;
		position: relative;
		/* Široký jako obrázky, tabulky a přepínač článků pod textem */
		max-width: var(--wide);
		margin-top: 2.5rem;
		margin-bottom: 2.5rem;
		padding: 1.75rem 1.75rem 1.75rem 5.5rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
		font-size: 0.9375rem;
	}
	.prose .content-box.tip:has(p.icon[data-icon="a"]) { --cat: #0a84ff; }
	.prose .content-box.warning { --cat: #e8483f; }
	/* Box s kurzem z administrace (App\Site\CoursePromo): termín a tlačítko v jednom řádku */
	.prose .course-promo__term { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 1rem; }
	.prose .content-box a.button { color: var(--on-accent); text-decoration: none; }
	.prose .content-box > * { max-width: none; }
	.prose .content-box h3 { margin-top: 0; font-size: var(--step-1); }
	.prose .content-box a { text-decoration: none; }
	.prose .content-box a:hover { text-decoration: underline; }
	.prose .content-box p { margin-top: 0.5em; }
	.prose .content-box p:has(> br:first-child) > br:first-child { display: none; }
	/* Staré vložené barvy textu by v tmavém režimu zmizely */
	.prose .content-box [style*="color"] { color: inherit !important; }
	.prose .content-box a[style*="color"] { color: var(--link) !important; }

	.prose .content-box p.icon {
		position: absolute;
		left: 1.5rem;
		top: 1.625rem;
		width: 2.75rem;
		height: 2.75rem;
		margin: 0;
	}
	.prose .content-box p.icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.prose .content-box p.icon::before {
		content: "";
		position: absolute;
		inset: 0;
		background: var(--cat);
		/* Žárovka */
		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='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z' fill='%23000' fill-opacity='.16'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3zM9.5 18.5h5M10.5 21h3'/%3E%3C/svg%3E") center / contain no-repeat;
	}
	.prose .content-box.tip p.icon[data-icon="a"]::before {
		/* MacBook: nabídka kurzu */
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='10.5' rx='1.6' fill='%23000' fill-opacity='.16'/%3E%3Crect x='4' y='5' width='16' height='10.5' rx='1.6'/%3E%3Cpath d='M2 18.5h20'/%3E%3C/svg%3E");
	}
	.prose .content-box.warning p.icon::before {
		/* Výstraha */
		mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.5 20h19z' fill='%23000' fill-opacity='.16'/%3E%3Cpath d='M12 3.5 2.5 20h19zM12 10v4.5M12 17.2v.1'/%3E%3C/svg%3E");
	}
	@media (max-width: 559px) {
		.prose .content-box { padding: 4.75rem 1.5rem 1.5rem; }
		.prose .content-box p.icon { left: 1.5rem; top: 1.5rem; }
	}

	.prose .bullet-list { list-style: disc; }
}
