/* ==========================================================================
   Chalupa Peřina — jediný stylesheet
   1. Tokeny  2. Reset  3. Typografie  4. Layout  5. Hlavička a navigace
   6. Hero    7. Sekce   8. Komponenty 9. Stránkové bloky 10. Patička
   11. Lightbox 12. Pohyb a tisk
   ========================================================================== */

/* 1. Tokeny ------------------------------------------------------------- */
:root {
  /* barvy */
  --paper: #f7f4ee;
  --paper-2: #fffdf9;
  --paper-3: #efe9df;
  --ink: #22303a;
  --ink-soft: #55636d;
  --blue: #255873;
  --blue-deep: #1b4a63;
  --blue-pale: #dbe7ee;
  --blue-tint: #eef3f6;
  --amber: #c07830;
  --amber-ink: #8a5a1f;
  --amber-pale: #f4e6d2;
  --line: rgba(34, 48, 58, .13);
  --line-strong: rgba(34, 48, 58, .24);

  /* typografie */
  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 68ch;
  --measure-tight: 56ch;

  /* prostor */
  --gutter: clamp(1.15rem, 4vw, 2.5rem);
  --container: 1180px;
  --container-text: 740px;
  --section-y: clamp(3.5rem, 7vw, 6.5rem);
  --header-h: 76px;

  /* tvar */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(34, 48, 58, .06), 0 14px 30px -22px rgba(34, 48, 58, .55);
  --shadow-lift: 0 2px 4px rgba(34, 48, 58, .07), 0 22px 42px -26px rgba(34, 48, 58, .6);

  /* motiv peřiny — pás pruhované látky (bílé proužky na barevném podkladu) */
  --quilt-stripes: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='20'%3E%3Crect x='0' y='0' width='6' height='20' fill='%23ffffff' fill-opacity='0.82'/%3E%3C/svg%3E");
  --quilt-band: #b7cfe0;
  --quilt-band-amber: #dfae7a;
}

/* 2. Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

button,
input,
textarea,
select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: .7rem 1.25rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  font-weight: 600;
  transition: transform .18s ease;
}

.skip-link:focus { transform: translate(-50%, 0); }

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

/* 3. Typografie --------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.16;
  margin: 0 0 .6em;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3.1vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.16rem, 1.08rem + .35vw, 1.35rem); line-height: 1.3; }
h4 { font-size: 1.03rem; font-family: var(--font-text); font-weight: 700; line-height: 1.4; }

p { margin: 0 0 1.1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-deep); }

strong { font-weight: 700; }

.eyebrow {
  display: block;
  font-family: var(--font-text);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-ink);
  margin: 0 0 .9rem;
}

.lead {
  font-size: clamp(1.09rem, 1.02rem + .35vw, 1.28rem);
  line-height: 1.6;
  color: var(--ink);
  max-width: var(--measure-tight);
}

.note {
  font-size: .94rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

.stay-notice {
  max-width: var(--measure);
  margin: .8rem 0 1.4rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--amber);
  border-left-width: 4px;
  border-radius: var(--r-sm);
  background: var(--amber-pale);
  color: var(--ink);
  font-size: .98rem;
  line-height: 1.5;
}

.stay-notice p { margin: 0; max-width: none; }
.stay-notice strong { display: block; font-size: 1.06rem; }
.pagehead .stay-notice { margin: 1rem 0 0; }
.stay-notice--hero { max-width: 46ch; margin: 0 0 1.5rem; }

/* 4. Layout ------------------------------------------------------------- */
.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

.container--text { width: min(100% - (var(--gutter) * 2), var(--container-text)); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.4rem, 5vw, 4rem); }

.section-head { margin-bottom: clamp(1.8rem, 3.5vw, 3rem); }
.section-head > :last-child { margin-bottom: 0; }

/* pruh peřiny — nosný motiv značky */
.quilt-rule {
  width: 117px;
  height: 18px;
  border-radius: 9px;
  background-color: var(--quilt-band);
  background-image: var(--quilt-stripes);
  background-size: 13px 18px;
  background-repeat: repeat-x;
  margin: 0 0 1.4rem;
}

