@font-face {
	font-family: "Funnel Sans";
	src: url("../fonts/funnel-sans.woff2") format("woff2");
	font-weight: 300 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--color-ink: #333;
	--color-text: #3d3d3d;
	--color-muted: #5f5f5f;
	--color-accent: #00b3d9;
	--color-accent-text: #00b3d9; /* jen po najetí myší; barva menu jako na status.cz */
	--color-link: #00708a;
	--color-tint: #f7f7f7;
	--color-line: #e9e9e9;
	--color-footer-text: #d9d9d9;
	--container: 1280px;
	--gutter: clamp(20px, 4vw, 40px);
	--space-section: clamp(64px, 9vw, 128px);
	--font: "Funnel Sans", system-ui, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scrollbar-gutter: stable; /* menu na stejném místě i na stránce bez posuvníku */
}

body {
	position: relative; /* absolutní hlavička na úvodu se tak posune i s horní lištou WordPressu */
	margin: 0;
	background: #fff;
	color: var(--color-text);
	font-family: var(--font);
	font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
	line-height: 1.6;
}

/* Podstránky: šedá přechází do bílé až pod nadpisem, stejně jako na status.cz */
body:not(.has-hero) {
	background: #fff linear-gradient(#f4f4f5, #fff) top / 100% 560px no-repeat;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3 {
	margin: 0;
	color: var(--color-ink);
	font-weight: 400;
	line-height: 1.1;
}

p {
	margin: 0 0 1em;
}

a {
	color: var(--color-link);
	text-underline-offset: 3px;
}

a:hover {
	color: var(--color-ink);
}

:focus-visible {
	outline: 3px solid var(--color-accent);
	outline-offset: 3px;
}

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.skip-link {
	position: absolute;
	top: -60px;
	left: 16px;
	z-index: 100;
	padding: 10px 16px;
	background: #fff;
	color: var(--color-ink);
}

.skip-link:focus {
	top: 16px;
}

/* Hlavička: logo vlevo, bílá pilulka přes zbytek šířky jako na status.cz */
.site-header {
	position: relative;
	z-index: 20;
	padding-top: clamp(16px, 3.4vw, 50px);
}

.site-header--over-hero {
	position: absolute;
	inset: 0 0 auto;
	background: none;
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(10px, 3vw, 48px);
	padding-inline: clamp(12px, 1.75vw, 25px);
}

.site-header__logo {
	flex: none;
}

.site-header__logo img,
.site-nav__panel-logo {
	width: clamp(116px, 36vw, 170px);
}

.site-nav__toggle,
.site-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: var(--color-tint);
	color: var(--color-ink);
	cursor: pointer;
}

.site-nav__toggle-icon,
.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after,
.site-nav__close-icon::before,
.site-nav__close-icon::after {
	display: block;
	width: 24px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.site-nav__toggle-icon,
.site-nav__close-icon {
	position: relative;
}

.site-nav__close-icon {
	width: 24px;
	height: 24px;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after,
.site-nav__close-icon::before,
.site-nav__close-icon::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__toggle-icon::before {
	top: -7px;
}

.site-nav__toggle-icon::after {
	top: 7px;
}

.site-nav__close-icon::before,
.site-nav__close-icon::after {
	top: 11px;
}

.site-nav__close-icon::before {
	transform: rotate(45deg);
}

.site-nav__close-icon::after {
	transform: rotate(-45deg);
}

/* Přepínač jazyka: na mobilu v bílé pilulce s menu, na desktopu vpravo v hlavní pilulce */
.site-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 6px 6px clamp(6px, 3vw, 14px);
	border-radius: 100px;
	background: #fff;
}

.lang-switch {
	display: flex;
	align-items: center;
	gap: 2px;
}

.lang-switch__link {
	display: block;
	padding: 10px clamp(5px, 2vw, 10px);
	color: var(--color-ink);
	font-size: 1.0625rem;
	line-height: 20px;
	text-decoration: none;
}

.lang-switch__link:hover {
	color: var(--color-accent-text);
}

.lang-switch__link--active {
	font-weight: 700;
	text-decoration: underline 2px var(--color-accent);
	text-decoration-skip-ink: none;
	text-underline-offset: 0.3em;
}

/* Mobil: menu přes celou obrazovku */
.is-menu-open {
	overflow: hidden;
}

.site-nav__panel {
	position: fixed;
	inset: 0;
	z-index: 50;
	display: flex;
	flex-direction: column;
	height: 100dvh;
	padding: clamp(16px, 3.4vw, 50px) clamp(12px, 1.75vw, 25px) 28px;
	overflow-y: auto;
	background: #fff;
	visibility: hidden;
	opacity: 0;
}

.site-nav--open .site-nav__panel {
	visibility: visible;
	opacity: 1;
}

/* Logo i zavírací tlačítko sedí přesně tam, kde jsou v hlavičce */
.site-nav__panel-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 56px;
	margin-right: 6px;
	margin-bottom: clamp(24px, 6vh, 56px);
}

