/* =========================================================
   Chalupa Na Sjezdovce – Janské Lázně
   Mobile-first, bez závislostí.
   Styl: čisté linie a ostré rohy, serifové nadpisy s kurzívou
   v akcentní barvě, drobné verzálkové popisky, hodně vzduchu.
   ========================================================= */

/* ---------- 0. Písma ----------
   Hostovaná lokálně (assets/fonts/, licence SIL OFL) – prohlížeč nic nestahuje
   z Google Fonts, takže se nepředává IP adresa návštěvníka Googlu.
   Variabilní fonty, rozdělené na latin + latin-ext (čeština potřebuje obě sady). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: "Cormorant Garamond";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-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: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-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: "Cormorant Garamond";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/cormorant-garamond-italic-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: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-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: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/jost-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;
}

/* ---------- 1. Design tokeny (barvy z brand manuálu) ---------- */
:root {
  /* Brand paleta – NEMĚNIT */
  --c-navy:   #1E3A4D; /* tmavě modrá */
  --c-slate:  #6B7F8F; /* šedomodrá */
  --c-ice:    #B7C7D4; /* světle modrá */
  --c-sand:   #CDB9A8; /* písková */
  --c-cream:  #F7F3EC; /* krémová */
  --c-forest: #4A5A46; /* lesní zelená – jen doplňkově */
  --c-white:  #FFFFFF;

  /* Odvozené odstíny (z brand barev) */
  --c-navy-deep:  color-mix(in srgb, var(--c-navy) 82%, #000);
  --c-sand-deep:  #7A5F4A; /* tmavý tón pískové – akcent pro drobný text (kontrast AA na všech světlých plochách) */
  --c-sand-warm:  #8F6E55; /* o něco světlejší tón – jen pro velké kurzívy v nadpisech (kontrast ≥ 3:1) */
  --c-sand-soft:  color-mix(in srgb, var(--c-sand) 26%, var(--c-cream));
  --c-sand-mid:   color-mix(in srgb, var(--c-sand) 60%, var(--c-cream));
  --c-ice-soft:   color-mix(in srgb, var(--c-ice) 38%, var(--c-cream));
  --c-stone:      color-mix(in srgb, var(--c-cream) 70%, color-mix(in srgb, var(--c-ice), var(--c-sand)));

  /* Role */
  --bg: var(--c-cream);
  --surface: color-mix(in srgb, var(--c-white) 60%, var(--c-cream));
  --text: var(--c-navy);
  --text-muted: color-mix(in srgb, var(--c-navy) 76%, var(--c-cream));
  --accent: var(--c-sand-deep);
  --accent-display: var(--c-sand-warm);
  --line: color-mix(in srgb, var(--c-navy) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--c-navy) 24%, transparent);
  --focus: var(--c-navy);

  /* Typografie */
  --f-display: "Cormorant Garamond", "Cormorant", Garamond, Georgia, serif;
  --f-body: "Jost", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-hero: clamp(3.1rem, 1.9rem + 4.3vw, 6.2rem);
  --fs-h2: clamp(2.35rem, 1.75rem + 2.1vw, 3.75rem);
  --fs-h3: clamp(1.9rem, 1.6rem + 1vw, 2.55rem);
  --fs-lead: clamp(1.02rem, .98rem + .2vw, 1.12rem);
  --fs-label: .72rem;
  --ls-label: .24em;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4.2vw, 56px);
  --section-y: clamp(80px, 10vw, 144px);
  --header-h: 76px;
  /* vzdálenost od okraje obsahu k okraji okna – pro prvky „na spad“.
     100cqw = šířka sekce bez posuvníku (sekce je container), 100vw by o posuvník přetekla. */
  --bleed: max(var(--gutter), calc((100cqw - var(--container)) / 2));

  --ease: cubic-bezier(.22, .8, .24, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (min-width: 1024px) {
  :root { --header-h: 100px; }
}

/* ---------- 2. Reset / základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  font-variant-numeric: lining-nums; /* Cormorant má jinak „starobylé“ číslice */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--accent-display);
}
p { text-wrap: pretty; }
address { font-style: normal; }
figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.cta-band :focus-visible { --focus: var(--c-cream); }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: .85em 1.4em;
  background: var(--c-navy); color: var(--c-cream);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(-160%);
  transition: transform .25s var(--ease);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
}

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

/* ---------- 3. Typografické utility ---------- */
.eyebrow {
  display: block;
  font-size: var(--fs-label); font-weight: 500;
  line-height: 1.5;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.section { padding-block: var(--section-y); }
.section__lead {
  font-size: var(--fs-lead);
  color: var(--text-muted);
  max-width: 52ch;
  margin-top: 1.5rem;
}
.text-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: .25em;
  transition: color .25s, text-decoration-color .25s;
}
.text-link:hover { color: var(--accent); }

/* Odkaz s linkou (např. „Prohlédnout apartmány“) */
.link-line {
  display: inline-flex; align-items: center; gap: .9em;
  padding-block: .9em;
  border-bottom: 1px solid var(--accent);
  font-size: var(--fs-label); font-weight: 500; line-height: 1.2;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text);
  transition: color .3s var(--ease), border-color .3s var(--ease);
}
.link-line .icon { width: 1.35em; height: 1.35em; color: var(--accent); transition: transform .35s var(--ease); }
.link-line:hover { color: var(--accent); }
.link-line:hover .icon { transform: translateX(4px); }

/* Krátká akcentní linka pod nadpisem */
.rule {
  display: block; width: 44px; height: 1px;
  background: var(--accent);
  margin-block: clamp(24px, 3vw, 32px);
}

/* Výrazná věta – velký serif, závěr v kurzívě akcentní barvou (pod hero, v tmavém pásu) */
.statement {
  font-family: var(--f-display);
  font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.45rem);
  font-weight: 500;
  line-height: 1.24;
  max-width: 32ch;
  text-wrap: balance;
}
.statement em { font-style: italic; color: var(--accent-display); }