.quilt-rule--amber { background-color: var(--quilt-band-amber); }

/* 5. Hlavička a navigace ------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  isolation: isolate;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header__inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* průhledná hlavička nad hero, plná po odscrollování */
body.has-hero .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

body.has-hero .site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -44px;
  z-index: -1; /* clona patří POD text hlavičky, ne přes něj */
  background: linear-gradient(to bottom,
    rgba(12, 21, 27, .74) 0%,
    rgba(12, 21, 27, .62) 58%,
    rgba(12, 21, 27, .5) 76%,
    rgba(12, 21, 27, 0) 100%);
  pointer-events: none;
  transition: opacity .25s ease;
}

body.has-hero .site-header .brand__name,
body.has-hero .site-header .brand__place,
body.has-hero .site-header .nav__link,
body.has-hero .site-header .nav-toggle { color: #fff; }

body.has-hero .site-header .brand__mark { color: #fff; }

body.has-hero .site-header .header-phone {
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
}

body.has-hero .site-header .header-phone:hover { background: rgba(255, 255, 255, .16); }

body.has-hero.is-scrolled .site-header {
  background: var(--paper);
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -20px rgba(34, 48, 58, .8);
}

body.has-hero.is-scrolled .site-header::before { opacity: 0; }

body.has-hero.is-scrolled .site-header .brand__name,
body.has-hero.is-scrolled .site-header .nav__link,
body.has-hero.is-scrolled .site-header .nav-toggle,
body.has-hero.is-scrolled .site-header .brand__mark { color: var(--ink); }

body.has-hero.is-scrolled .site-header .brand__place { color: var(--ink-soft); }

body.has-hero.is-scrolled .site-header .header-phone {
  color: var(--blue);
  border-color: var(--line-strong);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
  padding: .25rem;
  margin-left: -.25rem;
  min-height: 44px;
  min-width: 0; /* při extrémním zoomu se smí zúžit místo přetečení */
}

.brand__mark { width: 46px; height: 35px; flex: none; color: var(--ink); }

.brand__logo { width: 152px; height: auto; flex: none; }
.footer-logo { width: 200px; height: auto; }

.brand__text { display: grid; min-width: 0; }

.brand__name {
  font-family: var(--font-display);
  font-size: 1.19rem;
  line-height: 1.1;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}

.brand__place {
  font-size: .705rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.4;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .site-header .brand__place { display: none; }
  .brand__mark { width: 40px; height: 31px; }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.2vw, 1.1rem);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: .55rem .35rem;
  color: var(--ink);
  text-decoration: none;
  font-size: .955rem;
  position: relative;
}

.nav__link:hover { color: var(--blue); }

.nav__link[aria-current="page"] { font-weight: 700; }

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .35rem;
  right: .35rem;
  bottom: .16rem;
  height: 3px;
  border-radius: 2px;
  background: var(--blue);
}



.header-phone {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: .93rem;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.header-phone:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.header-phone svg { width: 16px; height: 16px; flex: none; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: .55rem .8rem;
  min-height: 44px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(34, 48, 58, .9);
    padding: .5rem var(--gutter) 1.4rem;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }

  .nav.is-open { display: block; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }

  .nav__link {
    padding: .95rem .25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    color: var(--ink);
  }

  .nav__link[aria-current="page"]::after {
    left: .25rem;
    right: auto;
    width: 40px;
    bottom: .55rem;
    background: var(--blue);
  }

  body.has-hero .site-header .nav__link { color: var(--ink); }

  .nav__phone {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.1rem;
    padding: .85rem 1rem;
    background: var(--blue);
    color: #fff;
    border-radius: var(--r-sm);
    text-decoration: none;
    font-weight: 600;
    justify-content: center;
  }

  .nav__phone svg { width: 18px; height: 18px; }
  .header-phone { display: none; }
  body.nav-open { overflow: hidden; }
}

