/* Pension Liduška — Benecko
   Barvy vycházejí z budovy: patinově zelená střecha, máslová fasáda.
   Akcentní motiv: žlutozelená turistická směrovka KČT. */

:root {
  --ink:      #14201c;
  --ink-soft: #2a3a34;
  --roof:     #4c7a69;
  --roof-dk:  #23453a;
  --roof-dkr: #17302a;
  --roof-lt:  #9ec0b2;
  --butter:   #e8bb4e;
  --butter-dk:#c9982e;
  --snow:     #f1f4f0;
  --paper:    #ffffff;
  --stone:    #5f6b67;
  --line:     #dce3dd;

  --shadow-s: 0 1px 2px rgba(20,32,28,.06), 0 4px 12px rgba(20,32,28,.05);
  --shadow-m: 0 2px 6px rgba(20,32,28,.07), 0 18px 40px -12px rgba(20,32,28,.18);
  --shadow-l: 0 30px 70px -20px rgba(20,32,28,.35);

  /* Jedna superrodina ve třech rolích: patkové nadpisy, humanistický text,
     pravé kapitálky na popisky (žádné prostrkané verzálky). */
  --display: "Alegreya", Georgia, "Times New Roman", serif;
  --body:    "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --util:    "Alegreya Sans SC", "Alegreya Sans", sans-serif;

  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --maxw: 1240px;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--snow);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }
figure, blockquote { margin: 0; }
p:last-child { margin-bottom: 0; }

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

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: absolute; left: .5rem; top: .5rem; z-index: 200;
  background: var(--ink); color: #fff;
  /* schovat bez posouvání mimo plátno — to Safari umí započítat do scrollu */
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  width: auto; height: auto; padding: .7rem 1.1rem;
  overflow: visible; clip-path: none;
}

/* ---------- štítky, značka KČT ---------- */

.eyebrow {
  font-family: var(--util);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--roof);
  margin: 0 0 1.2rem;
}
.eyebrow--light { color: var(--roof-lt); }

/* ---------- sekce ---------- */

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.section-head .lede { margin-top: 1.2rem; font-size: 1.15rem; color: var(--stone); }

/* ---------- tlačítka ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--body);
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--roof); color: #fff; }
.btn--primary:hover { background: var(--roof-dk); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--roof); color: var(--roof); }
.btn--block { width: 100%; justify-content: center; }

/* ---------- hlavička ---------- */