.site-nav__list {
	flex: 1;
}

.site-nav__item {
	border-bottom: 1px solid var(--color-line);
}

.site-nav__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: clamp(14px, 2.6vh, 24px) 0;
	color: var(--color-ink);
	font-size: clamp(1.75rem, 8vw, 2.5rem);
	font-weight: 300;
	line-height: 1.15;
	text-decoration: none;
}

.site-nav__link::after {
	content: "";
	flex: none;
	width: 46px;
	height: 12px;
	background: url("../img/sipka-prava-cta.svg") center / contain no-repeat;
}

.site-nav__link:hover {
	color: var(--color-accent-text);
}

/* Aktivní položku značí tyrkysová linka; tmavý text drží kontrast 4,5 : 1 */
.site-nav__link--active {
	text-decoration: underline 2px var(--color-accent);
	text-decoration-skip-ink: none;
	text-underline-offset: 0.3em;
}

.site-nav__panel-foot {
	margin: 28px 0 0;
	color: var(--color-muted);
	font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
	.site-nav__panel {
		transition: opacity 0.25s ease, visibility 0.25s;
	}
}

/* Desktop: pilulka přes celou šířku */
@media (min-width: 1200px) {
	.is-menu-open {
		overflow: visible;
	}

	/* Rozměry změřené na status.cz */
	.site-header {
		padding-top: 50px;
	}

	.site-header__inner {
		padding-inline: 25px;
	}

	.site-header__logo img {
		width: 252px;
	}

	.site-nav {
		flex: none;
		justify-content: space-between;
		width: calc(71.4vw - 45px);
		min-width: 0;
		padding: 25px;
	}

	.site-nav__toggle,
	.site-nav__panel-head,
	.site-nav__panel-foot {
		display: none;
	}

	.site-nav__panel {
		position: static;
		display: block;
		height: auto;
		padding: 0;
		overflow: visible;
		background: none;
		visibility: visible;
		opacity: 1;
		transition: none;
	}

	.site-nav__list {
		display: flex;
		justify-content: flex-start;
	}

	.lang-switch {
		flex: none;
	}

	.lang-switch__link {
		font-size: 1rem;
	}

	.site-nav__item {
		border: 0;
	}

	.site-nav__link {
		padding: 13px min(25px, 1.5vw);
		font-size: 1.2vw;
		font-weight: 400;
		line-height: 20px;
		white-space: nowrap;
		white-space: nowrap;
	}

	.site-nav__link::after {
		display: none;
	}
}

/* Úvodní slideshow: překryv jen kolem textu a hlavičky, aby fotky zůstaly dobře vidět */
.hero {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: min(100svh, 960px);
	overflow: hidden;
	background: var(--color-ink);
	color: #fff;
	isolation: isolate;
}

.hero__slides {
	position: absolute;
	inset: 0;
	z-index: -2;
	will-change: transform;
}