@media (min-width: 1041px) {
  .nav__phone { display: none; }

  body.has-hero:not(.is-scrolled) .nav__link[aria-current="page"]::after { background: #fff; }
}

/* 6. Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 62svh;
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: clamp(4.5rem, 9vw, 8rem);
  color: #fff;
  overflow: hidden;
}

.hero--tall { min-height: min(88svh, 760px); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(14, 24, 31, .78) 0%, rgba(14, 24, 31, .58) 34%, rgba(14, 24, 31, .12) 66%, rgba(14, 24, 31, 0) 88%),
    linear-gradient(to top, rgba(14, 24, 31, .72) 0%, rgba(14, 24, 31, .3) 42%, rgba(14, 24, 31, .1) 70%, rgba(14, 24, 31, .34) 100%);
}

@media (max-width: 860px) {
  .hero::after {
    background: linear-gradient(to top,
      rgba(12, 21, 27, .82) 0%,
      rgba(12, 21, 27, .58) 34%,
      rgba(12, 21, 27, .64) 62%,
      rgba(12, 21, 27, .78) 100%);
  }
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  max-width: 15ch;
  text-shadow: 0 2px 18px rgba(10, 18, 24, .45);
  margin-bottom: .45em;
}

.hero__lead {
  max-width: 46ch;
  font-size: clamp(1.06rem, 1rem + .4vw, 1.28rem);
  color: rgba(255, 255, 255, .94);
  text-shadow: 0 1px 12px rgba(10, 18, 24, .5);
  margin-bottom: 1.8rem;
}

/* světlejší teplý odstín — nad fotografií drží 4,5:1 i v nejsvětlejším místě */
.hero .eyebrow { color: #f7e2c4; }

/* přehyb peřiny — spodní hrana hero, právě jednou na stránku */
.hero__fold {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  width: 100%;
  height: clamp(38px, 5vw, 72px);
  color: var(--paper);
  pointer-events: none;
}

.hero__fold svg { width: 100%; height: 100%; display: block; }

/* varianta pro vnitřní stránky: kompaktní pás */
.pagehead {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2.6rem, 6vw, 4.4rem));
  padding-bottom: clamp(2rem, 4.5vw, 3.4rem);
  background: var(--blue-tint);
  border-bottom: 1px solid var(--line);
}

.pagehead__inner { display: grid; gap: .35rem; }
.pagehead h1 { margin-bottom: .25em; }
.pagehead .lead { color: var(--ink-soft); }

.breadcrumb {
  font-size: .87rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .55rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li + li::before { content: "›"; margin-right: .55rem; color: var(--line-strong); }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--blue); }

/* 7. Tlačítka a akce ---------------------------------------------------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.4rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  min-width: 0;
  overflow-wrap: anywhere; /* dlouhé české popisky nesmí přetéct při silném zoomu */
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }

.btn--on-dark {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border-color: rgba(255, 255, 255, .6);
}

.btn--on-dark:hover { background: #fff; color: var(--ink); transform: translateY(-2px); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* 8. Komponenty --------------------------------------------------------- */

/* pás faktů */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}

.facts__item {
  padding: 1.35rem 1.25rem;
  display: grid;
  gap: .3rem;
  align-content: start;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}

.facts__value {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.25rem + .9vw, 2rem);
  line-height: 1.05;
  color: var(--blue);
}

.facts__label {
  font-size: .87rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

/* střídavý text + obrázek */
.split {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.6rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-media { grid-template-columns: 1fr 1.22fr; }
  .split--wide-text { grid-template-columns: 1.22fr 1fr; }
  .split--reverse .split__media { order: -1; }
}

.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper-3);
}

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

@media (max-width: 859px) {
  .split__media img { height: auto; }
}

.split__body > :last-child { margin-bottom: 0; }

/* dvojice obrázků na výšku */
.media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 1.6vw, 1.1rem);
}

.media-pair img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-md);
}

