/*
 * MindBe – design systém šablony
 *
 * Pravidla:
 *  - jedna šířka obsahu (--content), jedna mezera mřížky (--gap), jedno vnitřní odsazení karet (--pad)
 *  - typografie jen z tokenů --fs-*
 *  - komponenty: .section + .section-head, .btn, .card (+ --media, --link), .icon-box, .page-hero
 */

/* ---------- Písmo (self-hosted Poppins) ---------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/poppins-300-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokeny (hodnoty z Přizpůsobit → MindBe → Design přepisují <style id="mindbe-design">) ---------- */
:root {
	--bg: #121212;
	--surface: #1b1b1b;
	--surface-2: #242424;
	--line: rgba(255, 255, 255, 0.08);
	--line-strong: rgba(255, 255, 255, 0.28);
	--text: #ffffff;
	--muted: rgba(255, 255, 255, 0.7);
	--faint: rgba(255, 255, 255, 0.45);
	--gold: #b89318;
	--gold-light: #d6a62a;
	--gold-soft: rgba(184, 147, 24, 0.12);
	--accent: var(--gold-light);
	--glass: rgba(18, 18, 18, .82);
	--glass-max: rgba(18, 18, 18, .9); /* hlavička při najetí a otevřené menu */
	--glass-hero: rgba(18, 18, 18, .62);  /* hlavička nad úvodními panely (nahoře) */
	--glass-panel: rgba(27, 27, 27, .9);  /* rozbalovací menu, lišty, dialogy */
	--blur: saturate(160%) blur(24px);
	/* Plovoucí prvky (menu, rozcestník, cookie lišta, dialogy) – jeden materiál pro všechny */
	--float-bg: var(--glass-panel);
	--float-edge: 0 0 0 1px var(--line);
	--float-shadow: var(--float-edge), var(--shadow-hover);
	--float-radius: var(--radius);
	--float-shift: 8px; /* o kolik vyjede při otevření */
	--bg-deep: #0d0d0d;
	--shadow: 0 18px 40px rgba(0, 0, 0, .35);
	--shadow-hover: 0 28px 60px rgba(0, 0, 0, .5);
	--card-hover-shadow: 0 22px 34px -18px rgba(0, 0, 0, .42);   /* karty: měkký šedý stín, do stran nepřesahuje */
	--card-hover-ring: rgba(255, 255, 255, .16);
	--success-bg: rgba(40, 200, 64, .12); --success: #9be8a7;
	--error-bg: rgba(255, 95, 87, .12);   --error: #ffb0ac;
	--num: rgba(255, 255, 255, .08);
	color-scheme: dark;

	/* Tlačítka (Design → Tlačítka) */
	--btn-bg: var(--gold);
	--btn-text: #ffffff;
	--btn-h: 48px;
	--btn-pad: 28px;
	--btn-weight: 600;
	--btn-ls: .06em;

	--font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--fs-display: calc(40px * var(--fs-scale, 1));
	--fs-h2: calc(30px * var(--fs-scale, 1));
	--fs-h3: calc(20px * var(--fs-scale, 1));
	--fs-body: calc(16px * var(--fs-scale, 1));
	--fs-small: calc(14px * var(--fs-scale, 1));

	--content: 1110px;
	--text-width: var(--content);
	--gutter: 20px;
	--gap: 30px;
	--pad: 32px;
	--section: var(--section-base, 96px); /* mezera MEZI sekcemi – každá sekce má půlku nahoře a půlku dole */
	--header-h: 84px;
	--hero-h: var(--hero-base, 620px);

	--radius: 12px;
	--radius-sm: 8px;
	--ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* měkký dojezd – zvednutí, šipky */
	/* pohyb: tři rychlosti pro celý web */
	--dur-fast: calc(.2s * var(--motion, 1));
	--dur: calc(.3s * var(--motion, 1));
	--dur-slow: calc(.5s * var(--motion, 1));
	/* zdvih při najetí: drobné prvky / karty */
	--lift: -3px;
	--lift-card: -6px;
	--fs-xs: calc(12.5px * var(--fs-scale, 1));
}
:root[data-theme="light"] {
	--bg: #ffffff;
	--surface: #f5f5f3;
	--surface-2: #ebeae6;
	--line: rgba(18, 18, 18, 0.08);
	--line-strong: rgba(18, 18, 18, 0.3);
	--text: #141414;
	--muted: rgba(20, 20, 20, 0.74);
	--faint: rgba(20, 20, 20, 0.52);
	--gold: #b89318;        /* značková zlatá MindBe – stejná v obou režimech */
	--gold-light: #b89318;
	--gold-soft: rgba(184, 147, 24, 0.12);
	--glass: rgba(255, 255, 255, .8);
	--glass-max: rgba(255, 255, 255, .9);
	--glass-hero: rgba(255, 255, 255, .7);
	--glass-panel: rgba(250, 250, 248, .9);
	--bg-deep: #f3f2ee;
	--shadow: 0 14px 34px rgba(20, 20, 20, .07);
	--shadow-hover: 0 26px 54px rgba(20, 20, 20, .13);
	--card-hover-shadow: 0 22px 34px -18px rgba(20, 20, 20, .2);
	--card-hover-ring: rgba(18, 18, 18, .14);
	--success-bg: rgba(40, 160, 64, .1); --success: #1d6b2e;
	--error-bg: rgba(200, 40, 30, .08);  --error: #9b231a;
	--num: rgba(20, 20, 20, .07);
	color-scheme: light;
}
.logo--on-light { display: none; }
:root[data-theme="light"] .logo--on-dark { display: none; }
:root[data-theme="light"] .logo--on-light { display: block; }

@media (max-width: 767px) {
	:root { --fs-display: calc(30px * var(--fs-scale, 1)); --fs-h2: calc(24px * var(--fs-scale, 1)); --fs-h3: calc(18px * var(--fs-scale, 1)); --gap: 20px; --pad: 24px; --section: min(64px, var(--section-base, 96px)); --header-h: 68px; --gutter: 16px; }
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* kotvy: odsazení o fixní hlavičku, lištu správce a přilepený rozcestník (pokud je na stránce) */
html { scrollbar-gutter: stable; /* místo pro posuvník zůstává – otevření menu nic neposune */ --anchor-extra: 0px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + var(--anchor-extra) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--muted); font: 400 var(--fs-body)/1.65 var(--font); -webkit-font-smoothing: antialiased; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0; color: var(--text); font-weight: 600; line-height: 1.3; }
p, figure, blockquote, dl { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--gold); color: #000; }

.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed !important; top: 12px; left: 12px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--gold); color: #000; border-radius: var(--radius-sm); }
.muted { color: var(--faint); }
.small { font-size: var(--fs-small); }
.mt { margin-top: var(--gap); }

.container { width: 100%; max-width: calc(var(--content) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--text { max-width: calc(var(--text-width) + 2 * var(--gutter)); }

/* ---------- Sekce (oddělené prostorem, bez čar) ---------- */
.section { padding-block: calc(var(--section) / 2); }
.section--flush { padding-top: 0; }
.section--muted { background: var(--bg-deep); }
.section-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px var(--gap); margin-bottom: 40px; }
.section-head { max-width: 720px; }
.kicker { margin-bottom: 14px; color: var(--accent); font-size: var(--fs-small); font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.section-title { font-size: var(--fs-h2); line-height: 1.25; }
.section-lead { margin-top: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--btn-ls); text-transform: var(--btn-case, uppercase); white-space: nowrap; }
.link-arrow .icon { color: var(--accent); transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Mřížky ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 991px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.split--wide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 899px) { .split, .split--wide { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 16px; align-content: start; }
.stretch { align-items: stretch; }

/* ---------- Tlačítka (vzhled z Design → Tlačítka) ---------- */
.btn {
	position: relative; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: var(--btn-h); padding: 10px var(--btn-pad);
	border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
	color: var(--text); font-size: var(--fs-small); font-weight: var(--btn-weight); letter-spacing: var(--btn-ls); text-transform: var(--btn-case, uppercase); line-height: 1.2; white-space: nowrap;
	transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform calc(.45s * var(--motion, 1)) var(--ease-out), box-shadow calc(.45s * var(--motion, 1)) var(--ease-out);
}
.btn:hover { color: var(--text); border-color: var(--text); }
.btn--primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { color: var(--btn-text); border-color: var(--btn-bg); filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--gap); }
.btn { contain: paint; } /* ořez lesku drží i během zvednutí */
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.16) 50%, transparent 70%); transform: translateX(-120%); transition: none; pointer-events: none; }
.btn:hover::after { transform: translateX(120%); transition: transform calc(.7s * var(--motion, 1)) var(--ease); } /* lesk jen při najetí, zpět se vrací neviditelně */

.icon-box { display: inline-grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--gold-soft); color: var(--accent); transition: transform var(--dur) var(--ease); }

/* ---------- Karta (jediná komponenta pro všechny boxy) ---------- */
.card {
	position: relative; display: flex; flex-direction: column; gap: 12px;
	padding: var(--pad); border-radius: var(--radius); background: var(--surface); color: var(--muted);
	box-shadow: 0 0 0 1px var(--line);
	transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
/* Jednotné najetí na všechny karty, se kterými jde něco udělat (články, služby, reference, recenze):
   zvednutí, jemný okraj a měkký stín – všude stejně. Informační boxy bez akce zůstávají v klidu. */
@media (hover: hover) {
	:is(.card--link, .card--media, .slider__track > .card):hover,
	a.work:hover .browser { transform: translateY(var(--lift-card)); box-shadow: 0 0 0 1px var(--card-hover-ring), var(--card-hover-shadow); }
	.card--link:hover .icon-box { transform: translateY(var(--lift)); }
}
.card--link:hover { color: var(--muted); }
.card__title { font-size: var(--fs-h3); }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { color: var(--faint); font-size: var(--fs-small); }
.card__text { flex: 1; }
.card__text p + p { margin-top: .8em; }
.card .icon-box { margin-bottom: 8px; }
.card--row { flex-direction: row; gap: 20px; }
.card--row .icon-box { margin: 0; }
@media (max-width: 559px) { .card--row { flex-direction: column; } }

.card--media { padding: 0; overflow: hidden; gap: 0; }
.card--media .card__body { display: flex; flex-direction: column; gap: 12px; flex: 1; padding: var(--pad); }
.card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform calc(1s * var(--motion, 1)) var(--ease); }
@media (hover: hover) { :is(.card--link, .card--media):hover .card__media img { transform: scale(1.03); } }
.card__more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--text); font-size: var(--fs-small); font-weight: 600; letter-spacing: var(--btn-ls); text-transform: var(--btn-case, uppercase); }
.card__more .icon { color: var(--accent); transition: transform var(--dur) var(--ease); }
.card--link:hover .card__more .icon { transform: translateX(4px); }
.placeholder { display: grid; place-items: center; width: 100%; height: 100%; }
.placeholder img { width: 40%; height: auto !important; opacity: .3; }

