/* ==========================================================================
   Lesanka.cz – hlavní styly webu
   Barvy podle loga a cedule P. B. MORAVA: tmavě zelená a žlutozelená.
   Písmo Barlow (připomíná turistické značení). Úvod je český turistický
   rozcestník – cedule s názvem místa a bílé směrovky se značkou.
   ========================================================================== */

/* ---------- Písma (Barlow, SIL Open Font License) ---------- */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-latin-ext-400-normal.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/barlow-latin-400-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-latin-ext-500-normal.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: "Barlow"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(../fonts/barlow-latin-500-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-latin-ext-600-normal.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-latin-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-600-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-ext-700-normal.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: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(../fonts/barlow-condensed-latin-700-normal.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 {
  /* paleta */
  --loden: #03501C;        /* zelená z loga – hlavní barva */
  --loden-deep: #02320F;   /* tmavší zelená – patička */
  --loden-2: #0B6327;      /* hover */
  --lime: #B1C800;         /* žlutozelená z loga – jen na zelené ploše a drobnosti */
  --blaze: var(--loden);   /* akcent na světlém pozadí = zelená */
  --blaze-hover: var(--loden-2);
  --blaze-ink: var(--loden);
  --birch: #F5F5F0;        /* pozadí stránky */
  --white: #FFFFFF;
  --stone: #EAEBE3;        /* střídavé sekce */
  --line: #D6D8CD;
  --ink: #17201A;
  --ink-soft: #4F5A52;
  --on-dark: #DCE6DA;      /* text na zelené */
  --on-dark-soft: #A9C0AC;
  --trail: #03501C;        /* turistická značka */
  --pole: #9AA29B;
  --error: #A3321F;

  /* původní názvy (používají je starší části) */
  --spruce: var(--loden);
  --spruce-deep: var(--loden-deep);
  --spruce-2: var(--loden-2);
  --linen: var(--birch);
  --paper: var(--white);
  --sand: var(--stone);
  --brass: var(--blaze);
  --brass-ink: var(--blaze-ink);
  --open: #3E7D2E;
  --closed: var(--blaze-ink);

  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: var(--display);

  --radius: 4px;
  --radius-lg: 4px;
  --radius-md: 4px;
  --radius-sm: 3px;
  --gutter: 16px;
  --header-h: 72px;
  --section-y: clamp(3.5rem, 2.4rem + 4vw, 6.5rem);
}

@media (min-width: 700px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

/* ---------- Základ ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--birch);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; color: var(--loden); text-wrap: balance; }

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
}

h1 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); line-height: 1; }
h2 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.2rem); line-height: 1.02; }
h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 600; line-height: 1.3; }

p { margin: 0 0 1em; }

a { color: var(--loden); text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }
a:hover { color: var(--blaze-ink); }

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

button { font: inherit; }

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--loden); color: #fff; padding: 0.75rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

main:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.icon--lg { width: 2rem; height: 2rem; }

.lead {
  font-size: clamp(1.1rem, 1.02rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 38rem;
}

.small-note { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------- Turistická značka (bílá–zelená–bílá) ---------- */

.trail-mark {
  display: inline-flex; flex-direction: column; flex: none;
  width: 30px; height: 21px; border-radius: 1px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(28, 34, 27, 0.2);
}
.trail-mark i { flex: 1; background: #fff; }
.trail-mark i:nth-child(2) { flex: 1.1; background: var(--trail); }
.trail-mark--small { width: 22px; height: 15px; }
.trail-mark--large { width: 72px; height: 50px; margin-bottom: 1.5rem; }

/* ---------- Tlačítka a odkazy ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.75rem 1.4rem;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
/* hlavní akce: signální oranž s tmavým textem (kontrast 6:1) */
.btn--primary { background: var(--loden); color: #fff; }
.btn--primary:hover { background: var(--loden-2); color: #fff; }
.btn--lime { background: var(--lime); color: var(--ink); }
.btn--lime:hover { background: #C4DA1A; color: var(--ink); }
.btn--dark { background: var(--loden); color: #fff; }
.btn--dark:hover { background: var(--loden-2); color: #fff; }
.btn--light { background: #fff; color: var(--loden); }
.btn--light:hover { background: var(--birch); color: var(--loden); }
.btn--outline-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn--ghost { border-color: var(--loden); color: var(--loden); background: transparent; }
.btn--ghost:hover { background: var(--loden); color: #fff; }
.btn--small { min-height: 42px; padding: 0.45rem 0.95rem; font-size: 0.95rem; }
.btn--block { width: 100%; }

.text-link { font-weight: 600; color: var(--loden); text-decoration-color: var(--blaze); text-decoration-thickness: 2px; }
.text-link:hover { color: var(--blaze-ink); }
.text-link--light { color: #fff; }
.text-link--light:hover { color: #fff; text-decoration-color: #fff; }
.text-link--small { font-size: 0.95rem; }

.link-button {
  background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 0.2em; font-size: inherit;
}

/* ---------- Hlavička ---------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--loden); }
.brand:hover { color: var(--loden); }
.brand-logo { width: 48px; height: 48px; border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-size: 1.85rem; font-weight: 700; letter-spacing: 0.005em; white-space: nowrap; }
@media (max-width: 520px) { .site-header .brand { gap: 0.55rem; } .site-header .brand-logo { width: 42px; height: 42px; } .site-header .brand-name { font-size: 1.4rem; } }
@media (max-width: 359px) { .site-header .brand-name { font-size: 1.2rem; } }
.brand-sub { font-size: 0.8rem; font-weight: 500; color: var(--ink-soft); margin-top: 0.2rem; }
.brand--light { color: #fff; }
.brand--light:hover { color: #fff; }
.brand--light .brand-sub { color: var(--on-dark-soft); }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 46px; padding: 0.4rem 0.95rem;
  background: var(--loden); color: #fff;
  border: 0; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer;
}

.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; color: var(--ink); font-weight: 500; }
.site-nav a[aria-current="page"] { color: var(--loden); }

.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--loden); color: #fff !important;
  padding: 0.7rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600 !important;
  white-space: nowrap;
}
.nav-phone .icon { color: var(--lime); }
.nav-phone:hover { background: var(--loden-2); }

/* mobilní menu */
.site-nav.is-open {
  display: flex; flex-direction: column; gap: 1.5rem;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  background: #fff; padding: 1rem var(--gutter) 2rem; overflow-y: auto;
}
.site-nav.is-open li { border-bottom: 1px solid var(--line); }
.site-nav.is-open li a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 0;
  font-family: var(--display); font-size: 1.75rem; font-weight: 700; color: var(--loden);
}
.site-nav.is-open li a[aria-current="page"]::before {
  content: ""; width: 6px; height: 1em; background: var(--blaze);
}
.site-nav.is-open .nav-phone { justify-content: center; padding: 1rem; font-size: 1.15rem; }
body.nav-open { overflow: hidden; }
@media (min-width: 1100px) and (max-width: 1299px) {
  .site-header .brand-name { font-size: 1.55rem; }
  .site-nav.site-nav, .site-nav.is-open { gap: 1.25rem; }
  .site-nav ul.site-nav-list, .site-nav ul { gap: 1.1rem; }
  .site-nav li a, .site-nav.is-open li a { font-size: 0.98rem; }
}

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 2rem;
    position: static; padding: 0; background: none; flex-direction: row; overflow: visible;
  }
  .site-nav ul { display: flex; gap: 1.75rem; }
  .site-nav li a { position: relative; padding: 0.4rem 0; font-size: 1.05rem; white-space: nowrap; }
  .site-nav li a:hover { color: var(--loden); }
  .site-nav li a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -0.15rem; height: 3px;
    background: var(--blaze); transform: scaleX(0); transform-origin: left; transition: transform 0.2s;
  }
  .site-nav li a:hover::after, .site-nav li a[aria-current="page"]::after { transform: none; }
  .site-nav.is-open li { border: 0; }
  .site-nav.is-open li a { font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--ink); padding: 0.4rem 0; display: inline; }
  .site-nav.is-open li a[aria-current="page"]::before { content: none; }
}

/* ==========================================================================
   Úvod: český turistický rozcestník na zelené ploše (barva z loga)
   a vedle něj fotka místa, kam směrovka vede
   ========================================================================== */

.post { display: grid; background: var(--loden); color: #fff; }
.post-panel {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2.25rem, 1.5rem + 4vw, 4.5rem) var(--gutter) clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}
.post-inner { width: 100%; max-width: 34rem; }
.post-title {
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 2.75rem); max-width: 16ch;
  color: #fff; font-weight: 700; line-height: 0.98;
  font-size: clamp(2.4rem, 1.6rem + 2.2vw, 3.6rem);
}

/* rozcestník */
.kct { position: relative; display: grid; gap: 9px; justify-items: start; width: 100%; padding-left: 0; }
.kct-pole {
  position: absolute; z-index: 0; left: 26px; top: -22px; bottom: -46px; width: 13px;
  border-radius: 7px 7px 0 0;
  background: linear-gradient(90deg, #D7DCD6 0%, #A7AFA8 40%, #7C857D 100%);
  box-shadow: 3px 0 6px rgba(0, 0, 0, 0.18);
}
.kct-name, .kct-arrow { position: relative; z-index: 1; }
.kct-name {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 0 0 4px; padding: 0.55rem 1.1rem 0.55rem 0.55rem;
  background: #fff; color: var(--ink); border-radius: 2px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.16);
}
.kct-name img { width: 44px; height: 44px; border-radius: 7px; flex: none; }
.kct-name p { margin: 0; display: flex; flex-direction: column; line-height: 1.1; }
.kct-name strong { font-family: var(--display); font-size: 1.75rem; font-weight: 700; color: var(--loden); }
.kct-name span { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.1rem; }

.kct-arrow {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 0.85rem;
  width: 100%; min-height: 3.75rem;
  padding: 0.5rem 2.7rem 0.5rem 1.1rem;
  background: #fff; color: var(--ink); text-decoration: none;
  /* nýt, kterým je směrovka přišroubovaná ke sloupku */
  background-image: radial-gradient(circle at 32px 50%, #B9C0B9 0 3px, #8E968F 3.5px, transparent 4.5px);
  clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 50%, calc(100% - 27px) 100%, 0 100%);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s;
}
.kct-arrow:hover, .kct-arrow.is-current { color: var(--ink); background-color: #F1F6CF; transform: translateX(6px); }
.kct-arrow.is-lit { background-color: #F1F6CF; }
.kct-arrow:focus-visible { outline: none; background-color: #F1F6CF; box-shadow: inset 0 0 0 3px var(--lime); }
.kct-dest { padding-left: 2.1rem; font-family: var(--display); font-size: clamp(1.35rem, 1.15rem + 0.6vw, 1.6rem); font-weight: 600; line-height: 1.05; }
.kct-note { font-size: 0.92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kct-mark { width: 27px; height: 19px; }

.post-status {
  display: flex; align-items: center; gap: 0.55rem;
  margin: clamp(2.75rem, 2rem + 2vw, 3.5rem) 0 0;
  font-weight: 500; color: var(--on-dark);
}
.post .status--open .dot, .section--forest .status--open .dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(177, 200, 0, 0.3); }
.post .status--closed .dot, .section--forest .status--closed .dot { background: #F0A06A; }

/* fotky vedle rozcestníku */
.post-photos { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--loden-deep); }
.post-photo { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.post-photo img { width: 100%; height: 100%; object-fit: cover; }
.post-photo[data-photo="gallery"] { display: none; }
.post-photo figcaption {
  position: absolute; left: 0.6rem; bottom: 0.6rem;
  padding: 0.2rem 0.55rem; background: #fff; color: var(--ink);
  font-family: var(--display); font-size: 1rem; font-weight: 600; border-radius: 2px;
}

@media (min-width: 960px) {
  .post { grid-template-columns: minmax(0, 45fr) minmax(0, 55fr); min-height: clamp(600px, calc(100svh - var(--header-h)), 860px); }
  .post-panel { padding-left: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter))); padding-right: clamp(2rem, 1rem + 2vw, 3.5rem); }
  .post-photos { display: block; }
  .post-photo { position: absolute; inset: 0; aspect-ratio: auto; opacity: 0; transition: opacity 0.6s ease; }
  .post-photo.is-active { opacity: 1; }
  .post-photo[data-photo="gallery"] { display: block; }
  .post-photo img { transform: scale(1.03); transition: transform 6s ease-out; }
  .post-photo.is-active img { transform: none; }
  .post-photo figcaption { left: 1.5rem; bottom: 1.5rem; padding: 0.35rem 0.8rem; font-size: 1.2rem; }
}

/* úvodní sestavení rozcestníku: nadpis, sloupek vyroste, nahoře cedule,
   pak se ze sloupku postupně vysunou směrovky */
@media (prefers-reduced-motion: no-preference) {
  .js .post-title { animation: rise-slow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards; }
  .js .kct-pole { transform-origin: 50% 100%; animation: pole-up 1s cubic-bezier(0.65, 0, 0.35, 1) 0.45s backwards; }
  .js .kct-name { animation: sign-drop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s backwards; }
  .js .kct-arrow { animation: arrow-out 1s cubic-bezier(0.65, 0, 0.35, 1) backwards; }
  .js .kct-arrow:nth-of-type(1) { animation-delay: 1.55s; }
  .js .kct-arrow:nth-of-type(2) { animation-delay: 1.8s; }
  .js .kct-arrow:nth-of-type(3) { animation-delay: 2.05s; }
  .js .post-status { animation: fade-slow 1s ease 2.6s backwards; }
  .js .post-photos { animation: photo-in 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards; }
  .post-photo { transition-duration: 0.9s; }
  .kct-arrow { transition-duration: 0.45s; }
}
@keyframes rise-slow { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-slow { from { opacity: 0; } to { opacity: 1; } }
@keyframes pole-up { from { transform: scaleY(0); } to { transform: none; } }
@keyframes sign-drop { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes arrow-out {
  from { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); }
  to { clip-path: polygon(0 0, calc(100% - 27px) 0, 100% 50%, calc(100% - 27px) 100%, 0 100%); }
}
@keyframes photo-in { from { opacity: 0; clip-path: inset(0 0 0 100%); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* pás pod úvodem */
.intro { background: #fff; border-bottom: 1px solid var(--line); }
.intro-row { display: grid; gap: 1.75rem; padding-block: clamp(3rem, 2rem + 3.5vw, 5rem) clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.intro-lead { margin: 0; max-width: 40rem; font-size: clamp(1.12rem, 1rem + 0.5vw, 1.38rem); line-height: 1.5; }
.intro-facts { margin: 0; display: grid; gap: 0.9rem; }
.intro-facts div { display: grid; gap: 0.1rem; }
.intro-facts dt { font-size: 0.85rem; color: var(--ink-soft); }
.intro-facts dd { margin: 0; font-weight: 600; }
.intro-facts a { color: var(--ink); text-decoration-color: var(--lime); text-decoration-thickness: 2px; }
.intro-facts a:hover { color: var(--loden); }
@media (min-width: 960px) {
  .intro-row { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: center; }
  .intro-facts { padding-left: 2rem; border-left: 1px solid var(--line); }
}

/* ubytování na úvodní stránce */
.acc-grid { display: grid; gap: 2.5rem; align-items: center; }
.acc-grid > * { min-width: 0; }
@media (min-width: 960px) { .acc-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(3rem, 1rem + 4vw, 5.5rem); } }
.acc-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 0.6rem; aspect-ratio: 5 / 4; }
.acc-photos--single { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
.acc-photo { display: block; overflow: hidden; border-radius: var(--radius); background: var(--stone); min-height: 0; }
.acc-photo--main { grid-row: span 2; }
.acc-photos--single .acc-photo--main { grid-row: auto; }
.acc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.acc-photo:hover img { transform: scale(1.04); }

.mini-prices-wrap { display: grid; gap: 1.5rem 2.25rem; margin-top: 2rem; }
@media (min-width: 560px) { .mini-prices-wrap { grid-template-columns: 1fr 1fr; align-items: start; } }
.mini-prices { width: 100%; border-collapse: collapse; }
.mini-prices caption { text-align: left; font-weight: 600; font-size: 0.97rem; color: var(--ink); padding-bottom: 0.4rem; line-height: 1.3; }
.mini-prices caption span { display: block; font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); }
.mini-prices-note { margin: 1rem 0 0; font-size: 0.86rem; color: var(--ink-soft); max-width: 40rem; }
.mini-prices th, .mini-prices td { padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.mini-prices th { text-align: left; font-weight: 500; }
.mini-prices td { text-align: right; font-family: var(--display); font-size: 1.35rem; font-weight: 700; color: var(--loden); white-space: nowrap; }

/* prodejna na úvodní stránce */
.shop-grid { display: grid; gap: 2.5rem; align-items: center; }
.shop-grid > * { min-width: 0; }
@media (min-width: 960px) { .shop-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(3rem, 1rem + 4vw, 5.5rem); } }
.goods { list-style: none; margin: 1.75rem 0 1.75rem; padding: 0; display: grid; gap: 0 2rem; }
@media (min-width: 560px) { .goods { grid-template-columns: 1fr 1fr; } }
.goods li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.goods a {
  display: flex; align-items: center; gap: 0.65rem; padding: 0.55rem 0;
  color: #fff; font-weight: 500; text-decoration: none;
  transition: color 0.25s, padding-left 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.goods a::before { content: ""; width: 8px; height: 8px; flex: none; background: var(--lime); transition: transform 0.3s; }
.goods a:hover, .goods a:focus-visible { color: var(--lime); padding-left: 0.3rem; }
.goods a:hover::before { transform: rotate(45deg); }
.shop-photo { margin: 0; }
.shop-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.section--forest .check-list .icon { color: var(--lime); }
.section--forest .text-link--light { text-decoration-color: var(--lime); }

/* ---------- Hero podstránek (prodejna) a rozcestník s cedulemi ---------- */

.hero {
  position: relative; isolation: isolate;
  min-height: min(80svh, 760px);
  display: flex; align-items: flex-end;
  color: #fff; background: var(--loden-deep); overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(24, 34, 25, 0.15) 0%, rgba(24, 34, 25, 0.45) 45%, rgba(24, 34, 25, 0.92) 100%),
    linear-gradient(90deg, rgba(24, 34, 25, 0.6) 0%, rgba(24, 34, 25, 0) 65%);
}
.hero-grid {
  display: grid; gap: 2.5rem; align-items: end;
  padding-top: clamp(6rem, 4rem + 8vw, 10rem); padding-bottom: 3rem;
}
.hero h1 { color: #fff; max-width: 13em; margin-bottom: 0.35em; }
.hero-lead { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); max-width: 36rem; color: #E9EDE5; margin: 0; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 4rem; padding-bottom: 4rem; }
}

.signpost {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding-left: 16px;
}
.signpost::before {
  content: ""; position: absolute; left: 0; top: -1rem; bottom: -6rem; width: 12px;
  background: linear-gradient(90deg, #4B5A47 0%, #2A3627 55%, #1B241A 100%);
}
.signpost-place {
  position: relative; display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.55rem; padding: 0.45rem 0.9rem;
  background: #fff; color: var(--ink); font-size: 0.88rem; font-weight: 600;
}
.signpost-place img { width: 22px; height: 22px; border-radius: 4px; flex: none; }
.signpost-plate {
  position: relative;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem;
  width: min(100%, 25rem); margin-bottom: 0.55rem;
  padding: 0.85rem 2.6rem 0.85rem 1rem;
  background: #fff; color: var(--ink); text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%);
  transition: transform 0.25s ease, background-color 0.2s;
}
.signpost-plate:hover { color: var(--ink); transform: translateX(6px); }
.signpost-plate:focus-visible { outline: none; background: #F2F6DA; box-shadow: inset 0 0 0 3px var(--loden); }
.plate-text { display: flex; flex-direction: column; line-height: 1.25; }
.plate-text strong { font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.05; color: var(--loden); }
.plate-text span { font-size: 0.9rem; color: var(--ink-soft); }
.plate-arrow { color: var(--blaze); width: 1.5rem; height: 1.5rem; }

@media (prefers-reduced-motion: no-preference) {
  .js .hero .hero-copy { animation: rise-slow 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s backwards; }
  .js .hero .signpost-sign { animation: sign-drop 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s backwards; }
  .js .hero .signpost-plate { animation: plate-slide 1s cubic-bezier(0.65, 0, 0.35, 1) backwards; }
  .js .hero .signpost-plate:nth-of-type(1) { animation-delay: 0.9s; }
  .js .hero .signpost-plate:nth-of-type(2) { animation-delay: 1.15s; }
  .js .hero .signpost-plate:nth-of-type(3) { animation-delay: 1.4s; }
  .js .page-hero-content > * { animation: rise-slow 1s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
  .js .page-hero-content > :nth-child(2) { animation-delay: 0.15s; }
  .js .page-hero-content > :nth-child(3) { animation-delay: 0.3s; }
  .js .page-hero-content > :nth-child(4) { animation-delay: 0.45s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes plate-slide {
  from { opacity: 0; clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); }
  to { opacity: 1; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 50%, calc(100% - 28px) 100%, 0 100%); }
}

/* cedule P. B. MORAVA zavěšená na sloupku (stránka prodejny) */
.signpost-sign { position: relative; width: min(100%, 25rem); margin: 0 0 0.6rem; }
.signpost-sign img { display: block; width: 100%; height: auto; border: 4px solid #fff; background: #fff; }
.signpost-sign::before, .signpost-sign::after {
  content: ""; position: absolute; left: -16px; width: 18px; height: 7px;
  background: linear-gradient(180deg, #8C9488, #4B5A47);
}
.signpost-sign::before { top: 22%; }
.signpost-sign::after { bottom: 22%; }

.hero--page { min-height: min(80svh, 760px); }

@media (max-width: 959px) {
  .hero, .hero--page { min-height: 0; }
  .hero-grid { padding-top: clamp(8rem, 34vw, 13rem); padding-bottom: 2.25rem; gap: 2rem; }
  .hero-lead { font-size: 1.02rem; }
  .signpost { width: 100%; padding-left: 14px; }
  .signpost::before { width: 10px; bottom: -2.25rem; }
  .signpost-sign { width: min(100%, 23rem); }
  .signpost-sign::before, .signpost-sign::after { left: -14px; width: 16px; }
  .signpost-plate { width: min(100%, 26rem); padding: 0.75rem 2.4rem 0.75rem 0.85rem; gap: 0.75rem; }
  .plate-text strong { font-size: 1.35rem; }
  .plate-text span { font-size: 0.85rem; }
}
@media (max-width: 380px) {
  .signpost-plate .trail-mark { width: 24px; height: 17px; }
}

.signpost--inline { flex-direction: row; flex-wrap: wrap; gap: 0.75rem; padding: 0; margin-top: 2rem; }
.signpost--inline::before { content: none; }
.signpost--inline .signpost-plate { width: auto; margin: 0; border: 1px solid var(--line); }

/* stav prodejny */
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; background: #C0461B; }
.status--open .dot { background: var(--open); box-shadow: 0 0 0 3px rgba(62, 125, 46, 0.2); }
.status--closed .dot { background: #C0461B; }
.section--forest .status--open .dot, .site-footer .status--open .dot { background: var(--lime); box-shadow: 0 0 0 3px rgba(168, 196, 60, 0.25); }
.status, .status-inline { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; margin: 0; }
.status-inline { font-size: 0.97rem; }

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

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section--last { padding-bottom: var(--section-y); }
.section--sand { background: var(--stone); }
.section--forest { background: var(--loden); color: var(--on-dark); }
.section--forest h2, .section--forest h3:not(.product-name) { color: #fff; }
.section--forest .lead { color: var(--on-dark); }
.section--forest a:not(.btn) { color: #fff; }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0.75rem 2rem; margin-bottom: 2rem; }
.section-head h2 { margin-bottom: 0.25em; }
.section-head p { margin: 0; max-width: 40rem; color: var(--ink-soft); }
.section--forest .section-head p { color: var(--on-dark-soft); }

.center-row { display: flex; justify-content: center; margin-top: 2.5rem; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }

.split-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .split-grid { grid-template-columns: 1.05fr 1fr; gap: clamp(3rem, 1rem + 4vw, 5.5rem); }
  .split--reverse .split-media { order: 2; }
}
.split-media img, img.rounded { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

.price-teaser { margin: 0; color: var(--ink-soft); }
.price-teaser strong { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--loden); }
.section--forest .price-teaser strong { color: #fff; }

.check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.55rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list .icon { color: var(--blaze); width: 1.35rem; height: 1.35rem; margin-top: 0.12rem; }
@media (min-width: 600px) { .check-list--two { grid-template-columns: 1fr 1fr; gap: 0.6rem 1.75rem; } }

.tag-list { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-list li { border: 1px solid rgba(255, 255, 255, 0.32); padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); font-size: 0.95rem; font-weight: 500; color: #fff; }

.notice {
  display: flex; gap: 0.75rem; align-items: flex-start;
  background: #F2F6DA; border-left: 4px solid var(--lime);
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-block: 1.5rem;
}
.notice p { margin: 0; }
.notice .icon { color: var(--blaze-ink); margin-top: 0.2rem; }
.notice .status-inline { margin-left: 0.4rem; font-size: 0.93rem; }
.notice--small { font-size: 0.93rem; padding: 0.75rem 1rem; }

.empty-state {
  display: grid; justify-items: center; gap: 1rem; text-align: center;
  padding: 2.5rem 1.5rem; border: 1.5px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft);
}
.empty-state p { margin: 0; max-width: 34rem; }
.empty-state--dark { border-color: rgba(255, 255, 255, 0.3); color: var(--on-dark); }

/* ---------- Karty ---------- */

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 0.9rem + 1.5vw, 2rem);
}
.card-title { font-family: var(--display); font-size: 1.8rem; font-weight: 700; margin-bottom: 1rem; }

/* produkty */
.product-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) {
  .product-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .product-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .product-grid--5 { grid-template-columns: repeat(6, 1fr); }
  .product-grid--5 > :nth-child(-n+3) { grid-column: span 2; }
  .product-grid--5 > :nth-child(n+4) { grid-column: span 3; flex-direction: row; }
  .product-grid--5 > :nth-child(n+4) .product-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 100%; }
  .product-grid--1 { grid-template-columns: minmax(0, 26rem); }
}

.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
}
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--stone); overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-noimage { display: grid; place-items: center; height: 100%; color: var(--line); }
.product-noimage .icon { width: 3rem; height: 3rem; }
.badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  padding: 0.25rem 0.6rem; border-radius: 2px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink); background: var(--lime);
}
.badge--new { background: var(--loden); color: #fff; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.15rem 1.2rem 1.25rem; }
.product-name { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.05; color: var(--loden); margin-bottom: 0.45rem; }
.product-desc { color: var(--ink-soft); font-size: 0.97rem; }
.product-meta { margin-top: auto; padding-top: 0.25rem; }
.product-price { font-family: var(--display); font-size: 1.6rem; font-weight: 700; color: var(--loden); margin: 0 0 0.35rem; }
.product-price span { font-family: var(--sans); font-size: 0.87rem; font-weight: 500; color: var(--ink-soft); margin-left: 0.35rem; }
.availability { display: flex; align-items: center; gap: 0.5rem; font-size: 0.93rem; font-weight: 600; margin: 0; }
.availability--in { color: var(--open); }
.availability--in .dot { background: var(--open); }
.availability--call { color: #8A4A12; }
.availability--call .dot { background: #C77A1E; }
.product-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.product-actions .btn--primary { flex: 1 1 auto; }

/* pokoje */
.room-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.room-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.room-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.room-body { padding: 1.35rem 1.5rem 1.5rem; }
.room-body p:last-child { margin-bottom: 0; color: var(--ink-soft); }
.room-capacity { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blaze-ink); font-weight: 600; font-size: 0.95rem; margin-bottom: 0.4rem; }
.room-body h3 { font-family: var(--display); font-size: 1.8rem; font-weight: 700; line-height: 1.05; }

/* ceník */
.price-grid { display: grid; gap: 1.25rem; }
@media (min-width: 820px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.4vw, 2rem); }
.price-card h3 { font-family: var(--display); font-size: 1.8rem; font-weight: 700; line-height: 1.05; margin-bottom: 0.25rem; }
.price-note { color: var(--ink-soft); font-size: 0.97rem; }
.price-card--accent { background: var(--loden); border-color: var(--loden); color: var(--on-dark); }
.price-card--accent h3 { color: #fff; }
.price-card--accent .price-note { color: var(--on-dark-soft); }
.price-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.price-table th, .price-table td { padding: 0.75rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); padding-top: 0; }
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody th { font-weight: 500; }
.price-table td { font-family: var(--display); font-size: 1.55rem; font-weight: 700; color: var(--loden); white-space: nowrap; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
.price-card--accent .price-table th, .price-card--accent .price-table td { border-color: rgba(255, 255, 255, 0.16); }
.price-card--accent .price-table thead th { color: var(--on-dark-soft); }
.price-card--accent .price-table td { color: #fff; }

.fee-note { display: flex; gap: 0.6rem; align-items: flex-start; margin: 1.5rem 0 0; color: var(--ink-soft); font-size: 0.98rem; max-width: 50rem; }
.fee-note .icon { color: var(--blaze); margin-top: 0.2rem; }

/* dvousloupec podstránek */
.intro-grid { display: grid; gap: 2.5rem; align-items: start; }
.intro-grid > *, .contact-grid > *, .contact-page-grid > *, .booking-grid > *, .split-grid > * { min-width: 0; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: 1.4fr 1fr; gap: 4.5rem; } }
.amenities-card .check-list { margin-top: 0; }

.prose { max-width: 42rem; }
.prose h2 { margin-top: 0; }
.prose h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 700; line-height: 1.1; margin-top: 1.6em; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose li::marker { color: var(--blaze); }
.prose--legal { max-width: 48rem; }
.prose--legal h2 { font-size: 2rem; margin-top: 2.2rem; }
.prose--small { font-size: 0.96rem; margin-top: 1rem; color: var(--ink-soft); }

/* prodejna */
.category-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); margin-top: 0.5rem; }
.category-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.category-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.category-body { padding: 1.25rem 1.35rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.category-body h3 { display: flex; align-items: center; gap: 0.7rem; font-size: 1.12rem; margin-bottom: 0.5rem; }
.stag-mark { width: 30px; height: 30px; border-radius: 6px; flex: none; }
.category-body p { color: var(--ink-soft); font-size: 0.98rem; }
.category-body .text-link { margin-top: auto; align-self: flex-start; }

.visit-card .status { margin-bottom: 1rem; }
.visit-address { display: flex; gap: 0.5rem; align-items: flex-start; margin: 1.25rem 0; }
.visit-address .icon { color: var(--blaze); margin-top: 0.2rem; }

.brands { display: grid; gap: 1.25rem; }
.brands-title { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin: 0; }
.brand-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 150px), 1fr)); }
.brand-tile {
  display: grid; place-items: center; height: 84px; padding: 0.75rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-tile a { display: grid; place-items: center; width: 100%; height: 100%; }
.brand-tile img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.brand-tile--text span { font-weight: 600; letter-spacing: 0.02em; color: var(--ink-soft); }
.section--brands { background: #fff; border-block: 1px solid var(--line); }
@media (min-width: 1000px) { .brand-list { grid-template-columns: repeat(8, 1fr); } }

/* ---------- Záhlaví podstránek ---------- */

.page-hero { padding-block: clamp(2.75rem, 2rem + 4vw, 5rem) clamp(2.25rem, 1.5rem + 3vw, 3.75rem); background: var(--loden); color: #fff; }
.page-hero h1 { max-width: 16em; color: #fff; }
.page-hero .lead { margin-bottom: 0; color: var(--on-dark); }
.page-hero .page-hero-logo { box-shadow: 0 0 0 2px #fff; }
.page-hero-logo { display: block; width: 56px; height: auto; border-radius: 10px; margin-bottom: 1.1rem; }
.page-hero--image {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(58svh, 560px); display: flex; align-items: flex-end;
  color: #fff; border: 0; background: var(--loden-deep);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero--image::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(24, 34, 25, 0.2) 0%, rgba(24, 34, 25, 0.88) 100%),
    linear-gradient(90deg, rgba(24, 34, 25, 0.55), rgba(24, 34, 25, 0) 70%);
}
.page-hero--image h1 { color: #fff; }
.page-hero--image .lead { color: #E9EDE5; }
.page-hero--image .page-hero-logo { box-shadow: 0 0 0 2px #fff, 0 8px 20px rgba(5, 15, 10, 0.4); }
.page-hero-content { width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Galerie ---------- */

.gallery { list-style: none; margin: 0; padding: 0; }
.gallery-link { display: block; overflow: hidden; border-radius: var(--radius); background: var(--stone); position: relative; }
.gallery-link img { width: 100%; transition: transform 0.6s ease, opacity 0.3s; }
.gallery-link::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 0 var(--blaze); transition: box-shadow 0.2s;
}
.gallery-link:hover img { transform: scale(1.04); }
.gallery-link:hover::after, .gallery-link:focus-visible::after { box-shadow: inset 0 0 0 4px var(--blaze); }
.gallery-caption { font-size: 0.92rem; color: var(--ink-soft); margin: 0.5rem 0.1rem 0; }
.gallery-item[hidden] { display: none; }

/* justované řádky: fotky jdou po řádcích a zachovávají svůj poměr stran */
.gallery--masonry { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.gallery--masonry::after { content: ""; flex-grow: 999999; }
.gallery--masonry .gallery-item { flex: var(--ar) 1 calc(var(--ar) * 140px); min-width: 0; max-width: calc(var(--ar) * 320px); }
.gallery--masonry .gallery-item[hidden] { display: none; }
.gallery--masonry .gallery-link img { width: 100%; height: auto; aspect-ratio: var(--ar); object-fit: cover; }
@media (min-width: 700px) { .gallery--masonry { gap: 1rem; } .gallery--masonry .gallery-item { flex-basis: calc(var(--ar) * 190px); max-width: calc(var(--ar) * 340px); } }
@media (min-width: 1100px) { .gallery--masonry .gallery-item { flex-basis: calc(var(--ar) * 220px); } }

.gallery--row { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.gallery--row img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }

/* mozaika: jedna velká fotka a menší kolem ní */
.gallery--mosaic { display: grid; gap: 0.6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw; }
.gallery--mosaic .gallery-item { min-width: 0; min-height: 0; }
.gallery--mosaic .gallery-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery--mosaic .gallery-link { height: 100%; }
.gallery--mosaic .gallery-link img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 800px) {
  .gallery--mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 15vw, 240px); gap: 0.75rem; }
}

.filter-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.filter-tabs a {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 46px;
  padding: 0.5rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); text-decoration: none; font-weight: 600;
}
.filter-tabs a span { font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.filter-tabs a:hover { border-color: var(--loden); color: var(--loden); }
.filter-tabs a[aria-current="true"] { background: var(--loden); border-color: var(--loden); color: #fff; }
.filter-tabs a[aria-current="true"] span { color: var(--on-dark-soft); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid; place-items: center;
  background: rgba(12, 18, 12, 0.95);
  opacity: 0; transition: opacity 0.25s ease;
  touch-action: pan-y;
}
.lightbox[hidden] { display: none; }
.lightbox.is-visible { opacity: 1; }
.lb-figure { margin: 0; max-width: min(92vw, 1600px); display: grid; gap: 0.75rem; }
.lb-img {
  max-width: 92vw; max-height: calc(100svh - 9rem); width: auto; height: auto; margin-inline: auto;
  border-radius: 2px; object-fit: contain; transition: opacity 0.25s ease;
}
.lb-img.is-loading { opacity: 0.25; }
.lb-caption { display: flex; justify-content: space-between; gap: 1rem; color: #E9EDE5; font-size: 0.97rem; padding-inline: 0.25rem; }
.lb-count { color: #A9B1A6; white-space: nowrap; }
.lb-btn {
  position: absolute; display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, 0.12); color: #fff;
  transition: background-color 0.2s;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb-btn .icon { width: 1.6rem; height: 1.6rem; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}

/* ---------- Formuláře ---------- */

.form-fields { display: grid; gap: 1.05rem; }
.form-fields[hidden] { display: none; }
.form-again { margin-top: 0.85rem; }
.field label { display: block; font-weight: 600; font-size: 0.97rem; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.7rem 0.9rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid #B9BFB0; border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--loden); box-shadow: 0 0 0 3px rgba(177, 200, 0, 0.45);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.92rem; font-weight: 600; margin: 0.35rem 0 0; }
.field-row { display: grid; gap: 1.05rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-hint { font-size: 0.9rem; color: var(--ink-soft); margin: -0.55rem 0 0; }
.form-privacy { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }

.alert { display: flex; gap: 0.75rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; }
.alert p { margin: 0; }
.alert .icon { margin-top: 0.15rem; }
.alert--success { background: #E4EEDD; color: #24461B; border: 1px solid #B9D2AC; }
.alert--error { background: #F8E3DC; color: #7A2616; border: 1px solid #E8B6A7; }
.alert:focus { outline: none; }

.booking-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .booking-grid { grid-template-columns: 1fr 1.25fr; gap: 4.5rem; } }
.phone-big {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0.5rem 0 1rem;
  font-family: var(--display); font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); font-weight: 700; line-height: 1; text-decoration: none;
}
.phone-big .icon { width: 1.6rem; height: 1.6rem; color: var(--blaze); }

/* ---------- Kontakt ---------- */

.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4.5rem; align-items: start; } }
.contact-page-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 960px) { .contact-page-grid { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.contact-side { display: grid; gap: 1.25rem; }

.building { margin: 0; }
.building img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 20% 45%; border-radius: var(--radius); }
.building figcaption { margin-top: 0.5rem; font-size: 0.93rem; color: var(--ink-soft); }

.contact-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.contact-list li { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.contact-list li:first-child { padding-top: 0; }
.contact-list .icon { color: var(--blaze); margin-top: 0.35rem; }
.contact-label { display: block; font-size: 0.85rem; color: var(--ink-soft); }
.contact-list a { font-weight: 600; font-size: 1.12rem; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-list address { font-style: normal; font-weight: 500; }
.hours-title { font-family: var(--display); font-size: 1.6rem; font-weight: 700; line-height: 1.1; margin: 2rem 0 0.6rem; }
.company { color: var(--ink-soft); }

.hours { width: 100%; max-width: 27rem; border-collapse: collapse; margin-block: 0.75rem; }
.hours th, .hours td { padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; padding-left: 1rem; }
@media (min-width: 420px) { .hours td { white-space: nowrap; } }
.hours .is-today th, .hours .is-today td { font-weight: 600; color: var(--loden); }
.hours .is-today th::after {
  content: "dnes"; margin-left: 0.5rem; padding: 0.05rem 0.4rem; border-radius: 2px;
  font-size: 0.78rem; font-weight: 600; background: var(--loden); color: #fff; vertical-align: 0.1em;
}
.hours--compact { font-size: 0.95rem; margin: 0; }
.hours--compact th, .hours--compact td { border-color: rgba(255, 255, 255, 0.12); padding: 0.3rem 0; }
.site-footer .hours .is-today th, .site-footer .hours .is-today td { color: #fff; }

.map-frame { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--stone); border: 1px solid var(--line); }
@media (min-width: 700px) { .map-frame { aspect-ratio: 16 / 9; } }
@media (min-width: 960px) { .contact-page-grid ~ * .map-frame, .section--last .map-frame { aspect-ratio: 21 / 8; } }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.6rem; padding: 1.5rem; text-align: center; color: var(--ink-soft);
  background:
    repeating-radial-gradient(circle at 70% 40%, transparent 0 22px, rgba(43, 58, 41, 0.07) 22px 23px),
    var(--stone);
}
.map-consent p { margin: 0; max-width: 28rem; font-size: 0.95rem; }
.map-consent .icon { color: var(--loden); }
.map-logo { width: 52px; height: auto; border-radius: 9px; }
.map-address { font-weight: 600; color: var(--ink); font-size: 1.05rem !important; }
.map-links { font-size: 0.93rem; color: var(--ink-soft); margin: 0.75rem 0 0; }

/* tabulky v právních textech */
.table-wrap { overflow-x: auto; margin-block: 1rem 1.5rem; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; min-width: 34rem; }
.data-table th, .data-table td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--stone); font-weight: 600; }

.not-found { padding-block: clamp(4rem, 3rem + 6vw, 8rem); }
.notfound-logo { display: block; width: 96px; height: auto; border-radius: 16px; margin-bottom: 1.75rem; }

/* ---------- Patička ---------- */

.site-footer { background: var(--loden-deep); color: var(--on-dark); padding-top: clamp(3rem, 2rem + 3vw, 4.5rem); font-size: 0.98rem; }
.site-footer .brand-logo { width: 64px; height: 64px; border-radius: 11px; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.1fr 1fr 1.35fr 0.8fr; gap: 3rem; } }
.footer-title { font-family: var(--display); font-size: 1.4rem; font-weight: 700; color: #fff; margin-bottom: 0.8rem; }
.footer-address { margin-top: 1.25rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.55rem; }
.footer-list a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-list .icon { color: var(--lime); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem;
  margin-top: 3rem; padding-block: 1.5rem 2rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom .sep { margin-inline: 0.4rem; opacity: 0.5; }
.footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.footer-legal a { color: inherit; }
.footer-credit { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--on-dark-soft); }
.footer-credit a { color: #fff; text-decoration-color: var(--lime); }
.footer-credit a:hover { color: var(--lime); }
.footer-legal a:hover, .footer-legal .link-button:hover { color: #fff; }

/* ---------- Dialogy ---------- */

.modal {
  border: 0; padding: 0; width: calc(100% - 2 * var(--gutter)); max-width: 36rem;
  border-radius: var(--radius); background: #fff; color: var(--ink);
  box-shadow: 0 30px 80px rgba(10, 16, 10, 0.4);
  max-height: calc(100svh - 2rem);
}
.modal::backdrop { background: rgba(24, 34, 25, 0.65); }
.modal-inner { position: relative; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 5px solid var(--loden); }
.modal-close {
  position: absolute; top: 0.75rem; right: 0.75rem; width: 44px; height: 44px;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.modal-close:hover { background: var(--stone); }
.modal-logo { display: block; width: 40px; height: auto; border-radius: 7px; margin-bottom: 0.6rem; }
.modal-title { font-family: var(--display); font-size: 2rem; font-weight: 700; line-height: 1.05; margin-right: 2.5rem; margin-bottom: 0.3rem; }
.modal-product { font-weight: 600; color: var(--blaze-ink); margin-bottom: 0.5rem; }
.modal-product:empty { display: none; }
.modal-text { color: var(--ink-soft); font-size: 0.98rem; }
.form-status { margin-bottom: 1rem; }
.form-status[hidden] { display: none; }
.form-status.alert--success { flex-direction: column; align-items: flex-start; gap: 0; font-size: 1.05rem; font-weight: 500; padding: 1.1rem 1.25rem; }
.form-status:focus { outline: none; }

@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: rise 0.3s ease both; }
}

/* ---------- Cookies ---------- */

.cookie-bar {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 90;
  max-width: 1000px; margin-inline: auto;
  background: var(--loden-deep); color: var(--on-dark); border-radius: var(--radius);
  border-left: 5px solid var(--lime);
  box-shadow: 0 18px 50px rgba(10, 16, 10, 0.35);
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.1rem 1.3rem; }
.cookie-bar-inner > div:first-child { flex: 1 1 26rem; }
.cookie-bar p { margin: 0; font-size: 0.96rem; }
.cookie-bar a { color: #fff; }
.cookie-title { font-family: var(--sans); font-size: 1.04rem; font-weight: 600; color: #fff; margin: 0 0 0.25rem; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.consent-list { margin: 0.5rem 0 1.5rem; }
.consent-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.consent-item h3 { font-size: 1rem; margin-bottom: 0.2rem; color: var(--ink); }
.consent-item p { margin: 0; font-size: 0.93rem; color: var(--ink-soft); }
.switch-static { font-size: 0.87rem; color: var(--ink-soft); white-space: nowrap; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; cursor: pointer;
  width: 48px; height: 28px; margin: 0.2rem 0 0; border-radius: 999px; background: #B9BFB0; transition: background-color 0.2s;
}
.switch::before {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.2s;
}
.switch:checked { background: var(--loden); }
.switch:checked::before { transform: translateX(20px); }

@media (max-width: 600px) {
  .cookie-bar { left: 8px; right: 8px; bottom: 8px; }
  .cookie-bar-inner { padding: 0.85rem 0.9rem; gap: 0.7rem; }
  .cookie-bar p { font-size: 0.88rem; line-height: 1.45; }
  .cookie-title { font-size: 0.97rem; }
  .cookie-actions { width: 100%; flex-wrap: nowrap; gap: 0.4rem; }
  .cookie-actions .btn { flex: 1 1 0; min-height: 42px; padding: 0.45rem 0.4rem; font-size: 0.9rem; }
}

/* ---------- Jemné odhalení při scrollování (jen u fotek) ---------- */

/* prvky se při posouvání stránky pomalu vysunou, sousední postupně po sobě */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  .js .rv {
    opacity: 0; transform: translateY(34px);
    transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--d, 0) * 120ms);
  }
  .js .rv--left { transform: translateX(-46px); }
  .js .rv--right { transform: translateX(46px); }
  /* fotky se vysunou jako opona zleva a uvnitř se jemně usadí */
  .js .rv--photo { opacity: 1; transform: none; }
  .js .rv--photo img {
    clip-path: inset(0 100% 0 0); transform: scale(1.18);
    transition: clip-path 1.4s cubic-bezier(0.65, 0, 0.35, 1), transform 1.9s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: calc(var(--d, 0) * 140ms);
  }
  .js .rv.is-in { opacity: 1; transform: none; }
  .js .rv--photo.is-in img { clip-path: inset(0 0 0 0); transform: none; }
  /* po dokončení vrátit plynulé hover efekty */
  .js .rv.is-done { transition-delay: 0s; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Tisk ---------- */

@media print {
  .site-header, .site-footer, .cookie-bar, .nav-toggle, .hero-media, .page-hero-media, .map-box, .form-card, .product-actions, .post-photos, .kct-pole { display: none !important; }
  body { background: #fff; }
  .post, .page-hero { background: #fff !important; color: #000 !important; }
  .post h1, .page-hero h1 { color: #000 !important; }
  .hero, .page-hero--image, .section--forest, .price-card--accent { color: #000; background: #fff; min-height: 0; }
  .hero h1, .page-hero--image h1, .section--forest h2, .price-card--accent td { color: #000; }
}

/* ---------- Formulář „Máte dotaz?“ ---------- */

.ask-grid { display: grid; gap: 2.5rem; align-items: start; }
.ask-grid > * { min-width: 0; }
@media (min-width: 960px) { .ask-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(3rem, 1rem + 4vw, 5.5rem); } }
.ask-copy { padding-top: 0.5rem; }
.ask-phone { margin: 1.75rem 0 0; font-size: 1.1rem; color: var(--on-dark); }
.section--forest .ask-phone a { font-family: var(--display); font-size: 1.6rem; font-weight: 700; white-space: nowrap; text-decoration-color: var(--lime); }
.ask-card { color: var(--ink); }
.ask-card h2, .ask-card h3 { color: var(--loden); }
.section--forest .ask-card a { color: var(--loden); }
.anchor { position: relative; top: calc(-1 * var(--header-h) - 16px); }

/* přepínač tématu */
.topic-switch { margin: 0; padding: 0; border: 0; min-width: 0; }
.topic-switch legend { padding: 0; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.97rem; }
.topic-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.topic-switch legend { grid-column: 1 / -1; }
.topic-option { position: relative; display: block; cursor: pointer; }
.topic-option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.topic-option span {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 56px; padding: 0.6rem 0.8rem; text-align: center;
  border: 2px solid var(--loden); background: #fff; color: var(--loden);
  font-weight: 600; line-height: 1.2;
  transition: background-color 0.35s ease, color 0.35s ease;
}
.topic-option:first-of-type span { border-radius: var(--radius) 0 0 var(--radius); }
.topic-option:last-of-type span { border-radius: 0 var(--radius) var(--radius) 0; border-left: 0; }
.topic-option:hover span { background: #F1F6CF; }
.topic-option input:checked + span { background: var(--loden); color: #fff; }
.topic-option input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.topic-icon { width: 26px; height: 26px; border-radius: 5px; flex: none; }
.topic-icon--bed { width: 1.4rem; height: 1.4rem; }
@media (max-width: 420px) {
  .topic-option span { flex-direction: column; gap: 0.3rem; font-size: 0.95rem; }
}

/* pole podle zvoleného tématu */
[data-topic="shop"] .topic-fields[data-for="accommodation"],
[data-topic="accommodation"] .topic-fields[data-for="shop"] { display: none; }
.field-row--3 { display: grid; gap: 1.05rem; }
@media (min-width: 560px) { .field-row--3 { grid-template-columns: 1fr 1fr 0.7fr; } }
@media (prefers-reduced-motion: no-preference) {
  .topic-fields.is-entering { animation: fields-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes fields-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- Testovací režim ---------- */

.page-locked { background: var(--loden); }
.locked { min-height: 100svh; display: grid; place-items: center; padding: 2rem var(--gutter); }
.locked-card { width: 100%; max-width: 26rem; background: #fff; border-radius: var(--radius); padding: clamp(1.75rem, 1rem + 3vw, 2.5rem); text-align: center; }
.locked-logo { width: 88px; height: 88px; border-radius: 16px; margin: 0 auto 1rem; }
.locked h1 { font-size: 2.6rem; margin-bottom: 0.3rem; }
.locked-lead { color: var(--ink-soft); margin-bottom: 1.75rem; }
.locked-form { display: grid; gap: 1rem; text-align: left; }
.locked-contact { margin: 1.5rem 0 0; font-size: 0.93rem; color: var(--ink-soft); }
.test-bar { background: var(--lime); color: var(--ink); font-size: 0.9rem; font-weight: 600; text-align: center; padding: 0.4rem var(--gutter); }
.test-bar a { color: var(--ink); }

/* sortiment: odkaz z úvodní stránky zvýrazní konkrétní kategorii */
.category-card { scroll-margin-top: calc(var(--header-h) + 24px); }
.category-card:target { border-color: var(--loden); box-shadow: 0 0 0 3px var(--lime); }
@media (prefers-reduced-motion: no-preference) {
  .category-card:target { animation: target-pulse 1.6s ease 0.3s 2; }
  /* karty sortimentu se ukážou rychleji než zbytek obsahu */
  .js .sortiment .rv { transition-duration: 0.7s, 0.8s; transition-delay: calc(var(--d, 0) * 45ms); }
}
@keyframes target-pulse { 50% { box-shadow: 0 0 0 7px rgba(177, 200, 0, 0.45); } }

/* ---------- Telefon: nic nesmí přečnívat do strany (stránka pak „lítá“) ---------- */

html, body { overflow-x: hidden; }
@supports (overflow-x: clip) {
  /* clip na rozdíl od hidden nevytváří posuvník a nerozbije lepicí hlavičku */
  html, body { overflow-x: clip; }
}
.cookie-bar { overflow: hidden; }
.cookie-bar-inner > div:first-child { min-width: 0; }
@media (max-width: 600px) {
  .cookie-bar-inner > div:first-child { flex-basis: 100%; }
  .cookie-actions .btn { min-width: 0; padding-inline: 0.3rem; font-size: 0.86rem; white-space: nowrap; }
}
@media (max-width: 360px) {
  .cookie-actions { flex-wrap: wrap; }
  .cookie-actions .btn { flex: 1 1 45%; }
}
/* na telefonu se obsah vysouvá jen zespodu a kratší vzdálenost – nic nejezdí do stran */
@media (max-width: 699px) and (prefers-reduced-motion: no-preference) {
  .js .rv, .js .rv--left, .js .rv--right { transform: translateY(16px); transition-duration: 0.7s, 0.8s; }
  .js .rv.is-in { transform: none; }
  .js .rv--photo { transform: none; }
  .js .rv--photo img { transform: scale(1.06); }
  .js .rv--photo.is-in img { transform: none; }
  .kct-arrow:hover, .kct-arrow.is-current { transform: none; }
}