.media-pair figure { margin: 0; }
.media-pair img.pos-left { object-position: 24% center; }

.media-pair figcaption {
  font-size: .84rem;
  color: var(--ink-soft);
  margin-top: .5rem;
}

/* seznam s ikonami */
.icon-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.icon-list li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: .8rem;
  align-items: start;
  line-height: 1.55;
}

.icon-list svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
  margin-top: .15rem;
}

/* jednoduchý dvousloupcový výčet vybavení */
.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .55rem 1.6rem;
}

.tag-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: .6rem;
  align-items: baseline;
  font-size: .98rem;
  padding-block: .18rem;
}

.tag-list li::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--amber);
  opacity: .8;
  transform: translateY(-1px);
}

/* karta s rámečkem (používá se střídmě) */
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.3rem, 2.6vw, 1.9rem);
}

.card > :last-child { margin-bottom: 0; }

.card--accent { border-left: 4px solid var(--amber); }

.deal {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.3rem, 3vw, 1.9rem) clamp(1.4rem, 3vw, 2.1rem);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-md);
  max-width: var(--measure);
}

.deal p:first-child {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem);
  line-height: 1.3;
  margin-bottom: .5rem;
  color: var(--ink);
}

/* tmavá sekce — jediná na webu, kvůli nočním fotkám sudu */
.section--dark {
  background: var(--ink);
  color: var(--paper);
  position: relative;
}

.section--dark h2,
.section--dark h3 { color: #fff; }

.section--dark p { color: rgba(247, 244, 238, .88); }
.section--dark .eyebrow { color: #e8b877; }
.section--dark a:not(.btn) { color: #e8b877; }
.section--dark .note { color: rgba(247, 244, 238, .75); }

.price-inline {
  display: inline-flex;
  align-items: baseline;
  gap: .45rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: #fff;
}

.price-inline small { font-family: var(--font-text); font-size: .9rem; color: rgba(247, 244, 238, .8); }

/* 9. Stránkové bloky ---------------------------------------------------- */

/* ceník */
.pagehead--pricing {
  padding-top: calc(var(--header-h) + clamp(1.6rem, 3.5vw, 2.6rem));
}

.pricing-intro {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.5rem);
  align-items: start;
}

.pricing-intro .lead { margin-bottom: .6rem; }

.pricing-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.pricing-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .4rem .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--paper-2);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
}

.pricing-nav a:hover { border-color: var(--blue); background: var(--blue-pale); }

.availability-card {
  min-width: 0;
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  border: 1px solid var(--blue);
  border-top: 5px solid var(--blue);
  border-radius: var(--r-md);
  background: var(--paper-2);
  box-shadow: var(--shadow);
}

.availability-card h2 { font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem); color: var(--blue-deep); }
.availability-card p { margin-bottom: 1rem; }
.availability-card .btn { width: 100%; min-height: 54px; padding-inline: 1rem; text-align: center; }
.availability-card .note { margin: 1rem 0 0; }
.availability-card .note a { font-weight: 600; }

@media (min-width: 860px) {
  .pricing-intro { grid-template-columns: 1.15fr 1fr; }
}

.price-grid {
  display: grid;
  gap: clamp(1.1rem, 2.4vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  align-items: stretch;
}

.price-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.4rem, 3vw, 2rem);
  display: grid;
  gap: .75rem;
  align-content: start;
}

.price-block--lead { border-color: var(--blue); box-shadow: var(--shadow); }

.price-block__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.8rem);
  line-height: 1;
  color: var(--blue);
}

.price-block__value small {
  display: block;
  font-family: var(--font-text);
  font-size: .95rem;
  color: var(--ink-soft);
  margin-top: .35rem;
  line-height: 1.4;
}

.price-block ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: .4rem;
  font-size: .97rem;
}

.terms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}

.terms li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: .8rem;
  align-items: start;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}

.terms li:last-child { border-bottom: 0; padding-bottom: 0; }
.terms svg { width: 20px; height: 20px; color: var(--amber-ink); margin-top: .2rem; }

