:root {
	/* Barvy z Figma styles */
	--color-primary: #1a2732;
	--color-secondary: #4d4f53;
	--color-accent: #c46a3a;
	--color-white: #ffffff;
	--color-bg:  linear-gradient(270deg, #f5f5f5 0%, #eeeded 100%);
	--color-text: var(--color-secondary);
	--divider-gradient: linear-gradient(90deg, var(--color-accent) 0%, rgba(26, 39, 50, .25) 100%);
	--divider-opacity: .65;
	--divider-height: 1px;

	/* Typografie z Figma styles */
	--font-primary: "Manrope", Arial, Helvetica, sans-serif;
	--font-size-h1: clamp(2.25rem, 3.4vw, 3rem);
	--font-size-h2: clamp(2rem, 2.4vw, 2.75rem);
	--font-size-h3: 1.25rem;
	--font-size-h4: 1rem;
	--font-size-lead: clamp(1.25rem, 1.8vw, 1.5rem);
	--font-size-body: .875rem;

	--line-height-h1: 1.1;
	--line-height-h2: 1.2;
	--line-height-h3: 1.3;
	--line-height-h4: 1.4;
	--line-height-lead: 1.25;
	--line-height-body: 1.6;

	--container-x: clamp(16px, 4vw, 64px);
	--section-space: clamp(5rem, 10vw, 10rem);
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-bg);
	color: var(--color-text);
	font-family: var(--font-primary);
	font-size: var(--font-size-body);
	font-weight: 400;
	line-height: var(--line-height-body);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

a {
	color: inherit;
}

p {
	margin-top: 0;
}

h1,
h2,
h3,
h4 {
	color: var(--color-primary);
	font-weight: 400;
	letter-spacing: normal;
}

h1 {
	font-size: var(--font-size-h1);
	line-height: var(--line-height-h1);
}

h2 {
	font-size: var(--font-size-h2);
	line-height: var(--line-height-h2);
}

h3 {
	font-size: var(--font-size-h3);
	line-height: var(--line-height-h3);
}

h4 {
	font-size: var(--font-size-h4);
	line-height: var(--line-height-h4);
}

.lead,
.text-lead {
	font-size: var(--font-size-lead);
	line-height: var(--line-height-lead);
}

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

.text-primary {
	color: var(--color-primary) !important;
}

.text-secondary {
	color: var(--color-secondary) !important;
}

.gradient-divider {
	width: 100%;
	height: var(--divider-height);
	margin: 0;
	border: 0;
	background: var(--divider-gradient);
	opacity: var(--divider-opacity);
}

.exarch-container {
	padding-inline: var(--container-x);
}


@media (min-width: 992px) {
	.site-header {
		padding-top: 64px;
	}
}

.site-header {
	position: absolute;
	z-index: 100;
	top: 0;
	left: 0;
	width: 100%;
	color: #fff;
}

.navbar {
	padding-block: 1.5rem;
}

.navbar-brand,
.navbar-brand:hover {
	color: inherit;
}

.navbar-brand {
	display: block;
	margin: 0;
	padding: 0;
}

.navbar-brand .custom-logo-link {
	display: block;
	line-height: 0;
}

.navbar-brand img.custom-logo {
	display: block;
	width: auto !important;
	height: 126px !important;
	max-width: 126px !important;
	object-fit: contain;
}

.brand-wordmark {
	font-size: 1.4rem;
	font-weight: 700;
	letter-spacing: .08em;
}

.navbar-toggler {
	border: 0;
	border-radius: 0;
	color: inherit;
	padding: 0;
}

.navbar-toggler:focus {
	box-shadow: none;
}

.navbar-toggler__icon {
	display: block;
}

.navbar-toggler__icon--default {
	width: 39px;
	height: 88px;
}

.navbar-toggler__icon--compact {
	display: none;
	width: 37px;
	height: 32px;
}

.navbar-nav .nav-link {
	color: inherit;
	font-size: .82rem;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.hero {
	position: relative;
	min-height: 100svh;
	overflow: hidden;
	background: #272727;
	color: #fff;
}

.hero .carousel,
.hero .carousel-inner,
.hero .carousel-item {
	position: relative;
	min-height: 100svh;
}

.hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-position: center;
	background-size: cover;
	object-fit: cover;
	transform: scale(1.01);
}

.hero .carousel-item::before,
.hero .carousel-item::after {
	position: absolute;
	z-index: 1;
	left: 0;
	width: 100%;
	height: 35%;
	content: "";
	pointer-events: none;
}

.hero .carousel-item::before {
	top: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 100%);
}