/* Dočasný obsah (placeholdery) */
.tbd {
  color: var(--text-muted);
  font-style: italic;
  text-decoration: underline dashed color-mix(in srgb, var(--c-slate) 60%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}
.temp-badge {
  display: inline-block;
  margin-top: .5rem;
  padding: .25em .75em;
  background: var(--c-sand-soft);
  border: 1px dashed var(--c-sand);
  color: var(--c-navy);
  font-size: .66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- 4. Tlačítka ---------- */
.btn {
  --btn-bg: var(--c-navy);
  --btn-fg: var(--c-cream);
  --btn-bd: var(--btn-bg);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .9em;
  min-height: 54px;
  padding: .9em 2.1em;
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--f-body);
  font-size: .74rem; font-weight: 500; line-height: 1.2;
  letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap;
  transition:
    background-color .35s var(--ease), color .35s var(--ease),
    border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .icon { width: 1.35em; height: 1.35em; margin-right: -.3em; transition: transform .35s var(--ease); }
.btn:hover .icon { transform: translateX(4px); }
.btn:active { transform: scale(.985); }

.btn--primary:hover { --btn-bg: var(--c-navy-deep); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--accent); --btn-bd: var(--accent); }
.btn--outline:hover { --btn-bg: var(--accent); --btn-fg: var(--c-cream); }

.btn--sm { min-height: 46px; padding: .7em 1.5em; font-size: .7rem; }
.btn--block { width: 100%; }

.link-btn {
  font-size: .85rem; text-decoration: underline; text-underline-offset: .2em;
  color: var(--text-muted);
}
.link-btn:hover { color: var(--text); }

/* ---------- 5. Média a placeholdery fotografií ----------
   .media = rámec s pevným poměrem stran. Až budou fotky:
   vložte <img> dovnitř a odstraňte třídy ph/ph--* a .media__label. */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: var(--ratio, 4 / 3);
  background-color: var(--c-ice-soft);
  isolation: isolate;
}
.media > img, .media > picture, .media > picture > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.media:has(> img, > picture) .media__label { display: none; }

.media__label {
  position: absolute; left: 16px; top: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: .6em;
  padding: .55em 1em;
  background: rgb(247 243 236 / .86);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--c-navy);
  font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.media__label .icon { width: 1.2em; height: 1.2em; }

/* Zrnitost (jemná textura) – sdílená všemi placeholdery */
.ph::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .22; mix-blend-mode: soft-light;
  background-image: var(--grain);
}

/* Interiér – teplé dřevo a písková */
.ph--interior {
  background:
    radial-gradient(70% 60% at 30% 25%, rgb(255 255 255 / .55), transparent 70%),
    repeating-linear-gradient(90deg, rgb(30 58 77 / .035) 0 2px, transparent 2px 46px),
    linear-gradient(160deg, var(--c-sand-soft) 0%, var(--c-sand) 62%, color-mix(in srgb, var(--c-sand) 70%, var(--c-navy)) 100%);
}
.ph--wood {
  background:
    radial-gradient(60% 55% at 72% 30%, rgb(255 255 255 / .5), transparent 70%),
    repeating-linear-gradient(0deg, rgb(30 58 77 / .04) 0 2px, transparent 2px 38px),
    linear-gradient(200deg, var(--c-cream) 0%, var(--c-sand-mid) 45%, var(--c-sand) 100%);
}
.ph--interior-alt {
  background:
    radial-gradient(55% 50% at 50% 20%, rgb(255 255 255 / .6), transparent 70%),
    linear-gradient(180deg, transparent 62%, rgb(205 185 168 / .6) 62.3%),
    linear-gradient(160deg, var(--c-ice-soft) 0%, var(--c-ice) 60%, var(--c-slate) 100%);
}
.ph--detail {
  background:
    radial-gradient(60% 55% at 38% 62%, rgb(205 185 168 / .85), transparent 70%),
    radial-gradient(50% 45% at 80% 20%, rgb(255 255 255 / .7), transparent 70%),
    linear-gradient(135deg, var(--c-cream) 0%, var(--c-sand-soft) 100%);
}
.ph--snow {
  background:
    radial-gradient(120% 55% at 30% 105%, #fff 0 49.6%, transparent 50%),
    radial-gradient(90% 50% at 90% 100%, var(--c-cream) 0 49.6%, transparent 50%),
    linear-gradient(180deg, var(--c-ice) 0%, var(--c-ice-soft) 70%);
}
.ph--evening {
  background:
    radial-gradient(70% 50% at 50% 100%, rgb(205 185 168 / .7), transparent 70%),
    linear-gradient(180deg, var(--c-navy) 0%, var(--c-slate) 75%, var(--c-sand) 100%);
}
/* Sjezdovka – led a sníh */
.ph--slope {
  background:
    linear-gradient(155deg, transparent 0 46%, rgb(255 255 255 / .95) 46.3%, var(--c-cream) 100%),
    linear-gradient(140deg, transparent 0 38%, rgb(183 199 212 / .9) 38.3%),
    linear-gradient(180deg, var(--c-slate) 0%, var(--c-ice) 60%);
}
.ph--map {
  background:
    repeating-linear-gradient(0deg, rgb(30 58 77 / .06) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgb(30 58 77 / .06) 0 1px, transparent 1px 44px),
    var(--c-stone);
}

/* ---------- 6. Hlavička ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
}
/* Pozadí na pseudo-elementu – backdrop-filter na samotné hlavičce
   by „uvěznil“ fixní mobilní menu uvnitř hlavičky. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgb(247 243 236 / .94);
  -webkit-backdrop-filter: saturate(1.1) blur(12px); backdrop-filter: saturate(1.1) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .4s var(--ease);
}
.site-header.is-scrolled::before { border-bottom-color: var(--line); }
.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
}
.header__logo { flex: none; display: block; position: relative; z-index: 2; }
.header__logo img {
  width: auto; height: 52px;
  transition: height .4s var(--ease);
}
@media (min-width: 1024px) {
  .header__logo img { height: 70px; }
  .site-header.is-scrolled .header__logo img { height: 60px; }
}

.header__actions {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
  position: relative; z-index: 2;
}
.header__cta { display: none; }
@media (min-width: 360px) { .header__cta { display: inline-flex; } }
.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.nav-toggle:hover { background: var(--c-sand-soft); }
.nav-toggle .icon { grid-area: 1 / 1; width: 22px; height: 22px; transition: opacity .25s, transform .35s var(--ease); }
.nav-toggle .icon--close { opacity: 0; transform: rotate(-45deg); }
.nav-toggle[aria-expanded="true"] .icon--open { opacity: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .icon--close { opacity: 1; transform: none; }

/* Mobilní menu (overlay) */
.nav {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: calc(var(--header-h) + 24px) var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--c-cream);
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.nav.is-open { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.nav__list { display: grid; gap: 2px; }
.nav__link {
  display: block; padding: .1em 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 10vw, 3.4rem);
  line-height: 1.15;
}
.nav__link:hover { color: var(--accent); }
.nav__meta {
  font-size: var(--fs-label); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--accent);
}
.nav__cta { align-self: flex-start; }

