/*
 * Atelier JL – styly webu. Vzhled převzatý ze starého WordPressu (Divi): černá hlavička,
 * tmavé plochy #121212 / #1b1b1b / #232323, světle šedý text, písmo Carlito (jméno v patičce Karla).
 * Bez frameworku a build kroku; cache-busting řeší asset() (MtimeVersionStrategy).
 */

/* Písma hostovaná na vlastním webu (dřív Google Fonts: blokovala vykreslení a posílala IP návštěvníka Googlu).
 * Carlito a Karla (licence SIL OFL), jen latin + latin-ext – stažené z fonts.googleapis.com 2026-11-19. */
@font-face {
  font-family: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/carlito-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: 'Carlito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/carlito-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: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/carlito-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: 'Carlito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/carlito-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;
}
@font-face {
  font-family: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/karla-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: 'Karla';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/karla-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;
}

:root {
	--bg: #121212;
	--bg-alt: #232323;
	--bg-footer: #1b1b1b;
	--bg-footer-bar: #262626;   /* Divi: rgba(255,255,255,.05) přes #1b1b1b */
	--header: #000;
	--ink: #d1d1d1;
	--ink-strong: #fff;
	--ink-muted: #9a9a9a;
	--accent: #a08553;          /* zlatohnědá aktivní položka podmenu ze starého webu */
	--line: #3a3a3a;
	--font: 'Carlito', 'Calibri', 'Segoe UI', Arial, sans-serif;
	/* obsah přes celou šířku okna s pevným odsazením od krajů – jako starý web (Divi: 65 px);
	   menší odsazení na tabletu a mobilu je v media queries */
	--wrap: none;
	--gutter: 65px;
	/* čitelná šířka textových bloků (Studio, kontaktní formulář) */
	--text: 920px;
	--header-h: 95px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	/* velikosti písma podle starého webu (Divi): tělo 16 px, řádkování ~1.3 */
	font: 16px/1.3 var(--font);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
iframe { max-width: 100%; border: 0; }

a { color: var(--ink-strong); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

h1, h2, h3, h4 { color: var(--ink); font-weight: 400; line-height: 1.3; margin: 0 0 .6em; }
h1 { font-size: 30px; line-height: 1.2; }
h2 { font-size: clamp(22px, 2.4vw, 28px); }
h3 { font-size: 22px; }
h4 { font-size: 20px; }
/* nadpis přečíslovaný filtrem heading_levels (h4 → h2/h3 kvůli pořadí) si drží vzhled původní úrovně */
.h-3 { font-size: 22px; }
.h-4 { font-size: 20px; }
p { margin: 0 0 1em; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 14px; }
.skip-link:focus { left: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 40px; padding-bottom: 50px; }
.section--gradient { background: linear-gradient(180deg, #383838 0, var(--bg) 8%); } /* jako Divi: přechod na 8 % výšky sekce */
.section--alt { background: var(--bg-alt); }

.page-title { color: var(--ink); margin-bottom: 24px; }
.page-head__subtitle { color: var(--ink-muted); margin-top: -12px; }

/* nadpis sekce s krátkou linkou pod sebou (jako „Projekty“ / „O nás“ na starém webu) */
.section-title, .content--home h2 {
	text-align: center;
	color: #dbdbdb;
	font-size: 30px;
	line-height: 39px;
	margin: 0 0 21px;
}
.section-title { letter-spacing: 1px; } /* „Projekty“ ano, „O nás“ ne – jako starý web */
.section-title::after, .content--home h2::after {
	content: '';
	display: block;
	width: 7%;                  /* Divi divider: „Projekty“ 7 % obsahu (tablet 16 %, mobil 24 %) */
	height: 2px;
	margin: 10px auto 0;
	background: #d8d8d8;
}
.content--home h2 { margin-bottom: 47px; }
.content--home h2::after { width: 4.8%; } /* „O nás“: 6 % z řádku širokého 80 % (tablet 16 %, mobil 26 %) */

/* ---------------------------------------------------------------- hlavička */

/* hlavička jako starý web: při rolování odjede se stránkou (relative kvůli rozbalovacímu panelu na mobilu) */
.site-header {
	position: relative;
	z-index: 50;
	background: var(--header);
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--header-h);
	padding: 8px 35px;
}
.brand { margin-left: 8px; } /* logo jako Divi: 414 × 79 px, 43 px od kraje, svisle na střed 95px lišty */
.brand img { width: auto; height: 79px; }

/* Animace loga (bonus, jen při prvním zobrazení v relaci – třída .logo-anim z <head>):
   čtyři čtverce začnou přeházené a zrcadlově otočené a třemi tahy jako na Rubikově kostce
   (dolní řádek, levý sloupec, horní řádek) se dostanou na místo; pak slova vyrostou zespodu po patrech.
   Dílky jsou výřezy ze stejného PNG; bez animace se zobrazuje jen <img>. */
.brand__logo { position: relative; display: block; perspective: 400px; }
.brand__logo img { display: block; }
.brand__part { display: none; }
@media (prefers-reduced-motion: no-preference) {
	.logo-anim .brand__logo img { visibility: hidden; }
	.logo-anim .brand__part {
		display: block;
		position: absolute;
		left: calc(var(--x) / 430 * 100%);
		top: calc(var(--y) / 82 * 100%);
		width: calc(var(--w) / 430 * 100%);
		height: calc(var(--h) / 82 * 100%);
		background: url('../images/atelierjl-logo.png') no-repeat;
		background-size: calc(430 / var(--w) * 100%) calc(82 / var(--h) * 100%);
		background-position: calc(var(--x) / (430 - var(--w)) * 100%) calc(var(--y) / (82 - var(--h)) * 100%);
	}
	.logo-anim .brand__part--tl { animation: logo-tl 2.1s ease-in-out both; }
	.logo-anim .brand__part--bl { animation: logo-bl 2.1s ease-in-out both; }
	.logo-anim .brand__part--tr { animation: logo-tr 2.1s ease-in-out both; }
	.logo-anim .brand__part--br { animation: logo-br 2.1s ease-in-out both; }
	.logo-anim .brand__part--w1 { animation: logo-build .6s steps(6, jump-end) 2.1s both; }
	.logo-anim .brand__part--w2 { animation: logo-build .6s steps(6, jump-end) 2.3s both; }
	.logo-anim .brand__part--w3 { animation: logo-build .6s steps(6, jump-end) 2.5s both; }
	.logo-anim .brand__part--w4 { animation: logo-build .6s steps(6, jump-end) 2.7s both; }
}
@keyframes logo-build {
	from { clip-path: inset(100% 0 0 0); }
	to { clip-path: inset(0 0 0 0); }
}
@keyframes logo-tl {
	0%, 19% { transform: translate(114.29%, -19.12%) rotateX(0deg) rotateY(-180deg); }
	43%, 48% { transform: translate(114.29%, -19.12%) rotateX(0deg) rotateY(-180deg); }
	71%, 76% { transform: translate(114.29%, -19.12%) rotateX(0deg) rotateY(-180deg); }
	100% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
}
@keyframes logo-bl {
	0%, 19% { transform: translate(0.00%, -95.95%) rotateX(-180deg) rotateY(0deg); }
	43%, 48% { transform: translate(0.00%, -95.95%) rotateX(-180deg) rotateY(0deg); }
	71%, 76% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
	100% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
}
@keyframes logo-tr {
	0%, 19% { transform: translate(0.00%, 95.95%) rotateX(-180deg) rotateY(-360deg); }
	43%, 48% { transform: translate(-109.09%, 113.51%) rotateX(-180deg) rotateY(-180deg); }
	71%, 76% { transform: translate(-109.09%, 17.57%) rotateX(0deg) rotateY(-180deg); }
	100% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
}
@keyframes logo-br {
	0%, 19% { transform: translate(-109.09%, 19.12%) rotateX(0deg) rotateY(-180deg); }
	43%, 48% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
	71%, 76% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
	100% { transform: translate(0.00%, 0.00%) rotateX(0deg) rotateY(0deg); }
}

.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link {
	display: block;
	padding: 10px 11px;
	color: #fff;
	font-size: 17px;
	text-decoration: none;
	line-height: 1.3;
}
/* barvy a hover jako Divi: hover = průhlednost 0.7, tučně jen aktivní položka */
.nav__link { transition: opacity .3s; }
.nav__link:hover { color: #fff; opacity: .7; }
.nav__item.is-active > .nav__link { font-weight: 700; }
.nav__item--social { display: flex; gap: 12px; padding-left: 10px; }
.nav__icon { display: block; color: #fff; padding: 6px 2px; transition: opacity .3s; }
.nav__icon svg { width: 25px; height: 25px; display: block; }
.nav__icon:hover { color: #fff; opacity: .7; }

/* podmenu „Projekty“ (kategorie) jen v hamburger menu; na desktopu je dubluje lišta kategorií pod hlavičkou */
.nav__sub { display: none; margin: 0; padding: 0 0 10px 16px; list-style: none; }
.nav__sub-link { display: block; padding: 7px 20px; color: #fff; text-decoration: none; font-size: 17px; }
.nav__sub-link:hover, .nav__sub-link[aria-current] { color: var(--accent); }

.nav-toggle { display: none; }

/* podmenu kategorií pod hlavičkou (výpisy, detail projektu) */
.subnav { background: var(--bg); }
.subnav ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 0;
	margin: 0;
	/* jako starý web: na střed nad pravým sloupcem (58,8 % obsahu = sloupec s fotkou na detailu projektu),
	   Divi ji má o ~35 px vlevo od středu (oblast začíná o 70 px dřív) a za každou položkou 22 px */
	padding: 10px var(--gutter) 0 calc(var(--gutter) + (100% - 2 * var(--gutter)) * .412 - 70px);
	list-style: none;
}
.subnav a { display: block; padding: 4px 22px 4px 0; color: #fff; text-decoration: none; font-size: 17px; line-height: 1.2; }
.subnav a { transition: opacity .3s; }
.subnav a:hover { color: #fff; opacity: .7; }
/* aktivní kategorie zlatohnědě a tučně jen na výpisu kategorie, na detailu projektu se nezvýrazňuje (jako starý web) */
.page-kategorie .subnav a[aria-current] { color: var(--accent); font-weight: 700; }

/* ---------------------------------------------------------------- rotátor na úvodu */

.hero {
	position: relative;
	height: calc(45.76vw + 116px);  /* jako Divi: popisek 116 px + 2 × 22,88 % šířky */
	background: var(--bg);
	overflow: hidden;
}
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; z-index: 1; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, .26); pointer-events: none; }
.hero__caption {
	position: absolute;
	z-index: 2;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 73.9%;               /* jako Divi: pruh s názvem 73,9 % šířky, odsazení 30 px (+10 pod textem) */
	padding: 30px 30px 40px;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 46px;
	letter-spacing: 1px;
	text-align: center;
	text-decoration: none;
	line-height: 1;
	text-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.hero__caption:hover { color: #fff; }
/* jako Divi (fadeBottom): po zobrazení snímku název vyjede zespodu o 10 % výšky snímku, 0,7 s se zpožděním 0,9 s */
.hero__slide { container-type: size; }
.hero__slide.is-active .hero__caption { animation: hero-caption-in .7s ease-in-out .9s both; }
@keyframes hero-caption-in {
	from { opacity: 0; translate: 0 10cqh; }
	to { opacity: 1; translate: 0 0; }
}
.hero__arrow, .slider__arrow {
	position: absolute;
	z-index: 3;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 64px;
	border: 0;
	background: rgba(0, 0, 0, .35);
	color: #fff;
	font-size: 44px;
	line-height: 1;
	cursor: pointer;
	opacity: .75;
	transition: opacity .2s, background .2s;
}
.hero__arrow:hover, .slider__arrow:hover { opacity: 1; background: rgba(0, 0, 0, .6); }
.hero__arrow--prev, .slider__arrow--prev { left: 0; }
.hero__arrow--next, .slider__arrow--next { right: 0; }
/* rotátor jako Divi: šipky 48 px bez podkladu schované za okrajem, po najetí na rotátor vyjedou 22 px od kraje */
.hero__arrow { width: 48px; height: 48px; background: none; opacity: 0; font-size: 48px; transition: opacity .3s, left .3s, right .3s; }
.hero__arrow--prev { left: -22px; }
.hero__arrow--next { right: -22px; }
.hero:hover .hero__arrow, .hero__arrow:focus-visible { opacity: 1; }
.hero:hover .hero__arrow--prev, .hero__arrow--prev:focus-visible { left: 22px; }
.hero:hover .hero__arrow--next, .hero__arrow--next:focus-visible { right: 22px; }
.hero__arrow:hover { background: none; opacity: .7; }
/* pozastavení automatického střídání (WCAG 2.2.2) – vidět stále, i na dotykových zařízeních */
.hero__pause { position: absolute; z-index: 3; right: 16px; bottom: 16px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .5); color: #fff; cursor: pointer; display: grid; place-items: center; opacity: .8; transition: opacity .2s; }
.hero__pause[hidden] { display: none; }
.hero__pause:hover, .hero__pause:focus-visible { opacity: 1; }
.hero__pause svg { width: 18px; height: 18px; }
.hero__pause .hero__pause-play, .hero__pause.is-stopped .hero__pause-stop { display: none; }
.hero__pause.is-stopped .hero__pause-play { display: block; }

/* ---------------------------------------------------------------- mřížka projektů */

.tiles {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	/* jako Divi portfolio: dlaždice bez mezer, fotka je o 12 px užší než dlaždice (volno vpravo
	   i za posledním sloupcem), název přes celou dlaždici; 10 px pod kategorií */
	gap: 10px 0;
}
.tile__link { display: block; color: #c9c9c9; text-decoration: none; }
.tile__media { display: block; width: calc(100% - 12px); aspect-ratio: 400 / 284; overflow: hidden; background: #000; }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s linear; }
.tile__link:hover .tile__media img { transform: scale(1.03); }
.tile__title { display: block; margin-top: 10px; font-size: 20px; line-height: 1.2; color: #c9c9c9; }
.tile__cat { display: block; font-size: 16px; color: #666; line-height: 21px; }
/* výpis kategorie jako Divi: nadpis 25 px pod lištou kategorií, dlaždice 51 px pod jeho horním okrajem,
   mezi řádky 5 px (≤980: obsah 50 px pod hlavičkou, řádky 7 px) */
.page-kategorie .section { padding-top: 25px; }
/* Divi: pod poslední dlaždicí okraj kategorie 5 px, řádek 1 % obsahu, sekce 1 % okna (≤980 10 + 30 + 50 px) */
.page-kategorie .section { padding-bottom: calc(5px + 1vw + (100vw - 2 * var(--gutter)) / 100); }
.page-kategorie .page-title { margin-bottom: 15px; }
.page-kategorie .tiles { row-gap: 5px; }
/* výpis kategorie: na starém webu název 20 px (řádek 24 px) na všech šířkách a světlejší barvy než na úvodu */
.page-kategorie .tile__title { font-size: 20px; line-height: 24px; color: #ddd; }
.page-kategorie .tile__cat { color: rgba(191, 191, 191, .79); }

/* ---------------------------------------------------------------- obsah stránek (převod z Divi + WYSIWYG) */

.content { min-width: 0; }
.content::after { content: ''; display: table; clear: both; }
.content-section + .content-section { margin-top: 40px; }
.content .text-center, .content [style*="text-align: center"] { text-align: center; }
.content h2 strong { color: #fff; }
.content img { margin-left: auto; margin-right: auto; }
.content :is(iframe, .embed-consent) { display: block; width: 100%; height: 270px; margin: 0 auto 16px; }
/* zástupce vložené mapy (filtr consent_embeds): Google se načte až po kliknutí */
.content .embed-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px;
	box-sizing: border-box; background: #1c1c1c; border: 1px solid #444; text-align: center; font-size: 15px; line-height: 1.4; }
.embed-consent__title { color: #fff; font-size: 17px; line-height: 1.3; }
.content .embed-consent__btn { padding: 8px 22px; font-size: 16px; }
.embed-consent__note { color: #b5b5b5; font-size: 14px; line-height: 1.4; }
.content .embed-consent__note a { color: #ddd; text-decoration: underline; }

.cols { display: grid; gap: 30px 4%; margin: 30px 0; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.cols--3 { --cols: 3; }
.cols--4 { --cols: 4; }
.cols:has(> .col--3_5) { grid-template-columns: 3fr 2fr; }
.cols:has(> .col--2_5:first-child) { grid-template-columns: 2fr 3fr; }

.content-blurb { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 18px; line-height: 1; }
.content-blurb strong { color: #fff; }
.content-blurb :is(h4, .h-4) { margin: 0; font-size: 18px; line-height: 1; color: #fff; }
.content-blurb a { text-decoration: none; }
/* blurb s ikonou (Kontakty: e-mail, telefon) – jako Divi: bílá ikona 32 px vlevo, popisek tučně nad hodnotou */
.content-blurb--email, .content-blurb--phone {
	display: inline-grid;
	grid-template-columns: 32px auto;
	column-gap: 15px;
	row-gap: 10px;
	align-items: start;
}
.content-blurb--email::before, .content-blurb--phone::before {
	content: '';
	grid-row: 1 / span 2;
	width: 32px;
	height: 32px;
	background: #fff;
	-webkit-mask: var(--icon) center / contain no-repeat;
	mask: var(--icon) center / contain no-repeat;
}
.content-blurb--email > *, .content-blurb--phone > * { grid-column: 2; }
.content-blurb--email { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E"); }
.content-blurb--phone { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.62 10.79a15.15 15.15 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.33.57 3.57.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1.02z'/%3E%3C/svg%3E"); }

.content-gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 3%;               /* jako Divi galerie: 4 sloupce, mezera 3 % šířky */
	margin: 30px 0;
}
.content-gallery img { width: 100%; aspect-ratio: 400 / 284; object-fit: cover; cursor: zoom-in; transition: opacity .2s; }
.content-gallery img:hover { opacity: .85; }
.content-gallery img[hidden] { display: none; }
/* stránkování galerie (po 4 fotkách, jako Divi): čára nahoře, čísla a Předchozí/Další vpravo */
.gallery-pager { margin: 3% 0 0; padding: 0 0 26px; border-top: 1px solid #e2e2e2; list-style: none; text-align: right; }
.gallery-pager li { display: inline-block; padding: 10px; }
.gallery-pager button { padding: 0; border: 0; background: none; color: #999; font: inherit; font-size: 16px; line-height: 26px; cursor: pointer; }
.gallery-pager button:hover { color: #fff; }
.gallery-pager button[aria-current] { color: rgba(255, 255, 255, .57); cursor: default; }
.content-gallery + .gallery-pager { margin-top: 0; }

/* Studio: tým – jména a funkce */
/* Studio jako Divi: text 70 % šířky, galerie 80 %, tým 70 % (3 sloupce, mezera 5,5 %), obsah 70 px pod hlavičkou */
.page-o-nas .content { font-size: 17px; }
.page-o-nas .content-section > p { width: 70%; margin: 0 auto 17px; }
.page-o-nas .content-section > p:has(+ .content-gallery) { margin-bottom: 27px; }
.page-o-nas .content-gallery,
.page-o-nas .gallery-pager { width: 80%; margin-left: auto; margin-right: auto; }
.page-o-nas .content-gallery { margin-top: 0; margin-bottom: 0; }
.page-o-nas .gallery-pager { margin-top: 2.4%; } /* = 3 % šířky galerie */
.page-o-nas .cols { width: 70%; margin: 43px auto 0; gap: 43px 5.5%; text-align: center; }
html[lang="en"] .page-o-nas .cols { column-gap: 0; } /* anglická verze má na starém webu sloupce týmu bez mezer (3 × 306 px) */
.page-o-nas .content-image { margin: 5px 0 0; }
/* jméno i funkce mají na starém webu stejnou velikost 23 px, každý řádek 25,3 + 10 px */
.page-o-nas .col h2 { font-size: 23px; margin: 0; line-height: 25.3px; padding-bottom: 10px; }
.page-o-nas .col h2 strong { color: inherit; } /* jména i funkce #d1d1d1 jako starý web */
.page-o-nas .col h2 + h2 { margin-bottom: 0; }
/* poslední řádek týmu (studenti) má na starém webu 26 px */
.page-o-nas .cols--3 + .cols--2 .col h2 { font-size: 26px; line-height: 28.6px; }
/* pozadí záhlaví stránek: WebP (59 kB místo 149 kB JPG), na mobilu 960 px; přednačtení v page.html.twig (LCP) */
.page-hero { background: linear-gradient(rgba(18, 18, 18, .8), rgba(18, 18, 18, .8)), url('../images/studio-bg.jpg') center / cover; background-image: linear-gradient(rgba(18, 18, 18, .8), rgba(18, 18, 18, .8)), image-set(url('../images/studio-bg.webp') type('image/webp'), url('../images/studio-bg.jpg') type('image/jpeg')); }
@media (max-width: 767px) {
	.page-hero { background-image: linear-gradient(rgba(18, 18, 18, .8), rgba(18, 18, 18, .8)), image-set(url('../images/studio-bg-960.webp') type('image/webp'), url('../images/studio-bg.jpg') type('image/jpeg')); }
}
.page-hero .section { padding-top: 70px; }
.page-hero .page-title { margin-bottom: 28px; }

/* homepage: O nás */
/* blok „O nás“ má jako na starém webu 80 % šířky obsahu */
.content--home :is(h4, .h-4) { font-weight: 700; font-size: 20px; color: #dbdbdb; line-height: 1.4; margin: 0; padding-bottom: 10px; }
/* O nás jako Divi: text 3/5 (58,8 %, vpravo 20 px volno) + mapy 2/5 (38,2 %) pod sebou 500 × 270 bez mezery */
.content--home .cols { grid-template-columns: 58.8% 38.2%; justify-content: space-between; gap: 30px 0; margin: 25px 0 13px; }
.content--home .col--3_5 { padding-right: 20px; }
.content--home .col--2_5 p { margin: 0; }
.content--home .col--2_5 :is(iframe, .embed-consent) { max-width: 500px; margin: 0 auto; }
.content--home p, .content--home strong { color: #dbdbdb; }
.content--home .col--3_5 p { text-align: justify; }
.content--home :is(iframe, .embed-consent) { height: 270px; }
/* odsazení sekcí úvodu jako Divi: 20 px + 1 % šířky obsahu (řádek), na ≤980 50 px */
.section--alt:has(.content--home), .section--gradient { padding-top: calc(20px + (100vw - 2 * var(--gutter)) / 100); }
.section--alt:has(.content--home) { padding-bottom: 30px; }
/* Divi: pod poslední dlaždicí 10 px (spodní okraj kategorie), padding řádku 1 % (≤ 980 px 30 px) a sekce 50 px */
.section--gradient { padding-bottom: calc(60px + (100vw - 2 * var(--gutter)) / 100); }

/* ---------------------------------------------------------------- detail projektu */

/* detail projektu jako Divi: text 38,2 %, fotka 58,8 %, mezera 3 %; fotka začíná o 7 px níž než nadpis */
.project { display: grid; grid-template-columns: 38.2% 58.8%; justify-content: space-between; row-gap: 30px; align-items: start; padding-top: 48px; }
.project .slider { margin-top: 7px; }
.project__title { font-size: 31px; color: #d1d1d1; line-height: 1.4; padding-bottom: 10px; margin-bottom: 19px; }
.project__text { padding-right: 40px; } /* jako Divi: textový modul s odsazením 40 px vpravo; nadpis je samostatný modul přes celý sloupec */
.project__title { margin-right: -40px; }
.project__text .content { color: #bcbcbc; font-size: 17px; line-height: 21px; }
.project__text .content h2 { font-size: 22px; color: #c6c6c6; }
.project__back a { color: var(--ink-muted); text-decoration: none; }
.project__back a:hover { color: var(--accent); }

.slider__stage { position: relative; background: #000; transition: transform .3s ease; }
.slider__stage:hover { transform: scale(1.01); } /* jako Divi galerie: po najetí zvětšení o 1 % */
.slider__slide { display: none; cursor: zoom-in; }
.slider__slide.is-active { display: block; }
.slider__slide img { width: 100%; max-height: 78vh; object-fit: contain; }
.slider__thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.slider__thumb { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; opacity: .55; transition: opacity .2s; }
.slider__thumb img { width: 84px; height: 60px; object-fit: cover; }
.slider__thumb:hover, .slider__thumb[aria-current] { opacity: 1; }
.slider__thumb[aria-current] { border-color: var(--accent); }

.lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
}
.lightbox[hidden] { display: none; }
/* při otevřeném lightboxu je fotka ve slideru schovaná (zpět až po doletu zavírací animace) */
.slider.is-lightbox-open .slider__slide { visibility: hidden; }
/* pozadí jako Magnific Popup na starém webu: #0b0b0b, průhlednost 0,8 (při otevření se roztmí – JS) */
.lightbox__bg { position: absolute; inset: 0; background: #0b0b0b; opacity: .8; }
.lightbox img { position: relative; max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; }
/* během „zoomu“ (otevření/zavření) je vidět jen pozadí a přejíždějící kopie fotky */
.lightbox.is-zooming > :not(.lightbox__bg) { visibility: hidden; }
.lightbox__zoom { position: fixed; z-index: 101; max-width: none; object-fit: fill; pointer-events: none; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 1; border: 0; background: none; color: #fff; cursor: pointer; opacity: .8; }
.lightbox__close:hover, .lightbox__nav:hover { opacity: 1; }
.lightbox__close { top: 10px; right: 18px; font-size: 44px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 10px 18px; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
/* pod fotkou (v 40px okraji) titulek vlevo a počítadlo vpravo – barvy a velikosti jako .mfp-bottom-bar starého webu */
.lightbox__figure { position: relative; margin: 0; line-height: 0; }
.lightbox__bar { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; line-height: 18px; }
.lightbox__title { display: block; padding-right: 36px; color: #f3f3f3; font-size: 15px; word-wrap: break-word; }
.lightbox__counter { position: absolute; top: 0; right: 0; color: #ccc; font-size: 12px; white-space: nowrap; }
/* na mobilu jako starý web: fotka skoro přes celou šířku (6px okraje), šipky leží přes ni */
@media (max-width: 767px) {
	.lightbox img { max-width: calc(100vw - 12px); }
	.lightbox__nav { font-size: 48px; padding: 6px 10px; text-shadow: 0 0 6px rgba(0, 0, 0, .6); }
}

/* ---------------------------------------------------------------- kontakty */

.page-kontakty .section { padding-top: 70px; } /* jako Divi: nadpis 70 px pod hlavičkou */
/* e-mail a telefon jako Divi: řádek 90 % šířky, každý blok čtvrtina (tablet polovina, mobil celý), od nadpisu 77 px */
.page-kontakty .content .cols:first-child { width: 90%; margin: 41px auto 0; grid-template-columns: repeat(2, 25%); justify-content: start; gap: 0; }
.page-kontakty .content .cols:first-child .content-blurb { padding-left: 10px; line-height: 24px; row-gap: 8px; }
.page-kontakty .content .cols:first-child .content-blurb :is(h4, .h-4) { line-height: 24px; } /* blok 56 px jako Divi */
/* svislé odstupy přeměřené proti Divi: blok → čára 26, čára → adresy 34, DIČ → mapa 50, mapa → čára 11, čára → formulář 44 */
.page-kontakty .content .cols:first-child + .content-divider { margin-top: 26px; margin-bottom: 36px; }
.page-kontakty .content .cols ~ .cols > .col > p:has(iframe, .embed-consent) { padding-top: 29px; }
/* čáry mezi bloky (Divi divider): 1 px bílá 57 %, 80 % šířky, na střed */
.content-divider { width: 80%; margin: 77px auto 18px; border: 0; border-top: 1px solid rgba(255, 255, 255, .57); }
.content-divider + .cols { margin-top: 0; }
/* mapy jako na starém webu: nejvýš 500 × 270 px, na střed sloupce */
.page-kontakty .content :is(iframe, .embed-consent) { max-width: min(500px, 90%); margin-bottom: 0; } /* Divi: 500 px, na mobilu 90 % */
/* rozestupy jako starý web: pod mapami 27 px k čáře, od čáry 33 px k formuláři */
.page-kontakty .content .cols ~ .cols { margin-bottom: 0; }
.page-kontakty .content .cols ~ .cols > .col > p:has(iframe, .embed-consent) { margin-bottom: 0; }
.page-kontakty .content .content-divider:last-child { margin-top: 11px; margin-bottom: 0; }
.page-kontakty .contact-form { margin-top: 46px; }
/* mapy v obou sloupcích ve stejné výšce: sloupec jako flex, odstavec s mapou dolů */
.page-kontakty .content .cols ~ .cols > .col { display: flex; flex-direction: column; }
.page-kontakty .content .cols ~ .cols > .col > p:has(iframe, .embed-consent) { margin-top: auto; }
/* adresy na starém webu 21 px s těsným řádkováním, poznámka o vchodu 16 px */
.page-kontakty .content .cols ~ .cols p { font-size: 21px; line-height: 1; }
.page-kontakty .content .cols ~ .cols em { font-size: 16px; line-height: 21px; }
/* rozložení jako Divi formulář starého webu: 90 % šířky obsahu na střed, mezery 3,1 % šířky formuláře
   (cqi = % šířky kontejneru), jméno + e-mail vedle sebe (≤767 pod sebou), zpráva 310 px, dole souhlas a tlačítko */
.contact-form { container-type: inline-size; width: 90%; margin: 50px auto 0; }
.contact-form h2 { color: #fff; font-size: 26px; line-height: 1; margin-bottom: 16px; }
.contact-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 3.1cqi; }
.form-field { margin-bottom: 3.1cqi; }
.contact-form .form-field:has(textarea) { margin-bottom: 1.6cqi; }
.form-label { display: block; margin-bottom: 4px; color: var(--ink-muted); font-size: 15px; }
.form-control {
	width: 100%;
	padding: 16px;
	border: 0;
	background: #eee;           /* světlá pole jako Divi formulář starého webu */
	color: #999;
	font: inherit;
	font-size: 14px;
	line-height: 19px;
}
.form-control::placeholder { color: #757575; }
.form-control:focus { outline: 2px solid var(--accent); outline-offset: 0; }
textarea.form-control { display: block; resize: vertical; height: 310px; min-height: 160px; }
.form-field ul, .form-consent ul { list-style: none; margin: 6px 0 0; padding: 0; color: #ff8a80; font-size: 15px; }
/* chyby validace (form theme z kostry kreslí .kt-form-message) a zvýraznění neplatného pole */
.contact-form .kt-form-message { margin-top: 6px; color: #ff8a80; font-size: 15px; line-height: 1.3; }
.form-control.is-invalid { outline: 2px solid #ff8a80; outline-offset: 0; }
.contact-form__footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 30px; }
.contact-form__footer .btn { margin-left: auto; padding: 6px 20px; } /* 117 × 51 px jako Divi */
.form-consent { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: start; flex: 1 1 320px; max-width: 640px; margin: 0; }
.form-consent__input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--accent); }
.form-consent > :not(.form-consent__input):not(.form-consent__label) { grid-column: 2; }
.form-consent__note { color: var(--ink-muted); font-size: 14px; margin: 0; }
/* odkaz na zásady se nezalamuje – rozdělený na dva řádky („Zásady“ / „ochrany…“) nevypadal dobře */
.form-consent__note a { white-space: nowrap; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
	display: inline-block;
	padding: 12px 34px;
	border: 2px solid rgba(255, 255, 255, .57);
	background: transparent;
	color: rgba(255, 255, 255, .57);
	font: inherit;
	font-size: 20px;
	line-height: 1.7;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.btn:hover { background: rgba(0, 0, 0, .05); border-color: transparent; } /* jako Divi */

.alert { padding: 14px 18px; border-left: 4px solid; background: #1e1e1e; }
.alert--success { border-color: #7cb342; }
.alert--error { border-color: #e53935; }

/* novinky, galerie, chybové stránky (agendy z kostry) */
.news-list { display: grid; gap: 24px; }
.news-item__date { color: var(--ink-muted); font-size: 15px; }
.error-page { text-align: center; padding: 40px 0; }
.error-page__code { font-size: 90px; color: #333; line-height: 1; }
.link { color: #fff; }
.center { text-align: center; }

/* ---------------------------------------------------------------- patička */

.site-footer { background: var(--bg-footer); margin-top: 0; }
.site-footer__main {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 0 40px;
	padding-top: calc(1vw + (100vw - 2 * var(--gutter)) / 100); /* Divi: sekce 1 % okna + řádek 1 % obsahu */
	padding-bottom: 20px;
}
.site-footer__name { margin: 0; color: #fff; font: 500 28px/1.8 'Karla', var(--font); }
.site-footer__contact { font-style: normal; text-align: right; color: #ddd; font-size: 18px; line-height: 1.3; }
.site-footer__contact span { display: block; line-height: 23.4px; padding-bottom: 10px; }
.site-footer__contact a { color: #ddd; text-decoration: none; }
.site-footer__bar { background: var(--bg-footer-bar); padding: 15px 0; font-size: 14px; line-height: 21px; }
.site-footer__bar .wrap { width: 80%; padding: 0; } /* jako Divi: 80 % šířky okna na střed */
.page-projekt .site-footer { border-bottom: 20px solid var(--bg); } /* pod lištou na detailu tmavý pruh jako starý web */
.site-footer__bar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.site-footer__menu { display: flex; flex-wrap: wrap; gap: 0 26px; list-style: none; margin: 0; padding: 0; } /* Divi: odkazy po 26 px, zalomené řádky bez mezery */
.site-footer__menu a { color: #bbb; text-decoration: none; font-weight: 700; transition: opacity .3s; }
.site-footer__menu a:hover { color: #bbb; opacity: .7; }
.site-footer__copy { margin: 0; color: #999; } /* kontrast 5,3 : 1 na liště #262626 (WCAG AA ≥ 4,5) */
.site-footer__copy a { color: #999; text-decoration: underline; }
.site-footer__copy a:hover { color: #bbb; }

/* Ochrana osobních údajů – prostý text na šířku čtení */
.privacy-text { max-width: 780px; }
.privacy-text h2 { font-size: 20px; margin: 32px 0 10px; }
.privacy-text h2::after { display: none; }
.privacy-text ul { margin: 0 0 16px; padding-left: 20px; }
.privacy-text li { margin-bottom: 4px; }
.privacy-text__updated { margin-top: 32px; color: #999; font-size: 14px; }

.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 40;
	width: 44px;
	height: 44px;
	border: 0;
	background: rgba(60, 60, 60, .85);
	color: #fff;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top svg { width: 22px; height: 22px; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------------------------- responzivita */

@media (max-width: 1180px) {
	.nav__link { padding: 10px 7px; }
}

@media (max-width: 980px) {
	/* tablet a mobil jako Divi: logo a hamburger v pruhu 10 % od krajů, logo do 768 px plné 414 × 79 */
	.content--home .cols:has(> .col) { grid-template-columns: 1fr; }
	.page-kontakty .content .cols:first-child { grid-template-columns: repeat(2, 50%); margin-top: 75px; }
	.page-kategorie .section { padding-top: 50px; padding-bottom: 90px; }
	.page-kategorie .tiles { row-gap: 7px; }
	/* tablet a mobil jako Divi: adresy s mapami pod sebou, větší odstupy kolem čar */
	.page-kontakty .content .cols:first-child + .content-divider { margin-top: 61px; margin-bottom: 53px; }
	.page-kontakty .content .cols ~ .cols:has(> .col) { grid-template-columns: 1fr; gap: 13px; }
	/* pod sebou: pravá mapa má ve starém obsahu před sebou prázdný odstavec (+20 px) */
	.page-kontakty .content .cols ~ .cols > .col:last-child > p:has(iframe, .embed-consent) { padding-top: 49px; }
	.page-kontakty .content .content-divider:last-child { margin-top: 44px; }
	.page-kontakty .contact-form { margin-top: 80px; }
	/* Studio na tabletu: text i tým přes celou šířku, tým v jednom sloupci; galerie 3 vedle sebe */
	.page-o-nas .content-section > p,
	.page-o-nas .cols { width: 100%; }
	.page-o-nas .cols:has(> .col) { grid-template-columns: 1fr; gap: 30px; }
	html[lang="en"] .page-o-nas .cols:has(> .col) { gap: 0; } /* EN sloupce týmu bez spodního okraje */
	/* Divi: řádky galerie 7,5 % šířky galerie (= 6 % obsahu), text nad galerií a nadpis s většími odstupy */
	.content-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc((100vw - 2 * var(--gutter)) * .06) 5.5%; }
	.page-o-nas .gallery-pager { margin-top: calc((100vw - 2 * var(--gutter)) * .06); }
	.page-o-nas .page-title { margin-bottom: 45px; }
	.page-o-nas .content-section > p:has(+ .content-gallery) { margin-bottom: 60px; }
	/* anglická galerie má na starém webu na tabletu a mobilu fotky bez mezer */
	html[lang="en"] .page-o-nas .content-gallery { gap: 0; }
	html[lang="en"] .page-o-nas .gallery-pager { margin-top: 0; }
	.page-o-nas .cols { margin-top: 60px; }
	.section--alt:has(.content--home), .section--gradient { padding-top: 50px; }
	.section--gradient { padding-bottom: 90px; }
	.hero { height: calc(38.72vw + 96px); }  /* Divi: popisek 96 px + 2 × 19,36 % šířky */
	.section-title::after { width: 16%; }
	.content--home h2::after { width: 12.8%; }
	.site-header__inner { padding: 0 calc(10% + 28px) 0 calc(10% + 36px); }
	.brand { margin-left: 0; }

	.nav-toggle {
		display: block;
		position: relative;
		width: 44px;
		height: 44px;
		border: 0;
		background: none;
		cursor: pointer;
	}
	.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
		position: absolute;
		left: 12px;
		width: 20px; /* jako Divi: 20 × 14 px, pruhy 2 px po 6 px */
		height: 2px;
		background: #fff;
		content: '';
		transition: transform .2s, opacity .2s;
	}
	.nav-toggle span { top: 23px; }
	.nav-toggle span::before { left: 0; top: -6px; }
	.nav-toggle span::after { left: 0; top: 6px; }
	.nav-toggle[aria-expanded="true"] span { background: transparent; }
	.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

	/* rozbalené menu jako Divi: černý panel pod hlavičkou v šířce pruhu s logem, nahoře linka bílá 57 %;
	   navíc kategorie pod Projekty (na mobilu jinde nejsou) */
	.nav {
		position: absolute;
		top: 100%;
		left: calc(10% + 28px);
		right: calc(10% + 28px);
		background: #000;
		border-top: 3px solid rgba(255, 255, 255, .57);
		padding: calc(4% - 3px) calc(7.76% - 6px);
		box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
		display: none;
	}
	.nav.is-open { display: block; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__link { padding: 10px 0; font-size: 17px; line-height: 23px; }
	.nav__sub { display: block; padding: 0 0 4px 16px; }
	.nav__sub-link { padding: 6px 0; font-size: 17px; line-height: 21px; }
	.nav__item--social { flex-direction: column; align-items: flex-start; gap: 0; padding: 0; }
	/* jako Divi: ikony 24 px (svg 28 s okrajem 2 px) v řádku 43 px, nahoře 6 px */
	.nav__item--social .nav__icon { padding: 4px 0 11px; margin-left: -2px; }
	.nav__item--social .nav__icon svg { width: 28px; height: 28px; }

	.subnav { display: none; } /* starý web lištu kategorií na tabletu a mobilu nezobrazuje (je v patičce) */
	.hero__caption { font-size: 26px; }
	.tile__title { font-size: 18px; }

	.project { grid-template-columns: 1fr; padding-top: 55px; }
	.project .slider { margin-top: 0; }
	.project__title { margin-bottom: 0; }
	.cols, .cols--3, .cols:has(> .col--3_5), .cols:has(> .col--2_5:first-child) { grid-template-columns: 1fr 1fr; }
	.site-footer__main { flex-direction: column; padding-top: 80px; }
	/* český úvod, Studio a Kontakty mají na starém webu jinou patičku (sekce MainContact): mezi jménem a adresou +30 px;
	   anglická verze ne */
	html[lang="cs"] .is-home .site-footer__contact, html[lang="cs"] .page-o-nas .site-footer__contact,
	html[lang="cs"] .page-kontakty .site-footer__contact { margin-top: 30px; }
	.site-footer__contact { text-align: left; }
	.site-footer__bar .wrap { justify-content: center; text-align: center; }
	.site-footer__menu { justify-content: center; }
}

@media (max-width: 767px) {
	:root { --header-h: 81px; }
	/* Divi na mobilu logo zmenšuje: 334 px při 600, 166 px při 390 */
	.brand img { width: min(414px, calc(80vw - 146px)); height: auto; }
	.brand__logo { margin: 8px 0; } /* lišta min. 81 px, s velkým logem (do ~767 px) naroste na 95 px jako Divi */
}

@media (max-width: 680px) {
	.cols, .cols--3, .cols:has(> .col--3_5), .cols:has(> .col--2_5:first-child) { grid-template-columns: 1fr; }
	.hero__arrow { width: 38px; font-size: 34px; }
}

/* počet sloupců dlaždic jako Divi: 4 / 3 (≤980) / 1 (≤767) */
@media (max-width: 980px) {
	.tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.page-kontakty .content .cols:first-child { grid-template-columns: 1fr; }
	.content-gallery { grid-template-columns: 1fr; gap: 24px; }
	.page-o-nas .gallery-pager { margin-top: 24px; }
	html[lang="en"] .page-o-nas .content-gallery { gap: 0; }
	html[lang="en"] .page-o-nas .gallery-pager { margin-top: 0; }
	.content-gallery img { aspect-ratio: 4 / 3; }
	.page-o-nas .content-section > p { width: 97%; } /* Divi: textový modul na mobilu 97 % šířky */
	.section-title::after { width: 24%; }
	.content--home h2::after { width: 20.8%; }
	.contact-form__grid { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: 1fr; }
	.tile__media { max-width: 400px; } /* Divi na mobilu fotku nezvětšuje nad 400 px, zarovnaná vlevo */
	.hero__caption { font-size: 20px; }
	.hero { height: calc(38.72vw + 90px); }  /* popisek 90 px */
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.hero__slide.is-active .hero__caption { animation: none; }
}