.hero__slide {
	position: absolute;
	inset: 0;
	overflow: hidden;
	visibility: hidden;
}

.hero__slide--active {
	visibility: visible;
}

.hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(to bottom, rgb(0 0 0 / 0.58), rgb(0 0 0 / 0) 30%),
		linear-gradient(to top right, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0) 58%),
		linear-gradient(to top, rgb(0 0 0 / 0.62), rgb(0 0 0 / 0.26) 34%, rgb(0 0 0 / 0) 60%);
	pointer-events: none;
}

.hero__content {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding-block: 140px clamp(28px, 4vw, 56px);
}

.hero__title {
	color: #fff;
}

/* Typografie podle status.cz: stejné velikosti a stejné hranice 768 a 1025 px */
.hero__title,
.page-head__title {
	font-size: 2.5rem;
	line-height: 1;
}

.section__title {
	font-size: 2.375rem;
	line-height: 1;
}

@media (min-width: 768px) {
	.hero__title,
	.page-head__title {
		font-size: 3.75rem;
	}

	.section__title {
		font-size: 2.5rem;
	}
}

@media (min-width: 1025px) {
	.hero__title,
	.page-head__title {
		font-size: 5.625rem;
	}

	.section__title {
		font-size: 3.75rem;
	}
}

.hero__lead {
	margin: 20px 0 32px;
	font-size: 1.375rem;
	line-height: 1;
}

.hero__controls[hidden] {
	display: none;
}

.hero__progress {
	display: flex;
	gap: 6px;
	max-width: 320px;
}

.hero__dot {
	flex: 1;
	height: 24px;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.hero__dot::before,
.hero__dot-fill {
	content: "";
	display: block;
	height: 3px;
	border-radius: 3px;
}

.hero__dot::before {
	background: rgb(255 255 255 / 0.38);
}

.hero__dot-fill {
	margin-top: -3px;
	background: #fff;
	transform: scaleX(0);
	transform-origin: left center;
}

@media (min-width: 900px) {
	.hero__content {
		position: relative;
	}

	.hero__controls {
		position: absolute;
		right: var(--gutter);
		bottom: clamp(28px, 4vw, 56px);
		width: 320px;
	}

}

/* Tlačítko s šipkou podle status.cz */
.button {
	display: inline-flex;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid var(--color-accent);
	border-radius: 100px;
	background: none;
	color: var(--color-ink);
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 300;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
}

.button:hover {
	background: var(--color-tint);
	color: var(--color-ink);
}

.button--light {
	border-color: #fff;
	color: #fff;
}

.button--light:hover {
	background: #fff;
	color: var(--color-ink);
}

.button__arrow {
	width: 30px;
	flex: none;
}

@media (min-width: 768px) {
	.button {
		gap: 22px;
		padding: 20px 34px;
		font-size: 1.5625rem;
	}

	.button__arrow {
		width: 46px;
	}
}

/* Sekce */
.section {
	padding-block: var(--space-section);
}

.section--flush-top {
	padding-top: 0;
}

.section--tinted {
	background: var(--color-tint);
}

.section__title {
	margin-bottom: clamp(32px, 4vw, 56px);
}

.page-head {
	padding-block: clamp(40px, 7vw, 96px) clamp(32px, 4vw, 56px);
}

.page-head__title {
	max-width: 18ch;
}

.split {
	display: grid;
	gap: clamp(32px, 5vw, 80px);
	align-items: center;
}

.split--top {
	align-items: start;
}

.split__media {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	border-radius: 16px;
}

.split__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}


.split__text .button {
	margin-top: 12px;
}

@media (min-width: 900px) {
	.split {
		grid-template-columns: 1fr 1fr;
	}
}

/* Textové stránky */
.prose {
	max-width: 72ch;
}

.prose h2 {
	margin: 1.6em 0 0.6em;
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
}

.prose h3 {
	margin: 1.4em 0 0.4em;
	font-size: 1.25rem;
	font-weight: 500;
}