@media (prefers-reduced-motion: no-preference) {
  .nav .nav__list li, .nav .nav__cta, .nav .nav__meta {
    opacity: 0; transform: translateY(16px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
  }
  .nav.is-open .nav__list li, .nav.is-open .nav__cta, .nav.is-open .nav__meta { opacity: 1; transform: none; }
  .nav.is-open .nav__list li:nth-child(2) { transition-delay: .05s; }
  .nav.is-open .nav__list li:nth-child(3) { transition-delay: .1s; }
  .nav.is-open .nav__list li:nth-child(4) { transition-delay: .15s; }
  .nav.is-open .nav__list li:nth-child(5) { transition-delay: .2s; }
  .nav.is-open .nav__cta { transition-delay: .25s; }
  .nav.is-open .nav__meta { transition-delay: .3s; }
}

@media (min-width: 1024px) {
  .nav-toggle, .nav__cta, .nav__meta { display: none; }
  .nav {
    position: static; inset: auto; z-index: auto;
    flex: 1; flex-direction: row; align-items: center; justify-content: center;
    padding: 0; background: none;
    visibility: visible; opacity: 1; transition: none;
  }
  .nav .nav__list li { opacity: 1; transform: none; }
  .nav__list { display: flex; gap: clamp(24px, 2.8vw, 48px); }
  .nav__link {
    position: relative;
    font-family: var(--f-body);
    font-size: var(--fs-label); font-weight: 500;
    line-height: 1.2;
    letter-spacing: .22em; text-transform: uppercase;
    padding: .9em 0;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px;
    background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform .4s var(--ease);
  }
  .nav__link:hover { color: inherit; }
  .nav__link:hover::after, .nav__link[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
  .header__actions { margin-left: 0; }
}
body.nav-open { overflow: hidden; }

/* ---------- 7. Hero ---------- */
.hero { container-type: inline-size; }
.hero__inner { display: grid; }
.hero__text { padding-block: clamp(36px, 7vw, 56px) clamp(36px, 7vw, 48px); }
.hero__title {
  font-size: var(--fs-hero);
  line-height: .98;
  letter-spacing: -0.012em;
}
.hero__title-main { display: block; max-width: 9.5ch; }
.hero__title-sub {
  display: block;
  margin-top: .55em;
  font-size: clamp(1.45rem, 1.15rem + 1.15vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: 0;
  max-width: 19ch;
}
.hero__lead {
  max-width: 44ch;
  margin-top: clamp(24px, 2.6vw, 34px);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px;
  margin-top: clamp(30px, 3.2vw, 44px);
}
@media (max-width: 479px) {
  .hero__actions .btn { width: 100%; }
}

/* Fotka: na mobilu pod textem přes celou šířku, na desktopu vpravo až k okraji okna */
.hero__media {
  position: relative;
  overflow: hidden;
  margin-inline: calc(-1 * var(--gutter));
  aspect-ratio: 4 / 5;
  background: var(--c-ice-soft);
}
@media (min-width: 700px) and (max-width: 899px) {
  .hero__media { aspect-ratio: 3 / 2; }
}
.hero__parallax { position: absolute; inset: 0; will-change: transform; }
.hero__parallax img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 55% 55%;
}

@media (min-width: 900px) {
  .hero__inner {
    grid-template-columns: minmax(0, 41fr) minmax(0, 59fr);
    min-height: clamp(580px, calc(100svh - var(--header-h)), 900px);
  }
  .hero__text {
    align-self: center;
    padding-block: 64px;
    padding-right: clamp(28px, 4.5vw, 72px);
  }
  .hero__media {
    aspect-ratio: auto;
    margin-left: 0;
    margin-right: calc(-1 * var(--bleed));
  }
  .hero__parallax { inset: -7% 0; }
}

/* ---------- 8. Části objektu (pruh) ---------- */
.features__inner { padding-block: clamp(56px, 7vw, 104px); }
.features__lead { margin-bottom: clamp(40px, 5.5vw, 80px); }
.features__list { display: grid; }
.feature { border-top: 1px solid var(--line); }
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature__link {
  display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 20px;
  padding-block: 22px;
}
.feature__icon {
  grid-row: span 2;
  width: 34px; height: 34px;
  stroke-width: 1.1;
  color: var(--accent);
  transition: transform .45s var(--ease);
}
.feature__title {
  display: block;
  font-size: .78rem; font-weight: 500; line-height: 1.45;
  letter-spacing: .16em; text-transform: uppercase;
  padding-top: 4px;
  transition: color .3s var(--ease);
}
.feature__text { display: block; margin-top: 6px; font-size: .97rem; line-height: 1.55; color: var(--text-muted); }
.feature__link:hover .feature__title { color: var(--accent); }
.feature__link:hover .feature__icon { transform: translateY(-3px); }
.footnote-mark { margin-left: 1px; font-size: .7em; color: var(--accent); }
.features__footnote { margin-top: 22px; font-size: .88rem; line-height: 1.55; color: var(--text-muted); }
.features__footnote span { color: var(--accent); }

@media (min-width: 640px) {
  .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
  .feature:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}
@media (min-width: 1024px) {
  .features__list { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 0; }
  .feature, .feature:last-child, .feature:nth-last-child(2) {
    border: 0;
    border-left: 1px solid var(--line);
  }
  .feature:first-child { border-left: 0; }
  .feature__link { display: block; height: 100%; padding: 6px clamp(20px, 2.6vw, 44px) 10px; }
  .feature:first-child .feature__link { padding-left: 0; }
  .feature__icon { display: block; margin-bottom: 24px; }
  .feature__text { margin-top: 10px; }
}

/* ---------- 9. Fotografie interiéru ---------- */
.showcase {
  background: var(--c-sand-soft);
  padding-block: clamp(72px, 9vw, 128px);
}
.showcase__grid { display: grid; gap: 44px; }
.showcase__intro h2 { font-size: clamp(2.2rem, 1.7rem + 1.6vw, 3.1rem); line-height: 1.08; max-width: 16ch; }
.showcase__capacity {
  display: flex; align-items: center; gap: 14px;
  margin-top: 28px; max-width: 32ch; padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-size: 1.15rem; font-weight: 500; line-height: 1.4;
}
.showcase__capacity .icon { width: 26px; height: 26px; color: var(--accent); stroke-width: 1.2; }
.showcase__label { margin-top: 22px; font-weight: 500; line-height: 1.5; }
.showcase__notes { display: grid; gap: 12px; margin-top: 16px; max-width: 32ch; }
.showcase__note {
  display: flex; align-items: flex-start; gap: 14px;
  color: var(--text-muted);
}
.showcase__note .icon { width: 24px; height: 24px; margin-top: 1px; color: var(--accent); stroke-width: 1.2; }
.showcase__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tile__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-sand-mid);
}
.tile__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.tile:hover .tile__media img { transform: scale(1.04); }

