/* Mistwood Studio – minimalistický, přírodní, liquid glass */

/* Archivo (SIL OFL) – vlastní hosting, žádné externí zdroje */
@font-face {
	font-family: "Archivo"; font-style: normal; font-display: swap;
	font-weight: 100 900; font-stretch: 62% 125%;
	src: url("../fonts/archivo-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo"; font-style: normal; font-display: swap;
	font-weight: 100 900; font-stretch: 62% 125%;
	src: url("../fonts/archivo-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: #0e1210;
	--paper: #f3f1ea;
	--moss: #a9b89a;
	--ink-dark: #121513;
	--ink: var(--paper);            /* barva loga a navigace – mění se podle fotky */
	--ink-soft: rgba(243, 241, 234, .72);
	--glass-tint: rgba(18, 22, 20, .28);
	--glass-edge: rgba(255, 255, 255, .22);
	--glass-hi: rgba(255, 255, 255, .45);
	--px: 0;                        /* pozice kurzoru -0.5..0.5 */
	--py: 0;
	--ease: cubic-bezier(.22, .7, .15, 1);
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 48px);
	color-scheme: dark;
}

html[data-tone="light"] {
	--ink: var(--ink-dark);
	--ink-soft: rgba(18, 21, 19, .72);
	--glass-tint: rgba(255, 255, 255, .22);
	--glass-edge: rgba(255, 255, 255, .55);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--paper);
	font: 400 16px/1.65 var(--font);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.sr-only, .sr-defs {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
	position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px;
	background: var(--paper); color: var(--ink-dark); border-radius: 999px; text-decoration: none;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--moss); outline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Pohyblivé pozadí s hloubkou                                         */
/* ------------------------------------------------------------------ */

.stage {
	position: fixed; inset: 0; z-index: 0; overflow: hidden;
	background: var(--bg);
}
.slide {
	position: absolute; inset: 0;
	opacity: 0;
	background: var(--c, #1b211d);
	transition: opacity 2.2s var(--ease);
}
.slide.is-active { opacity: 1; z-index: 1; }
.slide.is-prev { opacity: 1; z-index: 0; transition: none; }

/* Dvě vrstvy stejné fotky = hloubka:
   „far“ – rozmazaná, pomalejší, větší (vzdálená mlha),
   „near“ – ostrá, pohybuje se víc s kurzorem a přichází z rozostření. */
.slide-far, .slide-near {
	position: absolute; inset: -8%;
	background-size: cover; background-position: center;
	will-change: transform;
}
.slide-far {
	filter: blur(26px) saturate(1.1) brightness(.9);
	transform:
		translate3d(calc(var(--px) * -14px), calc(var(--py) * -10px), 0)
		scale(1.18);
}
.slide-near {
	/* maska nechá okraje rozplynout do vzdálené vrstvy */
	/* ostrá vrstva se k okrajům rozplyne do rozmazané – hloubka ostrosti
	   a zároveň zmizí rušivý vodoznak v rohu fotky na pozadí */
	-webkit-mask-image: radial-gradient(78% 74% at 46% 44%, #000 52%, transparent 88%);
	mask-image: radial-gradient(78% 74% at 46% 44%, #000 52%, transparent 88%);
	transform:
		translate3d(calc(var(--px) * -38px), calc(var(--py) * -26px), 0)
		scale(var(--zoom, 1.06));
	filter: blur(var(--focus, 0px));
	transition: filter 2.4s var(--ease);
}
.slide.is-active .slide-near { animation: kenburns 24s linear both; }
.slide.is-entering .slide-near { --focus: 14px; }

@keyframes kenburns {
	from { scale: 1; }
	to   { scale: 1.08; }
}

/* Mlha – posouvá se opačně než fotka, tím vzniká paralaxa */
.mist { position: absolute; inset: -20%; z-index: 3; pointer-events: none;
	transform: translate3d(calc(var(--px) * 60px), calc(var(--py) * 34px), 0);
	mix-blend-mode: screen; opacity: .55;
}
.mist i {
	position: absolute; width: 70vmax; height: 40vmax; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(235, 240, 232, .22), rgba(235, 240, 232, 0));
	filter: blur(30px);
	animation: drift 46s ease-in-out infinite alternate;
}
.mist i:nth-child(1) { left: -10%; top: 55%; }
.mist i:nth-child(2) { left: 40%; top: 65%; animation-duration: 60s; animation-delay: -20s; opacity: .8; }
.mist i:nth-child(3) { left: 15%; top: 10%; width: 60vmax; animation-duration: 72s; animation-delay: -35s; opacity: .45; }
@keyframes drift {
	from { transform: translate3d(-6vw, 0, 0) scale(1); }
	to   { transform: translate3d(8vw, -4vh, 0) scale(1.15); }
}

.grain {
	position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .06;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vignette {
	position: absolute; inset: 0; z-index: 5; pointer-events: none;
	background:
		radial-gradient(130% 90% at 50% 40%, transparent 55%, rgba(6, 9, 7, .55) 100%),
		linear-gradient(to bottom, rgba(6, 9, 7, .25), transparent 22%, transparent 70%, rgba(6, 9, 7, .45));
}
/* Po odscrollování z úvodu pozadí ztlumíme, aby texty byly čitelné. */
.stage::after {
	content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
	background: rgba(8, 11, 9, calc(var(--dim, 0) * .45));
}
.slide-empty { background: radial-gradient(120% 80% at 30% 20%, #2b352d, #0e1210 70%); opacity: 1; }

/* ------------------------------------------------------------------ */
/* Liquid glass                                                        */
/* ------------------------------------------------------------------ */

.glass {
	position: relative;
	background: var(--glass-tint);
	-webkit-backdrop-filter: blur(22px) saturate(170%);
	backdrop-filter: blur(22px) saturate(170%);
	border: 1px solid var(--glass-edge);
	box-shadow:
		inset 0 1px 0 var(--glass-hi),
		inset 0 -1px 1px rgba(255, 255, 255, .06),
		inset 0 0 18px rgba(255, 255, 255, .05),
		0 12px 40px rgba(0, 0, 0, .22);
	transition: background .9s var(--ease), border-color .9s var(--ease), color .9s var(--ease);
}
/* lom světla na hraně skla */
.glass::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 32%),
		radial-gradient(120% 60% at calc(50% + var(--px) * 60%) -10%, rgba(255, 255, 255, .18), transparent 60%);
	mix-blend-mode: soft-light;
}
/* Chromium umí skutečný lom pozadí přes SVG filtr (jen menší skleněné prvky) */
.refract .nav-links, .refract .btn, .refract .lb-btn { -webkit-backdrop-filter: blur(20px) saturate(170%) url(#lg-refract); backdrop-filter: url(#lg-refract) blur(20px) saturate(170%); }

.glass-deep {
	--glass-tint: rgba(14, 18, 16, .42);
	--glass-edge: rgba(255, 255, 255, .16);
	--glass-hi: rgba(255, 255, 255, .28);
	color: var(--paper);
}

/* ------------------------------------------------------------------ */
/* Navigace                                                            */
/* ------------------------------------------------------------------ */

.nav {
	position: fixed; z-index: 20; top: 0; left: 0; right: 0;
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	padding: max(14px, env(safe-area-inset-top)) var(--gutter) 14px;
	pointer-events: none;
}
.nav > * { pointer-events: auto; }
.nav-logo {
	display: block; color: var(--ink); line-height: 0;
	transition: color 1.2s var(--ease), opacity .6s var(--ease), transform .6s var(--ease);
}
.logo { display: block; width: auto; }
.nav-logo .logo { height: 46px; }
.is-hero .nav-logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.nav-links {
	display: flex; gap: 2px; padding: 5px; border-radius: 999px;
	color: var(--ink);
}
.nav-links a {
	position: relative; z-index: 1;
	padding: 9px 16px; border-radius: 999px;
	font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
	text-decoration: none; color: inherit; white-space: nowrap;
	transition: background .4s var(--ease), color .4s var(--ease);
}
.nav-links a:hover { background: rgba(255, 255, 255, .12); }
.nav-links a.is-active { background: rgba(255, 255, 255, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
html[data-tone="light"] .nav-links a:hover,
html[data-tone="light"] .nav-links a.is-active { background: rgba(255, 255, 255, .5); }
/* Jakmile je obsah pod navigací, přepnout navigaci na tmavé sklo */
.is-scrolled .nav-links { --glass-tint: rgba(14, 18, 16, .45); --glass-edge: rgba(255, 255, 255, .16); color: var(--paper); }
.is-scrolled .nav-logo { color: var(--paper); }

/* ------------------------------------------------------------------ */
/* Úvod                                                                */
/* ------------------------------------------------------------------ */

main { position: relative; z-index: 10; }

.hero {
	position: relative; min-height: 100vh; min-height: 100svh;
	display: grid; place-items: center; padding: 96px var(--gutter) 120px;
	color: var(--ink); transition: color 1.2s var(--ease);
}
.hero-inner {
	text-align: center;
	transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 8px), 0);
}
.hero-logo { margin: 0; line-height: 0; }
.logo-xl {
	height: clamp(150px, 30vh, 300px); margin: 0 auto;
	filter: drop-shadow(0 4px 30px rgba(0, 0, 0, .18));
	animation: rise 1.6s var(--ease) both .2s;
}
html[data-tone="light"] .logo-xl { filter: drop-shadow(0 4px 30px rgba(255, 255, 255, .25)); }
html[data-tone="light"] .hero-tagline { text-shadow: 0 1px 14px rgba(255, 255, 255, .6); }
.hero-tagline {
	margin: 26px 0 0; font: 500 clamp(12px, 1.2vw, 14px)/1.4 var(--font); font-stretch: 112%;
	letter-spacing: .42em; text-transform: uppercase; color: var(--ink-soft); padding-left: .42em;
	text-shadow: 0 1px 14px rgba(0, 0, 0, .45);
	animation: rise 1.6s var(--ease) both .5s;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.dots {
	position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%);
	display: flex; gap: 6px;
}
.dot {
	width: 34px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
	display: grid; place-items: center;
}
.dot i {
	display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor; opacity: .35;
	position: relative; overflow: hidden; transition: opacity .4s;
}
.dot.is-active i { opacity: .5; }
.dot.is-active i::after {
	content: ""; position: absolute; inset: 0; background: currentColor; transform-origin: left;
	animation: progress var(--interval, 8s) linear both;
}
@keyframes progress { from { transform: scaleX(0); } }

.scroll-cue {
	position: absolute; right: var(--gutter); bottom: 36px; width: 22px; height: 38px;
	border: 1.5px solid currentColor; border-radius: 12px; opacity: .65; color: var(--ink);
}
.scroll-cue span {
	position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px;
	border-radius: 2px; background: currentColor; animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ------------------------------------------------------------------ */
/* Sekce                                                               */
/* ------------------------------------------------------------------ */

.section { padding: 48px var(--gutter); scroll-margin-top: 64px; }
#informace { padding-bottom: 96px; }

.panel {
	margin: 0 auto; border-radius: 28px;
	padding: clamp(22px, 4vw, 48px);
	opacity: 0; transform: translateY(18px);
	transition: opacity .8s var(--ease), transform .8s var(--ease), background .9s var(--ease);
}
.panel.is-in { opacity: 1; transform: none; }
.no-js .panel { opacity: 1; transform: none; }
.panel-wide { max-width: 1600px; }
.panel-narrow { max-width: 860px; }
.panel-mid { max-width: 1200px; }
/* Fotky bez skleněného panelu – galerie leží přímo na ztlumeném pozadí */
.panel-bare { padding-left: 0; padding-right: 0; padding-top: clamp(10px, 2vw, 24px); }
/* Nadpis sekce Fotky v jedné široké skleněné bublině (nadpis + dělicí čára, text pod ním) */
.section-bubble {
	display: block; width: 100%;
	padding: clamp(16px, 2vw, 24px) clamp(18px, 2.4vw, 32px); border-radius: 24px;
	--glass-tint: rgba(14, 18, 16, .38); --glass-edge: rgba(255, 255, 255, .2);
	text-shadow: none !important;
}
.section-bubble .section-title { position: relative; margin: 0 0 10px !important; }
.section-bubble .section-sub { position: relative; margin: 0; }
.refract .section-bubble { -webkit-backdrop-filter: blur(20px) saturate(170%) url(#lg-refract); backdrop-filter: url(#lg-refract) blur(20px) saturate(170%); }
@media (max-width: 640px) {
	.section-bubble { border-radius: 20px; padding: 14px 16px; }
}
.panel-bare .section-sub { color: rgba(243, 241, 234, .85); }
.panel-bare .section-title { color: var(--paper); }
.panel-bare .section-title::after { background: linear-gradient(to right, rgba(255, 255, 255, .4), transparent); }
.panel-bare .g-item { box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
/* místo pro Instagram vlevo, aby nepřekrýval fotky */
@media (min-width: 641px) { #fotky { padding-left: max(var(--gutter), 88px); padding-right: max(var(--gutter), 88px); } }

.section-title {
	margin: 0 0 28px; font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
	color: var(--moss); display: flex; align-items: center; gap: 14px;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(to right, rgba(255, 255, 255, .22), transparent); }

.lead, .about { font: 400 clamp(16px, 1.5vw, 18px)/1.7 var(--font); color: rgba(243, 241, 234, .86); }
.lead { margin: 0 0 28px; }
.about p { margin: 0 0 1em; }
.muted { color: rgba(243, 241, 234, .6); }

/* ---- Galerie: řady podle rozložení fotografa ---- */
.gallery { --gap: 10px; display: grid; gap: var(--gap); }
.g-row { display: grid; gap: var(--gap); }
.g-item {
	--ar: 3 / 2;
	position: relative; display: block; overflow: hidden; border-radius: 14px;
	background: var(--c); aspect-ratio: var(--ar); cursor: zoom-in;
}
.g-full { grid-template-columns: 1fr; }
.g-full .g-item { --ar: 2 / 1; }
.g-d2 { grid-template-columns: repeat(2, 1fr); }
.g-l3 { grid-template-columns: repeat(3, 1fr); }
.g-l4 { grid-template-columns: repeat(4, 1fr); }
.g-p2 { grid-template-columns: repeat(2, 1fr); }
.g-p3 { grid-template-columns: repeat(3, 1fr); }
.g-p2 .g-item, .g-p3 .g-item { --ar: 4 / 5; }
.g-big { grid-template-columns: 2fr 1fr; }
.g-big .g-item:first-child { grid-row: span 2; aspect-ratio: auto; }
.g-item img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	transform: scale(1.001); opacity: 0;
	transition: transform 1.2s var(--ease), opacity .8s var(--ease), filter .6s var(--ease);
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.g-item img.is-loaded, .no-js .g-item img { opacity: 1; }
.g-item::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .2);
}
@media (hover: hover) {
	.g-item:hover img { transform: scale(1.04); }
	.gallery:hover .g-item:not(:hover) img { filter: saturate(.75) brightness(.82); }
}

/* ---- Formulář ---- */
.form { display: grid; gap: 14px; }
.field { position: relative; }
.field input, .field textarea {
	width: 100%; padding: 22px 18px 10px; border-radius: 16px;
	font: inherit; color: var(--paper);
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .16);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
	transition: border-color .3s, background .3s, box-shadow .3s;
	resize: vertical;
}
.field textarea { min-height: 150px; }
.field input:focus, .field textarea:focus {
	outline: none; border-color: rgba(169, 184, 154, .8); background: rgba(255, 255, 255, .09);
	box-shadow: 0 0 0 4px rgba(169, 184, 154, .15);
}
.field label {
	position: absolute; left: 19px; top: 17px; pointer-events: none;
	color: rgba(243, 241, 234, .6); transition: transform .25s var(--ease), color .25s;
	transform-origin: left top;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label {
	transform: translateY(-10px) scale(.74); color: var(--moss);
}
.field.has-error input, .field.has-error textarea { border-color: #d9967f; }
.err { color: #f0b7a3; font-size: 13px; min-height: 0; }
.err:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: rgba(243, 241, 234, .75); cursor: pointer; }
.check input {
	appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); cursor: pointer;
	display: grid; place-items: center;
}
.check input:checked { background: var(--moss); border-color: var(--moss); }
.check input:checked::after { content: ""; width: 5px; height: 10px; border: solid var(--ink-dark); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }

.btn {
	justify-self: start; margin-top: 6px;
	display: inline-flex; align-items: center; gap: 10px;
	padding: 15px 28px; border-radius: 999px; cursor: pointer;
	font: 600 13px/1 var(--font); letter-spacing: .18em; text-transform: uppercase; color: var(--paper);
	--glass-tint: rgba(169, 184, 154, .28); --glass-edge: rgba(255, 255, 255, .3);
}
.btn:hover { --glass-tint: rgba(169, 184, 154, .42); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; }
.is-sending .btn-spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status { margin: 0; min-height: 1.5em; font-size: 15px; }
.form-status.ok { color: #cfe3bf; }
.form-status.bad { color: #f0b7a3; }

/* ---- Informace ---- */
.facts { margin: 32px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px 28px; }
.facts div { border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 12px; }
.facts dt { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--moss); }
.facts dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.facts a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.facts a:hover { border-color: var(--moss); }

.foot {
	position: relative; z-index: 10; padding: 0 var(--gutter) 40px; text-align: center;
	font-size: 12px; color: rgba(243, 241, 234, .55);
}
.foot p { margin: 10px auto 0; max-width: 720px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a, .linkish {
	color: rgba(243, 241, 234, .8); text-decoration: none; font: inherit; font-size: 12px;
	letter-spacing: .08em; background: none; border: 0; padding: 0; cursor: pointer;
}
.foot-links a:hover, .linkish:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ */
/* Lightbox                                                            */
/* ------------------------------------------------------------------ */

.lb { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; }
.lb[hidden] { display: none; }
.lb-backdrop {
	position: absolute; inset: 0; background: rgba(8, 10, 9, .82);
	-webkit-backdrop-filter: blur(26px) saturate(120%); backdrop-filter: blur(26px) saturate(120%);
	animation: fade .4s var(--ease) both;
}
.lb.is-closing .lb-backdrop { animation: fade .3s var(--ease) reverse both; }
.lb-figure {
	position: relative; margin: 0; display: grid; justify-items: center; gap: 12px;
	padding: 64px 16px 72px; max-width: 100vw; pointer-events: none;
}
.lb-img {
	max-width: min(94vw, 2048px); max-height: calc(100vh - 150px); max-height: calc(100svh - 150px);
	width: auto; height: auto; border-radius: 6px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
	pointer-events: auto;
	-webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
	transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.lb-img.is-swapping { opacity: 0; transform: scale(.985); }
.lb-cap {
	display: flex; align-items: center; gap: 7px; min-height: 1.4em;
	font: 500 12px/1.4 var(--font); font-stretch: 110%; letter-spacing: .22em; text-transform: uppercase;
	color: rgba(243, 241, 234, .75);
}
.lb-cap:empty { display: none; }
.lb-btn {
	position: absolute; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px;
	border-radius: 50%; cursor: pointer; color: var(--paper); padding: 0;
	--glass-tint: rgba(255, 255, 255, .08); --glass-edge: rgba(255, 255, 255, .2);
}
.lb-btn:hover { --glass-tint: rgba(255, 255, 255, .18); }
.lb-close { top: max(16px, env(safe-area-inset-top)); right: 16px; }
.lb-prev { left: 16px; top: 50%; margin-top: -24px; }
.lb-next { right: 16px; top: 50%; margin-top: -24px; }
.lb-bar {
	position: absolute; bottom: max(16px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
	display: flex; gap: 8px; align-items: center; z-index: 2;
}
.lb-count {
	margin: 0; padding: 9px 14px; border-radius: 999px; font-size: 12px; letter-spacing: .2em; color: rgba(243, 241, 234, .8);
	--glass-tint: rgba(255, 255, 255, .06); --glass-edge: rgba(255, 255, 255, .14);
}
.lb-ask {
	padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
	font: 600 11px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--paper);
	--glass-tint: rgba(169, 184, 154, .3); --glass-edge: rgba(255, 255, 255, .28);
}
.lb-ask:hover { --glass-tint: rgba(169, 184, 154, .45); }
@keyframes fade { from { opacity: 0; } }
.lb-open { overflow: hidden; }

/* ------------------------------------------------------------------ */
/* Typografie sekcí                                                    */
/* ------------------------------------------------------------------ */

.section-head { margin-bottom: clamp(22px, 3vw, 36px); }
.section-head .section-title { margin-bottom: 14px; }
.section-sub { margin: 0; color: rgba(243, 241, 234, .62); font-size: 14px; }
.display {
	margin: 0; font-weight: 800; font-stretch: 78%; line-height: 1.02; letter-spacing: -.01em;
	font-size: clamp(30px, 4.6vw, 58px); text-transform: uppercase; color: var(--paper);
}
.display span { font-weight: 400; font-stretch: 100%; font-size: .42em; letter-spacing: .24em; color: rgba(243, 241, 234, .6); vertical-align: middle; white-space: nowrap; }
.prose h1, .prose h2, .services h3 { font-stretch: 85%; }

/* ---- Lokalita na fotce (hover) ---- */
.gallery a { position: relative; }
.g-loc {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
	display: flex; align-items: center; gap: 6px; padding: 28px 12px 10px;
	font-size: 11px; font-weight: 600; font-stretch: 108%; letter-spacing: .14em; text-transform: uppercase;
	color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
	background: linear-gradient(to top, rgba(6, 9, 7, .7), rgba(6, 9, 7, 0));
	opacity: 0; transform: translateY(6px);
	transition: opacity .45s var(--ease), transform .45s var(--ease);
	pointer-events: none;
}
.g-loc svg { flex: none; }
.g-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery a:hover .g-loc, .gallery a:focus-visible .g-loc { opacity: 1; transform: none; }

/* ---- Formulář: témata, mřížka ---- */
.topics { border: 0; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
	display: inline-block; padding: 9px 16px; border-radius: 999px;
	font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
	border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .05); color: rgba(243, 241, 234, .8);
	transition: background .3s, border-color .3s, color .3s;
}
.chip:hover span { border-color: rgba(255, 255, 255, .4); }
.chip input:checked + span { background: rgba(169, 184, 154, .3); border-color: rgba(169, 184, 154, .8); color: var(--paper); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }
.chip input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }

.photo-ref {
	display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
	background: rgba(169, 184, 154, .14); border: 1px solid rgba(169, 184, 154, .4); font-size: 14px;
}
.photo-ref[hidden] { display: none; }
.photo-ref-x { margin-left: auto; background: none; border: 0; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-col { display: grid; gap: 14px; align-content: start; }
.field-msg { display: grid; }
.field-msg textarea { height: 100%; min-height: 220px; }
.field label em { font-style: normal; opacity: .6; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.form-foot .btn { margin: 0; }
.check a { color: var(--paper); }

.direct {
	margin-top: clamp(28px, 4vw, 44px); padding-top: clamp(22px, 3vw, 32px);
	border-top: 1px solid rgba(255, 255, 255, .12); text-align: center;
}
.direct span { display: block; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: rgba(243, 241, 234, .55); }
.direct-mail {
	display: inline-block; margin-top: 8px; text-decoration: none;
	font-weight: 700; font-stretch: 85%; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: -.005em;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease);
}
.direct-mail:hover { background-size: 100% 1px; }

/* ---- Informace ---- */
.info-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.info-grid .facts { margin: 0; grid-template-columns: 1fr 1fr; }
.services {
	list-style: none; margin: clamp(30px, 4vw, 48px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.services li {
	padding: 22px; border-radius: 20px;
	background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
	display: flex; flex-direction: column; gap: 8px;
	transition: background .4s var(--ease), transform .4s var(--ease);
}
.services li:hover { background: rgba(255, 255, 255, .08); transform: translateY(-2px); }
.svc-n { font-size: 11px; letter-spacing: .2em; color: var(--moss); }
.services h3 { margin: 0; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.services p { margin: 0; color: rgba(243, 241, 234, .75); font-size: 14.5px; line-height: 1.6; flex: 1; }
.services a { margin-top: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--paper); }
.services a:hover { color: var(--moss); }

.places { margin-top: clamp(26px, 3vw, 38px); display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; }
.places-label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--moss); }
.places ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.places li { padding: 5px 12px; border-radius: 999px; font-size: 13px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }

/* ---- E-mail v menu – samostatná skleněná bublina ---- */
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-mail {
	display: inline-flex; align-items: center; gap: 8px; height: 100%;
	padding: 14px 18px; border-radius: 999px; text-decoration: none; color: var(--ink);
	font-size: 12px; font-weight: 600; letter-spacing: .04em; white-space: nowrap;
	transition: color 1.2s var(--ease), background .4s var(--ease);
}
.nav-mail svg { flex: none; }
.nav-mail:hover { --glass-tint: rgba(255, 255, 255, .2); }
html[data-tone="light"] .nav-mail:hover { --glass-tint: rgba(255, 255, 255, .5); }
.is-scrolled .nav-mail { --glass-tint: rgba(14, 18, 16, .45); --glass-edge: rgba(255, 255, 255, .16); color: var(--paper); }
.refract .nav-mail { -webkit-backdrop-filter: blur(20px) saturate(170%) url(#lg-refract); backdrop-filter: url(#lg-refract) blur(20px) saturate(170%); }

/* Podstránky: logo v menu vždy viditelné */
.is-sub .nav-logo { opacity: 1 !important; transform: none !important; pointer-events: auto !important; color: var(--paper); }
.is-sub .stage::after { background: rgba(8, 11, 9, .5); }

.places-more { background: none !important; border-style: dashed !important; color: rgba(243, 241, 234, .7); }

/* ---- Instagram na boku webu ---- */
.side-ig {
	position: fixed; z-index: 30; left: max(16px, env(safe-area-inset-left)); top: 50%;
	display: flex; align-items: center; gap: 0; height: 52px; min-width: 52px; padding: 0 15px;
	border-radius: 999px; color: var(--ink); text-decoration: none; transform: translateY(-50%);
	transition: color 1.2s var(--ease), gap .5s var(--ease), background .4s var(--ease);
}
.side-ig svg { flex: none; position: relative; }
.side-ig-label {
	position: relative; max-width: 0; overflow: hidden; white-space: nowrap;
	font-size: 12px; font-weight: 600; letter-spacing: .06em;
	transition: max-width .55s var(--ease), opacity .4s var(--ease); opacity: 0;
}
.side-ig:hover, .side-ig:focus-visible { gap: 10px; --glass-tint: rgba(255, 255, 255, .2); }
.side-ig:hover .side-ig-label, .side-ig:focus-visible .side-ig-label { max-width: 220px; opacity: 1; }
html[data-tone="light"] .side-ig:hover { --glass-tint: rgba(255, 255, 255, .5); }
.is-scrolled .side-ig { --glass-tint: rgba(14, 18, 16, .45); --glass-edge: rgba(255, 255, 255, .16); color: var(--paper); }
.refract .side-ig { -webkit-backdrop-filter: blur(20px) saturate(170%) url(#lg-refract); backdrop-filter: url(#lg-refract) blur(20px) saturate(170%); }
.lb-open .side-ig { opacity: 0; pointer-events: none; }
/* úvodní šipka „scroll“ je vpravo dole – na desktopu nekoliduje, na mobilu ikonu zmenšíme */

/* ---- Nabídka pro e-mail ---- */
.mail-menu {
	z-index: 60; width: max-content; min-width: 230px; padding: 8px; border-radius: 20px; display: grid; gap: 2px;
	--glass-tint: rgba(18, 22, 20, .62); --glass-edge: rgba(255, 255, 255, .22);
	color: var(--paper); animation: mm-in .25s var(--ease) both;
}
@keyframes mm-in { from { opacity: 0; transform: translateY(-6px); } }
.mail-addr { position: relative; margin: 4px 10px 6px; font-size: 12px; color: rgba(243, 241, 234, .6); }
.mail-menu a, .mail-menu button {
	position: relative; display: block; text-align: left; padding: 10px 12px; border-radius: 12px;
	font: 500 14px/1.2 var(--font); color: var(--paper); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.mail-menu a:hover, .mail-menu button:hover, .mail-menu a:focus-visible { background: rgba(255, 255, 255, .12); }

/* ---- Cookie lišta (liquid glass jako menu) ---- */
.cookie {
	position: fixed; z-index: 40; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
	transform: translate(-50%, 0);
	width: min(760px, calc(100% - 24px));
	display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 22px; border-radius: 26px;
	--glass-tint: rgba(18, 22, 20, .42); --glass-edge: rgba(255, 255, 255, .2);
	color: var(--paper);
	animation: cookie-in .7s var(--ease) both .6s;
}
.cookie[hidden] { display: none; }
.cookie.is-leaving { animation: cookie-out .4s var(--ease) both; }
@keyframes cookie-in { from { opacity: 0; transform: translate(-50%, 24px); } }
@keyframes cookie-out { to { opacity: 0; transform: translate(-50%, 24px); } }
.cookie-text { margin: 0; font-size: 13px; line-height: 1.5; color: rgba(243, 241, 234, .82); position: relative; }
.cookie-text strong { color: var(--paper); margin-right: 6px; letter-spacing: .1em; text-transform: uppercase; font-size: 11px; }
.cookie-text a { color: var(--paper); }
.cookie-actions { display: flex; gap: 6px; flex: none; position: relative; }
.pill {
	padding: 11px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap;
	font: 600 11px/1 var(--font); letter-spacing: .16em; text-transform: uppercase;
	color: var(--paper); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); transition: background .3s;
}
.pill:hover { background: rgba(255, 255, 255, .16); }
.pill-solid { background: rgba(243, 241, 234, .92); color: var(--ink-dark); border-color: transparent; }
.pill-solid:hover { background: #fff; }

/* ---- Právní stránky ---- */
.legal { padding-top: 96px; }
.prose { line-height: 1.7; }
.prose h1 { margin: 18px 0 4px; font-size: clamp(30px, 4vw, 46px); font-weight: 800; text-transform: uppercase; line-height: 1.05; }
.prose h2 { margin: 34px 0 10px; font-size: 18px; font-weight: 700; letter-spacing: .02em; }
.prose p, .prose li { color: rgba(243, 241, 234, .84); font-size: 15.5px; }
.prose ul { padding-left: 1.2em; }
.prose a { color: var(--paper); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); min-width: 140px; }
.prose th { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--moss); font-weight: 600; }
.back { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: rgba(243, 241, 234, .7); }
.back:hover { color: var(--paper); }
.todo { background: rgba(240, 183, 163, .25); color: #f6d2c4; padding: 0 4px; border-radius: 4px; }

/* ------------------------------------------------------------------ */
/* Responzivita: telefon → tablet → desktop → ultrawide                */
/* ------------------------------------------------------------------ */

/* Telefon */
@media (max-width: 640px) {
	.nav { padding-top: max(10px, env(safe-area-inset-top)); gap: 10px; }
	.nav-logo .logo { height: 34px; }
	.nav-links { padding: 4px; margin-left: auto; }
	.nav-links a { padding: 8px 9px; font-size: 10.5px; letter-spacing: .12em; }
	.section { padding: 28px 10px; scroll-margin-top: 58px; }
	.panel { border-radius: 22px; padding: 22px 14px; }
	.section-title { margin-bottom: 18px; }
	.gallery { --gap: 6px; }
	.g-item { border-radius: 9px; }
	.g-full .g-item { --ar: 3 / 2; }
	.g-l4 { grid-template-columns: repeat(2, 1fr); }
	.g-l3, .g-big { grid-template-columns: repeat(2, 1fr); }
	.g-l3 .g-item:first-child, .g-big .g-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3 / 2; }
	.lb-figure { padding: 60px 6px 76px; }
	.lb-img { max-width: 100vw; border-radius: 0; }
	.lb-prev, .lb-next { top: auto; bottom: 12px; margin: 0; width: 46px; height: 46px; }
	.lb-prev { left: 12px; }
	.lb-next { right: 12px; }
	.lb-count { bottom: 22px; }
	.scroll-cue { display: none; }
	.dots { bottom: max(28px, env(safe-area-inset-bottom)); }
	.facts { grid-template-columns: 1fr 1fr; gap: 14px; }
	.form-grid, .info-grid { grid-template-columns: 1fr; }
	.field-msg textarea { min-height: 160px; }
	.form-foot { flex-direction: column; align-items: stretch; }
	.form-foot .btn { justify-content: center; }
	.services { grid-template-columns: 1fr; }
	.nav-right { gap: 6px; }
	.nav-mail span { display: none; }
	.nav-mail { padding: 10px; }
	.cookie { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px; border-radius: 22px; }
	.cookie-actions .pill { flex: 1; }
	.lb-bar { bottom: 14px; }
	.side-ig { height: 42px; min-width: 42px; padding: 0 10px; left: 10px; top: auto; bottom: calc(max(16px, env(safe-area-inset-bottom)) + 4px); transform: none; }
	.side-ig svg { width: 20px; height: 20px; }
	.cookie:not([hidden]) ~ .side-ig { display: none; }
	.lb-count { display: none; }
}
@media (max-width: 360px) {
	.nav-links a { padding: 8px 7px; letter-spacing: .08em; }
	.facts { grid-template-columns: 1fr; }
}
/* Telefon na šířku – nízká výška */
@media (max-height: 500px) and (orientation: landscape) {
	.logo-xl { height: 46vh; }
	.hero-tagline { margin-top: 12px; }
	.lb-img { max-height: calc(100vh - 90px); }
	.lb-figure { padding: 40px 70px; }
	.lb-prev, .lb-next { top: 50%; bottom: auto; margin-top: -23px; }
}

/* Tablet */
@media (min-width: 641px) and (max-width: 1100px) {
	.panel-narrow { max-width: 720px; }
}
@media (min-width: 641px) and (max-width: 900px) {
	.services { grid-template-columns: 1fr; }
	.info-grid { grid-template-columns: 1fr; }
	.nav-mail span { display: none; }
	.nav-mail { padding: 13px; }
}
@media (min-width: 901px) and (max-width: 1080px) {
	.nav-mail span { display: none; }
	.nav-mail { padding: 13px; }
}

/* Velké a ultrawide monitory */
@media (min-width: 1800px) {
	:root { --gutter: 64px; }
	.panel-wide { max-width: 2200px; }
	.panel-mid { max-width: 1400px; }
	.gallery { --gap: 12px; }
	.nav-logo .logo { height: 54px; }
	.nav-links a { padding: 11px 20px; font-size: 13px; }
}
@media (min-width: 2600px) {
	body { font-size: 18px; }
	.panel-wide { max-width: 2800px; }
	.panel-mid { max-width: 1600px; }
	.gallery { --gap: 14px; }
	.lead, .about { font-size: 20px; }
	.section-title { font-size: 13px; }
	.logo-xl { height: clamp(260px, 32vh, 420px); }
}
/* Ultrawide (21:9 a širší): fotka na pozadí se ořezává do výšky – držet střed výš */
@media (min-aspect-ratio: 21/10) {
	.slide-far, .slide-near { background-position: center 42%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
	.slide-near, .slide-far, .mist, .hero-inner { transform: none !important; }
	.slide { transition-duration: .8s; }
}

@media print {
	.stage, .nav, .lb, .form { display: none !important; }
	.gallery img { visibility: hidden; }
}