/* galerie */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
}

.gallery-filter__btn {
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: .55rem 1.05rem;
  min-height: 44px;
  cursor: pointer;
  font-size: .93rem;
  color: var(--ink);
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.gallery-filter__btn:hover { border-color: var(--ink); }

.gallery-filter__btn[aria-pressed="true"] {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  font-weight: 600;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(.6rem, 1.4vw, 1rem);
}

.gallery-grid__item { margin: 0; }

.gallery-grid__item[hidden] { display: none; }

.shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-3);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  line-height: 0;
}

.shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}

.shot:hover img { transform: scale(1.035); }

.shot__caption {
  position: absolute;
  inset: auto 0 0;
  padding: 1.6rem .8rem .6rem;
  background: linear-gradient(to top, rgba(16, 26, 33, .78), rgba(16, 26, 33, 0));
  color: #fff;
  font-size: .85rem;
  line-height: 1.35;
  text-align: left;
  opacity: 0;
  transition: opacity .2s ease;
}

.shot:hover .shot__caption,
.shot:focus-visible .shot__caption { opacity: 1; }

/* mozaika na úvodu */
.mosaic {
  display: grid;
  gap: clamp(.6rem, 1.4vw, 1rem);
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .mosaic__item--big { grid-column: span 2; grid-row: span 2; }
}

.mosaic__item { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); }

.mosaic__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (min-width: 760px) {
  .mosaic__item,
  .mosaic__item .shot { height: 100%; }
  .mosaic__item--big img { height: 100%; aspect-ratio: auto; }
}

@media (max-width: 759px) {
  .mosaic__item img,
  .mosaic__item--big img { aspect-ratio: 4 / 3; }
}

/* trojice detailů — jednotný čtvercový výřez, plná fotka po kliknutí */
.detail-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(.7rem, 1.8vw, 1.2rem);
}

.detail-strip figure { margin: 0; }

.detail-strip .shot img {
  aspect-ratio: 1 / 1;
  width: 100%;
  object-fit: cover;
}

.detail-strip figcaption {
  font-size: .88rem;
  color: var(--ink-soft);
  margin-top: .55rem;
}

/* okolí */
.tips {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.tip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(1.2rem, 2.4vw, 1.6rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}

.tip h3 { margin: 0; }
.tip p { font-size: .97rem; color: var(--ink-soft); margin: 0; max-width: none; }

.tip__link {
  margin-top: auto;
  padding-top: 1.05rem;
  padding-bottom: .4rem;
  font-size: .93rem;
}

.tip__nolink {
  margin-top: auto;
  padding-top: .8rem;
  font-size: .87rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* prohlídka — kroky */
.walk {
  display: grid;
  gap: clamp(2.2rem, 5vw, 4rem);
  counter-reset: walk;
}

.walk__step { display: grid; gap: clamp(1.2rem, 3vw, 2.4rem); align-items: center; }

@media (min-width: 820px) {
  .walk__step { grid-template-columns: 1fr 1.15fr; }
  .walk__step:nth-child(even) .walk__media { order: -1; }
}

.walk__media { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper-3); }
.walk__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.walk__body > :last-child { margin-bottom: 0; }

.walk__num {
  counter-increment: walk;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--blue);
  margin-bottom: .9rem;
}

.walk__num::before { content: counter(walk); }

/* kontakt */
.contact-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.2rem);
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}

.contact-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}

.contact-list li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: .85rem;
  align-items: start;
}

.contact-list svg { width: 22px; height: 22px; color: var(--blue); margin-top: .25rem; }

.contact-list__label {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .1rem;
  overflow-wrap: anywhere;
}

.contact-list__value {
  font-size: 1.06rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  overflow-wrap: anywhere; /* dlouhý e-mail se musí zalomit i na úzkém displeji */
}

a.contact-list__value:hover { color: var(--blue); }

.contact-list__value--plain { font-weight: 400; }