@media (min-width: 800px) {
  .showcase__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1100px) {
  .showcase__grid { grid-template-columns: minmax(0, 3.6fr) minmax(0, 8.4fr); gap: clamp(40px, 4.5vw, 80px); align-items: center; }
}

/* ---------- 10. Hlavní chalupa a apartmány ---------- */
.units { padding-block: var(--section-y); }
.apt { display: grid; gap: 32px; align-items: center; }
.apt__media { position: relative; min-width: 0; }
.apt__stage { position: relative; overflow: hidden; }
.apt__media .media { --ratio: 4 / 3; }

/* Galerie */
.gallery__slide {
  position: absolute; inset: 0;
  transition: opacity .5s var(--ease), transform 1.1s var(--ease);
}
.gallery__slide > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.gallery__slide.is-entering { opacity: 0; }
.apt__stage:hover .gallery__slide { transform: scale(1.03); }

.gallery__thumbs {
  counter-reset: thumb;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 40px) / 4.4); /* 4 celé + kousek dalšího = nápověda ke scrollu */
  gap: 10px;
  margin-top: 10px;
  padding: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 600px) {
  .gallery__thumbs {
    grid-auto-flow: row;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: visible;
  }
}
.gallery__thumb {
  counter-increment: thumb;
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  padding: 3px;
  border: 1px solid transparent;
  scroll-snap-align: start;
  opacity: .6;
  transition: opacity .3s var(--ease), border-color .3s var(--ease);
}
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb[aria-current="true"] { opacity: 1; border-color: var(--c-navy); }
.gallery__thumb-media, .gallery__thumb > img {
  position: relative;
  display: block;
  width: 100%; height: 100%;
  overflow: hidden;
  object-fit: cover;
}
/* číslo fotky – jen u placeholderů */
.gallery__thumb-media.ph::before {
  content: counter(thumb);
  position: absolute; left: 5px; top: 5px; z-index: 2;
  display: grid; place-items: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: rgb(247 243 236 / .9);
  color: var(--c-navy);
  font-size: .66rem; font-weight: 500; line-height: 1;
}

.apt__num {
  display: flex; align-items: center; gap: 16px;
  font-family: var(--f-display);
  font-size: 1.6rem; font-weight: 500; line-height: 1;
  color: var(--accent);
  margin-bottom: 18px;
}
.apt__num::after { content: ""; width: 44px; height: 1px; background: currentColor; opacity: .7; }
.apt__title { font-size: var(--fs-h3); }
.apt__cap {
  display: block;
  margin-top: 14px;
  font-family: var(--f-body);
  font-size: .74rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.apt__desc { margin-top: 18px; color: var(--text-muted); max-width: 48ch; }
.apt__label {
  font-size: .7rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.apt__equip { margin-top: 26px; }
.checklist {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 24px;
}
.checklist li { display: flex; align-items: baseline; gap: 12px; line-height: 1.45; }
.checklist li::before {
  content: ""; flex: none;
  width: 12px; height: 1px;
  background: var(--accent);
  transform: translateY(-.3em);
}
.checklist--single { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
@media (max-width: 379px) { .checklist { grid-template-columns: 1fr; } }

/* Podlaží hlavní chalupy */
.apt__floors { display: grid; gap: 22px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.apt__floor-title { font-size: 1.45rem; margin-bottom: 8px; }
.floor__num { color: var(--accent-display); font-style: italic; }
.apt__floor p { color: var(--text-muted); }
.apt__floor .checklist { color: var(--text-muted); }

/* Cena „od“ + tlačítko */
.apt__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px;
  margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line);
}
.apt__price { display: flex; align-items: baseline; gap: .45em; white-space: nowrap; }
.apt__price-from {
  font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent);
}
.apt__price-value {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 1.6rem + .9vw, 2.4rem); font-weight: 500; line-height: 1;
}
.apt__price-unit { font-size: .9rem; color: var(--text-muted); }