/* Reference – okno prohlížeče */
.browser { overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.browser__bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--surface-2); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background-color var(--dur) var(--ease); }
.browser__url { flex: 1; margin-left: 10px; padding: 3px 12px; overflow: hidden; border-radius: 6px; background: var(--bg); color: var(--faint); font-size: var(--fs-xs); font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.browser__shot { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.browser__shot img { width: 100%; height: auto; min-height: 100%; object-fit: cover; object-position: top; transition: transform calc(3s * var(--motion, 1)) var(--ease); }
.work { position: relative; display: block; color: var(--muted); }
.work__meta { display: grid; gap: 4px; padding: 18px 4px 0; }
.work__title { font-size: var(--fs-body); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.work__host { overflow: hidden; color: var(--faint); font-size: var(--fs-small); text-overflow: ellipsis; white-space: nowrap; }
.work__text { margin: 8px 4px 0; font-size: var(--fs-small); }
a.work:hover { color: var(--muted); }
a.work:hover .browser__bar i:nth-child(1) { background: #ff5f57; }
a.work:hover .browser__bar i:nth-child(2) { background: #febc2e; }
a.work:hover .browser__bar i:nth-child(3) { background: #28c840; }
a.work:hover .browser__shot img { transform: translateY(calc(-100% + var(--shot-h, 240px))); }
a.work:hover .work__host { color: var(--accent); }

/* ---------- Slider (reference, recenze) ---------- */
.slider { position: relative; }
.slider__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); gap: var(--gap); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 16px 16px 44px; margin: -16px -16px -44px; scroll-padding-inline: 16px; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; min-width: 0; }
.slider__nav { display: flex; align-items: center; gap: 10px; }
.slider__btn { display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line-strong); color: var(--text); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.slider__btn:hover { background: var(--btn-bg); color: var(--btn-text); box-shadow: none; }
.slider__btn[disabled] { opacity: .3; pointer-events: none; }
.slider__btn--prev .icon { transform: rotate(180deg); }
.slider__progress { height: 2px; margin-top: 36px; overflow: hidden; border-radius: 2px; background: var(--line); }
.slider__progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width var(--dur) var(--ease); }
@media (max-width: 991px) { .slider__track { grid-auto-columns: calc((100% - var(--gap)) / 2); } }
@media (max-width: 639px) { .slider__track { grid-auto-columns: 86%; } }

/* ---------- Hlavička – sticky, stále stejná ---------- */
.site-header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100; height: var(--header-h); }
.site-header::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); pointer-events: none; }
/* Mobilní menu zakrývá stránku – hlavička je s ním jednolitá. */
html:has(.burger[aria-expanded="true"]) .site-header { --header-p: 1 !important; }
.header__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--gap); height: 100%; }
.logo img { width: 132px; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item.has-sub:not(.is-mega) { position: relative; }
.nav__link { position: relative; display: inline-flex; align-items: center; gap: 6px; height: var(--header-h); padding: 0 14px; color: var(--muted); font-size: 15px; font-weight: 500; white-space: nowrap; }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: calc(50% - 16px); height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.nav__item:hover > .nav__link, .nav__item:focus-within > .nav__link, .nav__item.is-current > .nav__link { color: var(--text); }
.nav__item:hover > .nav__link::after, .nav__item.is-current > .nav__link::after { transform: scaleX(1); }
.nav__chev { opacity: .6; transition: transform var(--dur-fast) var(--ease); }
.nav__item:hover .nav__chev, .nav__item.is-open .nav__chev { transform: rotate(180deg); }
.header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
/* Jazyky jako lišta pilulek (stejný styl jako rozcestník): aktuální jazyk zlatě orámovaný, druhý ztlumený */
.lang { display: flex; align-items: center; gap: 2px; height: var(--header-ctl, 42px); padding: 4px; border-radius: calc(var(--radius-sm) + 4px); background: var(--float-bg); box-shadow: 0 0 0 1px var(--line); }
.lang > a, .lang > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.lang [aria-current] { background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold); }
.lang > a:hover, .lang > a:focus-visible { background: color-mix(in srgb, var(--gold-soft) 70%, transparent); }
.lang__flag { display: block; width: 20px; height: 20px; overflow: hidden; border-radius: 5px; box-shadow: 0 0 0 1px var(--line-strong); transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease); }
.lang__flag svg { display: block; width: 100%; height: 100%; }
.lang a .lang__flag { opacity: .55; filter: saturate(.5); }
.lang a:hover .lang__flag, .lang a:focus-visible .lang__flag { opacity: 1; filter: none; }
/* Varianty přepínače jazyků (Přizpůsobit → Design → Přepínač jazyků) */
.lang__code { display: none; font-size: 12px; font-weight: 600; letter-spacing: .06em; line-height: 1; color: var(--muted); transition: color var(--dur) var(--ease); }
.lang [aria-current] .lang__code, .lang a:hover .lang__code, .lang a:focus-visible .lang__code { color: var(--text); }
.lang--pill-codes .lang__flag, .lang--codes .lang__flag { display: none; }
.lang--pill-codes .lang__code, .lang--pill-both .lang__code, .lang--codes .lang__code { display: block; }
.lang--pill-codes > a, .lang--pill-codes > span { width: 38px; }
.lang--pill-both > a, .lang--pill-both > span { display: flex; gap: 6px; width: auto; padding-inline: 9px; }
.lang--pill-both .lang__flag { width: 16px; height: 16px; border-radius: 4px; }
/* bez pozadí: jen kulaté vlajky / text, aktivní jazyk se tenkou zlatou linkou nebo barvou */
.lang--flags, .lang--codes { gap: 6px; padding: 0; background: none; box-shadow: none; }
.lang--flags > a, .lang--flags > span { width: 30px; height: 30px; border-radius: 50%; background: none !important; box-shadow: none !important; }
.lang--flags .lang__flag { width: 24px; height: 24px; border-radius: 50%; transition: opacity var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease-out); }
.lang--flags [aria-current] .lang__flag { box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--gold); }
.lang--flags a:hover .lang__flag { transform: translateY(-2px); }
.lang--codes { gap: 0; }
.lang--codes > a, .lang--codes > span { width: auto; height: auto; padding: 6px 8px; background: none !important; box-shadow: none !important; }
.lang--codes > a + span, .lang--codes > span + a { border-left: 1px solid var(--line-strong); border-radius: 0; }
.lang--codes .lang__code { font-size: 13px; }
.lang--codes [aria-current] .lang__code { color: var(--gold); }
/* hlavička má kompaktní ovládací prvky – všechny stejně vysoké */
.header__cta { min-height: var(--header-ctl, 42px); }
.site-header .theme-toggle { width: var(--header-ctl, 42px); height: var(--header-ctl, 42px); }

.nav__dropdown, .mega { position: absolute; z-index: 5; opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur); }
.nav__dropdown { top: calc(100% + 10px); border-radius: var(--float-radius); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--float-shadow); transform: translateY(var(--float-shift)); }
/* neviditelný můstek přes mezeru pod hlavičkou, aby se menu při přejetí myší nezavřelo */
.nav__dropdown::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px; }
.nav__item:hover > .nav__dropdown, .nav__item:hover > .mega, .nav__item:focus-within > .nav__dropdown, .nav__item:focus-within > .mega, .nav__item.is-open > .nav__dropdown, .nav__item.is-open > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__dropdown { left: 0; min-width: 220px; padding: 8px; }
.nav__dropdown a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); }
.nav__dropdown a:hover { background: var(--surface-2); color: var(--text); }
/* Menu Služby přes celou šířku přímo pod hlavičkou (rohy viz „Rohy hlavičky“ na konci souboru). */
.mega { top: 100%; left: 0; right: 0; background: var(--glass-max); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) 1.3fr; gap: var(--gap); padding-block: 40px; }
.mega__title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--text); font-weight: 600; }
.mega__title .icon { color: var(--accent); }
.mega__col li a { display: block; padding: 5px 0; color: var(--muted); font-size: var(--fs-small); }
.mega__col li a:hover { color: var(--text); }
.mega__aside { padding: 24px; border-radius: var(--radius); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--line); }
.mega__aside strong { display: block; margin-bottom: 12px; color: var(--text); }
.mega__aside .contact-list { gap: 8px; margin-bottom: 18px; font-size: var(--fs-small); }

.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: calc(var(--radius-sm) + 4px); background: var(--float-bg); box-shadow: 0 0 0 1px var(--line); color: var(--text); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-slow) var(--ease); }
.theme-toggle:hover { box-shadow: 0 0 0 1px var(--gold); }
.theme-toggle .icon { transition: transform var(--dur-slow) var(--ease-out); }
.theme-toggle:hover .icon { transform: rotate(25deg); } /* otáčí se jen ikona, ne tlačítko */
.theme-toggle__moon { display: none; }
:root[data-theme="light"] .theme-toggle__sun { display: none; }
:root[data-theme="light"] .theme-toggle__moon { display: block; }

.burger { display: none; align-items: center; gap: 10px; height: 44px; color: var(--text); font-size: var(--fs-small); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.burger__icon { position: relative; width: 22px; height: 14px; }
.burger__icon span { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease); }
.burger__icon span:nth-child(1) { top: 0; }
.burger__icon span:nth-child(2) { top: 6px; }
.burger__icon span:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__icon span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1099px) {
	.header__bar { grid-template-columns: auto auto; justify-content: space-between; }
	.nav, .header__cta, .header__actions > .theme-toggle { display: none; }
	.burger { display: inline-flex; }
}