.prose ul {
	margin: 0 0 1em;
	padding-left: 1.2em;
	list-style: disc;
}

.prose li {
	margin-bottom: 0.3em;
}

/* Dokumenty */
.publication {
	padding-block: clamp(32px, 4vw, 56px);
}

.publication::before {
	content: "";
	display: block;
	width: 90px;
	height: 5px;
	margin-bottom: 22px;
	background: var(--color-accent);
}

.publication__title {
	font-size: 2rem;
	font-weight: 600;
	line-height: 1;
}

@media (min-width: 768px) {
	.publication__title {
		font-size: 2.1875rem;
	}
}

@media (min-width: 1025px) {
	.publication__title {
		font-size: 2.5rem;
	}
}

.publication__note {
	margin: 10px 0 0;
	color: var(--color-muted);
}

.publication__list {
	display: grid;
	gap: 8px clamp(24px, 4vw, 64px);
	margin-top: 26px;
}

@media (min-width: 700px) {
	.publication__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.publication__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.document {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 12px;
	margin-inline: -12px;
	border-radius: 12px;
	color: var(--color-ink);
	text-decoration: none;
}

.document:hover {
	background: var(--color-tint);
	color: var(--color-ink);
}

.document:hover .document__label {
	text-decoration: underline;
}

.document__icon {
	flex: none;
	width: 40px;
	height: 40px;
}

.document__text {
	display: grid;
	gap: 2px;
}

.document__label {
	font-size: 1.375rem;
	line-height: 1.5;
}

.document__meta {
	color: var(--color-muted);
	font-size: 0.875rem;
}

/* Fakta na stránce Kontakty */
.facts {
	display: grid;
	gap: 8px 32px;
	margin: 0 0 1.5em;
}

.facts dt {
	color: var(--color-muted);
}

.facts dd {
	margin: 0 0 8px;
	color: var(--color-ink);
}

@media (min-width: 640px) {
	.facts {
		grid-template-columns: minmax(180px, max-content) 1fr;
	}

	.facts dd {
		margin: 0;
	}
}

/* Kontakty */
.contact__photo {
	overflow: hidden;
	aspect-ratio: 3 / 2;
	margin: 0;
	border-radius: 16px;
}

.contact__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.contact__body {
	padding-block: clamp(24px, 3vw, 40px) var(--space-section);
}

.contact-block {
	padding-block: clamp(32px, 4vw, 56px);
}

.contact-block + .contact-block {
	border-top: 1px solid var(--color-line);
}

.contact-block__title {
	margin-bottom: clamp(20px, 2.4vw, 32px);
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.125rem);
}

.contact-block .button {
	margin-bottom: 32px;
}

.contact-block .facts {
	margin: 0;
}