.hero .carousel-item::after {
	bottom: 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .75) 100%);
}

.hero-media--fallback {
	background:
		linear-gradient(180deg, rgba(0, 0, 0, .2), rgba(0, 0, 0, .55)),
		linear-gradient(135deg, #66706c, #252a28 70%);
}

.hero-content {
	position: relative;
	z-index: 2;
}

.hero .row {
	padding-block: 8rem clamp(2.5rem, 7vw, 6rem);
}

.hero-content__row {
	min-height: 100svh;
}

.hero-project-link {
	display: inline-block;
	color: var(--color-white);
	text-decoration: none;
}

.hero-project-link:hover,
.hero-project-link:focus-visible {
	color: var(--color-white);
}

.hero-project-location {
	margin: 0 0 1rem;
	color: var(--color-white);
	font-size: var(--font-size-h4);
	line-height: var(--line-height-h4);
	letter-spacing: .04em;
}

.hero-project-title {
	margin-bottom: 0;
}

.hero-project-arrow {
	position: absolute;
	z-index: 3;
	right: var(--container-x);
	bottom: clamp(2.5rem, 7vw, 6rem);
	display: block;
	line-height: 0;
	transition: opacity .2s ease, transform .2s ease;
}

.hero-project-arrow img {
	display: block;
	width: auto;
	height: clamp(4rem, 6vw, 4.375rem);
}

.hero-project-arrow:hover,
.hero-project-arrow:focus-visible {
	opacity: .75;
	transform: translateX(.35rem);
}

.hero-controls {
	position: absolute;
	z-index: 3;
	right: var(--container-x);
	bottom: clamp(2.5rem, 7vw, 6rem);
	display: flex;
	align-items: center;
	gap: 1rem;
	color: var(--color-white);
}

.hero-control {
	display: grid;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .55);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	place-items: center;
	transition: background-color .2s ease, color .2s ease;
}

.hero-control:hover,
.hero-control:focus-visible {
	background: var(--color-white);
	color: var(--color-primary);
}

.hero-counter {
	min-width: 3.5rem;
	margin: 0;
	text-align: center;
	font-size: .75rem;
	letter-spacing: .08em;
}

@media (max-width: 767.98px) {
	.navbar-brand img.custom-logo {
		height: 64px !important;
		max-width: 64px !important;
	}

	.hero-controls {
		right: auto;
		left: var(--container-x);
		bottom: 1.25rem;
	}

	.hero-project-arrow {
		right: var(--container-x);
		bottom: 1.5rem;
	}

	.hero-project-arrow img {
		height: 3.5rem;
	}
}

h1,
h2 {
	margin: 0;
}

h1 {
	/*max-width: 14ch; */
}

h2 {
	/*max-width: 15ch;*/
}

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

.section-title__kicker {
	margin: 0 0 .5rem;
	color: var(--color-accent);
	font-size: var(--font-size-h3);
	font-weight: 400;
	line-height: var(--line-height-h3);
}

.section-title__headline {
	max-width: none;
	margin: 0;
	font-size: var(--font-size-h2);
	line-height: var(--line-height-h2);
}
.intro .text-link {
	margin-top: 2.5rem;
}

.section-heading {
	display: flex;
	gap: 2rem;
	align-items: end;
	justify-content: space-between;
	margin-bottom: 3rem;
}

/* Sdílený řádkový odkaz se šipkou */
.arrow-link,
.arrow-links a {
	position: relative;
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	padding-right: 2.5rem;
	color: var(--color-primary);
	text-decoration: none;
	transition: color .2s ease;
}

.arrow-link::after,
.arrow-links a::after {
	position: absolute;
	top: 50%;
	right: .4rem;
	width: 1rem;
	height: 1.375rem;
	background: url("../images/arrow-small.svg") center / contain no-repeat;
	content: "";
	transform: translateY(-50%);
	transition: transform .2s ease;
}

.arrow-link:hover,
.arrow-link:focus-visible,
.arrow-links a:hover,
.arrow-links a:focus-visible {
	color: var(--color-accent);
}

.arrow-link:hover::after,
.arrow-link:focus-visible::after,
.arrow-links a:hover::after,
.arrow-links a:focus-visible::after {
	transform: translate(.25rem, -50%);
}