/* formulář */
.form { display: grid; gap: 1.05rem; }

.field { display: grid; gap: .35rem; }

.field label { font-size: .92rem; font-weight: 600; }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-width: 0; /* jinak si <input> drží výchozí vnitřní šířku ~227 px */
  padding: .75rem .9rem;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--paper-2);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 88, 115, .16);
}

.field__hint { font-size: .84rem; color: var(--ink-soft); }

.field-row { display: grid; gap: 1.05rem; }

@media (min-width: 560px) {
  .field-row { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* orientační mapka */
.minimap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #eaf0e9;
}

.minimap svg { width: 100%; height: auto; display: block; }

/* upoutávka na konci stránky */
.cta-band {
  background: var(--blue-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cta-band__inner {
  display: grid;
  gap: 1.4rem;
  align-items: center;
}

@media (min-width: 820px) {
  .cta-band__inner { grid-template-columns: 1.4fr auto; gap: 2.5rem; }
}

.cta-band h2 { margin-bottom: .35em; }
.cta-band p { margin-bottom: 0; color: var(--ink-soft); }

/* 10. Patička ----------------------------------------------------------- */
.site-footer {
  background: var(--ink);
  color: rgba(247, 244, 238, .82);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
  position: relative;
  font-size: .96rem;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 10px;
  background-color: var(--quilt-band-amber);
  background-image: var(--quilt-stripes);
  background-size: 13px 10px;
  background-repeat: repeat-x;
}

.site-footer h2,
.site-footer h3 { color: #fff; }

.footer-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(247, 244, 238, .16);
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

.site-footer a { color: #e8b877; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand { display: grid; gap: .8rem; }
.footer-brand .brand__mark { width: 52px; height: 40px; color: #f0d3a8; }
.footer-brand p { color: rgba(247, 244, 238, .8); font-size: .95rem; max-width: 34ch; }

.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }

.footer-heading {
  font-family: var(--font-text);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #f0d3a8;
  margin: 0 0 1rem;
  font-weight: 700;
}

.footer-bottom {
  padding-top: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: space-between;
  font-size: .87rem;
  color: rgba(247, 244, 238, .62);
}

.footer-bottom p { margin: 0; max-width: none; }

/* diagram vzdáleností */
.diagram { padding: clamp(1.2rem, 3vw, 1.8rem); background: var(--paper-2); }
.diagram text { font-family: var(--font-text); }
.diagram .d-name { font-size: 17px; font-weight: 600; fill: var(--ink); }
.diagram .d-val { font-size: 16px; font-weight: 700; fill: var(--blue); }
.diagram svg { overflow: visible; }
.diagram p { max-width: none; }

@media (max-width: 600px) {
  .minimap .d-name { font-size: 30px; }
  .minimap .d-val { font-size: 28px; }
}

/* 11. Lightbox ---------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(12, 20, 26, .94);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: .9rem;
}

.lightbox[hidden] { display: none; }

.lightbox__bar { display: flex; justify-content: flex-end; }

.lightbox__figure {
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 0;
  position: relative;
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--r-sm);
}

.lightbox__caption {
  color: rgba(255, 255, 255, .9);
  text-align: center;
  font-size: .94rem;
  padding: .8rem .5rem .3rem;
}

.lightbox__count { color: rgba(255, 255, 255, .6); font-size: .85rem; margin-left: .5rem; }

.lb-btn {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background .16s ease;
}

.lb-btn:hover { background: rgba(255, 255, 255, .24); }
.lb-btn svg { width: 20px; height: 20px; }

.lightbox__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  padding-inline: .2rem;
}

.lightbox__nav .lb-btn { pointer-events: auto; }

/* 12. Pohyb a tisk ------------------------------------------------------ */
.reveal { opacity: 1; }

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}

html.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html.js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .nav,
  .hero__fold,
  .lightbox,
  .cta-band { display: none !important; }

  body { background: #fff; color: #000; }
  .site-footer { background: #fff; color: #000; }
}