.people {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.person {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: clamp(20px, 2vw, 28px);
	border-radius: 16px;
	background: var(--color-tint);
}

.person__role {
	margin: 0;
	color: var(--color-muted);
	font-size: 0.9375rem;
	line-height: 1.35;
}

.person__name {
	margin: 0;
	padding-top: 14px;
	color: var(--color-ink);
	font-size: 1.25rem;
	font-weight: 500;
	line-height: 1.25;
}

.person__phone {
	color: var(--color-link);
}

.person > span.person__phone {
	color: var(--color-ink);
}

@media (min-width: 640px) {
	.people {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 900px) {
	.contact__photo {
		aspect-ratio: 2 / 1;
	}

	.contact-block--company {
		display: grid;
		grid-template-columns: minmax(max-content, 1fr) minmax(0, 2fr);
		gap: 48px;
	}

	.contact-block .button {
		margin-bottom: 0;
	}
}

@media (min-width: 1100px) {
	.people {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
	}
}

/* Společnosti skupiny */
/* Společnosti: redakční seznam, řádky oddělené linkou. Loga sjednocuje stejná výška, širší je omezené šířkou. */
.companies {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--color-line);
	list-style: none;
}

.company {
	display: grid;
	gap: 18px;
	padding-block: 32px;
	border-bottom: 1px solid var(--color-line);
}

.company__logo-wrap {
	display: flex;
	align-items: center;
	height: 64px;
}

.company__logo {
	width: auto;
	max-width: 200px;
	max-height: 64px;
}

.company__name {
	color: var(--color-ink);
	font-size: 1.5625rem;
	font-weight: 300;
	line-height: 1.2;
}

.company__links {
	display: grid;
	gap: 6px;
	margin: 0;
	padding: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
	list-style: none;
}

.company__links li {
	margin: 0;
}

.company__links a {
	color: var(--color-ink);
	text-decoration-thickness: 1px;
	text-underline-offset: 5px;
}

.company__links a:hover {
	color: #00708a;
}

@media (min-width: 1025px) {
	.company {
		grid-template-columns: 260px minmax(0, 1fr) 280px;
		align-items: center;
		gap: 40px;
		padding-block: 40px;
	}
}

/* Patička podle status.cz */
.site-footer__band {
	padding-block: clamp(36px, 5vw, 64px);
	background: var(--color-accent);
}

.site-footer__logo {
	width: clamp(200px, 20vw, 252px);
}

.site-footer__main {
	padding-block: clamp(56px, 7vw, 90px) 36px;
	background: var(--color-ink);
	color: #c1c1c1;
}

.site-footer a {
	color: var(--color-accent);
}

.site-footer a:hover {
	color: #fff;
}

.site-footer__grid {
	display: grid;
	gap: 44px 40px;
}

@media (min-width: 700px) {
	.site-footer__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.site-footer__grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

.site-footer__block .site-footer__title {
	margin-bottom: 18px;
	color: #fff;
	font-size: 1.5625rem;
	font-weight: 300;
	line-height: 1;
}

.site-footer__block p {
	margin-bottom: 14px;
	font-size: 1rem;
	line-height: 1.5;
	overflow-wrap: anywhere;
}

.site-footer__contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px clamp(40px, 11vw, 150px);
	margin-top: clamp(48px, 7vw, 88px);
}

.site-footer__contact-label {
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
	font-weight: 300;
}

.site-footer .site-footer__contact-link {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	color: #fff;
	font-size: clamp(1.5rem, 1.2rem + 1vw, 2.5rem);
	font-weight: 600;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.site-footer .site-footer__contact-link:hover {
	color: var(--color-accent);
}

.site-footer__contact-icon {
	flex: none;
	width: 1em;
	height: auto;
	color: var(--color-accent);
}

.site-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 48px;
	margin-top: clamp(40px, 5vw, 64px);
	font-size: 1rem;
	line-height: 1.5;
}

.site-footer__bottom p {
	margin: 0;
}

.site-footer__copy {
	flex: 1;
}

.site-footer .made {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
	color: rgb(255 255 255 / 0.62);
	font-size: 0.8125rem;
	line-height: 15px;
	text-decoration: none;
}

.made__name {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #fff;
}

.made__mark {
	display: block;
	flex: none;
}

.made__text {
	position: relative;
}

.made__text::after {
	content: "";
	position: absolute;
	inset: auto 0 -3px;
	height: 1px;
	background: var(--color-accent);
	transform: scaleX(0);
	transform-origin: 100% 50%;
}

.site-footer .made:focus-visible .made__name {
	color: var(--color-accent);
}

.made:focus-visible .made__text::after {
	transform: scaleX(1);
	transform-origin: 0 50%;
}

@media (hover: hover) and (pointer: fine) {
	.site-footer .made:hover {
		color: rgb(255 255 255 / 0.85);
	}

	.site-footer .made:hover .made__name {
		color: var(--color-accent);
	}

	.made:hover .made__mark {
		transform: rotate(-90deg);
	}

	.made:hover .made__text::after {
		transform: scaleX(1);
		transform-origin: 0 50%;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.made__mark {
		transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
	}

	.made__text::after {
		transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
	}

	.made,
	.made__name {
		transition: color 0.4s ease;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.button,
	.document,
	.site-nav__link,
	.site-footer a {
		transition: background-color 0.2s ease, color 0.2s ease;
	}
}

/* Nástup jako na status.cz. Běží v CSS, aby nadpis nečekal na skripty a neoddaloval LCP. */
@media (prefers-reduced-motion: no-preference) {
	/* 0,01 místo 0: při nule by prohlížeč počítal LCP až od konce animace */
	@keyframes rise-in {
		from {
			opacity: 0.01;
			transform: translateY(70px);
		}
	}

	@keyframes drop-in {
		from {
			opacity: 0.01;
			transform: translateY(-40px);
		}
	}

	@keyframes fade-in {
		from {
			opacity: 0;
		}
	}

	.hero__title,
	.page-head__title,
	.contact__photo {
		animation: rise-in 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) backwards;
	}

	.hero__lead {
		animation: drop-in 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) 0.1s backwards;
	}

	.hero__text .button {
		animation: drop-in 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) 0.2s backwards;
	}

	.hero__controls:not([hidden]) {
		animation: fade-in 1.25s cubic-bezier(0.215, 0.61, 0.355, 1) backwards;
	}
}