.head {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.head.is-stuck {
  background: rgba(241,244,240,.97);
  border-bottom-color: var(--line);
}
.head__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
  height: 76px;
}
.brand {
  display: flex; align-items: baseline; gap: .55rem;
  text-decoration: none; color: #fff;
  transition: color .3s;
}
.head.is-stuck .brand { color: var(--ink); }
.brand__name {
  font-family: var(--display);
  font-weight: 700; font-size: 1.55rem; letter-spacing: -.02em;
}
.brand__place {
  font-family: var(--util); font-size: .64rem;
  letter-spacing: .2em;
  opacity: .72;
}
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  color: rgba(255,255,255,.9); text-decoration: none;
  font-size: .93rem; font-weight: 500;
  padding: .35rem 0;
  border-bottom: 1px solid transparent;
  transition: color .25s, border-color .25s;
}
.head.is-stuck .nav__link { color: var(--ink-soft); }
.nav__link:hover { border-bottom-color: currentColor; }
.head .btn--head { background: var(--butter); color: var(--ink); font-size: .9rem; padding: .7rem 1.25rem; }
.head .btn--head:hover { background: #fff; }

.burger {
  display: none; width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer; padding: 10px;
}
.burger span {
  display: block; height: 2px; background: #fff; margin: 5px 0;
  transition: transform .3s, opacity .3s, background-color .3s;
}
.head.is-stuck .burger span { background: var(--ink); }
.head.is-open .burger span { background: var(--ink); }
.head.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.head.is-open .burger span:nth-child(2) { opacity: 0; }
.head.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--snow);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad) 2rem;
    transform: translateY(-12px);
    opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .head.is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .head.is-open { background: var(--snow); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link, .head.is-stuck .nav__link {
    display: block; width: 100%;
    color: var(--ink); font-size: 1.15rem; font-weight: 500;
    padding: .85rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .nav__link:hover { border-bottom-color: var(--line); color: var(--roof); }
  .nav .btn--head { margin-top: 1.2rem; justify-content: center; }
}

/* ---------- hero ---------- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(11,22,18,.92) 0%, rgba(11,22,18,.74) 22%, rgba(11,22,18,.34) 48%, rgba(11,22,18,.12) 70%, rgba(11,22,18,.5) 100%);
}
.hero__in { position: relative; width: 100%; padding-bottom: clamp(3rem, 7vw, 5.5rem); padding-top: 8rem; }
.hero__grid { display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: end; }

.plate {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: var(--butter); color: var(--ink);
  padding: .5rem .85rem .55rem;
  border-radius: 2px;
  box-shadow: var(--shadow-m);
  margin-bottom: 1.6rem;
}
.plate__n { font-family: var(--util); font-weight: 700; font-size: 1.15rem; line-height: 1; letter-spacing: -.02em; }
.plate__t { font-family: var(--util); font-size: .6rem; letter-spacing: .05em; opacity: .78; margin-top: .2rem; }

.hero h1 {
  color: #fff;
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  font-weight: 400;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
}
.hero h1 em { font-style: normal; display: block; font-weight: 600; }
.hero__lede { color: rgba(255,255,255,.9); font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 34rem; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.score {
  display: flex; flex-direction: column; gap: .35rem;
  color: #fff; text-decoration: none;
  padding: 1.1rem 1.3rem;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  background: rgba(11,22,18,.42);
  transition: border-color .25s, background-color .25s;
}
.score:hover { border-color: rgba(255,255,255,.75); background: rgba(11,22,18,.5); }
.score__n { font-family: var(--display); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.score__stars { color: var(--butter); letter-spacing: .1em; font-size: .8rem; }
.score__src { font-family: var(--util); font-size: .64rem; letter-spacing: .05em; opacity: .8; }

@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .score { flex-direction: row; align-items: center; gap: .9rem; align-self: flex-start; }
  .score__n { font-size: 1.7rem; }
}

/* ---------- pás faktů ---------- */

.facts { background: var(--ink); color: #fff; }
.facts__list {
  display: grid; grid-template-columns: repeat(4, 1fr);
  list-style: none; margin: 0; padding: 0;
}
.facts__item { padding: 2.2rem 1.5rem 2.2rem 0; border-left: 1px solid rgba(255,255,255,.13); padding-left: 1.5rem; }
.facts__item:first-child { border-left: 0; padding-left: 0; }
.facts__n { font-family: var(--display); font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.03em; margin-bottom: 0; }
.facts__n span { font-size: .95rem; font-family: var(--util); letter-spacing: .04em; opacity: .6; margin-left: .2rem; }
.facts__l { font-family: var(--util); font-size: .82rem; font-weight: 500; letter-spacing: .05em; color: var(--roof-lt); margin-top: .9rem; }
@media (max-width: 820px) {
  .facts__list { grid-template-columns: repeat(2, 1fr); }
  .facts__item:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts__item { padding-block: 1.5rem; }
  .facts__n { font-size: 2rem; }
}

/* ---------- o penzionu ---------- */

.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__text .lead { font-size: 1.28rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.5rem; }
.about__text p { color: var(--stone); }
.about__media { position: relative; }
.about__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-m); }
.about__inset {
  position: absolute; left: -2.5rem; bottom: -2.5rem; width: 46%;
  border: 6px solid var(--snow); border-radius: var(--radius);
  box-shadow: var(--shadow-m);
}
.about__inset img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-radius: 1px; }
.rules {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 1.4rem;
  font-family: var(--util); font-size: .72rem; letter-spacing: .04em; color: var(--stone);
}
@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .about__media img { aspect-ratio: 3 / 2; }
  .about__inset { display: none; }
}

/* ---------- pokoje ---------- */

.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.6rem; }
.room {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-s);
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.room:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.room__img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.room__body { padding: 1.5rem 1.5rem 1.7rem; display: flex; flex-direction: column; flex: 1; }
.room__floor { font-family: var(--util); font-size: .82rem; font-weight: 700; letter-spacing: .05em; color: var(--roof); margin-bottom: .7rem; }
.room__name { font-size: 1.35rem; margin-bottom: .6rem; }
.room__desc { color: var(--stone); font-size: .95rem; margin-bottom: 1.2rem; }
.room__beds {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--util); font-size: .74rem; letter-spacing: .04em; color: var(--stone);
}
.room__beds b { color: var(--ink); font-size: 1.5rem; font-family: var(--display); font-weight: 700; letter-spacing: -.02em; }