.mnav { position: fixed; inset: var(--header-h) 0 0; z-index: 90; background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); overflow-y: auto; }
.mnav[hidden] { display: none; }
.mnav__inner { display: flex; flex-direction: column; justify-content: space-between; gap: var(--gap); min-height: 100%; padding-block: 16px 40px; }
.mnav__item > a, .mnav__item summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; color: var(--text); font-size: var(--fs-h3); font-weight: 600; list-style: none; cursor: pointer; }
.mnav__item summary::-webkit-details-marker { display: none; }
.mnav__item summary .icon { color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.mnav__item details.is-open summary .icon, html:not(.js) .mnav__item details[open] summary .icon { transform: rotate(180deg); }
.mnav__item [aria-current] { color: var(--accent); }
.mnav__sub { padding-bottom: 12px; }
.mnav__sub a { display: block; padding: 6px 0; }
.mnav__foot { display: grid; gap: 20px; }
.mnav__row { display: flex; align-items: center; justify-content: space-between; }

/* ---------- Úvodní hero (akordeon panelů) ---------- */
.hero { --text: #fff; --muted: rgba(255,255,255,.78); --accent: #d6a62a; color-scheme: dark; position: relative; height: min(var(--hero-h), calc(100svh - var(--header-h))); min-height: 440px; background: var(--bg); }
.hero__panels { display: flex; gap: 8px; height: 100%; padding: 12px var(--gutter) 0; }
.hero__panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: var(--radius); cursor: pointer; transition: flex-grow calc(.8s * var(--motion, 1)) var(--ease); }
.hero__panel.is-active { flex-grow: 5; cursor: default; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) brightness(.7); transition: filter var(--dur-slow) var(--ease); }
.hero__panel.is-active .hero__bg { filter: none; animation: hero-zoom calc(14s * var(--motion, 1)) ease-out both; }
.hero__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.2) 70%), linear-gradient(0deg, rgba(0,0,0,.5), transparent 50%); pointer-events: none; }
.hero__content { position: absolute; left: max(32px, calc((100vw - var(--content)) / 2 - var(--gutter))); right: var(--gutter); bottom: 64px; z-index: 2; opacity: 0; visibility: hidden; transform: translateY(16px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease), visibility 0s var(--dur-slow); }
.hero__content .container { max-width: 560px; margin: 0; padding: 0; }
.hero__panel.is-active .hero__content { opacity: 1; visibility: visible; transform: none; transition-delay: calc(.25s * var(--motion, 1)), calc(.25s * var(--motion, 1)), 0s; }
.hero__title { margin-bottom: 14px; font-size: var(--fs-display); font-weight: 700; }
.hero__lines { display: grid; gap: 4px; margin-bottom: 28px; color: var(--text); }
.hero__lines li { position: relative; padding-left: 16px; }
.hero__lines li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.hero__tab { position: absolute; left: 50%; bottom: 32px; z-index: 2; color: var(--text); font-size: var(--fs-small); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; writing-mode: vertical-rl; transform: translateX(-50%) rotate(180deg); transition: opacity var(--dur) var(--ease); }
.hero__panel.is-active .hero__tab { opacity: 0; }
@keyframes hero-zoom { from { transform: scale(1.05); } to { transform: none; } }
@media (max-width: 899px) {
	.hero { height: auto; min-height: 0; }
	.hero__panels { flex-direction: column; padding: 8px; }
	.hero__panel { flex: none; height: 96px; border-radius: var(--radius); transition: height var(--dur-slow) var(--ease); }
	.hero__panel.is-active { height: min(64svh, 480px); }
	.hero__content { left: 22px; right: 22px; bottom: 28px; }
	.hero__tab { writing-mode: horizontal-tb; transform: none; left: 22px; bottom: 22px; }
}

/* ---------- Hero podstránky ---------- */
.page-hero { padding: calc(var(--section) * .8) 0 calc(var(--section) / 2); background: radial-gradient(900px 320px at 85% 0%, var(--gold-soft), transparent 65%); }
.page-hero__title { max-width: 900px; font-size: var(--fs-display); font-weight: 700; }
.page-hero__text { max-width: 720px; margin-top: 18px; }
.page-hero .share, .page-hero .search-form { margin-top: 28px; }

/* ---------- Subnavigace (Služby) ---------- */
.subnav { position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); z-index: 50; padding-block: 12px; pointer-events: none; }
.subnav .container { display: flex; }
html:has(.subnav) { --anchor-extra: calc(var(--btn-h) + 24px); }
/* Skupina pilulek – jeden vzhled pro rozcestník služeb, kategorie článků i volby ve formuláři */
.pills, .subnav ul { display: inline-flex; max-width: 100%; gap: 4px; margin: 0; padding: 4px; overflow-x: auto; list-style: none; border-radius: calc(var(--radius-sm) + 4px); background: var(--glass-panel); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 0 0 1px var(--line); scrollbar-width: none; }
.pills::-webkit-scrollbar, .subnav ul::-webkit-scrollbar { display: none; }
.subnav ul { margin-inline: auto; background: var(--float-bg); box-shadow: var(--float-shadow); pointer-events: auto; }
.pill, .subnav a { display: inline-flex; align-items: center; gap: 8px; height: calc(var(--btn-h) - 8px); padding: 0 15px; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-small); white-space: nowrap; cursor: pointer; transition: box-shadow var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.pill .icon, .subnav a .icon { color: var(--accent); }
.pill:hover, .subnav a:hover { color: var(--text); background: var(--gold-soft); }
.pill.is-active, .subnav a.is-active, input:checked + .pill { color: var(--text); background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold); }

/* ---------- Služby: krátký text + rozbalení detailu ---------- */
.service__more { margin-top: 4px; }
.service__more summary { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: var(--fs-small); font-weight: 600; cursor: pointer; list-style: none; }
.service__more summary::-webkit-details-marker { display: none; }
.service__more summary .icon { transition: transform var(--dur-fast) var(--ease); }
.service__more.is-open summary .icon, html:not(.js) .service__more[open] summary .icon { transform: rotate(180deg); }
.service__more > div { margin-top: 12px; }

/* ---------- Recenze ---------- */
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.rating { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); }
.rating__score { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--btn-bg); color: var(--btn-text); font-size: var(--fs-h3); font-weight: 700; }
.rating__label { display: grid; gap: 2px; font-size: var(--fs-xs); }
.review__text { color: var(--text); }
.review__text[data-clamp] { display: -webkit-box; -webkit-line-clamp: var(--review-lines, 6); -webkit-box-orient: vertical; overflow: hidden; }
.review__text.is-expanded { display: block; }
.review__more { align-self: flex-start; color: var(--accent); font-size: var(--fs-small); font-weight: 600; }
.review__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 12px; }
.review__author strong { display: block; color: var(--text); }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--accent); font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Kroky ---------- */
.step__num { position: absolute; top: var(--pad); right: var(--pad); color: var(--num); font-size: var(--fs-display); font-weight: 700; line-height: 1; }

/* ---------- Lidé ---------- */
.person { flex-direction: row; align-items: center; gap: 16px; }
.person .avatar { width: 48px; height: 48px; font-size: var(--fs-body); }
.person__body { display: grid; gap: 2px; min-width: 0; }
.person .contact-list a { white-space: nowrap; }
.person__body strong { color: var(--text); font-size: var(--fs-h3); font-weight: 600; }
.person__body .contact-list { margin-top: 10px; gap: 6px; }

/* ---------- FAQ, pozice (akordeon) ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--dur) var(--ease); }
.accordion details.is-open { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px var(--pad); color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .icon { flex: none; color: var(--accent); transition: transform var(--dur) var(--ease); }
.accordion details.is-open summary .icon { transform: rotate(45deg); }
html:not(.js) .accordion details[open] summary .icon { transform: rotate(45deg); }
.accordion__body { padding: 0 var(--pad); }
.accordion__body::after { content: ""; display: block; height: var(--pad); }
.accordion__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: var(--faint); font-size: var(--fs-small); font-weight: 400; }
.tag { padding: 2px 10px; border-radius: 6px; background: var(--gold-soft); color: var(--accent); font-size: var(--fs-xs); font-weight: 600; }

/* ---------- Obsah z editoru ---------- */
.prose { line-height: 1.8; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: var(--fs-h2); }
.prose h3 { margin-top: 1.6em; font-size: var(--fs-h3); }
.prose h4 { margin-top: 1.4em; font-size: var(--fs-body); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a:not(.wp-block-button__link) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul > li { position: relative; padding-left: 20px; }
.prose ul > li::before { content: ""; position: absolute; left: 4px; top: .8em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.prose ol { padding-left: 1.3em; list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); }
/* Obrázky v textu přes celou šířku textu (jako úvodní obrázek) – jednotně u všech článků a stránek */
.prose :is(figure, .wp-block-image) img, .prose p > img:not(.emoji), .prose p > a > img { display: block; width: 100%; height: auto; }
.prose :is(figure, .wp-block-image), .prose .wp-block-image :is(.aligncenter, .alignleft, .alignright, .alignnone) { display: block; width: 100%; max-width: none; margin: 1.6em 0; float: none; }
.prose .wp-block-image > figure { margin: 0; }
.prose .wp-block-image figcaption { margin-top: 10px; color: var(--faint); font-size: var(--fs-small); text-align: center; }
.prose figure { margin-inline: 0; }
.prose figcaption { margin-top: 8px; color: var(--faint); font-size: var(--fs-small); text-align: center; }
.prose blockquote { padding-left: 20px; border-left: 3px solid var(--accent); color: var(--text); }
.prose hr, .prose .wp-block-separator { border: 0; height: 1px; background: var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose details { border-radius: var(--radius); background: var(--surface); }
.prose details > summary { padding: 16px var(--pad); color: var(--text); font-weight: 600; cursor: pointer; }
.prose details > :not(summary) { padding: 0 var(--pad) var(--pad); }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.prose .wp-block-button__width-100 { width: 100%; }
.prose .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--btn-h); padding: 10px var(--btn-pad); border: 1px solid var(--btn-bg) !important; border-radius: var(--radius-sm) !important; background: transparent; color: var(--text) !important; font-size: var(--fs-small); font-weight: var(--btn-weight); letter-spacing: var(--btn-ls); text-transform: var(--btn-case, uppercase); }
.prose .wp-block-button__link:hover { background: var(--btn-bg) !important; color: var(--btn-text) !important; }
/* barvy nastavené v editoru (např. bílé pozadí) by tlačítko v tmavém i světlém režimu zneviditelnily – vždy styl šablony */
.prose .wp-block-button__link.has-background:not(:hover) { background: transparent !important; }
.prose .wp-block-button__link.has-text-color:not(:hover) { color: var(--text) !important; }
.prose .wp-block-button__link svg { width: 16px; height: 16px; }
.prose--columns { columns: 2 320px; column-gap: calc(var(--gap) * 2); }
.prose--columns > * { break-inside: avoid; }
.disclosure { border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.disclosure summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px var(--pad); color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary .icon { color: var(--accent); transition: transform var(--dur-fast) var(--ease); }
.disclosure.is-open summary .icon, html:not(.js) .disclosure[open] summary .icon { transform: rotate(180deg); }
.disclosure > div { padding: 0 var(--pad) var(--pad); }

/* ---------- Článek ---------- */
.share { display: flex; flex-wrap: wrap; gap: 8px; }
.share a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line); font-size: var(--fs-small); color: var(--text); }
.share a:hover { box-shadow: 0 0 0 1px var(--gold); }
.article__cover img { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: cover; border-radius: var(--radius); }