/* Apartmány – dvě karty vedle sebe */
.apts {
  display: grid; gap: clamp(72px, 9vw, 112px);
  margin-top: clamp(96px, 11vw, 160px);
}
.apt-card { display: flex; flex-direction: column; min-width: 0; }
.apt-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 30px; }
.apt-card .apt__foot { margin-top: auto; }
.apt-card .apt__equip { margin-bottom: 32px; }

@media (min-width: 900px) {
  .apt { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6.5vw, 112px); }
  .apt__media .media { --ratio: 5 / 4; }
  .apts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(40px, 5vw, 80px); row-gap: 0; }
  /* galerie a text karet ve společných řádcích → nadpisy obou apartmánů začínají ve stejné výšce,
     i když má jedna galerie víc řádků náhledů */
  .apt-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .apts .apt__media .media { --ratio: 4 / 3; }
}

/* ---------- 11. Společenská místnost, sauna a venkovní posezení ---------- */
.ethos {
  container-type: inline-size;
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  background: var(--c-stone);
  overflow: hidden;
}
/* jemná textura „omítky“ */
.ethos::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain);
  opacity: .22; mix-blend-mode: multiply;
}
/* dvě sekce za sebou = jeden pás, oddělený linkou */
.ethos + .ethos { padding-top: 0; }
.ethos + .ethos .ethos__grid { border-top: 1px solid var(--line); padding-top: var(--section-y); }

.ethos__grid { display: grid; gap: 44px; }
.ethos__main h2 { font-size: clamp(2.3rem, 1.7rem + 1.9vw, 3.4rem); max-width: 17ch; }
.ethos__text { color: var(--text-muted); max-width: 48ch; }
.ethos__text + .ethos__text { margin-top: 14px; }

.ethos__label {
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.ethos__col ul { display: grid; gap: 16px; }
.ethos__col li {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--f-display);
  font-size: 1.4rem; font-weight: 500; line-height: 1.25;
}
.ethos__col li::before { content: ""; width: 16px; height: 1px; background: var(--accent); flex: none; transform: translateY(-.35em); }

/* fotky: velká + široká přes dva sloupce, dvě menší */
.ethos__photos {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: clamp(40px, 5vw, 64px);
}
.ethos__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-sand-mid);
}
.ethos__photo--big, .ethos__photo--wide { grid-column: span 2; }
.ethos__photo--wide { aspect-ratio: 16 / 9; }
.ethos__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.ethos__photo:hover img { transform: scale(1.04); }

@media (min-width: 900px) {
  .ethos__photos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  /* výšku řádků určuje velká fotka (4:3), ostatní se jí přizpůsobí */
  .ethos__photo--big { grid-row: span 2; }
  .ethos__photo:not(.ethos__photo--big) { aspect-ratio: auto; }
}
@media (min-width: 1024px) {
  .ethos__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 4.5vw, 72px);
    align-items: center;
  }
}

/* ---------- 12. Variabilní pronájem ---------- */
.options__head { display: grid; gap: 20px; margin-bottom: clamp(48px, 6vw, 80px); }
.options__lead { font-size: var(--fs-lead); color: var(--text-muted); max-width: 44ch; }
@media (min-width: 900px) {
  .options__head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: end; gap: clamp(48px, 6vw, 104px); }
}
.options__label {
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.steps { display: grid; gap: 0; }
.step {
  position: relative;
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 18px; align-items: baseline;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--f-display);
  font-size: 2rem; font-weight: 500; line-height: 1;
  color: var(--accent);
}
.step__dot { display: none; }
.step__text {
  font-family: var(--f-display);
  font-size: 1.35rem; font-weight: 500; line-height: 1.3;
  max-width: 22ch;
}

@media (min-width: 1024px) {
  .steps {
    position: relative;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
  /* vodorovná linka přes body */
  .steps::before {
    content: ""; position: absolute; left: 0; right: 0;
    top: calc(2.4rem + 22px);
    height: 1px; background: var(--line-strong);
  }
  .step, .step:last-child { display: block; padding: 0; border: 0; }
  .step__num { display: block; font-size: 2.4rem; }
  .step__dot {
    position: relative; z-index: 1;
    display: block;
    width: 11px; height: 11px;
    margin: 16px 0 24px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
  }
  .step__dot::after {
    content: ""; position: absolute; inset: 2px; border-radius: 50%;
    background: var(--accent); opacity: 0;
    transition: opacity .4s var(--ease);
  }
  .step:hover .step__dot::after { opacity: 1; }
}

.options__facts {
  margin-top: clamp(56px, 7vw, 96px);
  padding-top: clamp(36px, 4.5vw, 56px);
  border-top: 1px solid var(--line);
}
.options__text { color: var(--text-muted); max-width: 52ch; }

/* ---------- 13. Ceník (PDF ke stažení) ---------- */
.pricing { background: var(--c-sand-soft); }
.pricing__head { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .pricing__head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(48px, 6vw, 104px); }
}

