/*
Theme Name: AC & HS
Theme URI: https://achs.cz
Author: AC & HS, s.r.o.
Description: Vlastní šablona webu AC & HS – revize a diagnostika elektrických zařízení NN, VN a VVN, fotovoltaika, servis FVE a klimatizace. Bez závislosti na šablonách a page builderech třetích stran.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 8.1
License: GNU General Public License v2 or later
Text Domain: achs
*/

/* ---------------------------------------------------------------- tokeny */
:root {
	--c-navy: #313a59;
	--c-navy-900: #232a42;
	--c-navy-700: #3f4a70;
	--c-gold: #c8912a;
	--c-gold-600: #b27f1f;
	--c-gold-700: #8a6418;
	--c-gold-300: #e3b25a;
	--c-ink: #1f2430;
	--c-steel: #5b6275;
	--c-paper: #f5f6f8;
	--c-line: #dfe2e8;
	--c-field: #aeb4c2;
	--c-cream: #fdf8ef;
	--c-cream-line: #ecd9b0;
	--c-error: #b3261e;
	--c-ok: #2e7d4f;
	--c-warn: #b26b00;
	--c-warn-ink: #8a5300;
	--f-body: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--f-head: "Barlow Semi Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
	--w-content: 46rem;
	--w-wide: 76rem;
	--gutter: clamp(1rem, 4vw, 2.5rem);
	--s-1: .5rem;
	--s-2: .75rem;
	--s-3: 1rem;
	--s-4: 1.5rem;
	--s-5: 2.25rem;
	--s-6: 3.5rem;
	--s-7: clamp(3.5rem, 8vw, 6.5rem);
	--t-sm: .9375rem;
	--t-base: 1.0625rem;
	--t-lg: 1.25rem;
	--t-h4: 1.15rem;
	--t-h3: 1.4rem;
	--t-h2: clamp(1.75rem, 1.25rem + 1.9vw, 2.45rem);
	--t-h1: clamp(2.15rem, 1.3rem + 3.4vw, 3.6rem);
	--radius: 3px;
	--header-h: 4.5rem;
}

/* ----------------------------------------------------------------- základ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
	margin: 0;
	font-family: var(--f-body);
	font-size: var(--t-base);
	line-height: 1.6;
	color: var(--c-ink);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	font-kerning: normal;
	font-variant-numeric: lining-nums;
}
img, svg, video, iframe { max-width: 100%; }
img, video { height: auto; }
a { color: var(--c-navy); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--c-gold-700); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-gold); outline-offset: 2px; }
::selection { background: var(--c-gold); color: var(--c-ink); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-head);
	font-weight: 600;
	line-height: 1.12;
	color: var(--c-navy);
	margin: 0 0 .55em;
	text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: var(--t-h2); letter-spacing: -.005em; }
h3 { font-size: var(--t-h3); }
h4 { font-size: var(--t-h4); }
h5, h6 { font-size: var(--t-base); }
p, ul, ol, dl, figure, table, blockquote, pre { margin: 0 0 1.15em; }
p { text-wrap: pretty; }
ul, ol { padding-left: 1.3em; }
li + li { margin-top: .35em; }
ol > li::marker { color: var(--c-navy); font-weight: 600; }
strong, b { font-weight: 600; }
small { font-size: var(--t-sm); }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--c-line); margin: var(--s-5) auto; opacity: 1; }
blockquote { margin-left: 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--c-gold); font-size: var(--t-lg); color: var(--c-navy); }
blockquote p:last-of-type { margin-bottom: 0; }
blockquote cite { display: block; margin-top: .6rem; font-size: var(--t-sm); font-style: normal; color: var(--c-steel); }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--c-paper); padding: .1em .3em; border-radius: 2px; }
figcaption, .wp-element-caption, .wp-caption-text { margin-top: .5rem; font-size: var(--t-sm); color: var(--c-steel); }
table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); vertical-align: top; }
th { font-weight: 600; color: var(--c-navy); background: var(--c-paper); }
.wp-block-table { overflow-x: auto; }
/* figure.… má vyšší specifitu než výchozí styly bloku tabulky z jádra */
figure.wp-block-table :is(td, th) { border: 0; border-bottom: 1px solid var(--c-line); padding: .6rem .75rem; }
figure.wp-block-table thead { border-bottom: 2px solid var(--c-navy); }

/* Mezery uvnitř skupin řídí šablona (theme.json má blockGap: null). */
.wp-block-group > :first-child { margin-top: 0; }
.wp-block-group > :last-child { margin-bottom: 0; }

/* hranaté odrážky – stejně jako na tištěném letáku */
.entry-content :where(ul.wp-block-list, ul:not([class])), .achs-list { list-style: none; padding-left: 1.35em; }
.entry-content :where(ul.wp-block-list, ul:not([class])) > li, .achs-list > li { position: relative; }
.entry-content :where(ul.wp-block-list, ul:not([class])) > li::before, .achs-list > li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: .64em;
	width: .4em;
	height: .4em;
	background: var(--c-navy);
}
:where(.has-navy-background-color, .has-navy-900-background-color, .achs-hero) :where(ul) > li::before { background: var(--c-gold); }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--c-gold); color: var(--c-ink); padding: .6rem 1rem; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; color: var(--c-ink); }