/* Čárky slideshow zapíná skript; místo mají rezervované, aby se text v hero neposouval */
.hero__controls[hidden] {
	display: block;
	visibility: hidden;
}

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

/* Okamžitá odezva na stisk */
.button:active {
	transform: scale(0.97);
}

@media (hover: hover) and (pointer: fine) {
	.button:hover .button__arrow {
		transform: translateX(5px);
	}

}

@media (prefers-reduced-motion: no-preference) {
	/* Přechod mezi stránkami: krátké prolnutí */
	@view-transition {
		navigation: auto;
	}

	::view-transition-old(root),
	::view-transition-new(root) {
		animation-duration: 0.25s;
	}

	.button {
		transition: background-color 0.2s ease, color 0.2s ease, transform 0.1s ease-out;
	}

	.button__arrow {
		transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
	}

}

/* Cookie lišta: Přijmout a Odmítnout mají schválně stejný vzhled, odmítnutí nesmí být méně nápadné */
.cookie-bar {
	position: fixed;
	right: 12px;
	bottom: 12px;
	left: 12px;
	z-index: 200;
	display: grid;
	gap: 14px;
	max-height: calc(100dvh - 24px);
	padding: 20px;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 48px rgb(0 0 0 / 0.22);
	color: var(--color-text);
	font-size: 0.9375rem;
	line-height: 1.5;
}

.cookie-bar[hidden],
.cookie-bar [hidden] {
	display: none;
}

.is-menu-open .cookie-bar {
	visibility: hidden;
}

.cookie-bar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cookie-bar__title {
	margin: 0;
	outline: 0;
	color: var(--color-ink);
	font-size: 1.5625rem;
	font-weight: 300;
	line-height: 1;
}

.cookie-bar__close {
	display: grid;
	flex: none;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -10px -10px -10px 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: none;
	color: var(--color-ink);
	cursor: pointer;
}

.cookie-bar__close:hover {
	background: var(--color-tint);
}

.cookie-bar__text,
.cookie-bar__desc {
	margin: 0;
}

.cookie-bar__text a {
	color: #00708a;
}

.cookie-bar__settings {
	display: grid;
	gap: 10px;
}

.cookie-bar__category {
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--color-tint);
}

.cookie-bar__category-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 4px;
}

.cookie-bar__label {
	flex: 1;
	color: var(--color-ink);
	font-weight: 500;
}

.cookie-bar__always {
	color: var(--color-muted);
	font-size: 0.8125rem;
}

.cookie-bar__desc {
	color: var(--color-muted);
	font-size: 0.875rem;
}