/* Rámeček se stažením ceníku */
.notice {
  position: relative;
  display: grid; gap: 20px; justify-items: start;
  padding: clamp(22px, 3vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line);
}
.notice::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 88px; height: 2px;
  background: var(--accent);
}
.notice__kicker {
  display: flex; align-items: center; gap: 10px;
  font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.notice__kicker .icon { width: 18px; height: 18px; }
.notice > p:not(.notice__kicker) { font-size: .95rem; color: var(--text-muted); }
.btn:hover .icon--down { transform: translateY(3px); }

/* Tabulky (tabulka cookies na cookies.html) */
.ptable {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: .95rem; line-height: 1.45;
  font-variant-numeric: lining-nums tabular-nums;
}
.ptable th, .ptable td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.ptable thead th {
  padding-block: 14px;
  font-size: .64rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}
.ptable tbody th { font-weight: 500; }
.ptable--compact { font-size: .92rem; }
.ptable--compact th, .ptable--compact td { padding: 12px 16px; }
@media (max-width: 759px) {
  .ptable--compact { font-size: .86rem; }
  .ptable--compact th, .ptable--compact td { padding: 10px 10px; }
}

/* ---------- 14. Ceník a rezervace REZEO (iframe) ----------
   Výšku iframe nastavuje skript REZEO (iframe-resizer.js) podle obsahu. Výšky zde jsou jen
   přibližné (podle obsahu v říjnu 2026), aby stránka při načítání neposkakovala; bez JavaScriptu
   zůstanou a obsah se posouvá uvnitř iframe.
   Oba widgety mají pod obsahem vlastní prázdné místo 150 px (rezerva pro rozbalovací nabídky
   formuláře) – nahrazuje mezeru pod ceníkem i spodní odsazení karty s rezervací. */
.rezeo-frame { display: block; width: 100%; border: 0; }
.rezeo-frame--prices { height: 1340px; }
.rezeo-frame--booking { height: 1080px; }
@media (max-width: 639px) {
  .rezeo-frame--prices { height: 1890px; }
}

.pricing__list { margin-top: clamp(40px, 5vw, 64px); }

.booking-widget {
  position: relative;
  margin-top: clamp(64px, 8vw, 112px);
  padding: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0;
  background: var(--surface);
  border: 1px solid var(--line);
}
.pricing__list + .booking-widget { margin-top: clamp(8px, 1.5vw, 16px); }
.booking-widget::before {
  /* tenká akcentní linka nahoře */
  content: ""; position: absolute; left: -1px; top: -1px; width: 88px; height: 2px;
  background: var(--accent);
}
/* Na mobilu karta až k okrajům displeje – kalendář potřebuje každý pixel šířky */
@media (max-width: 639px) {
  .booking-widget {
    margin-inline: calc(-1 * var(--gutter));
    padding: 16px 12px 0;
    border-inline: 0;
  }
  .booking-widget::before { left: 0; }
}
.booking-alt {
  margin-top: 16px;
  font-size: .9rem; text-align: center; color: var(--text-muted);
}

/* ---------- 15. Kontakt ---------- */
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 112px); align-items: stretch; }
}
.contact__list { display: grid; gap: 26px; margin-top: 40px; }
.contact__list li { display: flex; gap: 18px; align-items: flex-start; }
.contact__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  color: var(--accent);
}
.contact__label {
  font-size: .68rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.contact__value { display: block; overflow-wrap: anywhere; font-family: var(--f-display); font-size: 1.45rem; font-weight: 500; line-height: 1.25; }
a.contact__value { transition: color .3s; }
a.contact__value:hover { color: var(--accent); }
.contact__list .temp-badge { margin-top: 8px; }
.contact__map-link { display: inline-block; margin-top: 6px; font-size: .9rem; color: var(--text-muted); }

.social { margin-top: 44px; }
.social__links { display: flex; gap: 10px; margin-top: 12px; }
.social__link {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.social__link:hover { background: var(--c-navy); border-color: var(--c-navy); color: var(--c-cream); }

.map {
  position: relative;
  isolation: isolate; /* z-indexy Leafletu (až 1000) zůstanou uvnitř mapy, pod hlavičkou a cookie lištou */
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding: 24px; text-align: center;
}
.map__ph > * { position: relative; z-index: 2; }
.map__pin {
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--c-navy); color: var(--c-cream);
  box-shadow: 0 0 0 12px rgb(30 58 77 / .08), 0 0 0 26px rgb(30 58 77 / .05);
  margin-bottom: 18px;
}
.map__pin .icon { width: 28px; height: 28px; }
.map__title { font-family: var(--f-display); font-size: 1.9rem; font-weight: 500; line-height: 1.1; }
.map__text { color: var(--text-muted); margin-bottom: 8px; }

/* Mapa (Leaflet + dlaždice OpenStreetMap) */
.map__canvas { position: absolute; inset: 0; }
.map .leaflet-container { background: var(--c-ice-soft); font-family: var(--f-body); }
.map .leaflet-bar, .map .leaflet-bar a { border-radius: 0; }
.map .leaflet-bar a { color: var(--c-navy); }
.map .leaflet-control-attribution { font-size: .66rem; }
.map .map__marker { /* .map zvyšuje specifičnost – leaflet.css se načítá až po styles.css */
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--c-navy); color: var(--c-cream);
  box-shadow: 0 0 0 7px rgb(30 58 77 / .16), 0 0 0 16px rgb(30 58 77 / .08);
}
.map .map__marker .icon { width: 22px; height: 22px; }

/* ---------- 16. Závěrečný tmavý pás ---------- */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 136px);
  background: var(--c-navy);
  color: var(--c-cream);
}
.cta-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain);
  opacity: .14; mix-blend-mode: soft-light;
}
.cta-band__deco {
  position: absolute; right: 0; bottom: 0; z-index: -1;
  width: min(58vw, 600px); height: auto;
  fill: rgb(183 199 212 / .1);
}
.cta-band__ridge { fill: none; stroke: rgb(205 185 168 / .35); stroke-width: 1; }
.cta-band__inner { display: grid; gap: 40px; }
.cta-band .statement em { color: var(--c-sand); }

/* Kontakty v pásu – stejné uspořádání jako v sekci Kontakt */
.cta-band__contacts { display: grid; gap: 22px; }
.cta-band__contacts li { display: flex; align-items: center; gap: 18px; }
.cta-band__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px;
  border: 1px solid rgb(247 243 236 / .24);
  color: var(--c-sand);
}
.cta-band__label {
  margin-bottom: 2px;
  font-size: .66rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--c-sand);
}
.cta-band__value {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.15rem + .8vw, 1.85rem); font-weight: 500; line-height: 1.2;
  overflow-wrap: anywhere;
  transition: color .3s var(--ease);
}
.cta-band__value:hover { color: var(--c-sand); }
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: minmax(0, 7.5fr) minmax(0, 4.5fr); align-items: center; gap: clamp(48px, 6vw, 96px); }
}