/* ---------- Kontakty ---------- */
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list .icon { flex: none; margin-top: 4px; color: var(--accent); }
/* Podtržení při najetí – všude stejně: vyroste zleva (menu, kontakty, patička) */
.contact-list a, .footer__links a, .footer__legal a, .footer__legal button { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size var(--dur) var(--ease), color var(--dur-fast) var(--ease); }
.contact-list a:hover, .footer__links a:hover, .footer__legal a:hover, .footer__legal button:hover { background-size: 100% 1px; }
.contact-inline { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 24px; }
.dl dt { color: var(--faint); }
.dl dd { margin: 0; color: var(--text); }
.bank { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: var(--gap); flex: 1; }
.qr { width: 168px; height: 168px; padding: 10px; border-radius: var(--radius-sm); background: var(--surface-2); object-fit: contain; }
@media (max-width: 559px) { .bank { grid-template-columns: 1fr; justify-items: center; } }
.sticky { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 899px) { .sticky { position: static; } }

.map { position: relative; min-height: 320px; align-self: stretch; overflow: hidden; border-radius: var(--radius); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map--gray iframe { filter: grayscale(1) contrast(.92) brightness(1.03); }
.map--dark iframe { filter: grayscale(1) invert(.9) contrast(.85) brightness(1.05); }
.map__placeholder { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: var(--pad); text-align: center; }
.map__placeholder > .icon { color: var(--accent); }
.map__placeholder strong { color: var(--text); }
.map__placeholder .btn-row { justify-content: center; margin-top: 8px; }

/* ---------- Formuláře ---------- */
.form { display: grid; gap: 22px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form__grid > .field--full { grid-column: 1 / -1; }
@media (max-width: 559px) { .form__grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field__label { color: var(--text); font-size: var(--fs-small); font-weight: 500; }
.field__label em { color: var(--accent); font-style: normal; }
.field__help { color: var(--faint); font-size: var(--fs-xs); }
.field input, .field select, .field textarea, .search-form input { width: 100%; height: var(--btn-h); padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: inherit; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.field textarea { height: auto; min-height: 150px; padding-block: 12px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b89318' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; }
.field select option { background: var(--bg); color: var(--text); } /* Windows / Linux: nabídka v barvách webu */
.field select { cursor: pointer; transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.field select:hover { border-color: var(--line-strong); }
/* Moderní prohlížeče (Chrome/Edge 135+): rozbalená nabídka ve stylu webu místo systémového seznamu */
@supports (appearance: base-select) {
	.field select, .field select::picker(select) { appearance: base-select; }
	.field select { display: flex; align-items: center; }
	.field select::picker-icon { display: none; }
	.field select::picker(select) {
		margin-top: 6px; padding: 6px; max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain;
		border: 1px solid var(--line-strong); border-radius: var(--radius-sm); /* stejné jako pole, ze kterého se rozbalí */
		background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--text);
		-webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
		box-shadow: var(--card-hover-shadow);
		opacity: 0; translate: 0 -6px;
		transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease), overlay var(--dur-fast) allow-discrete, display var(--dur-fast) allow-discrete;
	}
	.field select:open::picker(select) { opacity: 1; translate: none; }
	@starting-style { .field select:open::picker(select) { opacity: 0; translate: 0 -6px; } }
	.field select option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: max(4px, calc(var(--radius-sm) - 4px)); /* vnitřní prvek = menší zaoblení (opticky stejné) */ background: transparent; cursor: pointer; transition: background-color var(--dur-fast) var(--ease); }
	.field select option:hover, .field select option:focus-visible { background: var(--gold-soft); outline: none; }
	.field select option:checked { color: var(--accent); font-weight: 600; }
	.field select option::checkmark { order: 1; margin-left: auto; color: var(--gold); }
}
.field input:focus, .field select:focus, .field textarea:focus, .search-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.field ::placeholder { color: var(--faint); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--error); }
.field__error { color: var(--error); font-size: var(--fs-xs); }
.field__count { justify-self: end; color: var(--faint); font-size: var(--fs-xs); }
/* volby ve formuláři = skupina pilulek, výška jako ostatní pole */
/* volby ve formuláři vypadají a chovají se jako pilulka rozcestníku služeb */
.choices { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; background: var(--float-bg); box-shadow: var(--float-shadow); }
.choices label { position: relative; display: flex; }
.choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices input:focus-visible + .pill { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 639px) {
	.choices { width: 100%; }
	.choices label { flex: 1 1 auto; }
	.choices .pill { width: 100%; justify-content: center; }
}
.dropzone { position: relative; display: grid; place-items: center; gap: 6px; min-height: 120px; padding: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); text-align: center; cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease); }
.dropzone:hover, .dropzone.is-over { border-color: var(--gold); background: var(--gold-soft); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .icon { color: var(--accent); }
.dropzone__name { color: var(--text); font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-small); line-height: 1.55; cursor: pointer; }
/* Vlastní zaškrtávátko: zaoblený čtvereček ve stylu polí, zlatá výplň a fajfka s jemnou animací */
.check input {
	appearance: none; -webkit-appearance: none; flex: none; display: grid; place-items: center;
	width: 20px; height: 20px; margin: 1px 0 0;
	border: 1.5px solid var(--line-strong); border-radius: max(5px, calc(var(--radius-sm) - 2px));
	background: var(--bg); cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.check input::after {
	content: ""; width: 12px; height: 12px; background: var(--btn-text, #fff);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	transform: scale(.4); opacity: 0;
	transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) var(--ease);
}
.check input:checked { border-color: var(--gold); background: var(--gold); }
.check input:checked::after { transform: none; opacity: 1; }
.check:hover input:not(:checked) { border-color: var(--gold); }
.check input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--gold-soft); border-color: var(--gold); }
.field.is-invalid .check input, .form__foot.is-invalid .check input { border-color: var(--error); }
.check a { color: var(--accent); text-decoration: underline; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn[aria-busy="true"] { pointer-events: none; opacity: .7; }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); font-size: var(--fs-small); }
.form-notice.is-success { background: var(--success-bg); color: var(--success); }
.form-notice.is-error { background: var(--error-bg); color: var(--error); }
.form-done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.form-done .icon-box { background: var(--success-bg); color: var(--success); }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-form input, .search-form .btn { height: 42px; min-height: 42px; } /* štíhlejší než běžná pole */
.section-row > .search-form { flex: 0 1 420px; margin-left: auto; }
/* živé vyhledávání: výpis se jemně prolne, nové karty najedou postupně */
.posts { transition: opacity var(--dur-fast) var(--ease); }
.posts.is-loading { opacity: 0; }
.posts .is-fresh { animation: fade-in calc(.45s * var(--motion, 1)) var(--ease) calc(var(--i, 0) * calc(40ms * var(--motion, 1))) both; } /* jen prolnutí – nic neposkočí */
@keyframes fade-in { from { opacity: 0; } }
.posts__empty { margin: 0; padding: 48px 0; color: var(--muted); text-align: center; }
.search-form .btn { flex: none; min-width: var(--btn-h); padding: 0 18px; }

.pagination { margin-top: 56px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 12px; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--line); color: var(--text); }
.pagination .current { background: var(--btn-bg); color: var(--btn-text); box-shadow: none; }

/* ---------- CTA pás ---------- */
.cta-band { padding-block: calc(var(--section) / 2); }
.cta-band__box { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: var(--gap) calc(var(--gap) * 2); padding: calc(var(--pad) * 1.5); border-radius: calc(var(--radius) * 1.5); background: radial-gradient(700px 260px at 0% 100%, var(--gold-soft), transparent 70%), var(--surface); }
.cta-band__contact { display: grid; gap: 20px; }
.cta-band__contact .contact-list { gap: 10px; color: var(--text); }
.cta-band .btn-row { margin: 0; }
@media (max-width: 899px) { .cta-band__box { grid-template-columns: 1fr; } }

/* ---------- Patička ---------- */
.site-footer { background: var(--bg-deep); font-size: var(--fs-small); line-height: 1.7; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 56px calc(var(--gap) * 2); padding-block: var(--footer-space, 88px); }
.footer__brand { display: grid; gap: 28px; align-content: start; justify-items: start; max-width: 320px; }
.footer__title { margin-bottom: 26px; color: var(--text); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .25em; text-transform: uppercase; }
.footer__links { display: grid; gap: 16px; }
.site-footer .contact-list { gap: 16px; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.social a:hover { background: var(--btn-bg); color: var(--btn-text); }
.footer__bottom { color: var(--faint); font-size: var(--fs-xs); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px var(--gap); padding-block: 32px 40px; border-top: 1px solid var(--line); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--accent); }
@media (max-width: 991px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer__brand { grid-column: 1 / -1; max-width: none; } }
.footer__cols { display: contents; } /* na počítači a tabletu jsou sloupce přímo v mřížce patičky */
/* Patička na telefonu: značka na střed; Služby, Společnost a Kontakt pod sebou jako blok široký podle
   nejširšího obsahu – blok je uprostřed, text v něm vlevo a levé okraje lícují */