.text-link {
	display: inline-flex;
	gap: .75rem;
	align-items: center;
	padding-bottom: .35rem;
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}

.project-placeholder {
	display: grid;
	min-height: 55vh;
	place-items: center;
	background: #dedbd4;
	color: #666;
}

.site-footer {
	padding-block: var(--section-space) 2rem;
	background: var(--color-primary);
	color: #fff;
}

.hero h1,
.site-footer h2 {
	color: var(--color-white);
}

.footer-meta {
	display: flex;
	justify-content: space-between;
	gap: 2rem;
	margin-top: clamp(5rem, 12vw, 10rem);
	padding-top: 1.25rem;
	border-top: 1px solid rgba(255, 255, 255, .25);
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .08em;
}

.footer-menu {
	display: flex;
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu a {
	text-decoration: none;
}

@media (max-width: 991.98px) {
	.offcanvas {
		background: var(--color-bg);
		color: var(--color-text);
	}

	.offcanvas-body {
		display: flex;
		align-items: center;
	}

	.navbar-nav {
		width: 100%;
		gap: 1rem;
	}

	.navbar-nav .nav-link {
		font-size: clamp(2rem, 10vw, 4rem);
		letter-spacing: -.03em;
		text-transform: none;
	}
}

@media (max-width: 767.98px) {
	.section-heading,
	.footer-meta {
		align-items: flex-start;
		flex-direction: column;
	}

	.footer-menu {
		flex-wrap: wrap;
	}
}


/* Kompaktní fixní hlavička po odscrollování */
.navbar-brand__compact {
	display: none;
	color: var(--color-white);
	font-size: 2rem;
	font-weight: 400;
	line-height: 1;
	letter-spacing: .08em;
	text-decoration: none;
}

.site-header.is-scrolled {
	position: fixed;
	height: 110px;
	padding-top: 0;
	background: rgba(26, 39, 50, .54);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	animation: exarch-header-in .25s ease both;
}

.site-header.is-scrolled .navbar {
	height: 100%;
	padding: 0;
}

.site-header.is-scrolled .navbar > .exarch-container {
	height: 100%;
	align-items: center;
}

.site-header.is-scrolled .navbar-brand__default {
	display: none;
}

.site-header.is-scrolled .navbar-brand__compact,
.site-header.is-scrolled .navbar-brand__compact img {
	display: block;
	width: 152px;
	height: 32px;
}

.site-header.is-scrolled .navbar-toggler__icon--default {
	display: none;
}

.site-header.is-scrolled .navbar-toggler__icon--compact {
	display: block;
	width: 37px;
	height: 32px;
}

@keyframes exarch-header-in {
	from {
		opacity: 0;
		transform: translateY(-100%);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 767.98px) {
	.navbar-toggler__icon--default {
		width: auto;
		height: 64px;
	}

	.site-header.is-scrolled {
		height: 80px;
	}

	.site-header.is-scrolled .navbar-brand__compact,
	.site-header.is-scrolled .navbar-brand__compact img {
		width: 114px;
		height: 24px;
	}

	.site-header.is-scrolled .navbar-toggler__icon--compact {
		width: auto;
		height: 24px;
	}

}

@media (prefers-reduced-motion: reduce) {
	.site-header.is-scrolled {
		animation: none;
	}
}

/* Globální patička */
.site-footer {
	padding-block: clamp(4rem, 5.625vw, 5.625rem);
	background: var(--color-bg);
	color: var(--color-secondary);
}

.site-footer__divider {
	margin-bottom: clamp(3.5rem, 5.625vw, 5.625rem);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 6rem);
	align-items: center;
}

.site-footer__brand {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	align-items: flex-start;
}

.site-footer__logo {
	display: block;
	line-height: 0;
}

.site-footer__logo img {
	display: block;
	width: min(20.625rem, 100%);
	height: auto;
}

.site-footer__copyright,
.site-footer__credit,
.site-footer__heading {
	margin: 0;
}

.site-footer__copyright,
.site-footer__credit,
.site-footer__legal-nav a {
	color: var(--color-secondary);
	font-size: .75rem;
	line-height: 1.6;
}

.exarch-social {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	width: fit-content;
	height: 1.375rem;
}

.exarch-social__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--color-primary);
	outline-offset: .25rem;
	transition: color .2s ease, opacity .2s ease;
}

.exarch-social__link svg {
	display: block;
	width: 100%;
	height: 100%;
	fill: currentColor;
}

.exarch-social__link--instagram svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
}