/* ---------- vybavení ---------- */

.amenities { background: var(--paper); }
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.amen__item { padding: 1.9rem 1.6rem 1.9rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 1rem; align-items: flex-start; }
.amen__ic { flex: 0 0 26px; color: var(--roof); margin-top: 2px; }
.amen__ic svg { width: 26px; height: 26px; display: block; }
.amen__t { font-weight: 600; font-size: 1rem; margin-bottom: .25rem; }
.amen__d { color: var(--stone); font-size: .9rem; line-height: 1.55; }

/* ---------- galerie ---------- */

.gallery { background: var(--snow); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.2rem; }
.filter {
  font-family: var(--util); font-size: .72rem; letter-spacing: .05em;
  padding: .6rem 1.05rem; border: 1px solid var(--line); background: var(--paper); color: var(--stone);
  border-radius: 100px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--roof); color: var(--roof); }
.filter[aria-pressed="true"] { background: var(--roof); border-color: var(--roof); color: #fff; }
.filter__n { opacity: .55; margin-left: .45rem; }

/* sloupcová mozaika — fotky si drží svůj vlastní poměr stran, nic se needituje ani neroztahuje */
.masonry { column-count: 3; column-gap: 1rem; }
@media (max-width: 900px) { .masonry { column-count: 2; } }
@media (max-width: 560px) { .masonry { column-count: 1; } }

.shot {
  display: block; width: 100%; margin: 0 0 1rem;
  padding: 0; border: 0; background: none; cursor: zoom-in;
  break-inside: avoid;
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-s);
  transition: box-shadow .3s;
}
.shot img { width: 100%; height: auto; border-radius: var(--radius); }
.shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.4rem .9rem .8rem;
  background: linear-gradient(to top, rgba(11,22,18,.8), transparent);
  color: #fff; font-size: .82rem; text-align: left; line-height: 1.35;
  opacity: 0; transform: translateY(6px);
  transition: opacity .25s, transform .25s;
}
.shot:hover, .shot:focus-visible { box-shadow: var(--shadow-m); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
.shot[hidden] { display: none; }

/* lightbox */
.lb {
  position: fixed; inset: 0; z-index: 200;
  background: #0b1512;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  opacity: 0; visibility: hidden;
  transition: opacity .28s, visibility .28s;
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--pad); color: rgba(255,255,255,.75); }
.lb__count { font-family: var(--util); font-size: .74rem; letter-spacing: .05em; }
.lb__stage { display: grid; place-items: center; padding: 0 clamp(.5rem, 4vw, 4rem); min-height: 0; overflow: hidden; }
.lb__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 2px; }
.lb__cap { padding: 1rem var(--pad) 2rem; color: rgba(255,255,255,.8); text-align: center; font-size: .95rem; }
.lb__btn {
  background: none; border: 1px solid rgba(255,255,255,.28); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem;
  transition: background-color .2s, border-color .2s;
}
.lb__btn:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb__nav--prev { left: clamp(.5rem, 2vw, 1.5rem); }
.lb__nav--next { right: clamp(.5rem, 2vw, 1.5rem); }

/* ---------- ceník ---------- */