/* ------------------------------------------------------------- rozvržení */
.wrap { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.site-main { display: block; }
.site-main:focus { outline: 0; }
.entry-content { padding-inline: var(--gutter); padding-bottom: var(--s-6); }
.entry-content--landing { padding-bottom: 0; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content > *,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--w-content); margin-inline: auto; }
.entry-content > .alignwide,
.is-layout-constrained > .alignwide { max-width: var(--w-wide); }
.entry-content > .alignfull { max-width: none; margin-inline: calc(var(--gutter) * -1); margin-block: 0; }
.entry-content > :first-child { margin-top: 0; }
.alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.aligncenter { display: block; margin-inline: auto; }
.wp-block-image img, .wp-caption img { border-radius: var(--radius); }
/* široké fotky v textu stránek: i snímek na výšku drží rozumnou výšku */
.entry-content > figure.wp-block-image.alignwide img { width: 100%; max-height: 34rem; object-fit: cover; }
.wp-caption { max-width: 100%; }
.wp-block-columns { gap: var(--s-5); }
.wp-block-group { margin-block: 0; }

/* sekce celé šířky – obsah stránek se skládá z nich */
.achs-section { padding-block: var(--s-7); }
.achs-section--tight { padding-block: var(--s-6); }
.achs-inner { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); }
.achs-inner--text { max-width: calc(var(--w-content) + 2 * var(--gutter)); }
.achs-inner > :last-child { margin-bottom: 0; }
.achs-inner > * + .achs-more, .entry-content > :is(.achs-refs, .achs-postwrap) + .achs-more { margin-top: var(--s-5); }
.achs-head { max-width: 48rem; margin-bottom: var(--s-5); }
.achs-head > :last-child { margin-bottom: 0; }
.achs-head p, .achs-lead { font-size: var(--t-lg); color: var(--c-steel); }
.has-paper-background-color { background-color: var(--c-paper); }
:where(.has-navy-background-color, .has-navy-900-background-color) { color: #fff; }
/* :is místo :where – musí přebít barvu nadpisů z globálních stylů (theme.json) */
:is(.has-navy-background-color, .has-navy-900-background-color, .achs-hero) :is(h1, h2, h3, h4) { color: #fff; }
:where(.has-navy-background-color, .has-navy-900-background-color) a:not(.wp-block-button__link):not(.btn) { color: #fff; }
:where(.has-navy-background-color, .has-navy-900-background-color) :is(.achs-head p, .achs-lead) { color: rgba(255, 255, 255, .82); }

/* ----------------------------------------------------------------- tlačítka */
.btn, .wp-block-button__link, .wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: var(--f-body);
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.2;
	padding: .85rem 1.35rem;
	border-radius: var(--radius);
	border: 2px solid var(--c-gold);
	background: var(--c-gold);
	color: var(--c-ink);
	text-decoration: none;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover, .wp-block-button__link:hover, .wp-element-button:hover { background: var(--c-gold-600); border-color: var(--c-gold-600); color: var(--c-ink); text-decoration: none; }
.btn--ghost, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--c-navy); border-color: currentColor; }
.btn--ghost:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
:where(.has-navy-background-color, .has-navy-900-background-color, .achs-hero) :is(.btn--ghost, .is-style-outline > .wp-block-button__link) { color: #fff; border-color: rgba(255, 255, 255, .7); }
:where(.has-navy-background-color, .has-navy-900-background-color, .achs-hero) :is(.btn--ghost, .is-style-outline > .wp-block-button__link):hover { background: #fff; border-color: #fff; color: var(--c-navy); }
.wp-block-buttons { gap: .75rem; margin-bottom: 1.15em; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; }

/* --------------------------------------------------------- hlavička, menu */
.site-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .97);
	border-bottom: 1px solid var(--c-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner {
	max-width: var(--w-wide);
	margin-inline: auto;
	padding-inline: var(--gutter);
	min-height: var(--header-h);
	display: flex;
	align-items: center;
	gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--c-navy); text-decoration: none; line-height: 1; flex-shrink: 0; }
.brand:hover { color: var(--c-navy); text-decoration: none; }
.brand__mark { display: block; flex: none; height: 2.65rem; color: var(--c-navy); }
.brand__mark svg { display: block; height: 100%; width: auto; overflow: visible; }
.footer-brand .brand__mark { height: 2.1rem; color: #fff; }
.brand__text { display: flex; flex-direction: column; gap: .22rem; }
.brand__name { font-family: var(--f-head); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; white-space: nowrap; }
.brand__tag { font-size: .8rem; font-weight: 500; color: var(--c-steel); white-space: nowrap; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.menu li { margin: 0; position: relative; }
.menu a { text-decoration: none; color: var(--c-ink); }
.menu > li > a { display: block; padding: .55rem .55rem; font-weight: 500; border-bottom: 2px solid transparent; }
.menu > li > a:hover,
.menu > :is(.current-menu-item, .current-menu-ancestor, .current-menu-parent, .current-page-ancestor) > a { color: var(--c-navy); border-bottom-color: var(--c-gold); }
.menu > .menu-item-has-children { display: flex; align-items: center; }
.submenu-toggle { appearance: none; border: 0; background: none; padding: .55rem .35rem; margin-left: -.35rem; cursor: pointer; color: var(--c-steel); }
.submenu-toggle::after { content: ""; display: block; width: .42rem; height: .42rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-25%) rotate(45deg); }
.submenu-toggle[aria-expanded="true"]::after { transform: translateY(20%) rotate(-135deg); }
.sub-menu {
	list-style: none;
	margin: 0;
	padding: .45rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 17.5rem;
	background: #fff;
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-gold);
	box-shadow: 0 14px 30px rgba(31, 36, 48, .12);
	display: none;
	z-index: 70;
}
.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children:focus-within > .sub-menu,
.menu-item-has-children.is-open > .sub-menu { display: block; }
.sub-menu li + li { margin-top: 0; }
.sub-menu a { display: block; padding: .5rem 1rem; font-size: .975rem; line-height: 1.35; }
.sub-menu a:hover, .sub-menu .current-menu-item > a { background: var(--c-paper); color: var(--c-navy); }
.site-nav__cta { display: flex; align-items: center; gap: .9rem; }
.header-phone { font-weight: 600; color: var(--c-navy); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--c-gold-700); }
.nav-toggle { display: none; }

.topbar { background: var(--c-navy-900); color: rgba(255, 255, 255, .7); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: .4rem 1.75rem; min-height: 2.15rem; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; font-variant-numeric: tabular-nums; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.site-nav__cta .header-phone { display: none; }

@media (max-width: 72rem) {
	.topbar { display: none; }
	:root { --header-h: 4rem; }
	.brand__name { font-size: 1.45rem; }
	.nav-toggle {
		display: inline-flex;
		align-items: center;
		gap: .6rem;
		margin-left: auto;
		appearance: none;
		border: 1px solid var(--c-line);
		background: #fff;
		border-radius: var(--radius);
		padding: .55rem .85rem;
		font: 600 1rem/1 var(--f-body);
		color: var(--c-navy);
		cursor: pointer;
	}
	.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after { display: block; width: 1.05rem; height: 2px; background: currentColor; }
	.nav-toggle__icon { position: relative; }
	.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
	.nav-toggle__icon::before { top: -6px; }
	.nav-toggle__icon::after { top: 6px; }
	.nav-open .nav-toggle__icon { background: transparent; }
	.nav-open .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
	.nav-open .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }
	.site-nav {
		position: fixed;
		inset: var(--header-h) 0 0 0;
		background: #fff;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		margin: 0;
		padding: .5rem var(--gutter) 2rem;
		overflow-y: auto;
		transform: translateX(100%);
		visibility: hidden;
		transition: transform .25s ease, visibility 0s linear .25s;
	}
	.admin-bar .site-nav { top: calc(var(--header-h) + 46px); }
	.nav-open .site-nav { transform: none; visibility: visible; transition: transform .25s ease; }
	.menu { flex-direction: column; align-items: stretch; }
	.menu > li { border-bottom: 1px solid var(--c-line); flex-wrap: wrap; }
	.menu > li > a { flex: 1; padding: .95rem 0; font-size: 1.125rem; border: 0; }
	.submenu-toggle { padding: .95rem .6rem; margin: 0; }
	.sub-menu { position: static; box-shadow: none; border: 0; border-left: 3px solid var(--c-gold); margin: 0 0 .9rem; padding: 0; min-width: 0; width: 100%; }
	.menu-item-has-children:hover > .sub-menu,
	.menu-item-has-children:focus-within > .sub-menu { display: none; }
	.menu-item-has-children.is-open > .sub-menu { display: block; }
	.site-nav__cta { flex-direction: column; align-items: stretch; margin-top: 1.5rem; gap: .75rem; }
	.site-nav__cta .header-phone { display: block; text-align: center; padding: .6rem; }
	body.nav-open { overflow: hidden; }
}
@media (max-width: 26rem) { .brand__tag { display: none; } }

/* ------------------------------------------------- úvodní slider (hero) */
.achs-hero {
	position: relative;
	background-color: var(--c-navy);
	color: #fff;
	overflow: hidden;
	isolation: isolate;
}
/* jemná rastrová mřížka jako na výkresovém papíře */
.achs-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
	background-size: 32px 32px;
}
.achs-slides { display: grid; }
.achs-slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(1.5rem, 4vw, 4.5rem);
	align-items: center;
	width: 100%;
	max-width: var(--w-wide);
	margin-inline: auto;
	padding: clamp(2.75rem, 6vw, 5.25rem) var(--gutter) clamp(6rem, 9vw, 7.5rem);
}
.js .achs-slide { opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.js .achs-slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
html:not(.js) .achs-slide:not(:first-child) { display: none; }
.achs-slide__text { max-width: 36rem; }
.achs-slide__text > :last-child { margin-bottom: 0; }
.achs-slide :is(h1, h2) { color: #fff; font-size: var(--t-h1); font-weight: 700; margin-bottom: .45em; }
.achs-slide p { font-size: var(--t-lg); color: rgba(255, 255, 255, .86); }
.achs-slide__note { font-size: var(--t-sm) !important; color: var(--c-gold-300) !important; font-weight: 500; }
.achs-slide__media { margin: 0; }
.achs-slide__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.achs-slide__tab { display: none; }
.achs-tabs { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.achs-tabs__list { max-width: var(--w-wide); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.achs-tabs__list::-webkit-scrollbar { display: none; }
.achs-tab {
	position: relative;
	appearance: none;
	background: none;
	border: 0;
	margin-top: -1px;
	padding: 1.05rem 1.1rem 1.15rem;
	color: rgba(255, 255, 255, .72);
	font: 500 .975rem/1.2 var(--f-body);
	white-space: nowrap;
	cursor: pointer;
}
.achs-tab:first-child { padding-left: 0; }
.achs-tab:hover { color: #fff; }
.achs-tab[aria-selected="true"] { color: #fff; }
.achs-tab::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, .14); opacity: 0; }
.achs-tab:first-child::before { left: 0; }
.achs-tab[aria-selected="true"]::before { opacity: 1; }
.achs-tab::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--c-gold); transform: scaleX(0); transform-origin: left; }
.achs-tab[aria-selected="true"]::after { transform: scaleX(1); }
.achs-hero.is-playing .achs-tab[aria-selected="true"]::after { animation: achs-progress var(--slide-ms, 8000ms) linear forwards; }
@keyframes achs-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.achs-pause {
	margin-left: auto;
	appearance: none;
	background: none;
	border: 0;
	color: rgba(255, 255, 255, .72);
	font: 500 .875rem/1 var(--f-body);
	padding: 1rem 0 1rem 1rem;
	cursor: pointer;
	white-space: nowrap;
}
.achs-pause:hover { color: #fff; }

/* úvodní sekce podstránky ve stejném stylu (stránka revizí) */
.achs-pagehero {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(1.5rem, 4vw, 4.5rem);
	align-items: center;
	max-width: var(--w-wide);
	margin-inline: auto;
	padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(2.75rem, 6vw, 4.75rem);
}
.achs-pagehero__text { max-width: 38rem; }
.achs-pagehero__text > :last-child { margin-bottom: 0; }
.achs-pagehero h1 { color: #fff; margin-bottom: .4em; }
.achs-pagehero p { font-size: var(--t-lg); color: rgba(255, 255, 255, .86); }
.achs-pagehero .breadcrumbs, .achs-pagehero .breadcrumbs a { color: rgba(255, 255, 255, .7); }
.achs-pagehero .breadcrumbs a:hover { color: #fff; }
@media (max-width: 52rem) { .achs-pagehero { grid-template-columns: 1fr; } .achs-pagehero .achs-schema { max-width: 30rem; } }

/* jednopólové schéma rozvodny (hero + stránka revizí) */
.achs-schema { display: block; width: 100%; height: auto; color: #fff; overflow: visible; }
.achs-schema .ln { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.achs-schema .ln--bus { stroke-width: 5; }
.achs-schema .ln--thin { stroke-width: 1.5; }
.achs-schema .pt { fill: var(--c-gold); }
.achs-schema .pt-ring { fill: none; stroke: var(--c-gold); stroke-width: 1.5; }
.achs-schema .lead { fill: none; stroke: var(--c-gold-300); stroke-width: 1; stroke-dasharray: 3 3; }
.achs-schema text { font-family: var(--f-body); font-size: 13px; font-weight: 500; fill: rgba(255, 255, 255, .78); }
.achs-schema text.anno-t { fill: var(--c-gold-300); font-weight: 600; font-size: 13.5px; }
.achs-schema text.tag { font-family: var(--f-head); font-weight: 600; font-size: 14px; fill: #fff; }
.achs-schema--light { color: var(--c-navy); }
.achs-schema--light text { fill: var(--c-steel); }
.achs-schema--light text.anno-t { fill: var(--c-gold-700); }
.achs-schema--light text.tag { fill: var(--c-navy); }
.achs-schema--light .lead { stroke: var(--c-gold); }
/* jediný orchestrovaný pohyb webu: schéma se při načtení „zapne“ a postupně se objeví místa měření */
@media (prefers-reduced-motion: no-preference) {
	.achs-schema[data-draw] .ln { stroke-dasharray: 1; stroke-dashoffset: 1; animation: achs-draw 1.6s cubic-bezier(.4, 0, .2, 1) .25s forwards; }
	.achs-schema[data-draw] .anno { opacity: 0; animation: achs-fade .45s ease-out forwards; animation-delay: calc(1.5s + var(--i, 0) * .16s); }
}
.achs-hero:is(.is-paused, .is-hidden-tab) .achs-tab[aria-selected="true"]::after { animation-play-state: paused; }
@keyframes achs-draw { to { stroke-dashoffset: 0; } }
@keyframes achs-fade { to { opacity: 1; } }

@media (max-width: 52rem) {
	.achs-slide { grid-template-columns: 1fr; gap: 1.75rem; padding-bottom: 6rem; }
	.achs-slide__media img { aspect-ratio: 16 / 9; }
	.achs-slide .achs-schema { max-width: 30rem; }
	.achs-tab { padding-inline: .8rem; }
}

/* ------------------------------------------------------------- služby */
.achs-services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.achs-service { display: flex; flex-direction: column; border-top: 3px solid var(--c-navy); padding-top: 1.15rem; }
.achs-service--key { border-top-color: var(--c-gold); }
.achs-service > * { margin-top: 0; }
.achs-service h3 { font-size: 1.5rem; margin-bottom: .3rem; }
.achs-service h3 a { color: inherit; text-decoration: none; }
.achs-service h3 a:hover { color: var(--c-gold-700); }
.achs-service__for { font-size: var(--t-sm); color: var(--c-steel); margin-bottom: .8rem; }
.achs-service ul { font-size: var(--t-sm); margin-bottom: 1.1rem; }
.achs-service .achs-more { margin-top: auto; margin-bottom: 0; font-weight: 600; }
.achs-more a { text-decoration-thickness: 2px; text-decoration-color: var(--c-gold); }
@media (max-width: 62rem) { .achs-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .achs-services { grid-template-columns: 1fr; gap: var(--s-5); } }

/* --------------------------------------------- rámečky, tabulky, kategorie */
.achs-callout, .is-style-callout {
	background: var(--c-cream);
	border: 1px solid var(--c-cream-line);
	border-left: 4px solid var(--c-gold);
	padding: clamp(1.25rem, 3vw, 2rem);
	color: var(--c-ink);
}
.achs-callout > :last-child { margin-bottom: 0; }
.entry-content > :is(.achs-callout, .is-style-callout) { margin-block: var(--s-4); }
.achs-callout h2, .achs-callout h3 { color: var(--c-navy); }
.achs-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.achs-pair > * { background: #fff; border: 1px solid var(--c-cream-line); padding: 1rem 1.15rem; margin: 0; }
.achs-pair h4 { margin-bottom: .25rem; }
.achs-pair p { margin: 0; font-size: var(--t-sm); color: var(--c-steel); }
@media (max-width: 40rem) { .achs-pair { grid-template-columns: 1fr; } }

.achs-cert {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: .35rem 1rem;
	background: var(--c-paper);
	border-left: 4px solid var(--c-navy);
	padding: 1rem 1.25rem;
	margin-bottom: var(--s-5);
}
.achs-cert > * { margin: 0; }
.achs-cert__label { font-size: var(--t-sm); color: var(--c-steel); }
.achs-cert__value { font-weight: 600; color: var(--c-navy); font-variant-numeric: tabular-nums; }

.achs-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-6); }
.achs-cat h3 {
	font-size: 1.15rem;
	color: var(--c-gold-700);
	padding-bottom: .55rem;
	margin-bottom: .9rem;
	border-bottom: 1px solid var(--c-line);
}
.achs-cat ul { font-size: var(--t-sm); }
.achs-cat li + li { margin-top: .55em; }
.achs-cat li strong { color: var(--c-navy); }
@media (max-width: 48rem) { .achs-cats { grid-template-columns: 1fr; } }

.achs-idtable { border: 1px solid var(--c-line); border-top: 3px solid var(--c-navy); margin-bottom: 0; }
.achs-idtable:not(:last-child) { margin-bottom: var(--s-4); }
.achs-idtable table { margin: 0; font-size: var(--t-base); }
.achs-idtable tbody th { width: 36%; background: var(--c-paper); color: var(--c-steel); font-weight: 500; font-size: var(--t-sm); }
figure.achs-idtable thead { border-bottom: 0; }
.achs-idtable thead th { background: var(--c-paper); color: var(--c-navy); font-weight: 600; font-size: var(--t-sm); border-bottom: 1px solid var(--c-line); }
.achs-idtable td { color: var(--c-ink); }
.achs-idtable tbody tr:last-child :is(th, td) { border-bottom: 0; }

.achs-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--s-6); align-items: start; }
.achs-split--form { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.achs-split--form .achs-formpanel { border-top: 3px solid var(--c-navy); }
.entry-content > :is(.achs-split, .achs-postwrap, .achs-teamwrap, .achs-contacts, .achs-branches, .post-grid) { margin-bottom: var(--s-5); }

.achs-note { font-size: var(--t-sm); color: var(--c-steel); }

/* kontakty */
.achs-contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
.achs-contact { border: 1px solid var(--c-line); border-top: 3px solid var(--c-navy); padding: 1.15rem 1.25rem 1.25rem; }
.achs-contact--key { border-top-color: var(--c-gold); }
.achs-contact > * { margin-top: 0; }
.achs-contact h3 { font-size: 1.15rem; color: var(--c-steel); margin-bottom: .5rem; }
.achs-contact p { margin-bottom: .35rem; }
.achs-contact__big { font-family: var(--f-head); font-size: 1.45rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.achs-contact__big a { color: var(--c-navy); text-decoration: none; }
.achs-contact__big a:hover { text-decoration: underline; }
.achs-contact__note { font-size: var(--t-sm); color: var(--c-steel); margin-top: .6rem; }
@media (max-width: 52rem) { .achs-contacts { grid-template-columns: 1fr; } }
@media (max-width: 52rem) { .achs-split { grid-template-columns: 1fr; gap: var(--s-5); } }

/* naše weby a partneři */
.achs-brands { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.achs-brand { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); padding: 1.25rem 1.25rem 1.35rem; }
.achs-brand > * { margin-top: 0; }
.achs-brand h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.achs-brand__role { font-size: .875rem; color: var(--c-gold-700); font-weight: 600; margin-bottom: .6rem; }
.achs-brand p { font-size: var(--t-sm); color: var(--c-steel); }
.achs-brand .achs-more { margin-top: auto; margin-bottom: 0; font-size: var(--t-sm); }
@media (max-width: 62rem) { .achs-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 36rem) { .achs-brands { grid-template-columns: 1fr; } }

/* vybrané realizace */
.achs-refs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.achs-refs--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.entry-content > .achs-refs { margin-bottom: var(--s-5); }
.achs-ref > * { margin-top: 0; }
.achs-ref figure { margin: 0 0 .9rem; }
.achs-ref img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.achs-ref h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.achs-ref__spec { font-size: var(--t-sm); color: var(--c-steel); margin-bottom: .4rem; font-variant-numeric: tabular-nums; }
.achs-ref p { font-size: var(--t-sm); }
@media (max-width: 52rem) { .achs-refs { grid-template-columns: 1fr; } }

/* reference zákazníků (citace) */
.achs-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
.achs-quotes blockquote { font-size: 1.075rem; color: var(--c-ink); margin: 0; }
@media (max-width: 52rem) { .achs-quotes { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- tým a kontakty */
.achs-team { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); gap: var(--s-5) var(--s-4); }
.achs-person { border-top: 2px solid var(--c-line); padding-top: 1rem; }
.achs-person > * { margin-top: 0; }
.achs-person h3 { font-size: 1.25rem; margin-bottom: .15rem; }
.achs-person__role { color: var(--c-steel); font-size: var(--t-sm); margin-bottom: .55rem; }
.achs-person__note { font-size: var(--t-sm); margin-bottom: .7rem; }
.achs-person a { display: block; width: fit-content; font-weight: 500; text-decoration: none; font-variant-numeric: tabular-nums; }
.achs-person a:hover { text-decoration: underline; }
.achs-person--lead { border-top-color: var(--c-gold); }
.achs-branches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.achs-branch { border: 1px solid var(--c-line); padding: 1.15rem 1.25rem; }
.achs-branch > * { margin-top: 0; }
.achs-branch h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.achs-branch p { margin-bottom: .35rem; }
.achs-branch__area { font-size: var(--t-sm); color: var(--c-steel); }
@media (max-width: 40rem) { .achs-branches { grid-template-columns: 1fr; } }
.achs-contactline { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: var(--s-4); }
.achs-contactline a { font-weight: 600; font-size: var(--t-lg); text-decoration: none; font-variant-numeric: tabular-nums; }

/* -------------------------------------------------------------- formulář */
.achs-formpanel { background: #fff; color: var(--c-ink); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius); border: 1px solid var(--c-line); }
.achs-formpanel h2, .achs-formpanel h3 { color: var(--c-navy); }
.achs-formpanel a:not(.wp-block-button__link):not(.btn) { color: var(--c-navy); }
.achs-form { display: grid; gap: 1.1rem; position: relative; }
.achs-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.achs-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.achs-field > label, .achs-fieldset > legend { font-weight: 600; font-size: .95rem; color: var(--c-ink); }
.achs-field .opt { font-weight: 400; color: var(--c-steel); }
.achs-field :is(input, select, textarea) {
	font: inherit;
	font-size: 1rem;
	color: var(--c-ink);
	background: #fff;
	border: 1px solid var(--c-field);
	border-radius: var(--radius);
	padding: .7rem .8rem;
	min-height: 2.95rem;
	width: 100%;
}
.achs-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.5; }
.achs-field input[type="file"] { padding: .55rem; background: var(--c-paper); }
.achs-field :is(input, select, textarea):focus { border-color: var(--c-navy); outline: 3px solid rgba(200, 145, 42, .45); outline-offset: 0; }
.achs-field [aria-invalid="true"] { border-color: var(--c-error); }

/* Živé ověřování: při ověřování kolečko v poli, pak ✓ / ! / × a vysvětlení pod polem */
.achs-field__control { position: relative; }
.achs-field__icon { display: none; position: absolute; top: 50%; right: .85rem; width: 1.2rem; height: 1.2rem; margin-top: -.6rem; pointer-events: none; }
.achs-field[data-state] .achs-field__control input { padding-right: 2.7rem; }
.achs-field[data-state] .achs-field__icon { display: block; }
.achs-field[data-state="checking"] .achs-field__icon { border: 2px solid var(--c-line); border-top-color: var(--c-navy); border-radius: 50%; animation: achs-spin .75s linear infinite; }
.achs-field[data-state="ok"] .achs-field__icon,
.achs-field[data-state="warn"] .achs-field__icon,
.achs-field[data-state="error"] .achs-field__icon { -webkit-mask: var(--achs-icon) center / contain no-repeat; mask: var(--achs-icon) center / contain no-repeat; }
.achs-field[data-state="ok"] .achs-field__icon { background: var(--c-ok); --achs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zm4.3 6.2-5.2 5.4-3.4-3.3 1.4-1.4 2 1.9 3.8-4z'/%3E%3C/svg%3E"); }
.achs-field[data-state="warn"] .achs-field__icon { background: var(--c-warn); --achs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM8.9 5h2.2l-.35 6.4h-1.5zM10 13a1.35 1.35 0 1 1 0 2.7 1.35 1.35 0 0 1 0-2.7z'/%3E%3C/svg%3E"); }
.achs-field[data-state="error"] .achs-field__icon { background: var(--c-error); --achs-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill-rule='evenodd' d='M10 1.5a8.5 8.5 0 1 0 0 17 8.5 8.5 0 0 0 0-17zM6.9 5.5 10 8.6l3.1-3.1 1.4 1.4-3.1 3.1 3.1 3.1-1.4 1.4-3.1-3.1-3.1 3.1-1.4-1.4 3.1-3.1-3.1-3.1z'/%3E%3C/svg%3E"); }
.achs-field[data-state="ok"] :is(input, textarea) { border-color: var(--c-ok); }
.achs-field[data-state="warn"] :is(input, textarea) { border-color: var(--c-warn); }
.achs-field__msg { margin: 0; font-size: var(--t-sm); font-weight: 500; line-height: 1.4; color: var(--c-steel); }
.achs-field__msg:empty { display: none; }
.achs-field[data-state="ok"] .achs-field__msg { color: var(--c-ok); }
.achs-field[data-state="warn"] .achs-field__msg { color: var(--c-warn-ink); }
.achs-field[data-state="error"] .achs-field__msg { color: var(--c-error); }
.achs-field__fix { font: inherit; font-weight: 700; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.achs-field__fix:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
@keyframes achs-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .achs-field[data-state="checking"] .achs-field__icon { animation-duration: 2.5s; } }
.achs-field__hint { color: var(--c-steel); font-size: .875rem; }
.achs-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.achs-fieldset > legend { padding: 0; margin-bottom: .5rem; }
.achs-topics { display: flex; flex-wrap: wrap; gap: .5rem; }
.achs-topics label { position: relative; display: inline-flex; }
.achs-topics input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.achs-topics span {
	display: inline-block;
	padding: .55rem .9rem;
	border: 1px solid var(--c-field);
	border-radius: var(--radius);
	background: #fff;
	font-weight: 500;
	font-size: .95rem;
	line-height: 1.3;
	cursor: pointer;
}
.achs-topics input:checked + span { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.achs-topics input:focus-visible + span { outline: 3px solid var(--c-gold); outline-offset: 2px; }
.achs-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.achs-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.achs-form__note { font-size: .875rem; color: var(--c-steel); margin: 0; }
.achs-form__status { padding: .9rem 1.1rem; border-left: 4px solid var(--c-line); background: var(--c-paper); }
.achs-form__status:empty { display: none; }
.achs-form__status.is-error { border-color: var(--c-error); background: #fdf1f0; color: #6e1611; }
.achs-form__status.is-ok { border-color: var(--c-ok); background: #eff8f2; color: #1d4f32; }
.achs-form [hidden] { display: none !important; }
@media (max-width: 40rem) { .achs-form__row { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- záhlaví podstránek */
.page-hero { background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.page-hero__inner { max-width: var(--w-wide); margin-inline: auto; padding: clamp(1.75rem, 4vw, 3rem) var(--gutter) clamp(1.75rem, 4vw, 2.75rem); }
.page-hero h1 { margin-bottom: .3em; max-width: 26ch; }
.page-hero__lead { font-size: var(--t-lg); color: var(--c-steel); max-width: 46rem; margin: 0; }
.page-hero--navy { background: var(--c-navy); border-bottom: 0; color: #fff; }
.page-hero--navy h1 { color: #fff; }
.page-hero--navy .page-hero__lead { color: rgba(255, 255, 255, .82); }
.page-hero--navy .breadcrumbs, .page-hero--navy .breadcrumbs a { color: rgba(255, 255, 255, .72); }
.breadcrumbs { font-size: .875rem; color: var(--c-steel); margin-bottom: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 .5rem; opacity: .6; }
.breadcrumbs a { color: var(--c-steel); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--c-navy); }
.page-body { padding-top: var(--s-6); }
.page-body > .alignfull:first-child { margin-top: calc(var(--s-6) * -1); }
.page-body > .alignfull:last-child { margin-bottom: calc(var(--s-6) * -1); }
.entry-content > .alignfull + :not(.alignfull) { margin-top: var(--s-6); }
.entry-content > :not(.alignfull) + .alignfull { margin-top: var(--s-6); }
.archive-body { padding-bottom: var(--s-7); }

/* --------------------------------------------------------- články, výpisy */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6) var(--s-5); }
.post-card { display: flex; flex-direction: column; }
.post-card > * { margin-top: 0; }
.post-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--c-paper); margin-bottom: 1rem; }
.post-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { font-size: .875rem; color: var(--c-steel); margin-bottom: .35rem; }
.post-card h2, .post-card h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.post-card :is(h2, h3) a { color: var(--c-navy); text-decoration: none; }
.post-card :is(h2, h3) a:hover { color: var(--c-gold-700); }
.post-card p { font-size: var(--t-sm); color: var(--c-steel); margin-bottom: 0; }
@media (max-width: 62rem) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .post-grid { grid-template-columns: 1fr; } }
.archive-cats { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--s-5); padding: 0; list-style: none; }
.archive-cats li { margin: 0; }
.archive-cats a { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--c-line); border-radius: var(--radius); text-decoration: none; font-size: .95rem; color: var(--c-ink); }
.archive-cats a:hover, .archive-cats .is-current a { border-color: var(--c-navy); background: var(--c-navy); color: #fff; }
.pagination { margin-top: var(--s-6); }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.pagination .page-numbers { display: inline-block; min-width: 2.6rem; padding: .55rem .8rem; text-align: center; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-ink); }
.pagination .page-numbers.current { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--c-navy); }

.single-header { max-width: calc(var(--w-content) + 2 * var(--gutter)); margin-inline: auto; padding: var(--s-6) var(--gutter) var(--s-4); }
.single-header h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.single-meta { color: var(--c-steel); font-size: var(--t-sm); margin: 0; }
.single-thumb { max-width: calc(var(--w-content) + 2 * var(--gutter) + 8rem); margin: 0 auto var(--s-5); padding-inline: var(--gutter); }
.single-thumb img { display: block; width: 100%; max-height: 32rem; object-fit: cover; border-radius: var(--radius); }
.article-cta { max-width: var(--w-content); margin: var(--s-5) auto 0; }
.related { background: var(--c-paper); padding-block: var(--s-6); }
.related h2 { font-size: var(--t-h3); }

.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.15em; }
.gallery-columns-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-item { margin: 0; }
.gallery-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 0 !important; }
.gallery br { display: none; }
@media (max-width: 40rem) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* FAQ – blok Podrobnosti */
.wp-block-details { border-bottom: 1px solid var(--c-line); margin: 0; padding: 0; }
.wp-block-details:first-of-type { border-top: 1px solid var(--c-line); }
.wp-block-details summary {
	position: relative;
	cursor: pointer;
	list-style: none;
	padding: 1rem 2.25rem 1rem 0;
	font-family: var(--f-head);
	font-weight: 600;
	font-size: 1.2rem;
	color: var(--c-navy);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; position: absolute; right: .25rem; top: .8rem; font-size: 1.5rem; line-height: 1; color: var(--c-gold-700); font-weight: 400; }
.wp-block-details[open] summary::after { content: "\2013"; }
.wp-block-details > :not(summary):last-child { margin-bottom: 1.25rem; }

/* ------------------------------------------------------------- patička */
.site-footer { background: var(--c-navy-900); color: rgba(255, 255, 255, .8); font-size: var(--t-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__inner {
	max-width: var(--w-wide);
	margin-inline: auto;
	padding: var(--s-6) var(--gutter) var(--s-5);
	display: grid;
	grid-template-columns: 1.35fr 1fr 1.15fr 1fr;
	gap: var(--s-5);
}
.site-footer__inner > div > :last-child { margin-bottom: 0; }
.footer-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--f-head); font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: .8rem; line-height: 1; }
.footer-title { font-family: var(--f-head); font-size: 1.1rem; font-weight: 600; color: #fff; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer p { margin-bottom: .8rem; }
.footer-ids { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; margin: 1rem 0 0; }
.footer-ids dt { color: rgba(255, 255, 255, .58); }
.footer-ids dd { margin: 0; color: #fff; font-variant-numeric: tabular-nums; }
.footer-branch { margin-top: 1rem; }
.footer-branch strong { color: #fff; font-weight: 600; display: block; }
.footer-web { display: block; }
.footer-web small { display: block; color: rgba(255, 255, 255, .58); font-size: .85rem; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .12); }
.site-footer__legal .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.5rem; padding-block: 1.1rem; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.site-footer__legal a { color: rgba(255, 255, 255, .85); }
.site-footer__legal button { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .85); cursor: pointer; }
.site-footer__legal button:hover { text-decoration: underline; color: #fff; }
@media (max-width: 62rem) { .site-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 40rem) { .site-footer__inner { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- souhlas s cookies */
.achs-consent {
	position: fixed;
	z-index: 90;
	left: 1rem;
	right: 1rem;
	bottom: 1rem;
	max-width: 38rem;
	background: #fff;
	color: var(--c-ink);
	border: 1px solid var(--c-line);
	border-top: 3px solid var(--c-navy);
	box-shadow: 0 18px 44px rgba(31, 36, 48, .2);
	padding: 1.25rem 1.35rem 1.1rem;
	font-size: var(--t-sm);
}
.achs-consent[hidden] { display: none; }
.achs-consent h2 { font-size: 1.2rem; margin-bottom: .4rem; }
.achs-consent p { margin-bottom: .5rem; }
.achs-consent__prefs { display: grid; gap: .55rem; margin: .75rem 0 .25rem; }
.achs-consent__prefs label { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.4; }
.achs-consent__prefs input { margin-top: .2rem; width: 1.05rem; height: 1.05rem; accent-color: var(--c-navy); }
.achs-consent__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.achs-consent__actions .btn { padding: .6rem 1rem; font-size: .95rem; }
.achs-consent__link { appearance: none; background: none; border: 0; padding: .6rem .25rem; font: 500 .95rem var(--f-body); color: var(--c-navy); text-decoration: underline; cursor: pointer; }

/* ----------------------------------------------------------- 404, hledání */
.search-form { display: flex; gap: .5rem; max-width: 30rem; }
.search-form input[type="search"] { flex: 1; font: inherit; padding: .7rem .8rem; border: 1px solid var(--c-field); border-radius: var(--radius); min-width: 0; }
.notfound { padding-block: var(--s-7); }

/* -------------------------------------------------------- pohyb a tisk */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
	.site-header, .site-footer, .achs-consent, .achs-tabs, .nav-toggle, .achs-form, .related { display: none !important; }
	body { font-size: 11pt; color: #000; }
	.achs-hero, .has-navy-background-color { background: #fff !important; color: #000 !important; }
	a { color: #000; }
}