.cookie-bar__switch {
	flex: none;
	position: relative;
	width: 44px;
	height: 26px;
	margin: 0;
	border: 1px solid #767676;
	border-radius: 100px;
	background: #fff;
	cursor: pointer;
	appearance: none;
}

.cookie-bar__switch::before {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #5f5f5f;
}

.cookie-bar__switch:checked {
	border-color: #00708a;
	background: #00708a;
}

.cookie-bar__switch:checked::before {
	left: 21px;
	background: #fff;
}

.cookie-bar__switch:disabled {
	cursor: not-allowed;
	opacity: 0.6;
}

.cookie-bar__actions {
	display: grid;
	gap: 8px;
}

.cookie-bar__button {
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid var(--color-ink);
	border-radius: 100px;
	background: var(--color-ink);
	color: #fff;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}

.cookie-bar__button:hover {
	background: #000;
}

.cookie-bar__button--outline {
	background: #fff;
	color: var(--color-ink);
}

.cookie-bar__button--outline:hover {
	background: var(--color-tint);
}

@media (min-width: 560px) {
	.cookie-bar {
		left: auto;
		width: 500px;
		right: 20px;
		bottom: 20px;
		padding: 24px;
	}

	.cookie-bar__actions {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: no-preference) {
	.cookie-bar {
		animation: cookie-bar-in 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	}

	@keyframes cookie-bar-in {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
	}
}

/* Odkaz pro změnu nebo odvolání souhlasu v patičce a na stránce Cookies */
.site-footer__consent {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-accent);
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.site-footer__consent:hover {
	color: #fff;
}

.cookie-table-wrap {
	margin-block: 1.5em;
	overflow-x: auto;
}

.cookie-table {
	width: 100%;
	min-width: 640px;
	border-collapse: collapse;
	font-size: 1rem;
	line-height: 1.5;
}

.cookie-table th,
.cookie-table td {
	padding: 12px 16px 12px 0;
	border-bottom: 1px solid #ddd;
	text-align: left;
	vertical-align: top;
}

.cookie-table th {
	color: var(--color-ink);
	font-weight: 500;
}

/* Fotogalerie: mozaika z fotek 3 : 2, velká fotka zabírá dva sloupce a dva řádky */
.gallery {
	display: grid;
	grid-auto-flow: dense;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(8px, 1.2vw, 16px);
	margin: 0;
	padding: 0;
	list-style: none;
}

.gallery__item {
	margin: 0;
}

.gallery__item--large-start,
.gallery__item--large-end {
	grid-column: span 2;
}

.gallery__link {
	display: block;
	height: 100%;
	overflow: hidden;
	border-radius: 16px;
}

.gallery__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@media (min-width: 768px) {
	.gallery {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.gallery__item--large-start {
		grid-column: 1 / span 2;
		grid-row: span 2;
	}

	.gallery__item--large-end {
		grid-column: 2 / span 2;
		grid-row: 3 / span 2;
	}

	.gallery__item:nth-child(4),
	.gallery__item:nth-child(5) {
		grid-column: 1;
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
	.gallery__image {
		transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
	}

	.gallery__link:hover .gallery__image {
		transform: scale(1.03);
	}
}

.is-lightbox-open {
	overflow: hidden;
}

/* 100 % místo 100vw: šířka 100vw počítá i rezervu pro posuvník a křížek by vyjel z okna */
.lightbox {
	width: 100%;
	max-width: none;
	height: 100%;
	max-height: none;
	padding: 0;
	border: 0;
	background: rgb(20 20 20 / 0.96);
	color: #fff;
}

.lightbox[open] {
	display: block;
	overflow: hidden;
}

.lightbox::backdrop {
	background: rgb(20 20 20 / 0.96);
}

.lightbox__stage {
	width: 100%;
	height: 100%;
	overflow: hidden;
	touch-action: pan-y;
	cursor: grab;
}

.lightbox__stage--dragging {
	cursor: grabbing;
}

/* Tři fotky vedle sebe, prostřední je vidět. Mezera mezi nimi je součástí každého snímku. */
.lightbox__track {
	display: flex;
	width: 300%;
	height: 100%;
	margin-left: -100%;
	will-change: transform;
}

.lightbox__slide {
	display: flex;
	flex: 0 0 33.3334%;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 0;
	padding-inline: 12px;
}

.lightbox__image {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 100%;
	user-select: none;
	-webkit-user-drag: none;
}

.lightbox__count {
	position: absolute;
	top: 22px;
	left: 24px;
	margin: 0;
	font-size: 1rem;
	line-height: 1;
	text-shadow: 0 1px 4px rgb(0 0 0 / 0.6);
}

.lightbox__caption {
	position: absolute;
	right: 72px;
	bottom: 20px;
	left: 72px;
	margin: 0;
	color: #fff;
	font-size: 1rem;
	text-align: center;
	text-shadow: 0 1px 6px rgb(0 0 0 / 0.8);
}

.lightbox__button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgb(0 0 0 / 0.45);
	color: #fff;
	cursor: pointer;
}

.lightbox__button:hover {
	background: rgb(0 0 0 / 0.75);
}

.lightbox__button--close {
	top: 10px;
	right: 12px;
}

.lightbox__button--prev,
.lightbox__button--next {
	top: calc(50% - 24px);
}

.lightbox__button--prev {
	left: 12px;
}

.lightbox__button--next {
	right: 12px;
}

@media (prefers-reduced-motion: no-preference) {
	.lightbox[open] {
		animation: fade-in 0.2s ease-out;
	}
}

/* Vstup na zamčený náhled (plugin site-lock): vzhled jen pro tento web, plugin je sdílený */
html body.sitelock {
	background: #333 url("../img/budova-status-holding-krizovatka-768.webp") 43% 30% / cover no-repeat;
	color: var(--color-text);
	font-family: var(--font);
	text-align: left;
}

@media (min-width: 768px) {
	html body.sitelock {
		background-image: url("../img/budova-status-holding-krizovatka-1920.webp");
	}
}

body.sitelock::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgb(20 20 20 / 0.45);
}

body.sitelock .sitelock__inner {
	max-width: 440px;
	padding: clamp(28px, 6vw, 40px);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 24px 64px rgb(0 0 0 / 0.3);
}

body.sitelock .sitelock__inner::before {
	content: "";
	display: block;
	width: 190px;
	aspect-ratio: 252 / 78;
	margin-bottom: 28px;
	background: url("../img/logo-holding.svg") left center / contain no-repeat;
}

body.sitelock .sitelock__title {
	margin: 0 0 10px;
	color: var(--color-ink);
	font-family: var(--font);
	font-size: 1.875rem;
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: normal;
}

body.sitelock .sitelock__text {
	max-width: none;
	margin: 0 0 24px;
	color: var(--color-muted);
	font-size: 1rem;
	opacity: 1;
}

body.sitelock .sitelock__form {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	justify-content: stretch;
	gap: 10px;
}

body.sitelock .sitelock__input {
	flex: none;
	width: 100%;
	min-height: 50px;
	padding: 12px 16px;
	border: 1px solid #8c8c8c;
	border-radius: 10px;
	background: #fff;
	backdrop-filter: none;
	color: var(--color-ink);
}

body.sitelock .sitelock__input::placeholder {
	color: var(--color-muted);
}

body.sitelock .sitelock__input:focus {
	border-color: #00708a;
	outline: 1px solid #00708a;
	outline-offset: 0;
}

body.sitelock .sitelock__btn {
	min-height: 50px;
	border-radius: 100px;
	background: var(--color-ink);
	color: #fff;
	font-weight: 400;
}

body.sitelock .sitelock__btn:hover {
	background: #000;
	opacity: 1;
}

body.sitelock .sitelock__error {
	display: block;
	margin: 14px 0 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fdecea;
	color: #b3261e;
}