.prices { background: var(--paper); }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.price {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem 1.9rem;
  display: flex; flex-direction: column;
  transition: border-color .25s, box-shadow .25s;
}
.price:hover { border-color: var(--roof-lt); box-shadow: var(--shadow-s); }
.price--accent { background: var(--roof-dk); border-color: var(--roof-dk); color: #fff; }
.price__season { font-size: 1.6rem; margin-bottom: .3rem; }
.price__dates { font-family: var(--util); font-size: .7rem; letter-spacing: .05em; color: var(--stone); margin-bottom: 1.7rem; }
.price--accent .price__dates { color: var(--roof-lt); }
.price__rows { list-style: none; margin: 0; padding: 0; }
.price__row { display: flex; align-items: baseline; gap: .6rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.price--accent .price__row { border-top-color: rgba(255,255,255,.16); }
.price__who { font-size: .93rem; }
.price__dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.price--accent .price__dots { border-bottom-color: rgba(255,255,255,.3); }
.price__val { font-family: var(--util); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.price__val small { font-weight: 400; opacity: .6; font-size: .78em; }
.price__note { margin-top: 1.6rem; font-size: .86rem; color: var(--stone); }
.price--accent .price__note { color: var(--roof-lt); }
.price-foot {
  margin-top: 2rem; padding: 1.3rem 1.6rem;
  background: var(--snow); border-radius: var(--radius);
  font-size: .92rem; color: var(--stone);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center;
}
.price-foot strong { color: var(--ink); }

/* ---------- rozcestník ---------- */

.signpost { background: var(--roof-dkr); color: #fff; position: relative; overflow: hidden; }
.signpost .section-head h2 { color: #fff; }
.signpost .section-head .lede { color: var(--roof-lt); }
.post { position: relative; padding-left: clamp(1.5rem, 4vw, 3rem); }
.post::before {
  content: ""; position: absolute; left: 0; top: -.5rem; bottom: 1.5rem; width: 10px;
  background: linear-gradient(90deg, #6b6152, #4a4237 55%, #2e2a23);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05);
  border-radius: 2px;
}
.sign {
  display: flex; align-items: center; gap: 1rem;
  background: var(--butter); color: var(--roof-dkr);
  padding: .95rem 3.2rem .95rem 1.3rem;
  margin-bottom: .55rem;
  text-decoration: none;
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 50%, calc(100% - 26px) 100%, 0 100%);
  box-shadow: 0 2px 0 rgba(0,0,0,.22);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background-color .22s;
  max-width: 44rem;
}
.sign:hover { background: #f2c95f; }
@media (hover: hover) and (pointer: fine) {
  .sign:hover { transform: translateX(9px); }
}
.sign__name { font-weight: 600; font-size: 1.02rem; letter-spacing: -.005em; }
.sign__sub { font-family: var(--util); font-size: .68rem; letter-spacing: .05em; opacity: .68; }
.sign__dist {
  margin-left: auto; font-family: var(--util); font-size: .72rem; font-weight: 500;
  letter-spacing: .05em; white-space: nowrap;
  padding-left: 1rem;
}
.signpost__aside { margin-top: 2.5rem; color: var(--roof-lt); font-size: .95rem; max-width: 36rem; }
.signpost__aside a { color: var(--butter); text-underline-offset: 3px; }

/* ---------- recenze ---------- */

.reviews__grid { display: grid; grid-template-columns: minmax(210px, .55fr) 1.45fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.score-big { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; background: var(--paper); }
.score-big__n { font-family: var(--display); font-size: 4.2rem; font-weight: 700; line-height: .95; letter-spacing: -.04em; margin-bottom: 0; }
.score-big__stars { color: var(--butter-dk); letter-spacing: .18em; margin: .5rem 0 .3rem; }
.score-big__src { font-family: var(--util); font-size: .68rem; letter-spacing: .05em; color: var(--stone); }
.score-big a { display: inline-block; margin-top: 1.2rem; font-size: .88rem; color: var(--roof); text-underline-offset: 3px; }
.quotes { display: grid; gap: 1.2rem; }
.quote { background: var(--paper); border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow-s); }
.quote p { font-family: var(--display); font-size: 1.2rem; font-weight: 400; line-height: 1.5; margin-bottom: 1rem; }
.quote footer { font-family: var(--util); font-size: .7rem; letter-spacing: .05em; color: var(--stone); }
@media (max-width: 820px) { .reviews__grid { grid-template-columns: 1fr; } }

/* ---------- rezervace ---------- */

.book { background: var(--ink); color: #fff; }
.book .section-head h2 { color: #fff; }
.book__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-family: var(--util); font-size: .82rem; font-weight: 500; letter-spacing: .05em; color: var(--roof-lt); }
.field input, .field textarea, .field select {
  font-family: var(--body); font-size: 1rem; color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: .85rem 1rem;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.35); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--butter); background: rgba(255,255,255,.1); }
.field textarea { resize: vertical; min-height: 110px; }
.field input, .field textarea, .field select { min-width: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__note { font-size: .82rem; color: var(--roof-lt); line-height: 1.55; }
.form .btn--primary { background: var(--butter); color: var(--ink); }
.form .btn--primary:hover { background: #fff; }

.contact { display: grid; gap: 1.4rem; }
.contact__row { display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact__ic { flex: 0 0 22px; color: var(--butter); margin-top: 3px; }
.contact__ic svg { width: 22px; height: 22px; display: block; }
.contact__l { font-family: var(--util); font-size: .82rem; font-weight: 500; letter-spacing: .05em; color: var(--roof-lt); margin-bottom: .3rem; }
.contact__v { font-size: 1.05rem; }
.contact__v a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }
.contact__v a:hover { border-bottom-color: var(--butter); }
.contact__v span { display: block; }

.map {
  position: relative; display: block; margin-top: .5rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  transition: border-color .25s;
}
.map:hover { border-color: var(--butter); }
.map img { width: 100%; height: auto; display: block; }
.map__pin {
  position: absolute; transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  pointer-events: none;
}
.map__pin span {
  background: var(--ink); color: #fff;
  font-family: var(--util); font-size: .62rem; letter-spacing: .05em;
  padding: .25rem .5rem; border-radius: 2px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.map__pin::after {
  content: ""; width: 13px; height: 13px; border-radius: 50%;
  background: var(--butter); border: 3px solid var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.map__attr { color: rgba(255,255,255,.35); text-transform: none; letter-spacing: .04em; }
.map__attr a { color: inherit; }
.map__links {
  display: flex; flex-wrap: wrap; gap: .4rem 1.4rem;
  margin-top: .9rem;
  font-family: var(--util); font-size: .7rem; letter-spacing: .05em;
}
.map__links a { color: var(--roof-lt); text-underline-offset: 4px; }
.map__links a:hover { color: var(--butter); }
@media (max-width: 900px) { .book__grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form__row { grid-template-columns: 1fr; } }

/* ---------- odhalování při scrollu ---------- */

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .room:hover, .sign:hover { transform: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- doladění ---------- */

.about__text h2 { font-size: clamp(2.1rem, 4.4vw, 3.1rem); margin-bottom: 1.5rem; }
.section-head h2 + .lede { margin-top: 1.2rem; }
.book .field input, .book .field textarea { color-scheme: dark; }

body.lb-open .head { opacity: 0; pointer-events: none; }

@media (max-width: 620px) {
  .sign {
    flex-direction: column; align-items: flex-start; gap: .3rem;
    padding: .9rem 2.1rem .9rem 1rem;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  }
  .sign__name { font-size: .98rem; }
  .sign__dist { margin-left: 0; padding-left: 0; }
  .post { padding-left: 1.25rem; }
  .post::before { width: 7px; }
}
.head.is-open .brand { color: var(--ink); }
.head.is-open .nav { background: var(--snow); box-shadow: 0 24px 40px -24px rgba(20,32,28,.35); }

/* ---------- žluté hlavní tlačítko ---------- */

.btn--accent { background: var(--butter); color: var(--ink); }
.btn--accent:hover { background: #f2c95f; }

/* ---------- náhled galerie na hlavní stránce ---------- */

.gallery__more {
  display: flex; flex-wrap: wrap; gap: .8rem;
  margin-top: 2.2rem;
}

/* ---------- podstránka ---------- */

.subpage { padding-top: 76px; }
.pagehead {
  background: var(--roof-dkr); color: #fff;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.pagehead h1 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: -.03em; line-height: 1.02;
  margin: 0;
}
.pagehead .eyebrow { color: var(--butter); }
.pagehead__lede { margin-top: 1.1rem; color: var(--roof-lt); font-size: 1.1rem; max-width: 40rem; }
.nav__link--on { color: var(--roof) !important; border-bottom-color: currentColor; }

/* ---------- závěrečné CTA (stránka galerie) ---------- */

.cta {
  position: relative; overflow: hidden;
  color: #fff; text-align: center;
  padding-block: clamp(5rem, 13vw, 9.5rem);
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cta__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(rgba(13,26,22,.82), rgba(13,26,22,.9));
}
.cta__in { position: relative; display: grid; justify-items: center; }
.cta .eyebrow { color: var(--butter); }
.cta h2 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
  letter-spacing: -.03em;
  max-width: 16em;
}
.cta__lede { margin-top: 1.3rem; max-width: 34rem; font-size: 1.15rem; color: rgba(255,255,255,.82); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.4rem; }
.cta__meta {
  margin-top: 2.4rem;
  display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: center;
  font-family: var(--util); font-size: .78rem; letter-spacing: .05em;
  color: var(--roof-lt);
}
.cta__meta a { color: var(--roof-lt); text-underline-offset: 4px; }
.cta__meta a:hover { color: #fff; }
.cta__back { margin-top: 2.6rem; }
.cta__back a {
  color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem;
  border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px;
}
.cta__back a:hover { color: #fff; border-bottom-color: #fff; }

.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.02rem; }

/* náhled galerie na hlavní stránce */
.gallery__more { justify-content: center; margin-top: 2.6rem; }


/* ---------- animace ----------
   Všechno běží jen přes opacity a transform, aby to zvládl kompozitor
   a scroll se nezadrhával. */

/* hero: postupné naběhnutí po načtení */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js .hero__stack > *, .js .hero .score {
  animation: rise .9s cubic-bezier(.2,.7,.3,1) backwards;
}
.js .hero__stack h1        { animation-delay: .05s; }
.js .hero__stack .hero__lede { animation-delay: .18s; }
.js .hero__stack .hero__cta  { animation-delay: .28s; }
.js .hero .score             { animation-delay: .38s; }
.js .hero__media img { animation: fade 1.2s ease backwards; }

/* galerie: fotky naskakují po řádcích */
.js .shot.reveal { transition-delay: calc(var(--i, 0) * 70ms); }
.shot__frame { display: block; overflow: hidden; border-radius: var(--radius); }
.shot__frame img { transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.shot:hover .shot__frame img, .shot:focus-visible .shot__frame img { transform: scale(1.04); }

/* lightbox: fotka se přiblíží */
.lb__stage img { transition: transform .3s cubic-bezier(.2,.7,.3,1), opacity .3s; }
.lb:not(.is-open) .lb__stage img { transform: scale(.97); opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__stack > *, .js .hero .score, .js .hero__media img { animation: none; }
  .shot__frame img, .lb__stage img { transition: none; }
  .shot:hover .shot__frame img { transform: none; }
}

/* ---------- stav formuláře ---------- */

/* past na roboty — schovaná přes clip-path, ne odsunutím mimo plátno
   (to Safari umí započítat do vodorovného scrollu) */
.field--past {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; pointer-events: none;
}
.form__stav { font-size: .95rem; line-height: 1.5; margin: 0; }
.form__stav:empty { display: none; }
.form__stav--ok { color: var(--butter); }
.form__stav--chyba { color: #ffb3a7; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.akce { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- patička ---------- */

.foot {
  background: var(--roof-dkr);
  color: rgba(255,255,255,.72);
  font-size: .94rem;
  border-top: 1px solid rgba(255,255,255,.09);
}
.foot a { color: rgba(255,255,255,.88); text-decoration: none; }
.foot a:hover { color: var(--butter); }

.foot__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  gap: 2rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem);
}
.foot__col { min-width: 0; }

.foot__brand {
  font-family: var(--display);
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em;
  color: #fff;
  margin-bottom: .9rem;
}
.foot__addr { line-height: 1.75; margin: 0; color: rgba(255,255,255,.6); }

.foot__nadpis {
  font-family: var(--util);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--roof-lt);
  margin-bottom: 1rem;
}
.foot__list { list-style: none; margin: 0; padding: 0; line-height: 2; }
.foot__list--dva { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.5rem; }

.foot__score {
  display: inline-flex; align-items: center; gap: .8rem;
  padding: .8rem 1rem;
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  transition: border-color .25s;
}
.foot__score:hover { border-color: var(--butter); }
.foot__score-n {
  font-family: var(--display); font-size: 2rem; font-weight: 600;
  line-height: 1; letter-spacing: -.03em; color: #fff;
}
.foot__score-t {
  font-family: var(--util); font-size: .74rem; line-height: 1.5;
  letter-spacing: .06em; text-transform: uppercase; color: var(--roof-lt);
}
.foot__score-t::first-line { color: var(--butter); letter-spacing: .14em; }

.foot__bar {
  display: flex; flex-wrap: wrap; gap: .6rem 2rem;
  align-items: center; justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: .85rem; color: rgba(255,255,255,.45);
}
.foot__bar p { margin: 0; }
.foot__credit a { color: rgba(255,255,255,.7); }
.foot__credit a span { color: rgba(255,255,255,.4); }
.foot__credit a:hover, .foot__credit a:hover span { color: var(--butter); }

@media (max-width: 980px) {
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__col--hodnoceni { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot__grid { grid-template-columns: 1fr; gap: 2.2rem; text-align: center; }
  .foot__list--dva { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; }
  .foot__score { justify-content: center; }
  .foot__col--hodnoceni { display: flex; flex-direction: column; align-items: center; }
  .foot__bar { flex-direction: column; text-align: center; }
}
