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

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

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

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

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

	/* --- 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: 18rem; margin-top: 0.625rem; }
	.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; gap: 0.5rem 1.5rem; padding: 0; }

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

	.coffee {
		display: flex;
		align-items: center;
		gap: 1rem;
		max-width: var(--wide);
		margin: 1.25rem auto 0;
		padding: 1.125rem 1.5rem;
		border-radius: var(--radius);
		background: var(--cat-soft);
	}
	.coffee .cat-icon { width: 2.25rem; height: 2.25rem; --icon-stroke: 1.2; }
	/* Na Kontaktu je box v levém sloupci pod fakturačními údaji */
	.order__info .coffee { margin-top: 2rem; }

	/* 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;
		justify-content: center;
		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; }
	.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; }
	.logos img.logo--wide { max-width: 52%; 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); } }

	/* 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 p:last-child { color: var(--text-2); 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); }
	/* Adresa na telefonu jako na obálce: ulice, pod ní PSČ a město; PSČ ani „Praha 7“ se nerozdělí */
	.adr__city { white-space: nowrap; }
	@media (max-width: 719px) {
		.adr .street-address { display: block; }
		.adr__comma { display: none; }
	}
	.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);
	}
	.term__date { font-size: var(--step-2); font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
	.term__date span { display: block; margin-top: 0.25rem; color: var(--text-2); font-size: 0.9375rem; font-weight: 400; letter-spacing: 0; }
	.term__course h3 { font-size: var(--step-1); letter-spacing: -0.02em; }
	.term__course h3 a { color: var(--text); }
	.term__course p { margin-top: 0.25rem; color: var(--text-2); }
	.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); }
	.term-item__body > :not(figure) { 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);
	}

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

	/* Tlačítka online kurzů v barvě, kterou jim dala administrace */
	.button--gift { background: #e8483f; }
	.button--gift:hover { background: #f05a51; }
	.button--boomerai { background: #f56b00; }
	.button--boomerai:hover { background: #ff7a12; }
	.button--free { background: var(--text); color: var(--bg); }
	.button--free:hover { background: var(--text); opacity: 0.85; }

	/* --- 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 { 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, záhlaví a popisek nad tabulkou */
	.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;
	}
	.prose caption {
		padding-bottom: 1rem;
		color: var(--text);
		font-size: var(--step-1);
		font-weight: 600;
		letter-spacing: -0.02em;
		text-align: left;
	}
	.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; }
	.prose td.middle img { max-width: 7.5rem; }
	@media (max-width: 719px) {
		.prose td.middle:nth-child(2) { display: none; }
		.prose td { padding: 1rem 0.75rem; }
	}
	@media (prefers-color-scheme: dark) {
		:root:not([data-theme="light"]) {
		/* Kresby kláves jsou světlé, v tmavém režimu potřebují podklad */
		.prose td.middle img { padding: 0.375rem; border-radius: var(--radius-s); background: #f5f5f7; }
		}
	}
	:root[data-theme="dark"] {
		/* Kresby kláves jsou světlé, v tmavém režimu potřebují podklad */
		.prose td.middle img { padding: 0.375rem; border-radius: var(--radius-s); background: #f5f5f7; }
	}

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