.exarch-social__link--instagram .exarch-social__dot {
	fill: currentColor;
	stroke: none;
}

.exarch-social__link:hover,
.exarch-social__link:focus-visible {
	color: var(--color-accent);
	opacity: .75;
}

.site-footer__marks {
	justify-self: center;
}

.site-footer__legal {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	align-items: flex-end;
	text-align: right;
}

.site-footer__legal-nav {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	align-items: flex-end;
}

.site-footer__legal-menu {
	display: flex;
	flex-direction: column;
	gap: .75rem;
	align-items: inherit;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__heading {
	color: var(--color-primary);
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
}

.site-footer__legal-nav a,
.site-footer__credit a {
	text-decoration: none;
	transition: color .2s ease;
}

.site-footer__legal-nav a:hover,
.site-footer__legal-nav a:focus-visible,
.site-footer__credit a:hover,
.site-footer__credit a:focus-visible {
	color: var(--color-accent);
}

@media (max-width: 767.98px) {
	.site-footer__grid {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.site-footer__marks {
		justify-content: flex-start;
	}

	.site-footer__legal,
	.site-footer__legal-nav {
		align-items: flex-start;
		text-align: left;
	}
}



/* Rozměry a viditelnost inline SVG prvků v hlavičce */
.navbar-brand__compact-logo {
	display: block !important;
	flex: 0 0 auto;
	width: 152px !important;
	height: 32px !important;
}

.navbar-toggler__svg {
	display: block;
	flex: 0 0 auto;
}

.navbar-toggler__icon--default {
	display: block;
	width: 39px !important;
	height: 126px !important;
}

.navbar-toggler__icon--compact {
	display: none;
	width: 37px !important;
	height: 32px !important;
}

.site-header.is-scrolled .navbar-toggler__icon--default {
	display: none;
}

.site-header.is-scrolled .navbar-toggler__icon--compact {
	display: block;
}

.site-header.is-scrolled .navbar-brand__compact-logo {
	width: 152px !important;
	height: 32px !important;
}

@media (max-width: 767.98px) {
	.navbar-brand__compact-logo {
		width: 114px !important;
		height: 24px !important;
	}

	.site-header.is-scrolled .navbar-brand__compact-logo {
		width: 114px !important;
		height: 24px !important;
	}

	.navbar-toggler__icon--default {
		width: auto !important;
		height: 64px !important;
	}

	.navbar-toggler__icon--compact {
		width: auto !important;
		height: 24px !important;
	}
}


/* Globální návrat nahoru s indikací průběhu stránky */
.scroll-to-top {
	position: fixed;
	z-index: 1030;
	right: max(1.5rem, env(safe-area-inset-right));
	bottom: max(1.5rem, env(safe-area-inset-bottom));
	display: grid;
	width: 3.5rem;
	height: 3.5rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(238, 237, 237, .92);
	color: var(--color-primary);
	box-shadow: 0 .25rem 1.25rem rgba(26, 39, 50, .12);
	opacity: 0;
	pointer-events: none;
	place-items: center;
	transform: translateY(.75rem);
	transition: opacity .25s ease, transform .25s ease, background-color .2s ease;
	cursor: pointer;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.scroll-to-top.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.scroll-to-top:hover,
.scroll-to-top:focus-visible {
	background: var(--color-white);
}

.scroll-to-top:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: .25rem;
}

.scroll-to-top__icon {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.scroll-to-top__track,
.scroll-to-top__progress {
	fill: none;
}

.scroll-to-top__track {
	stroke: rgba(26, 39, 50, .22);
	stroke-width: 1.5;
}

.scroll-to-top__progress {
	stroke: var(--color-accent);
	stroke-width: 3;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transform: rotate(-90deg);
	transform-origin: center;
}

.scroll-to-top__arrow {
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: square;
	stroke-linejoin: miter;
	transition: transform .2s ease, stroke .2s ease;
}

.scroll-to-top:hover .scroll-to-top__arrow,
.scroll-to-top:focus-visible .scroll-to-top__arrow {
	stroke: var(--color-accent);
	transform: translateY(-2px);
}

@media (max-width: 767.98px) {
	.scroll-to-top {
		right: max(1rem, env(safe-area-inset-right));
		bottom: max(1rem, env(safe-area-inset-bottom));
		width: 3rem;
		height: 3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.scroll-to-top,
	.scroll-to-top__arrow {
		transition: none;
	}
}