@media (max-width: 559px) {
	.footer__grid { grid-template-columns: 1fr; justify-items: center; gap: 0; padding-block: 56px 40px; }
	.footer__brand { justify-items: center; gap: 20px; text-align: center; padding-bottom: 36px; }
	.footer__brand p { max-width: 300px; }
	.footer__cols { display: grid; grid-template-columns: fit-content(100%); justify-content: center; }
	.footer__cols > * { padding-block: 26px; border-top: 1px solid var(--line); text-align: left; }
	.footer__title { margin-bottom: 16px; }
	.footer__links { gap: 12px; }
	.footer__bottom-inner { flex-direction: column; justify-content: center; gap: 12px; text-align: center; }
	.footer__legal { justify-content: center; }
}

/* ---------- Tlačítko nahoru ---------- */
.to-top { position: fixed; right: 16px; bottom: 14px; z-index: 150; display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius); background: var(--btn-bg); color: var(--btn-text); opacity: 0; visibility: hidden; transform: translateY(16px) scale(.9); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top { transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur), height calc(.5s * var(--motion, 1)) var(--ease-out); }
.to-top .icon { transition: translate calc(.45s * var(--motion, 1)) var(--ease-out); }
@media (max-width: 639px) { .to-top { width: 46px; height: 46px; } }
.to-top:hover { color: var(--btn-text); height: 108px; } /* vytáhne se nahoru do oválu */
.to-top:hover .icon { translate: 0 -30px; scale: 1.15; }
.to-top .icon { transition: translate calc(.5s * var(--motion, 1)) var(--ease-out), scale calc(.5s * var(--motion, 1)) var(--ease-out); }
@media (max-width: 639px) { .to-top:hover { height: 84px; } .to-top:hover .icon { translate: 0 -20px; } }
.cookie:not([hidden]) ~ .to-top { bottom: 110px; }

/* ---------- Cookie lišta ---------- */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px var(--gap); max-width: var(--content); margin-inline: auto; padding: 22px var(--pad); border-radius: var(--float-radius); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--float-shadow); font-size: var(--fs-small); animation: float-in var(--dur) var(--ease); }
.cookie[hidden] { display: none; }
.cookie p { flex: 1 1 360px; }
.cookie a { color: var(--accent); text-decoration: underline; }
.cookie .btn-row { margin: 0; }

/* ---------- Úvodní splash ---------- */
.splash { display: none; }
.splash-on .splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--bg); animation: splash-out calc(1.1s * var(--motion, 1)) var(--ease) calc(2.8s * var(--motion, 1)) forwards; }
.splash.is-done { animation: splash-out calc(1.1s * var(--motion, 1)) var(--ease) forwards; }
/* Prolnutí do stránky: splash se rozplyne a lehce přiblíží, stránka zpoza něj jemně vyjede. */
.splash-on :is(.site-header, main) { animation: page-in calc(1.2s * var(--motion, 1)) cubic-bezier(.22, .61, .36, 1) calc(2.7s * var(--motion, 1)) both; }
.splash-on.splash-reveal :is(.site-header, main) { animation-delay: calc(.1s * var(--motion, 1)); }
.splash__inner { display: grid; justify-items: center; gap: 18px; }
.splash__logo { overflow: hidden; }
.splash__logo img { width: var(--splash-logo, 120px); animation: splash-logo calc(1.2s * var(--motion, 1)) var(--ease) both; }
.splash__progress { display: grid; justify-items: center; gap: 10px; }
.splash__line { position: relative; display: block; width: calc(var(--splash-logo, 120px) * 1.6); height: 5px; overflow: hidden; border-radius: 3px; background: var(--line); }
.splash__pct { color: var(--text); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .08em; animation: fade-up calc(.8s * var(--motion, 1)) var(--ease) calc(.2s * var(--motion, 1)) both; }
.splash__line::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--gold); box-shadow: 0 0 14px color-mix(in srgb, var(--gold) 55%, transparent); transform: scaleX(0); transform-origin: left; animation: splash-line calc(1.6s * var(--motion, 1)) var(--ease) calc(.3s * var(--motion, 1)) forwards; }
.splash--js .splash__line::after { animation: none; transform: scaleX(var(--p, 0)); } /* průběh řídí JS podle načítání */
.splash__claim { padding-inline: 16px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .26em; text-align: center; text-transform: uppercase; animation: fade-up calc(1s * var(--motion, 1)) var(--ease) calc(.7s * var(--motion, 1)) both; }
@keyframes splash-logo { from { opacity: 0; translate: 0 100%; } to { opacity: 1; translate: none; } }
@keyframes splash-line { to { transform: scaleX(1); } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; transform: scale(1.06); filter: blur(8px); } }
@keyframes page-in { from { transform: scale(.985); } } /* jen jemné přiblížení – průhledností by prosvítala patička */
.splash-on .site-footer { visibility: hidden; }
@keyframes float-in { from { opacity: 0; translate: 0 var(--float-shift); } }
@keyframes fade-up { from { opacity: 0; translate: 0 16px; } to { opacity: 1; translate: none; } }

/* ---------- Animace ---------- */
.fonts-wait :is(.page-hero, .hero, .post-cats) :is(*, *::before, *::after), .fonts-wait .post-cats { animation-play-state: paused !important; } /* čeká se na písmo */
.page-hero .kicker, .page-hero__title, .page-hero__text, .page-hero .share, .page-hero .search-form { animation: fade-up calc(.8s * var(--motion, 1)) var(--ease) both; }
.page-hero__title { animation-delay: calc(.08s * var(--motion, 1)); }
.page-hero__text, .page-hero .share, .page-hero .search-form { animation-delay: calc(.16s * var(--motion, 1)); }

/* Posun kontejnerů při scrollu – JS přidá .reveal jen prvkům mimo obrazovku (bez JS je vše vidět). */
.reveal { opacity: 0; translate: 0 48px; transition: opacity calc(.9s * var(--motion, 1)) var(--ease) calc(var(--i, 0) * calc(90ms * var(--motion, 1))), translate calc(.9s * var(--motion, 1)) var(--ease) calc(var(--i, 0) * calc(90ms * var(--motion, 1))), transform var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; translate: none; }
.reveal:not(.is-in) { will-change: opacity, translate; }
.slider.reveal { translate: none; } /* posouvat celý posuvník je náročné – jen prolnutí */
.slider__track { contain: layout paint; }

.no-animations *, .no-animations *::before, .no-animations *::after { animation: none !important; transition: none !important; }
.no-animations .reveal { opacity: 1; translate: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.reveal { opacity: 1; translate: none; }
	.splash-on .splash { display: none; }
}

/* ---------- Pomocné třídy ---------- */
.u-push { margin-top: auto; padding-top: 12px; }
.u-grow { flex: 1; }
.u-mb { margin-bottom: 20px; }
.u-mt-lg { margin-top: 56px; }
.u-mt-xl { margin-top: 72px; }
.stack--lg { gap: 56px; }
.section-row--tight { margin-bottom: 24px; }
.section-row__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.split--side { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.split.stretch { align-items: stretch; }
.qr-wrap { display: grid; place-items: center; }
@media (max-width: 899px) { .split--side { grid-template-columns: 1fr; } }

/* Formulář v úzké kartě → jeden sloupec (podle šířky karty, ne obrazovky) */
.card:has(> .form), .card:has(> form) { container-type: inline-size; }
@container (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ---------- Newsletter ---------- */
.newsletter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: 20px calc(var(--gap) * 2); }
.newsletter__title { margin-bottom: 8px; font-size: var(--fs-h3); }
.newsletter__form { display: grid; gap: 12px; }
.newsletter__row { display: flex; gap: 10px; }
.newsletter__row .field { flex: 1; }
.footer__newsletter { padding-block: var(--footer-space, 88px) 0; }
.footer__newsletter .newsletter { padding: var(--pad); border-radius: var(--radius); background: var(--surface); }
.footer__newsletter + .footer__grid { padding-top: var(--footer-space, 88px); }
@media (max-width: 767px) { .newsletter { grid-template-columns: 1fr; } .newsletter__row { flex-direction: column; } }

/* ---------- Nastavení cookies (dialog) ---------- */
.consent { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--float-radius); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--muted); box-shadow: var(--float-shadow); }
.consent::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.consent[open] { animation: float-in var(--dur) var(--ease); }
.consent__inner { display: grid; gap: 20px; padding: var(--pad); }
.consent__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.consent__close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--text); }
.consent__close:hover { background: var(--surface-2); }
.consent__list { display: grid; gap: 10px; }
.consent__item { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--line); }
.consent__item strong { color: var(--text); }
.consent__item p { margin-top: 4px; font-size: var(--fs-small); }
.consent__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; font-size: var(--fs-small); }
.consent__foot a { color: var(--accent); text-decoration: underline; }
.consent__foot .btn-row { margin: 0; }
.switch { position: relative; flex: none; display: inline-block; width: 48px; height: 28px; margin-top: 2px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__track { position: absolute; inset: 0; border-radius: 8px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color var(--dur-fast) var(--ease); }
.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 5px; background: var(--text); transition: transform var(--dur-fast) var(--ease); }
.switch input:checked + .switch__track { background: var(--btn-bg); box-shadow: none; }
.switch input:checked + .switch__track::after { transform: translateX(20px); background: #fff; }
.switch input:disabled + .switch__track { opacity: .6; }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 559px) { .cookie .btn-row .btn { flex: 1 1 auto; } }