/* ---------- 17. Patička ---------- */
.site-footer {
  background: var(--bg);
  color: var(--text);
  padding-top: clamp(64px, 8vw, 104px);
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  font-size: .95rem;
}
.footer__grid { display: grid; gap: 44px; padding-bottom: clamp(48px, 6vw, 80px); }
.footer__brand img { width: 196px; height: auto; }
.footer__brand p { margin-top: 22px; color: var(--text-muted); max-width: 34ch; font-size: .92rem; text-wrap: balance; }
.footer__social { display: flex; gap: 16px; margin-top: 22px; color: var(--accent); }
.footer__social a { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -8px; transition: color .3s; }
.footer__social a + a { margin-left: 0; }
.footer__social a:hover { color: var(--c-navy); }
.footer__heading {
  font-size: var(--fs-label); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--text); margin-bottom: 20px;
}
.footer__col ul { display: grid; gap: 10px; color: var(--text-muted); }
.footer__col a, .footer__link-btn { transition: color .3s; }
.footer__col a:hover, .footer__link-btn:hover { color: var(--accent); }
.footer__link-btn { padding: 0; text-align: left; line-height: inherit; }
.footer__legal { margin-top: 40px; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
  .footer__col { padding-top: 6px; }
}

.footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 28px;
  padding-top: 26px;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}
.footer__bottom::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px; background: var(--line);
}
.footer__operator {
  max-width: 62em;
  margin: 8px auto 0;
  font-size: .78rem; letter-spacing: .02em; text-transform: none;
  text-wrap: balance;
}
.footer__credit { margin-top: 14px; }
.footer__credit a { color: var(--text); transition: color .3s; }
.footer__credit a:hover { color: var(--accent); }
.footer__top { display: inline-flex; align-items: center; gap: .5em; }
.footer__top:hover { color: var(--accent); }
.footer__top .icon { width: 1.3em; height: 1.3em; transition: transform .3s var(--ease); }
.footer__top:hover .icon { transform: translateY(-3px); }
@media (min-width: 768px) {
  .footer__bottom { display: grid; grid-template-columns: 1fr auto 1fr; }
  .footer__copy { grid-column: 2; }
  .footer__top { justify-self: end; }
}

/* ---------- 18. Mobilní CTA lišta ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgb(247 243 236 / .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
@media (min-width: 768px) { .mobile-cta { display: none; } }

/* ---------- 19. Animace při scrollu ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition: opacity .9s var(--ease), transform .9s var(--ease);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Úvodní animace nadpisu v hero – bez skrytí (kvůli LCP) */
  .js .hero__title { animation: hero-rise 1.1s var(--ease) both; }
  @keyframes hero-rise {
    from { transform: translate3d(0, 20px, 0); }
    to { transform: none; }
  }
  /* Fotka v hero se jemně „usadí“ */
  .js .hero__parallax img { animation: hero-settle 1.6s var(--ease) both; }
  @keyframes hero-settle {
    from { transform: scale(1.06); }
    to { transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 20. Cookies – lišta a nastavení (assets/js/consent.js) ---------- */
html:not(.js) button[data-cookie-settings] { display: none; }

.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; gap: 18px;
  padding: 22px var(--gutter) calc(18px + env(safe-area-inset-bottom));
  background: var(--c-cream);
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -24px 60px -36px rgb(30 58 77 / .45);
  font-size: .92rem; line-height: 1.6;
}
.cc-banner::before {
  content: ""; position: absolute; left: var(--gutter); top: -1px; width: 88px; height: 2px;
  background: var(--accent);
}
.cc-banner__title {
  font-family: var(--f-display);
  font-size: 1.6rem; font-weight: 500; line-height: 1.1;
  margin-bottom: 8px;
}
.cc-banner__text { color: var(--text-muted); }
.cc-banner__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cc-banner__actions .btn, .cc-dialog__actions .btn { padding-inline: .9em; letter-spacing: .14em; }
.cc-banner__settings { grid-column: 1 / -1; justify-self: center; padding: 6px 10px; }
@media (max-width: 359px) {
  .cc-banner__actions { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 640px) {
  .cc-banner {
    left: var(--gutter); right: auto; bottom: calc(24px + env(safe-area-inset-bottom));
    width: min(470px, calc(100% - 2 * var(--gutter)));
    padding: 28px 30px 20px;
    border: 1px solid var(--line-strong);
  }
  .cc-banner::before { left: -1px; }
}
@media (prefers-reduced-motion: no-preference) {
  .cc-banner { animation: cc-in .6s var(--ease) both; }
  @keyframes cc-in {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
  }
}

/* Nastavení – nativní <dialog> (zámek fokusu i zavření klávesou Esc řeší prohlížeč) */
.cc-dialog {
  width: min(560px, calc(100% - 24px));
  max-width: none; max-height: calc(100dvh - 24px);
  margin: auto; padding: 0;
  border: 1px solid var(--line-strong);
  background: var(--c-cream); color: var(--text);
  overflow: auto; overscroll-behavior: contain;
  box-shadow: 0 40px 90px -40px rgb(30 58 77 / .55);
}
.cc-dialog::backdrop { background: rgb(30 58 77 / .5); }
.cc-dialog__inner { position: relative; padding: clamp(24px, 5vw, 40px); }
.cc-dialog__inner::before {
  content: ""; position: absolute; left: 0; top: 0; width: 88px; height: 2px;
  background: var(--accent);
}
.cc-dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.cc-dialog__title { font-size: clamp(1.9rem, 1.6rem + 1vw, 2.4rem); }
.cc-dialog__close {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; margin: -4px -4px 0 0;
  border: 1px solid var(--line-strong);
  transition: background-color .3s var(--ease);
}
.cc-dialog__close:hover { background: var(--c-sand-soft); }
.cc-dialog__close .icon { width: 20px; height: 20px; }
.cc-dialog__intro { margin-top: 14px; font-size: .95rem; color: var(--text-muted); }
.cc-cats { margin-top: 26px; border-top: 1px solid var(--line); }
.cc-cat { padding-block: 18px; border-bottom: 1px solid var(--line); }
.cc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 30px; }
.cc-cat__title {
  font-size: .76rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .18em; text-transform: uppercase;
}
label.cc-cat__title { cursor: pointer; }
.cc-cat__state {
  font-size: .66rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.cc-cat__text { margin-top: 8px; font-size: .92rem; line-height: 1.6; color: var(--text-muted); }

/* Přepínač – ostré rohy jako zbytek webu */
.cc-switch {
  -webkit-appearance: none; appearance: none;
  position: relative; flex: none;
  width: 50px; height: 28px; margin: 0;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.cc-switch::before {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--c-slate);
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.cc-switch:checked { background: var(--c-navy); border-color: var(--c-navy); }
.cc-switch:checked::before { transform: translateX(22px); background: var(--c-cream); }

.cc-dialog__actions { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 560px) {
  .cc-dialog__actions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media print {
  .cc-banner, .cc-dialog, .mobile-cta { display: none !important; }
}

/* ---------- 21. Právní stránky (obchodní podmínky, ochrana údajů, cookies) ---------- */
.legal { padding-block: clamp(40px, 6vw, 88px) var(--section-y); }
.legal__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) {
  .legal__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(56px, 7vw, 112px);
    align-items: start;
  }
  .legal__aside { position: sticky; top: calc(var(--header-h) + 40px); }
}
.legal__title { font-size: clamp(2.6rem, 1.8rem + 2.6vw, 4.2rem); line-height: 1; }
.legal__lead { margin-top: 20px; max-width: 40ch; color: var(--text-muted); }
.legal__meta { margin-top: 14px; font-size: .9rem; color: var(--text-muted); }
.legal__aside .temp-badge { margin-top: 14px; }
.legal__nav { margin-top: 36px; border-top: 1px solid var(--line); }
.legal__nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-label); font-weight: 500; line-height: 1.3;
  letter-spacing: .2em; text-transform: uppercase;
  transition: color .3s var(--ease);
}
.legal__nav a:hover, .legal__nav a[aria-current="page"] { color: var(--accent); }
.legal__nav .icon { width: 1.3em; height: 1.3em; color: var(--accent); transition: transform .35s var(--ease); }
.legal__nav a:hover .icon { transform: translateX(4px); }

/* Text dokumentu – číslované kapitoly (1., 2. …) a body (1.1, 1.2 …) */
.prose { counter-reset: sec; max-width: 70ch; }
.prose > * + * { margin-top: 14px; }
.prose p, .prose li, .prose dd { color: var(--text-muted); }
.prose strong { color: var(--text); font-weight: 500; }
.prose a:not(.btn) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--accent);
  text-underline-offset: .25em;
  transition: color .25s;
}
.prose a:not(.btn):hover { color: var(--accent); }
.prose code {
  padding: .1em .4em;
  background: var(--c-sand-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  color: var(--text);
}
.legal__intro { font-size: var(--fs-lead); }
.prose h2 {
  counter-increment: sec;
  display: flex; align-items: baseline; gap: .4em;
  margin-top: clamp(44px, 5vw, 64px);
  padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line);
  font-size: clamp(1.75rem, 1.45rem + 1vw, 2.3rem);
}
.prose h2::before { content: counter(sec) "."; color: var(--accent-display); font-style: italic; }
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  margin-top: 30px;
  font-family: var(--f-body);
  font-size: .76rem; font-weight: 500; line-height: 1.45;
  letter-spacing: .18em; text-transform: uppercase;
}
.prose h2 + *, .prose h3 + * { margin-top: 14px; }
.prose h2 + h3 { margin-top: 24px; }

.prose ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.prose ul > li { position: relative; padding-left: 26px; }
.prose ul > li::before {
  content: ""; position: absolute; left: 0; top: .85em;
  width: 12px; height: 1px; background: var(--accent);
}

.legal-list { display: grid; gap: 14px; padding: 0; list-style: none; counter-reset: item; }
.legal-list > li { counter-increment: item; position: relative; padding-left: 3.1em; }
.legal-list > li::before {
  content: counter(sec) "." counter(item);
  position: absolute; left: 0; top: 0;
  font-size: .85rem; font-weight: 500;
  line-height: 2.125; /* = výška řádku textu (1.7 × 1.0625rem) → čísla sedí na účaří */
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

/* Údaje / účel / právní základ / doba uložení */
.legal-dl { border-top: 1px solid var(--line); }
.legal-dl > div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.legal-dl dt {
  font-size: .66rem; font-weight: 500; line-height: 1.6;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.legal-dl dd { margin: 0; }
@media (min-width: 640px) {
  .legal-dl > div { grid-template-columns: 10em minmax(0, 1fr); gap: 24px; align-items: baseline; }
}

/* Tabulka cookies – na mobilu karty */
.legal-table .ptable td { font-size: .92rem; }
@media (max-width: 759px) {
  .ptable--stack thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .ptable--stack, .ptable--stack tbody, .ptable--stack tr, .ptable--stack th, .ptable--stack td { display: block; width: 100%; }
  .ptable--stack { background: none; }
  .ptable--stack tr {
    margin-bottom: 12px;
    padding: 4px 16px 6px;
    background: var(--surface);
    border: 1px solid var(--line);
  }
  .ptable--stack tbody th { padding: 12px 0 10px; border-bottom: 1px solid var(--line-strong); }
  .ptable--stack td {
    display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; align-items: baseline;
    padding: 9px 0;
  }
  .ptable--stack td::before {
    content: attr(data-label);
    font-size: .64rem; font-weight: 500;
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-muted);
  }
  .ptable--stack td:last-child { border-bottom: 0; }
}

/* ---------- 22. Stránka 404 ---------- */
.error-page { padding-block: clamp(64px, 10vw, 144px) var(--section-y); }
.error-page__title { font-size: var(--fs-hero); line-height: .98; letter-spacing: -0.012em; }
.error-page__text { margin-top: 26px; max-width: 46ch; font-size: var(--fs-lead); color: var(--text-muted); }
.error-page__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px;
  margin-top: clamp(30px, 3.2vw, 44px);
}