/* ---------- Neúplný poslední řádek dlaždic na střed (Design → Neúplný poslední řádek) ---------- */
.grid-center .grid--2, .grid-center .grid--3, .grid-center .grid--4 { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-center .grid--2 > *, .grid-center .grid--3 > *, .grid-center .grid--4 > * { min-width: 0; }
.grid-center .grid--2 > * { flex: 0 1 calc((100% - var(--gap)) / 2); }
.grid-center .grid--3 > * { flex: 0 1 calc((100% - 2 * var(--gap)) / 3); }
.grid-center .grid--4 > * { flex: 0 1 calc((100% - 3 * var(--gap)) / 4); }
@media (max-width: 991px) { .grid-center .grid--3 > *, .grid-center .grid--4 > * { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 639px) { .grid-center .grid--2 > *, .grid-center .grid--3 > *, .grid-center .grid--4 > * { flex-basis: 100%; } }

/* ---------- Tlačítka v boxech přes celou šířku ---------- */
.card .btn-row > .btn, .cta-band__contact .btn-row > .btn, .map .btn-row > .btn { flex: 1 1 0; }
.form__foot { flex-direction: column; align-items: stretch; }
.form__foot .btn { width: 100%; }

/* ---------- Mobilní menu na střed (Design → Zarovnání mobilního menu) ---------- */
.mnav-center .mnav__item > a, .mnav-center .mnav__item summary { justify-content: center; gap: 10px; text-align: center; }
.mnav-center .mnav__sub { text-align: center; }
.mnav-center .mnav__foot { justify-items: center; text-align: center; }
.mnav-center .mnav__foot .contact-list li { justify-content: center; }
.mnav-center .mnav__row { justify-content: center; gap: 16px; }

/* ---------- Okno s celým textem (recenze) ---------- */
.modal { width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--float-radius); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--muted); box-shadow: var(--float-shadow); }
.modal::backdrop { background: rgba(0, 0, 0, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal[open] { animation: float-in var(--dur) var(--ease); }
.modal__inner { display: grid; gap: 18px; padding: var(--pad); }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__body { color: var(--text); line-height: 1.75; }

/* ---------- FAQ na celou šířku ---------- */
.faq-cols { display: grid; gap: 12px var(--gap); align-items: start; }
.faq-cols--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.faq-cols > .accordion { display: grid; gap: 12px; }
@media (max-width: 899px) { .faq-cols--2 { grid-template-columns: 1fr; } }

/* ---------- Kontaktní sekce ---------- */
.contact-stack { display: grid; gap: var(--gap); }
.contact-form-card { padding: calc(var(--pad) * 1.25); }
.map--tall { min-height: 360px; }
.map__nav { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
@media (max-width: 639px) { .section-row > .search-form { max-width: none; width: 100%; } }

/* ---------- Hero až pod hlavičkou (úvodní stránka) ---------- */
.has-hero .hero { margin-top: calc(-1 * var(--header-h)); height: calc(min(var(--hero-h), 100svh - var(--header-h)) + var(--header-h) + var(--hero-top, 12px)); }
.has-hero .hero__panels { position: relative; padding-top: calc(var(--header-h) + var(--hero-top, 12px)); } /* panely začínají pod menu, celková výška zůstává */
/* Za hlavičkou rozmazaná kopie aktivního panelu – sklo hlavičky tak dál přebírá barvy hero */
.hero__ambient { position: absolute; inset: 0 0 auto; height: calc(var(--header-h) + var(--hero-top, 12px) + 140px); overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
.hero__ambient span { position: absolute; inset: -80px; background: center 30% / cover no-repeat; filter: blur(48px) saturate(.9); opacity: 0; transition: opacity var(--dur-slow) var(--ease); }
.hero__ambient span.is-on { opacity: .4; }
:root[data-theme="light"] .hero__ambient span.is-on { opacity: .3; }
.has-hero .hero__panel { border-radius: var(--radius); }
.site-header { transition: background-color var(--dur) var(--ease); }
@media (max-width: 899px) {
	.has-hero .hero { height: auto; }
	.has-hero .hero__panels { padding-top: calc(var(--header-h) + 8px); }
	.has-hero .hero__panel { border-radius: var(--radius); }
}

/* ---------- FAQ – plynulé otevírání (výšku animuje JS) ---------- */
.accordion details > .accordion__body { overflow: hidden; }
.accordion__body > :first-child { margin-top: 0; }
.accordion__body > :last-child { margin-bottom: 0; }
.accordion summary .icon { transition: transform var(--dur) var(--ease); }

/* ---------- Mobilní menu: položky vlevo odshora (nic neposkakuje), kontakty a sítě dole na středu ---------- */
.mnav__inner { min-height: calc(100svh - var(--header-h)); padding-block: 12px 28px; }
.mnav__inner > nav { flex: 1; }
.mnav__list { display: grid; }
.mnav__item { border-bottom: 1px solid var(--line); }
.mnav__item > a, .mnav__item summary { padding: 15px 0; font-size: var(--fs-h3); }
.mnav__sub { padding: 0 0 12px 2px; }
.mnav__sub a { padding: 7px 0; font-size: var(--fs-body); color: var(--muted); }
.mnav__foot { gap: 18px; justify-items: center; text-align: center; }
.mnav__foot .contact-list li { justify-content: center; }
.mnav__row { justify-content: center; gap: 16px; }

/* Nad hero: průhledný podklad s rozmazáním, při scrollu plynule houstne (--header-p 0 → 1 nastavuje JS) */
.has-hero .site-header { --hdr-base: var(--glass-hero); }
.has-hero .site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--glass); opacity: var(--hdr-p, 0); pointer-events: none; }

/* Mřížka vždy zleva (např. stránka Služby) i při zarovnání na střed jinde */
.grid-center .grid.grid--start { display: grid; }

/* Okno recenze – šipky a počítadlo */
.modal__nav { display: flex; align-items: center; justify-content: center; gap: 16px; padding-top: 8px; }
.modal__nav[hidden] { display: none; }
.modal__count { min-width: 56px; color: var(--faint); font-size: var(--fs-small); text-align: center; font-variant-numeric: tabular-nums; }

/* Ovládání sekce (Zobrazit vše → šipka vlevo → šipka vpravo) vždy vpravo, i po zalomení na mobilu */
.section-row__actions { margin-left: auto; justify-content: flex-end; }
.section-row > .btn, .section-row > .link-arrow { margin-left: auto; }

/* Slider jen na telefonu (aktuality): na větších obrazovkách běžná mřížka */
@media (min-width: 640px) {
	.slider--mobile .slider__track { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; margin: 0; padding: 0; scroll-snap-type: none; }
	.slider--mobile .slider__progress, .slider__nav-mobile { display: none; }
}
@media (min-width: 640px) and (max-width: 991px) { .slider--mobile .slider__track { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 639px) { .map { min-height: 280px; } .map--tall { min-height: 320px; } }

/* ---------- Přechod mezi stránkami (zapíná se v nastavení, styl @view-transition) ----------
   Hlavička zůstává na místě, obsah se jemně prolne a vyjede o pár pixelů. */
/* Název přechodu dostane hlavička jen během přechodu (inline skript v <head>) – trvale nastavený
   by vypnul rozmazání pod menu, které je uvnitř hlavičky. */
html.vt-active .site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out var(--dur-fast) var(--ease) both; }
::view-transition-new(root) { animation: vt-in var(--dur-slow) var(--ease) both; }
::view-transition-group(site-header) { animation-duration: var(--dur-fast); }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Hutnost hlavičky: scroll + najetí myší ----------
   --header-p nastavuje JS podle scrollu; při najetí na hlavičku (a tedy i při otevřeném menu)
   sklo plynule zhoustne na maximum. --hdr-hover je registrovaná, aby šla plynule animovat. */
@property --hdr-hover { syntax: "<number>"; inherits: true; initial-value: 0; }
.site-header { --hdr-p: max(var(--header-p, 1), var(--hdr-hover)); transition: --hdr-hover calc(.3s * var(--motion, 1)) cubic-bezier(.4, 0, .2, 1); } /* odjezd rychle */
/* podklad v jedné vrstvě: nahoře --glass-hero → po scrollu --glass → při najetí --glass-max */
.site-header::after { background: color-mix(in srgb, color-mix(in srgb, var(--hdr-base, var(--glass)), var(--glass) calc(var(--header-p, 1) * 100%)), var(--glass-max) calc(var(--hdr-hover) * 100%)); }
/* jedna vrstva skla – druhá (dřívější houstnutí nad hero) by se při najetí sčítala */
.has-hero .site-header::before { display: none; }
.site-header:is(:hover, :focus-within) { --hdr-hover: 1; transition-duration: var(--dur-slow); } /* příjezd pozvolna */
.site-header::after { box-shadow: 0 10px 30px rgba(0, 0, 0, calc(.18 * var(--hdr-p, 1))); }

/* ---------- Rohy hlavičky (Přizpůsobit → Design) ----------
   corners-inverse: dolní rohy zahnuté dovnitř (podklad se „vlévá“ do stran); při otevřeném menu
   přejdou na spodek menu. corners-round: klasicky zaoblené. corners-none: rovné. */
.site-header { --fillet: calc(var(--radius) * 2); --fillet-mask:
	linear-gradient(#000 0 0) top / 100% calc(100% - var(--fillet)) no-repeat,
	radial-gradient(circle at 100% 100%, transparent calc(var(--fillet) - .5px), #000 var(--fillet)) left bottom / var(--fillet) var(--fillet) no-repeat,
	radial-gradient(circle at 0 100%, transparent calc(var(--fillet) - .5px), #000 var(--fillet)) right bottom / var(--fillet) var(--fillet) no-repeat; }
.corners-inverse .site-header::after, .corners-inverse.has-hero .site-header::before { bottom: calc(-1 * var(--fillet)); box-shadow: none; -webkit-mask: var(--fillet-mask); mask: var(--fillet-mask); }
.corners-inverse .site-header:has(.nav__item:is(:hover, :focus-within, .is-open) > .mega)::after,
.corners-inverse.has-hero .site-header:has(.nav__item:is(:hover, :focus-within, .is-open) > .mega)::before,
.corners-inverse:has(.burger[aria-expanded="true"]) .site-header::after,
.corners-inverse:has(.burger[aria-expanded="true"]) .site-header::before { bottom: 0; -webkit-mask: none; mask: none; }

.corners-round .site-header::after, .corners-round .site-header::before { border-radius: 0 0 var(--radius) var(--radius); }
:is(.corners-round, .corners-inverse) .mega { border-radius: 0 0 var(--radius) var(--radius); }
.corners-round .site-header:has(.nav__item:is(:hover, :focus-within, .is-open) > .mega)::after,
.corners-round .site-header:has(.nav__item:is(:hover, :focus-within, .is-open) > .mega)::before { border-radius: 0; box-shadow: none; }

/* ---------- Otevírání menu Služby ----------
   Panel se pozvolna rozvine shora; sloupce pak jeden po druhém najedou zleva.
   Bez stínu – při rozvinutí by se odkrýval jako další pás pod panelem. */
.mega { clip-path: inset(0 0 100% 0); transition: opacity calc(.2s * var(--motion, 1)) var(--ease), clip-path calc(.28s * var(--motion, 1)) cubic-bezier(.4, 0, 1, 1), visibility 0s calc(.28s * var(--motion, 1)); } /* zavření: rychle, nic se netáhne */
.nav__item:is(:hover, :focus-within, .is-open) > .mega { clip-path: inset(0); transition: opacity var(--dur-slow) var(--ease), clip-path calc(.7s * var(--motion, 1)) cubic-bezier(.4, 0, .2, 1), visibility 0s 0s; }
.mega__col, .mega__aside { opacity: 0; translate: -16px 0; transition: opacity var(--dur-fast) var(--ease), translate var(--dur-fast) var(--ease); }
.nav__item:is(:hover, :focus-within, .is-open) > .mega :is(.mega__col, .mega__aside) { opacity: 1; translate: none; transition-duration: calc(.55s * var(--motion, 1)); transition-delay: calc(200ms + var(--i, 0) * calc(90ms * var(--motion, 1))); }
.mega__inner > :nth-child(2) { --i: 1; } .mega__inner > :nth-child(3) { --i: 2; } .mega__inner > :nth-child(4) { --i: 3; } .mega__inner > :nth-child(5) { --i: 4; }

/* ---------- Patička: horní rohy v páru s hlavičkou + parallax ----------
   corners-inverse: rohy zahnuté dovnitř (podklad patičky se „vlévá“ nahoru do stran stránky). */
.site-footer { position: relative; --fillet: calc(var(--radius) * 2); }
.corners-inverse .site-footer::before, .corners-inverse .site-footer::after { content: ""; position: absolute; bottom: 100%; width: var(--fillet); height: var(--fillet); pointer-events: none; }
.corners-inverse .site-footer::before { left: 0; background: radial-gradient(circle at 100% 0, transparent calc(var(--fillet) - .5px), var(--bg-deep) var(--fillet)); }
.corners-inverse .site-footer::after { right: 0; background: radial-gradient(circle at 0 0, transparent calc(var(--fillet) - .5px), var(--bg-deep) var(--fillet)); }
.corners-round .site-footer { border-radius: var(--radius) var(--radius) 0 0; }
/* ---------- Odhalovací patička (jen když se celá vejde na obrazovku – třídu .footer-reveal přidává JS) ----------
   Patička stojí za obsahem; obsah z ní při dojíždění odjede nahoru jako opona a odhalí ji zpod zaoblených rohů. */
.footer-reveal main, .footer-reveal .cta-band { position: relative; z-index: 1; background: var(--bg); }
.footer-reveal body > :has(+ .site-footer) { border-radius: 0 0 var(--fillet-page, 24px) var(--fillet-page, 24px); box-shadow: 0 24px 48px rgba(0, 0, 0, .28); }
.footer-reveal .site-footer { position: sticky; bottom: 0; z-index: 0; }
.footer-reveal body { background: var(--bg-deep); } /* za zaoblenými rohy obsahu je barva patičky, ne světlejší pozadí */
.footer-reveal .site-footer::before, .footer-reveal .site-footer::after { display: none; } /* rohy dělá obsah nad patičkou */
.footer-reveal.corners-none body > :has(+ .site-footer) { border-radius: 0; }
/* Obsah patičky při odhalování jemně dojede z hloubky (--reveal 0 → 1 nastavuje JS podle scrollu). */
.footer-reveal .site-footer > * { opacity: calc(.35 + .65 * var(--reveal, 1)); transform: translateY(calc((1 - var(--reveal, 1)) * 48px)) scale(calc(.98 + .02 * var(--reveal, 1))); }


/* ---------- Šipky v tlačítkách a odkazech: při najetí vyjedou ve svém směru ---------- */
:is(.btn, .link-arrow, .card__more, .slider__btn) .icon { transition: translate calc(.45s * var(--motion, 1)) var(--ease-out), transform calc(.45s * var(--motion, 1)) var(--ease-out); }
:is(.btn, .link-arrow, a.card--link, .slider__btn--next):hover .icon--arrow { translate: 4px 0; }
.slider__btn--prev:hover .icon--arrow { translate: -4px 0; }
:is(.btn, .link-arrow):hover .icon--external { translate: 2px -2px; }
:is(.btn, .link-arrow):hover .icon--arrow-up { translate: 0 -3px; }

/* ---------- Mapa: ovládání (zoom kolečkem) až po kliknutí – při scrollu se stránka nezasekne ---------- */
.map:not(.is-active) iframe { pointer-events: none; }
.map[data-map-hint]:not(.is-active) { cursor: pointer; }
.map[data-map-hint]:not(.is-active)::after { content: attr(data-map-hint); position: absolute; left: 50%; top: 16px; z-index: 2; padding: 8px 16px; border-radius: var(--radius-sm); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--float-shadow); color: var(--text); font-size: var(--fs-xs); white-space: nowrap; opacity: 0; translate: -50% -6px; transition: opacity var(--dur) var(--ease), translate var(--dur) var(--ease); pointer-events: none; }
.map[data-map-hint]:not(.is-active):hover::after { opacity: 1; translate: -50% 0; transition-delay: calc(.35s * var(--motion, 1)); }

/* ---------- Slider: tažení myší ---------- */
.slider__track.is-draggable { cursor: grab; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.slider__track.is-dragging * { pointer-events: none; }

/* ---------- Plynulý scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Splash: akcentní záře (zlatá + modrá) a rozmazané pozadí ---------- */
.splash-on .splash { background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%); }
.splash::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(70vmin, 640px); aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
	background: radial-gradient(circle at 35% 40%, color-mix(in srgb, var(--accent-2, #0aa3a8) 60%, transparent), transparent 55%), radial-gradient(circle at 65% 60%, color-mix(in srgb, var(--gold) 50%, transparent), transparent 55%);
	filter: blur(40px); opacity: .55; animation: splash-glow calc(2.4s * var(--motion, 1)) var(--ease) both; pointer-events: none; }
.splash__inner { position: relative; }
@keyframes splash-glow { from { opacity: 0; transform: scale(.7) rotate(-20deg); } to { opacity: .55; transform: none; } }

/* ---------- Pilulky: jezdící zvýraznění (JS přidá .has-thumb a dva jezdce) ---------- */
.has-thumb { position: relative; isolation: isolate; }
.pills__thumb, .pills__hover { position: absolute; left: 0; top: 0; z-index: -1; border-radius: var(--radius-sm); pointer-events: none; opacity: 0;
	transition: transform calc(.55s * var(--motion, 1)) cubic-bezier(.65, 0, .35, 1), width calc(.55s * var(--motion, 1)) cubic-bezier(.65, 0, .35, 1), height calc(.55s * var(--motion, 1)) cubic-bezier(.65, 0, .35, 1), opacity var(--dur) var(--ease); } /* plynulý rozjezd i dojezd */
.pills__thumb { background: var(--gold-soft); box-shadow: 0 0 0 1px var(--gold); }
.pills__hover { background: color-mix(in srgb, var(--gold-soft) 70%, transparent); }
.has-thumb :is(.pill, a):is(:hover, .is-active), .has-thumb input:checked + .pill { background: transparent; box-shadow: none; }

/* ---------- Mobilní menu: otevření i zavření ---------- */
.mnav { opacity: 0; translate: 0 -10px; transition: opacity calc(.35s * var(--motion, 1)) var(--ease), translate calc(.4s * var(--motion, 1)) var(--ease-out); }
.mnav.is-open { opacity: 1; translate: none; }
.mnav__item { opacity: 0; translate: 0 8px; transition: opacity calc(.3s * var(--motion, 1)) var(--ease), translate calc(.45s * var(--motion, 1)) var(--ease-out); }
.mnav.is-open .mnav__item { opacity: 1; translate: none; }
.mnav.is-open .mnav__item:nth-child(2) { transition-delay: calc(40ms * var(--motion, 1)); } .mnav.is-open .mnav__item:nth-child(3) { transition-delay: calc(80ms * var(--motion, 1)); }
.mnav.is-open .mnav__item:nth-child(4) { transition-delay: calc(120ms * var(--motion, 1)); } .mnav.is-open .mnav__item:nth-child(5) { transition-delay: calc(160ms * var(--motion, 1)); }
.mnav.is-open .mnav__item:nth-child(n+6) { transition-delay: calc(200ms * var(--motion, 1)); }

/* ---------- Dialogy a cookie lišta: zavření ---------- */
@keyframes float-out { to { opacity: 0; translate: 0 var(--float-shift); } }
@keyframes backdrop-in { from { opacity: 0; } }
@keyframes backdrop-out { to { opacity: 0; } }
:is(.modal, .consent)::backdrop { animation: backdrop-in var(--dur) var(--ease); }
:is(.modal, .consent).is-closing { animation: float-out calc(.26s * var(--motion, 1)) var(--ease) forwards; }
:is(.modal, .consent).is-closing::backdrop { animation: backdrop-out calc(.26s * var(--motion, 1)) var(--ease) forwards; }
.cookie { transition: opacity calc(.3s * var(--motion, 1)) var(--ease), translate calc(.3s * var(--motion, 1)) var(--ease); }
.cookie.is-leaving { opacity: 0; translate: 0 16px; }

.has-thumb :is(.pill, a) { transition: color calc(.55s * var(--motion, 1)) cubic-bezier(.65, 0, .35, 1); }

/* ---------- Tlačítka: jednotná „levitace“ na celém webu ----------
   Při najetí plynule povyjedou nahoru a drží se, po odjetí se plynule vrátí.
   Platí pro tlačítka šablony, tlačítka vložená v obsahu (bloky), šipky sliderů i sociální sítě. */
:is(.btn, .prose .wp-block-button__link, .social a, .slider__btn) {
	transition: transform calc(.5s * var(--motion, 1)) var(--ease-out), box-shadow calc(.5s * var(--motion, 1)) var(--ease-out), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), filter var(--dur) var(--ease);
}
:is(.btn, .prose .wp-block-button__link, .social a, .slider__btn):hover { transform: translateY(var(--lift-btn, -4px)); } /* jen plynulé zvednutí, bez stínu */
:is(.btn, .prose .wp-block-button__link, .social a, .slider__btn):active { transform: translateY(-1px); transition-duration: calc(.15s * var(--motion, 1)); }

/* ---------- Splash při přepnutí jazyka: plynulé zahalení před odchodem na druhou doménu ---------- */
.splash-enter .splash { animation: splash-enter calc(.5s * var(--motion, 1)) var(--ease) both !important; }
@keyframes splash-enter { from { opacity: 0; } }
.splash-enter :is(.site-header, main) { animation: none !important; }

/* ---------- Kategorie článků: štítky na kartě a v článku ---------- */
.card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.post-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; animation: fade-up calc(.8s * var(--motion, 1)) var(--ease) both; }
.post-cats .tag { display: inline-block; transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
.post-cats .tag:hover { background: var(--btn-bg); color: var(--btn-text); }
[data-news-filter] { max-width: 100%; }

/* Zaoblení – opticky jednotné (ne stejná čísla): karty a boxy 12 px (--radius), tlačítka, pole a ikony 8 px (--radius-sm),
   drobné štítky 6 px; vnořené prvky soustředně (vnější = vnitřní + odsazení). Kulaté zůstávají jen vlaječky a přepínač režimu. */

/* ---------- Záhlaví podstránek ----------
   Vyhledávání vedle nadpisu; za hlavičkou stejná akcentní záře (tyrkys + zlatá) jako na úvodní stránce. */
.page-hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px var(--gap); }
.page-hero__main { flex: 1 1 520px; min-width: 0; }
.page-hero__aside { flex: 0 1 380px; }
.page-hero__aside .search-form { margin: 0; max-width: none; }
.page-hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + var(--section) * .8); background: none; }
.page-hero::before { content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: calc(var(--header-h) + 320px); pointer-events: none;
	background: radial-gradient(640px 280px at 18% 0%, color-mix(in srgb, var(--accent-2, #0aa3a8) 22%, transparent), transparent 70%), radial-gradient(760px 300px at 82% 0%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); }
.site-header { --hdr-base: var(--glass-hero); } /* i na podstránkách je hlavička nahoře průsvitná a přebírá záři */
@media (max-width: 767px) { .page-hero__aside { flex-basis: 100%; } }

/* ---------- Filtr kategorií: plovoucí vycentrovaná lišta jako rozcestník služeb ---------- */
.subnav--filter { margin-bottom: 28px; } /* odsazení mezi filtrem a články */

/* Přepnutí jazyka: původní verze stránku jen zahalí (bez ukazatele a textu ve starém jazyce)… */
.splash-leave :is(.splash__progress, .splash__claim) { opacity: 0; animation: none; }
/* …a nová verze naváže: pozadí i logo už stojí, ukazatel jede od 0 % a text se objeví v novém jazyce */
.splash-continue .splash::before { animation: none; opacity: .55; }
.splash-continue .splash__logo img { animation: none; }
/* Při přepnutí jazyka je splash na obou stránkách stejný a neprůhledný: logo i záře stojí, nic neprobliká skrz */
.splash-enter .splash::before { animation: none; opacity: .55; }
.splash-enter .splash__logo img { animation: none; }
.splash-on:is(.splash-enter, .splash-continue) .splash { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
.splash-continue .splash__line::after { animation: none; transform: scaleX(var(--p, 0)); }

/* Lišta pilulek, která se nevejde: okraje se ztrácí do ztracena (je vidět, že jde posouvat) */
.has-thumb.is-scrollable:not(.at-start):not(.at-end) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.has-thumb.is-scrollable.at-start:not(.at-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.has-thumb.is-scrollable.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px); mask-image: linear-gradient(90deg, transparent, #000 32px); }
.has-thumb { scroll-behavior: smooth; }
@media (max-width: 1100px) { .pill, .subnav a { padding: 0 11px; } } /* užší položky – lišta se vejde i na menší notebook */

/* pilulky: zvýraznění dělá jezdec – rámeček zaměření jen při ovládání klávesnicí */
.has-thumb :is(.pill, a):focus:not(:focus-visible) { outline: none; }
.has-thumb :is(.pill, a):focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
/* text položek ve vlastní stabilní vrstvě nad jezdcem – při jeho pohybu se písmo nepřekresluje (neposkakuje) */
.has-thumb :is(.pill, a) { position: relative; z-index: 1; transform: translateZ(0); backface-visibility: hidden; }
/* Rozbalovací blok z editoru stejně jako FAQ */
.prose details { box-shadow: 0 0 0 1px var(--line); }
.prose details > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--pad); color: var(--text); font-weight: 600; cursor: pointer; list-style: none; }
.prose details > summary::-webkit-details-marker { display: none; }
.prose details > summary::after { content: "+"; flex: none; color: var(--accent); font-size: 1.4em; font-weight: 400; line-height: 1; transition: transform var(--dur) var(--ease); }
.prose details.is-open > summary::after, html:not(.js) .prose details[open] > summary::after { transform: rotate(45deg); }
.prose details > :not(summary) { padding-inline: var(--pad); }
.prose details > :last-child:not(summary) { padding-bottom: var(--pad); }

/* ---------- Cookies: umístění lišty a plovoucí tlačítko ---------- */
.cookie--box { left: 16px; right: auto; width: min(420px, calc(100% - 32px)); flex-direction: column; align-items: stretch; }
.cookie--box .btn-row { justify-content: flex-start; }
.cookie--center { top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, calc(100% - 32px)); translate: -50% -50%; flex-direction: column; align-items: stretch; box-shadow: var(--float-shadow), 0 0 0 100vmax rgba(0, 0, 0, .55); }
.cookie--center.is-leaving { translate: -50% calc(-50% + 16px); }
.cookie-fab { position: fixed; left: 16px; bottom: 14px; z-index: 150; display: grid; place-items: center; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--float-shadow); color: var(--accent); transition: transform calc(.45s * var(--motion, 1)) var(--ease-out); }
.cookie-fab:hover { transform: translateY(-3px); }
.cookie:not([hidden]) ~ .cookie-fab { display: none; }

/* ---------- Stránka údržby ---------- */
.maintenance { position: relative; display: grid; min-height: 100svh; place-items: center; padding: 24px; isolation: isolate; }
.maintenance::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 320px at 30% 30%, color-mix(in srgb, var(--accent-2, #0aa3a8) 22%, transparent), transparent 70%), radial-gradient(700px 360px at 70% 70%, color-mix(in srgb, var(--gold) 18%, transparent), transparent 70%); }
.maintenance__card { display: grid; justify-items: center; gap: 18px; width: min(560px, 100%); padding: calc(var(--pad) * 1.5); border-radius: var(--radius); background: var(--float-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--float-shadow); text-align: center; }
.maintenance__title { font-size: var(--fs-h2); font-weight: 700; color: var(--text); }
.maintenance .contact-list { justify-items: center; margin-top: 8px; }
.cookie--box > p, .cookie--center > p { flex: none; } /* ve sloupci by šířka lišty vytvořila prázdnou výšku */

/* ---------- Lightbox obrázků v článcích ---------- */
.prose a[href$=".jpg"], .prose a[href$=".jpeg"], .prose a[href$=".png"], .prose a[href$=".webp"], .prose a[href$=".gif"] { cursor: zoom-in; }
.modal.lightbox { width: min(1400px, calc(100vw - 32px)); max-width: none; max-height: none; padding: 0; overflow: visible; border: 0; background: none; box-shadow: none; }
.lightbox__fig { display: grid; justify-items: center; gap: 12px; margin: 0; }
.lightbox__fig img { display: block; max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: var(--radius); }
.lightbox__fig figcaption { display: flex; gap: 16px; justify-content: center; color: #fff; font-size: 14px; text-align: center; }
.lightbox__count { opacity: .7; font-variant-numeric: tabular-nums; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; background: var(--float-bg); color: var(--text); }
.lightbox__nav.slider__btn--prev { left: 16px; }
.lightbox__nav:not(.slider__btn--prev) { right: 16px; }
.lightbox__nav[hidden] { display: none; }
.lightbox__close { position: fixed; top: 16px; right: 16px; }
.modal.lightbox::backdrop { background: rgba(0, 0, 0, .86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- 404 – jednoduché sdělení uprostřed ---------- */
.notfound { display: grid; place-items: center; min-height: calc(100vh - 220px); min-height: calc(100svh - 220px); padding: calc(var(--hero-top, 24px) + 96px) 0 96px; text-align: center; }
.notfound__inner { display: grid; justify-items: center; }
.notfound__code { margin: 0; color: var(--gold); font-size: clamp(88px, 16vw, 168px); font-weight: 600; line-height: 1; letter-spacing: -.04em; opacity: .9; }
.notfound__title { margin: 12px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.notfound__text { margin: 0 0 28px; color: var(--muted); }

/* ---------- Recenze na stránce Reference: rozbalení dalších ---------- */
.reviews-more { margin-top: var(--gap); }
.reviews-more > summary { display: inline-flex; align-items: center; gap: 8px; list-style: none; cursor: pointer; }
.reviews-more > summary::-webkit-details-marker { display: none; }
.reviews-more > summary .icon { transition: transform var(--dur) var(--ease); }
.reviews-more[open] > summary .icon, .reviews-more.is-open > summary .icon { transform: rotate(180deg); }
.reviews-more > .grid { margin-top: var(--gap); }
.reviews-all { margin-top: 28px; }
