/* ==========================================================================
   NOMA Jakubovice – styly
   --------------------------------------------------------------------------
   Obsah:  1 Fonty · 2 Proměnné · 3 Základ · 4 Typografie · 5 Prvky (tlačítka,
           odkazy, ikony) · 6 Hlavička a menu · 7 Úvod · 8 Manifest · 9 Výhled
           10 Dům a galerie · 11 Terasa · 12 Sauna · 13 Vybavení · 14 Okolí
           15 Ceník · 16 Rezervace · 17 Dotazy · 18 Výzva a patička
           19 Lišta, prohlížeč fotek, kurzor · 20 Animace · 21 Omezený pohyb
   ========================================================================== */

/* 1 ── Fonty (hostované lokálně) ─────────────────────────────────────────── */
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Sora";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/sora-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Náhradní písma se stejnými proporcemi – text při načítání fontu neposkočí */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial");
  size-adjust: 109.5%;
  ascent-override: 88.6%;
  descent-override: 26.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT");
  size-adjust: 87.4%;
  ascent-override: 113%;
  descent-override: 35.5%;
  line-gap-override: 0%;
}

/* 2 ── Proměnné ──────────────────────────────────────────────────────────── */
:root {
  /* barvy značky */
  --ink: #171B18;
  --mint: #A5DBC8;
  --paper: #F8FCFB;
  /* doplňkové odstíny */
  --ink-2: #1E2420;
  --ink-3: #2B332E;
  --paper-2: #EEF5F2;
  --paper-3: #E0EBE6;
  --mint-2: #8FCDB7;
  --mint-deep: #2E6B58;
  --muted: #56635C;
  --muted-dark: #9CAFA6;
  --ember: #F0B27A;
  --line: rgba(23, 27, 24, .13);
  --line-dark: rgba(248, 252, 251, .16);

  --sans: "Sora", "Sora Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Instrument Fallback", "Iowan Old Style", Georgia, serif;

  --gutter: clamp(1.25rem, 4.6vw, 4.5rem);
  --max: 90rem;
  --gap: clamp(.75rem, 1.6vw, 1.5rem);
  --section: clamp(5.5rem, 11vw, 11rem);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.7, 0, .2, 1);
  --tan15: 0.26795; /* sklon střechy z loga: tan(15°) */
}

@property --wipe {
  syntax: "<length-percentage>";
  inherits: false;
  initial-value: 0px;
}

/* 3 ── Základ ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 350;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--mint-deep); outline-offset: 3px; }
[data-tone="dark"] :focus-visible, .menu :focus-visible, .lightbox :focus-visible { outline-color: var(--mint); }

::selection { background: var(--mint); color: var(--ink); }

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

.section { position: relative; z-index: 1; padding-block: var(--section); background: var(--paper); }

.skip {
  position: fixed; left: 1rem; top: 1rem; z-index: 100;
  padding: .75rem 1.25rem; background: var(--ink); color: var(--paper);
  transform: translateY(-200%); transition: transform .3s;
}
.skip:focus { transform: none; }

/* 4 ── Typografie ────────────────────────────────────────────────────────── */
em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}

.eyebrow {
  display: flex; align-items: center; gap: .9em;
  font-size: .75rem; font-weight: 500; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
/* drobná čárka ve sklonu střechy z loga */
.eyebrow::before {
  content: ""; flex: none; width: 1.75rem; height: 1px;
  background: currentColor; transform: rotate(-15deg);
}
.time { color: var(--mint-deep); font-variant-numeric: tabular-nums; }
[data-tone="dark"] .eyebrow { color: var(--muted-dark); }
[data-tone="dark"] .time { color: var(--mint); }

.h2 {
  font-size: clamp(2.15rem, 1.2rem + 4vw, 4.5rem);
  font-weight: 300; line-height: 1.04; letter-spacing: -.04em;
  text-wrap: balance;
}
.h2 em { font-size: 1.13em; letter-spacing: -.015em; color: var(--mint-deep); }
[data-tone="dark"] .h2 em { color: var(--mint); }
.h2--xl { font-size: clamp(2.5rem, 1rem + 6.2vw, 6.5rem); line-height: 1; }

.h3 {
  font-size: clamp(1.25rem, 1.05rem + .7vw, 1.6rem);
  font-weight: 350; line-height: 1.2; letter-spacing: -.025em;
}
.h4 { font-size: 1.0625rem; font-weight: 500; line-height: 1.35; letter-spacing: -.01em; }

.lead {
  font-size: clamp(1.0625rem, .95rem + .45vw, 1.3rem);
  line-height: 1.6; color: var(--muted);
  max-width: 34em; text-wrap: pretty;
}
.lead--xl {
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.3rem);
  font-weight: 300; line-height: 1.24; letter-spacing: -.03em;
  color: var(--paper); max-width: 20em;
}

/* hlavička sekce: nadpis vlevo, úvodní odstavec vpravo */
.head { display: grid; gap: 1.5rem; margin-bottom: clamp(3rem, 6vw, 6rem); }
@media (min-width: 56em) {
  .head { grid-template-columns: repeat(12, 1fr); column-gap: var(--gap); align-items: end; }
  .head .eyebrow { grid-column: 1 / -1; }
  .head .h2 { grid-column: 1 / span 8; }
  .head .lead { grid-column: 9 / -1; padding-bottom: .5rem; }
}
.head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* 5 ── Prvky ─────────────────────────────────────────────────────────────── */
.icon { width: 1.25rem; height: 1.25rem; fill: currentColor; flex: none; }
.icon--lg { width: 2.125rem; height: 2.125rem; }

/* tlačítko: pilulka s kulatou šipkou */
.btn {
  --bg: var(--ink); --fg: var(--paper); --dot: var(--mint); --dot-fg: var(--ink);
  display: inline-flex; align-items: center; gap: .9rem;
  height: 3.5rem; padding: 0 .5rem 0 1.6rem;
  border-radius: 99rem;
  background: var(--bg); color: var(--fg);
  font-size: .95rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate .6s var(--ease-out), background-color .4s, box-shadow .4s;
}
.btn__icon {
  display: grid; place-items: center; flex: none; overflow: hidden;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--dot); color: var(--dot-fg);
  transition: transform .6s var(--ease-out);
}
.btn__icon .icon { width: 1.05rem; height: 1.05rem; }
.btn--mint { --bg: var(--mint); --fg: var(--ink); --dot: var(--ink); --dot-fg: var(--mint); }
.btn--small { height: 2.75rem; padding-left: 1.15rem; gap: .65rem; font-size: .875rem; }
.btn--small .btn__icon { width: 2rem; height: 2rem; }
.btn--small .btn__icon .icon { width: .9rem; height: .9rem; }
.btn--big { height: 4.25rem; padding-left: 2rem; gap: 1.25rem; font-size: 1.0625rem; }
.btn--big .btn__icon { width: 3.25rem; height: 3.25rem; }
.btn--big .btn__icon .icon { width: 1.25rem; height: 1.25rem; }
@media (hover: hover) {
  .btn:hover .btn__icon { transform: scale(1.09); }
  .btn:hover .btn__icon .icon { animation: arrow-swap .6s var(--ease-out); }
}
@keyframes arrow-swap {
  0% { transform: translateX(0); }
  45% { transform: translateX(170%); }
  46% { transform: translateX(-170%); }
  100% { transform: translateX(0); }
}

/* textový odkaz s podtržením, které se při najetí „přepíše“ */
.link { display: inline-flex; align-items: center; gap: .5em; font-weight: 500; }
.link > span {
  padding-bottom: .2em;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
@media (hover: hover) {
  .link:hover > span { animation: underline .7s var(--ease-out); }
  .link .icon { transition: transform .5s var(--ease-out); }
  .link:hover .icon { transform: translate(.15em, -.15em); }
  .hero .link:hover .icon { transform: translateY(.2em); }
}
@keyframes underline {
  0% { background-size: 100% 1px; background-position: 100% 100%; }
  45% { background-size: 0 1px; background-position: 100% 100%; }
  46% { background-size: 0 1px; background-position: 0 100%; }
  100% { background-size: 100% 1px; background-position: 0 100%; }
}
.link .icon { width: 1em; height: 1em; }

/* kulaté tlačítko (šipky galerie, zavírání) */
.round {
  display: grid; place-items: center; flex: none;
  width: 3rem; height: 3rem; border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .4s, color .4s, border-color .4s, opacity .4s;
}
.round:disabled { opacity: .3; cursor: default; }
.round--light { border-color: rgba(248, 252, 251, .3); color: var(--paper); }
@media (hover: hover) {
  .round:not(:disabled):hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
  .round--light:not(:disabled):hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
}

/* seznam s „fajfkami“ */
.ticks { display: grid; gap: 0; font-size: .95rem; }
.ticks li {
  display: flex; align-items: baseline; gap: .85rem;
  padding: .8rem 0; border-top: 1px solid var(--line);
}
.ticks li::before {
  content: ""; flex: none; width: .6rem; height: .32rem;
  border-left: 1.5px solid var(--mint-deep); border-bottom: 1.5px solid var(--mint-deep);
  transform: translateY(-.28rem) rotate(-45deg);
}
@media (min-width: 40em) {
  .ticks--cols { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
}

/* obrázek v rámu; .frame--roof má horní hranu ve sklonu střechy (15°) */
.frame { position: relative; overflow: hidden; background: var(--frame-bg, var(--paper-3)); }
.frame picture { display: block; width: 100%; height: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame picture[data-parallax] { position: absolute; inset: -9% 0; height: 118%; will-change: transform; }
.frame--roof { --roof: calc(var(--tan15) * 80%); clip-path: polygon(0 var(--roof), 100% 0, 100% 100%, 0 100%); }
.frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 3.5rem 1.1rem 1rem;
  font-size: .8rem; letter-spacing: .03em; color: var(--paper);
  background: linear-gradient(to top, rgba(23, 27, 24, .6), rgba(23, 27, 24, 0));
}

/* 6 ── Hlavička a menu ───────────────────────────────────────────────────── */
.header {
  position: absolute; inset: 0 0 auto 0; z-index: 60;
  color: var(--paper);
  transition: transform .7s var(--ease-out), color .4s;
}
.js .header { position: fixed; } /* bez JavaScriptu zůstane hlavička jen nahoře na úvodní fotce */
.header::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(23, 27, 24, .7);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transition: opacity .4s, background-color .4s, border-color .4s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-102%); }
.header[data-tone="light"] { color: var(--ink); }
.header[data-tone="light"]::before { background: rgba(248, 252, 251, .78); border-color: var(--line); }
.header[data-tone="mint"] { color: var(--ink); }
.header[data-tone="mint"]::before { background: rgba(165, 219, 200, .8); border-color: var(--line); }
.menu-open .header { color: var(--paper); transform: none; }
.menu-open .header::before { opacity: 0; }

.header__bar {
  position: relative;
  display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem);
  height: 5.25rem; padding-inline: var(--gutter);
  transition: height .6s var(--ease-out);
}
.header.is-scrolled .header__bar { height: 4.25rem; }
.header__logo { display: block; padding: .5rem 0; margin-right: auto; }
.logo { width: 6.2rem; height: auto; fill: currentColor; }

.nav { display: none; gap: clamp(1.25rem, 2.4vw, 2.5rem); }
.nav__link { position: relative; padding: .5rem 0; font-size: .9rem; font-weight: 400; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .25rem; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .5s var(--ease-out);
}
.nav__link:hover::after, .nav__link.is-current::after { transform: scaleX(1); transform-origin: left; }

.header__cta { --bg: var(--mint); --fg: var(--ink); --dot: var(--ink); --dot-fg: var(--mint); display: none; }
.header[data-tone="light"] .header__cta { --bg: var(--ink); --fg: var(--paper); --dot: var(--mint); --dot-fg: var(--ink); }
.header[data-tone="mint"] .header__cta { --bg: var(--ink); --fg: var(--paper); --dot: var(--mint); --dot-fg: var(--ink); }
.menu-open .header__cta { opacity: 0; pointer-events: none; }

.burger {
  position: relative; width: 2.75rem; height: 2.75rem; margin-right: -.5rem;
  display: grid; place-items: center;
}
.burger span {
  position: absolute; width: 1.5rem; height: 1.5px; background: currentColor;
  transition: transform .5s var(--ease-out);
}
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

@media (min-width: 40em) { .header__cta { display: inline-flex; } }
@media (min-width: 56em) {
  .nav { display: flex; }
  .burger { display: none; }
}

.lang { display: flex; gap: .75rem; font-size: .8rem; letter-spacing: .08em; }
.lang a { opacity: .6; }
.lang a[aria-current] { opacity: 1; }

.menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 7rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease-in-out);
  overflow-y: auto;
}
.menu.is-open { clip-path: inset(0); }
.menu__nav { display: grid; gap: .25rem; }
.menu__link {
  display: block; overflow: hidden;
  font-size: clamp(2.25rem, 11vw, 3.5rem); font-weight: 300; line-height: 1.18; letter-spacing: -.04em;
}
.menu__link span { display: block; transform: translateY(110%); transition: transform .9s var(--ease-out); }
.menu.is-open .menu__link span { transform: none; }
.menu__link:nth-child(1) span { transition-delay: .18s; }
.menu__link:nth-child(2) span { transition-delay: .23s; }
.menu__link:nth-child(3) span { transition-delay: .28s; }
.menu__link:nth-child(4) span { transition-delay: .33s; }
.menu__link:nth-child(5) span { transition-delay: .38s; }
.menu__link:nth-child(6) span { transition-delay: .43s; }
.menu__foot {
  display: grid; gap: 1.25rem; justify-items: start; margin-top: 3rem;
  opacity: 0; transition: opacity .6s .45s;
}
.menu.is-open .menu__foot { opacity: 1; }
.menu__mail { color: var(--muted-dark); font-size: .95rem; }

/* 7 ── Úvod (hero) ───────────────────────────────────────────────────────── */
.intro { position: relative; }

.hero {
  position: sticky; top: 0; z-index: 0;
  height: 100vh; height: 100svh; min-height: 36rem;
  overflow: hidden;
  background: var(--ink); color: var(--paper);
}
.hero__media { position: absolute; inset: 0; }
.hero__media picture { display: block; width: 100%; height: 100%; }
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%;
  transform: scale(calc(1 + var(--hp, 0) * .08));
}
.hero__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(23, 27, 24, .82) 0%, rgba(23, 27, 24, .42) 34%, rgba(23, 27, 24, 0) 64%),
    linear-gradient(to bottom, rgba(23, 27, 24, .52) 0%, rgba(23, 27, 24, 0) 24%),
    linear-gradient(to right, rgba(23, 27, 24, .5) 0%, rgba(23, 27, 24, 0) 62%);
}
/* při rolování hero pozvolna ztmavne pod najíždějící sekcí */
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--ink); opacity: calc(var(--hp, 0) * .6);
}

.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding-inline: var(--gutter);
  translate: 0 calc(var(--hp, 0) * -7vh);
}
.hero__content { max-width: 52rem; padding-bottom: clamp(3rem, 8vh, 5rem); }
.hero .hero__eyebrow { color: rgba(248, 252, 251, .9); }
.hero__h1 { margin: 0; font: inherit; }
.hero__title {
  display: block; margin: 1.2rem 0 1.5rem;
  font-size: min(11.6vw, 9.5vh);
  font-weight: 300; line-height: .99; letter-spacing: -.045em;
}
@media (min-width: 34em) {
  .hero__title { font-size: clamp(2.75rem, min(1rem + 4.7vw, 12vh), 6.25rem); }
}
.hero__title .line { display: block; }
.hero__title .line > span { display: block; }
.hero__title em { font-size: 1.13em; letter-spacing: -.02em; color: var(--mint); }
.hero__lead {
  max-width: 33em; margin-bottom: 1.9rem;
  font-size: clamp(1rem, .92rem + .4vw, 1.2rem); line-height: 1.55;
  color: rgba(248, 252, 251, .88); text-wrap: pretty;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.9rem; }

.hero__facts { display: none; }
@media (min-width: 48em) {
  .hero__content { padding-bottom: clamp(1.75rem, 4.5vh, 3.25rem); }
  .hero__facts {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
    padding-block: 1.15rem 1.5rem;
    border-top: 1px solid rgba(248, 252, 251, .24);
    font-size: .925rem;
  }
  .hero__fact-k {
    display: block; margin-bottom: .2rem;
    font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(248, 252, 251, .62);
  }
}

/* Úvodní animace – čistě v CSS, aby text nikdy nečekal na JavaScript.
   Text: řádky nadpisu vyjedou zpod masky, úvodní odstavec je vidět hned (kvůli rychlosti
   vykreslení), ostatní se dosune. Fotka: odkryje se hranou ve sklonu střechy, jakmile je
   načtená (třídu .is-loaded přidá skript; bez něj se odkryje sama po 4 s). */
.js .hero__media {
  --wipe: 100%;
  clip-path: polygon(0 calc(var(--wipe) + 100vw * var(--tan15)), 100% var(--wipe), 100% 100%, 0 100%);
  animation: wipe 1.5s var(--ease-in-out) 4s both;
}
.js .hero__media picture { animation: hero-zoom 2.8s var(--ease-out) 4s both; }
.js .hero.is-loaded .hero__media { animation: wipe-now 1.5s var(--ease-in-out) both; }
.js .hero.is-loaded .hero__media picture {
  animation: hero-zoom-now 2.8s var(--ease-out) both, hero-drift 30s ease-in-out 2.8s infinite alternate;
}
.js .hero.is-away .hero__media picture { animation-play-state: paused; }
.js .hero.is-done .hero__media { clip-path: none; animation: none; }
@keyframes wipe { from { --wipe: 100%; } to { --wipe: calc(100vw * var(--tan15) * -1); } }
@keyframes wipe-now { from { --wipe: 100%; } to { --wipe: calc(100vw * var(--tan15) * -1); } }
@keyframes hero-zoom { from { transform: scale(1.16); } to { transform: none; } }
@keyframes hero-zoom-now { from { transform: scale(1.16); } to { transform: none; } }
@keyframes hero-drift { from { transform: none; } to { transform: scale(1.07); } }

.js .hero__title .line { clip-path: inset(-.2em -.15em -.22em -.15em); }
.js .hero__title .line > span { animation: line-up 1.25s var(--ease-out) both; }
.js .hero__title .line:nth-child(1) > span { animation-delay: .08s; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .18s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .28s; }
.js .hero__lead { animation: settle 1.3s var(--ease-out) both; }
.js .hero__eyebrow, .js .hero__actions, .js .hero__facts, .js .header { animation: fade-up 1.2s var(--ease-out) both; }
.js .hero__actions { animation-delay: .45s; }
.js .hero__facts { animation-delay: .65s; }
.js .header { animation-name: fade-in; animation-delay: .25s; }
@keyframes line-up { from { transform: translateY(125%); } to { transform: none; } }
@keyframes settle { from { transform: translateY(1.25rem); } to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* 8 ── Manifest ──────────────────────────────────────────────────────────── */
.manifest {
  position: relative; z-index: 1;
  padding-block: var(--section);
  background: var(--paper);
}
.manifest__text {
  margin-top: 2.25rem; max-width: 21em;
  font-size: clamp(1.65rem, 1rem + 3vw, 3.7rem);
  font-weight: 300; line-height: 1.15; letter-spacing: -.035em;
  text-wrap: balance;
}
.manifest__text em { font-size: 1.12em; color: var(--mint-deep); }
.js .manifest__text .sw { opacity: .14; transition: opacity .5s linear; }
.js .manifest__text .sw.is-lit { opacity: 1; }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem var(--gap);
  margin-top: clamp(3.5rem, 7vw, 7rem); padding-top: 2.25rem;
  border-top: 1px solid var(--line);
}
@media (min-width: 56em) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stats__num {
  display: block;
  font-size: clamp(3.25rem, 2rem + 4.4vw, 6rem);
  font-weight: 200; line-height: .95; letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.stats__num small {
  margin-left: .3em;
  font-size: .3em; font-weight: 400; letter-spacing: 0; color: var(--mint-deep);
}
.stats__label {
  display: block; max-width: 13em; margin-top: .9rem;
  font-size: .95rem; line-height: 1.45; color: var(--muted);
}

/* 9 ── Výhled (scéna s okny) ─────────────────────────────────────────────── */
.facade { position: relative; z-index: 1; background: var(--ink); color: var(--paper); }
.facade.is-scene { height: 330vh; }
@media (min-width: 48em) { .facade.is-scene { height: 380vh; } }
.facade__stage { position: relative; height: 100vh; height: 100svh; min-height: 34rem; overflow: hidden; }
.facade.is-scene .facade__stage { position: sticky; top: 0; }

.facade__view { position: absolute; inset: 0; }
.facade__view picture { display: block; width: 100%; height: 100%; }
.facade__view img {
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 62%;
  transform: translateY(var(--shift, 0)) scale(var(--zoom, 1));
}
.facade__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(23, 27, 24, .8) 0%, rgba(23, 27, 24, 0) 46%),
    linear-gradient(to bottom, rgba(23, 27, 24, .45) 0%, rgba(23, 27, 24, 0) 22%);
  opacity: var(--shade, 1);
}

.facade__drawing { display: none; position: absolute; inset: 0; pointer-events: none; }
.facade.is-scene .facade__drawing { display: block; }
.facade__win { position: absolute; left: 0; top: 0; overflow: hidden; opacity: var(--glass, 1); }
.facade__glass {
  position: absolute; inset: 0;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, .26) 0%, rgba(255, 255, 255, .06) 20%, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, .05) 72%, rgba(255, 255, 255, .16) 100%),
    rgba(203, 226, 220, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}
.facade__glass--fixed { right: 50%; }
/* posuvné křídlo: rám, madlo a stín – při rolování odjede doleva */
.facade__glass--door {
  left: 50%;
  border-left: 4px solid var(--ink);
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .18), -14px 0 28px -12px rgba(0, 0, 0, .55);
  transform: translateX(calc(var(--door, 0) * -96%));
}
.facade__glass--door::after {
  content: ""; position: absolute; left: .7rem; top: 50%;
  width: 3px; height: clamp(2rem, 9%, 3.5rem); margin-top: -1.5rem; border-radius: 2px;
  background: rgba(248, 252, 251, .8);
}
.facade__roof {
  position: absolute; left: 0; top: 0; height: 1px;
  background: var(--mint); transform-origin: 0 50%;
  opacity: var(--fade, 1);
}
.facade__base { position: absolute; left: 0; top: 0; height: 1px; background: var(--line-dark); opacity: var(--fade, 1); }
.facade__dim {
  position: absolute; left: 0; top: 0;
  font-size: .68rem; font-weight: 400; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; text-align: center;
  color: var(--muted-dark); white-space: nowrap;
  opacity: var(--fade, 1);
}
.facade__dim b {
  display: block; margin-bottom: .1rem;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em; text-transform: none; color: var(--paper);
}

.facade__copy { position: absolute; inset: 0; pointer-events: none; }
.facade__step { position: absolute; left: var(--gutter); right: var(--gutter); }
.facade__step[data-step="0"] { top: clamp(6.25rem, 15vh, 9.5rem); max-width: 34rem; }
.facade__step[data-step="0"] .h2 { margin: 1.4rem 0 1.25rem; font-size: clamp(2.15rem, 1.2rem + 3.4vw, 4rem); }
.facade__text { max-width: 24em; color: rgba(248, 252, 251, .8); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.facade__big {
  max-width: 17em;
  font-size: clamp(1.7rem, 1rem + 2.7vw, 3.4rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -.038em;
}
.facade__big em { font-size: 1.12em; color: var(--mint); }
/* bez JavaScriptu (a při omezeném pohybu) zůstává jen první krok dole přes celou fotku */
.facade__step[data-step="1"], .facade__step[data-step="2"] { display: none; }
.facade:not(.is-scene) .facade__step[data-step="0"] { top: auto; bottom: clamp(2.75rem, 9vh, 6rem); }
.facade.is-scene .facade__shade { opacity: var(--shade, 0); }
.facade.is-scene .facade__step { display: block; opacity: 0; transform: translateY(1.75rem); transition: opacity .6s, transform .9s var(--ease-out); }
.facade.is-scene .facade__step.is-active { opacity: 1; transform: none; transition-delay: .12s; }
.facade.is-scene .facade__step[data-step="1"] { top: clamp(6.25rem, 15vh, 9.5rem); }
.facade.is-scene .facade__step[data-step="2"] { bottom: clamp(2.75rem, 9vh, 6rem); }

.facade__hint {
  display: none;
  position: absolute; left: var(--gutter); bottom: 2rem;
  align-items: center; gap: .9rem;
  font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark);
  transition: opacity .5s;
}
.facade.is-scene .facade__hint { display: flex; }
.facade__hint i { position: relative; width: 1px; height: 2.75rem; background: var(--line-dark); overflow: hidden; }
.facade__hint i::after {
  content: ""; position: absolute; inset: 0; background: var(--mint);
  animation: hint 2s var(--ease-in-out) infinite;
}
@keyframes hint {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
.facade__hint.is-off { opacity: 0; }

/* 10 ── Dům a galerie ────────────────────────────────────────────────────── */
.house { padding-bottom: clamp(4.5rem, 8vw, 8rem); }
.house__media { display: grid; gap: var(--gap); }
.house__main { aspect-ratio: 3 / 2; }
.house__side { aspect-ratio: 4 / 5; width: 64%; margin: -3.5rem 0 0 auto; z-index: 1; }
@media (min-width: 56em) {
  .house__media { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .house__main { grid-column: 1 / span 8; }
  .house__side { grid-column: 9 / -1; width: auto; margin: clamp(5rem, 13vw, 13rem) 0 0; }
}

.rooms { display: grid; gap: 2.25rem var(--gap); margin-top: clamp(3rem, 6vw, 6rem); }
@media (min-width: 56em) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.rooms__item { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.rooms__no { font-size: .72rem; font-weight: 500; letter-spacing: .16em; color: var(--mint-deep); }
.rooms__item .h3 { margin: .9rem 0 .75rem; }
.rooms__item p { max-width: 30em; color: var(--muted); }

.gallery { margin-top: clamp(4rem, 8vw, 8rem); }
.gallery__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.gallery__nav { display: flex; align-items: center; gap: .6rem; }
.gallery__count { margin-right: 1rem; font-size: .8rem; letter-spacing: .1em; color: var(--muted); font-variant-numeric: tabular-nums; }
.gallery__count b { font-weight: 500; color: var(--ink); }
.gallery__count i { font-style: normal; }
.gallery__track {
  --edge: max(var(--gutter), calc((100vw - var(--max)) / 2));
  display: flex; gap: var(--gap);
  padding-inline: var(--edge); scroll-padding-inline: var(--edge);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery__track.is-dragging .gallery__item { pointer-events: none; }
.gallery__item {
  position: relative; flex: none; overflow: hidden;
  width: 76vw; aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  background: var(--paper-3);
}
.gallery__item picture { display: block; width: 100%; height: 100%; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); -webkit-user-drag: none; user-select: none; }
.gallery__item::after {
  content: ""; position: absolute; inset: 55% 0 0 0; pointer-events: none;
  background: linear-gradient(to top, rgba(23, 27, 24, .55), rgba(23, 27, 24, 0));
}
.gallery__cap { position: absolute; left: 1.1rem; bottom: .95rem; z-index: 1; font-size: .8rem; letter-spacing: .03em; color: var(--paper); }
@media (min-width: 56em) {
  .gallery__item { width: auto; height: clamp(20rem, 58vh, 35rem); }
  .gallery__item--wide { aspect-ratio: 3 / 2; }
}
@media (hover: hover) {
  .gallery__item:hover img { transform: scale(1.045); }
}
.gallery__bar { position: relative; height: 1px; margin-top: 1.75rem; background: var(--line); }
.gallery__bar span {
  position: absolute; left: 0; top: -1px; height: 3px; width: 100%;
  background: var(--ink); transform-origin: 0 50%; transform: scaleX(.12);
}

/* 11 ── Terasa ───────────────────────────────────────────────────────────── */
.terrace { padding-top: clamp(1rem, 3vw, 3rem); padding-bottom: calc(var(--section) + 2rem); }
.terrace__grid { display: grid; gap: 2.5rem var(--gap); }
.terrace__copy .h2 { margin: 1.4rem 0 1.5rem; }
.terrace__copy .ticks { margin-top: 2.25rem; }
.terrace__main { aspect-ratio: 3 / 2; }
.terrace__side { aspect-ratio: 4 / 5; width: 46%; margin-top: -5.5rem; margin-left: var(--gutter); z-index: 1; }
@media (max-width: 55.99em) {
  .terrace__main { margin-inline: calc(var(--gutter) * -1); }
  .terrace__side { margin-left: 0; }
}
@media (min-width: 56em) {
  .terrace__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .terrace__copy { grid-column: 1 / span 4; grid-row: 1; }
  .terrace__main { grid-column: 6 / -1; grid-row: 1; }
  .terrace__side { grid-column: 5 / span 2; grid-row: 1; align-self: end; width: auto; margin: 0 0 -5rem; }
}

/* 12 ── Sauna ────────────────────────────────────────────────────────────── */
.sauna {
  position: relative; z-index: 1; overflow: clip;
  padding-bottom: var(--section);
  background: var(--ink); color: var(--paper);
}
.sauna__night {
  position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  height: clamp(34rem, 100svh, 64rem);
}
.sauna__night picture { position: absolute; inset: -9% 0; height: 118%; will-change: transform; }
.sauna__night img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 50%; }
@media (orientation: portrait) { .sauna__night img { object-position: 84% 50%; } }
.sauna__night-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(23, 27, 24, .72) 22%, rgba(23, 27, 24, 0) 58%),
    linear-gradient(to right, rgba(23, 27, 24, .4), rgba(23, 27, 24, 0) 60%);
}
.sauna__title { position: relative; padding-bottom: clamp(1.5rem, 4vw, 3.5rem); }
.sauna__title .h2 { margin-top: 1.5rem; max-width: 11em; }

.sauna__grid { display: grid; gap: 3rem var(--gap); margin-top: clamp(2.5rem, 6vw, 6rem); }
.sauna__img { aspect-ratio: 4 / 5; --frame-bg: var(--ink-2); }
/* dýchající žár kamen */
.sauna__img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 62% 78%, rgba(240, 178, 122, .3), rgba(240, 178, 122, 0) 70%);
  mix-blend-mode: screen;
  animation: ember 5.5s ease-in-out infinite alternate;
}
@keyframes ember {
  from { opacity: .35; }
  to { opacity: 1; }
}
.sauna__steam { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
@media (min-width: 56em) {
  .sauna__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .sauna__img { grid-column: 1 / span 5; position: sticky; top: 6.5rem; }
  .sauna__copy { grid-column: 7 / -1; padding-top: clamp(0rem, 3vw, 3rem); }
}

.features { display: grid; margin-top: clamp(2.5rem, 4vw, 4rem); }
@media (min-width: 40em) { .features { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.features__item { display: flex; gap: 1.15rem; padding: 1.5rem 0; border-top: 1px solid var(--line-dark); }
.features__item .icon { color: var(--mint); }
.features__item p { margin-top: .3rem; font-size: .94rem; color: var(--muted-dark); }

.ritual { margin-top: clamp(2.5rem, 4vw, 4rem); border-bottom: 1px solid var(--line-dark); }
.ritual li {
  display: grid; grid-template-columns: 2.75rem 1fr; gap: .15rem 0; align-items: baseline;
  padding: 1.15rem 0; border-top: 1px solid var(--line-dark);
}
.ritual span { font-size: .72rem; font-weight: 500; letter-spacing: .16em; color: var(--mint); }
.ritual b { font-size: 1.3rem; font-weight: 300; letter-spacing: -.025em; }
.ritual i { grid-column: 2; font-style: normal; font-size: .94rem; color: var(--muted-dark); }
@media (min-width: 40em) {
  .ritual li { grid-template-columns: 2.75rem 10rem 1fr; }
  .ritual i { grid-column: 3; }
}

/* 13 ── Vybavení ─────────────────────────────────────────────────────────── */
.amenities { background: var(--paper-2); }
.amenity-list { display: grid; column-gap: clamp(1.5rem, 3vw, 3.5rem); border-bottom: 1px solid var(--line); }
@media (min-width: 40em) { .amenity-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66em) { .amenity-list { grid-template-columns: repeat(3, 1fr); } }
.amenity { display: flex; gap: 1.2rem; padding: 1.65rem 0; border-top: 1px solid var(--line); }
.amenity .icon { margin-top: .1rem; transition: color .4s, transform .7s var(--ease-out); }
.amenity p { margin-top: .25rem; font-size: .925rem; color: var(--muted); }
@media (hover: hover) {
  .amenity:hover .icon { color: var(--mint-deep); transform: translateY(-4px); }
}

/* 14 ── Okolí ────────────────────────────────────────────────────────────── */
.region__grid { display: grid; gap: 3rem var(--gap); }
@media (min-width: 56em) {
  .region__grid { grid-template-columns: repeat(12, 1fr); align-items: center; }
  .places { grid-column: 1 / span 6; }
  .rings { grid-column: 8 / -1; }
}
.places { border-bottom: 1px solid var(--line); }
.place {
  display: grid; grid-template-columns: 1fr auto; gap: .35rem 1.25rem; align-items: center;
  padding: 1.35rem 0; border-top: 1px solid var(--line);
  transition: padding .6s var(--ease-out);
}
.place__time { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.place__time b {
  margin-right: .3rem; vertical-align: -.1em;
  font-size: 2.5rem; font-weight: 200; line-height: 1; letter-spacing: -.06em; color: var(--ink);
}
.place__time--text { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-deep); }
.place__body p { margin-top: .2rem; font-size: .94rem; color: var(--muted); }
.place .icon { color: var(--mint-deep); transition: transform .7s var(--ease-out); }
@media (min-width: 40em) {
  .place { grid-template-columns: 9.5rem 1fr auto; }
  .place__time { grid-column: auto; }
}
.place.is-hot { padding-left: .75rem; }
.place.is-hot .icon { transform: translateX(-.4rem) scale(1.1); }

.rings { max-width: 34rem; margin-inline: auto; width: 100%; }
.rings svg { width: 100%; height: auto; overflow: visible; }
/* se skriptem se schéma vykreslí až při dorolování (třída .is-in); bez skriptu je vidět rovnou celé */
.rings__circles circle {
  stroke: var(--ink); stroke-opacity: .28; stroke-width: 1;
  stroke-dasharray: 1;
  transform: rotate(-90deg); transform-origin: 260px 260px;
  transition: stroke-dashoffset 2.2s var(--ease-in-out);
}
.rings__circles circle:nth-child(2) { transition-delay: .2s; }
.rings__circles circle:nth-child(3) { transition-delay: .4s; }
.rings__circles circle:nth-child(4) { transition-delay: .6s; }
.js .rings:not(.is-in) .rings__circles circle { stroke-dashoffset: 1; }
.rings__labels text { font-size: 9.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; fill: var(--muted); transition: opacity 1s 1.4s; }
.js .rings:not(.is-in) .rings__labels text { opacity: 0; }
.rings__home rect { fill: var(--ink); }
.rings__home path { fill: var(--mint); }
.rings__pulse circle {
  stroke: var(--mint-deep); stroke-width: 1; vector-effect: non-scaling-stroke;
  transform-origin: 260px 260px;
  animation: pulse 7s linear infinite;
}
.rings__pulse circle:nth-child(2) { animation-delay: -3.5s; }
@keyframes pulse {
  from { transform: scale(1); opacity: .45; }
  to { transform: scale(6.2); opacity: 0; }
}
.rings__dot { transition: opacity .8s; }
.js .rings:not(.is-in) .rings__dot { opacity: 0; }
.rings.is-in .rings__dot:nth-last-of-type(4) { transition-delay: 1.1s; }
.rings.is-in .rings__dot:nth-last-of-type(3) { transition-delay: 1.35s; }
.rings.is-in .rings__dot:nth-last-of-type(2) { transition-delay: 1.6s; }
.rings.is-in .rings__dot:nth-last-of-type(1) { transition-delay: 1.85s; }
.rings__dot circle { fill: var(--mint-deep); transition: r .5s var(--ease-out); }
.rings__dot .halo { fill: none; stroke: var(--mint-deep); animation: halo 2.8s ease-out infinite; }
@keyframes halo {
  from { r: 6px; opacity: .7; }
  to { r: 22px; opacity: 0; }
}
.rings__dot text { font-size: 15px; font-weight: 400; letter-spacing: -.01em; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 7px; stroke-linejoin: round; }
.rings__dot.is-hot circle:first-child { r: 10px; }

.region__photos { display: grid; gap: var(--gap); margin-top: clamp(4rem, 8vw, 8rem); }
.region__photo { aspect-ratio: 3 / 2; }
@media (min-width: 56em) {
  .region__photos { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .region__photo { grid-column: 1 / span 7; }
  .region__photo--small { grid-column: 9 / -1; aspect-ratio: 1 / 1; margin-bottom: clamp(3rem, 7vw, 7rem); }
}

.seasons { display: grid; gap: 2rem var(--gap); margin-top: clamp(3rem, 6vw, 6rem); }
@media (min-width: 40em) { .seasons { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66em) { .seasons { grid-template-columns: repeat(4, 1fr); } }
.seasons li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.seasons p { max-width: 24em; margin-top: .5rem; font-size: .94rem; color: var(--muted); }

/* 15 ── Ceník ────────────────────────────────────────────────────────────── */
.pricing { background: var(--paper-2); }
.prices { display: grid; gap: var(--gap); }
@media (min-width: 48em) { .prices { grid-template-columns: 1fr 1fr; } }
.price {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(19rem, 30vw, 26rem);
  padding: clamp(1.75rem, 3.4vw, 3.5rem);
  background: var(--paper);
}
/* ozdobná „střecha“ v rohu karty */
.price::before {
  content: ""; display: none; position: absolute; right: -2rem; top: clamp(2.5rem, 6vw, 6rem);
  width: 46%; height: 1px; background: var(--mint-2);
  transform: rotate(-15deg); transform-origin: 100% 50%;
}
@media (min-width: 66em) { .price::before { display: block; } }
.price--main { background: var(--ink); color: var(--paper); }
.price--main::before { background: var(--mint); }
.price__name { font-size: .75rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.price__months { margin-top: .65rem; font-size: .94rem; color: var(--muted); }
.price__value { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; margin-top: auto; padding-top: 3rem; }
.price__value b {
  font-size: clamp(3.75rem, 1rem + 7vw, 8.5rem);
  font-weight: 200; line-height: .88; letter-spacing: -.065em;
}
.price__value span { font-size: 1rem; color: var(--muted); white-space: nowrap; }
.price__note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .94rem; color: var(--muted); }
.price--main .price__months, .price--main .price__value span, .price--main .price__note { color: var(--muted-dark); }
.price--main .price__note { border-color: var(--line-dark); }

.year { margin-top: var(--gap); }
.year__months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; }
@media (min-width: 40em) { .year__months { grid-template-columns: repeat(12, 1fr); } }
.year__months li {
  padding: .95rem 0;
  font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; text-align: center;
  background: var(--paper); color: var(--muted);
}
.year__months li.is-main { background: var(--ink); color: var(--paper); }
.year__legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.5rem; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.year__key { display: inline-block; width: .7rem; height: .7rem; margin-right: -1rem; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.year__key--main { background: var(--ink); box-shadow: none; }

.pricing__foot { display: grid; gap: 2.5rem var(--gap); margin-top: clamp(3rem, 5vw, 5rem); }
@media (min-width: 56em) {
  .pricing__foot { grid-template-columns: repeat(12, 1fr); align-items: end; }
  .pricing__foot .ticks { grid-column: 1 / span 7; }
  .pricing__cta { grid-column: 9 / -1; }
}
.pricing__foot .ticks { border-bottom: 1px solid var(--line); }
.pricing__cta p { max-width: 26em; margin-bottom: 1.5rem; color: var(--muted); }

/* 16 ── Rezervace ────────────────────────────────────────────────────────── */
.booking .head { margin-bottom: clamp(2.5rem, 4vw, 4rem); }
.booking .head .h2 { margin-block: .25rem; }
.booking__card {
  position: relative;
  max-width: 76rem; min-height: 36rem; margin-inline: auto;
  padding: clamp(.75rem, 3vw, 3rem);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 2.5rem 6rem -3.5rem rgba(23, 27, 24, .35);
}
.booking__card iframe { position: relative; width: 100%; min-height: 32rem; }
.booking__loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.booking__alt { margin-top: 2.25rem; text-align: center; color: var(--muted); }
.booking__alt .link { margin-left: .4em; color: var(--ink); }

/* 17 ── Časté dotazy ─────────────────────────────────────────────────────── */
.faq { background: var(--paper-2); }
.faq__grid { display: grid; gap: 3rem var(--gap); }
.faq__head .h2 { margin: 1.4rem 0 1.75rem; }
.faq__contact { max-width: 22em; color: var(--muted); }
.faq__contact .link { color: var(--ink); }
@media (min-width: 56em) {
  .faq__grid { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .faq__head { grid-column: 1 / span 4; position: sticky; top: 7rem; }
  .faq__list { grid-column: 6 / -1; }
}
.faq__list { border-bottom: 1px solid var(--line); }
.qa { border-top: 1px solid var(--line); }
.qa summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.45rem 0; cursor: pointer; list-style: none;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3rem); font-weight: 350; line-height: 1.3; letter-spacing: -.02em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i {
  position: relative; flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--line);
  transition: background-color .4s, border-color .4s, color .4s, transform .6s var(--ease-out);
}
.qa summary i::before, .qa summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
  transition: transform .6s var(--ease-out);
}
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.qa[open] summary i { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
@media (hover: hover) { .qa summary:hover i { transform: scale(1.08); } }
.qa__body { max-width: 42em; padding: 0 3.5rem 1.75rem 0; color: var(--muted); }
.qa__body .link { color: var(--ink); font-weight: 400; }
/* plynulé rozbalení (novější prohlížeče; jinde se otevře hned) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content {
    block-size: 0; overflow: clip;
    transition: block-size .6s var(--ease-out), content-visibility .6s allow-discrete;
  }
  .qa[open]::details-content { block-size: auto; }
}

/* 18 ── Závěrečná výzva a patička ────────────────────────────────────────── */
.cta {
  position: relative; z-index: 1; overflow: hidden;
  padding-block: clamp(5.5rem, 12vw, 12rem);
  background: var(--mint); color: var(--ink);
}
/* velký znak NOMA jako vodoznak */
.cta::after {
  content: ""; position: absolute; right: -4vw; bottom: 0;
  width: min(46vw, 44rem); aspect-ratio: 1;
  background: var(--mint-2);
  -webkit-mask: url("../mark.svg") right bottom / contain no-repeat; mask: url("../mark.svg") right bottom / contain no-repeat;
  pointer-events: none;
}
.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: clamp(2rem, 4vw, 3.5rem); }
.cta .h2 { max-width: 12em; }
.cta .h2 em { color: inherit; }

.footer {
  position: relative; z-index: 1;
  padding-top: clamp(4rem, 8vw, 7rem);
  background: var(--ink); color: var(--paper);
}
.footer__grid { display: grid; gap: 2.75rem var(--gap); }
@media (min-width: 40em) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66em) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer__col { font-size: .95rem; color: rgba(248, 252, 251, .84); }
.footer__col p + p { margin-top: .75rem; }
.footer__claim {
  max-width: 15em; margin-bottom: 1.75rem;
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.8rem); font-weight: 300; line-height: 1.22; letter-spacing: -.03em;
  color: var(--paper);
}
.footer__title {
  margin-bottom: 1.15rem;
  font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-dark);
}
.social { display: flex; gap: .6rem; margin-top: 1.25rem; }
.social .icon { width: 1.35rem; height: 1.35rem; }
.footer__links li + li { margin-top: .55rem; }
.footer__links a { display: inline-flex; align-items: center; gap: .4em; transition: color .3s; }
.footer__links .icon { width: .9em; height: .9em; opacity: .7; }
@media (hover: hover) { .footer__links a:hover { color: var(--mint); } }

.wordmark { width: 100%; height: auto; margin-top: clamp(4rem, 9vw, 9rem); overflow: visible; color: var(--paper); }
.js .wordmark path { transform-box: fill-box; }
.js .wordmark .wm-post { transform-origin: 50% 100%; transform: scaleY(0); }
.js .wordmark .wm-roof { clip-path: inset(0 100% 0 0); }
.js .wordmark .wm-o { transform-origin: 50% 50%; transform: scale(.5) rotate(-50deg); opacity: 0; }
.js .wordmark .wm-a { clip-path: inset(100% 0 0 0); }
.js .wordmark.is-in path {
  transform: none; opacity: 1; clip-path: inset(0);
  transition: transform 1.3s var(--ease-out), opacity .8s, clip-path 1.2s var(--ease-in-out);
  transition-delay: calc(var(--i) * 90ms);
}

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: clamp(2rem, 4vw, 4rem); padding-block: 1.75rem 2rem;
  border-top: 1px solid var(--line-dark);
  font-size: .8rem; color: var(--muted-dark);
}
@media (max-width: 55.99em) { .footer__bottom { padding-bottom: 6.5rem; } }

/* 19 ── Spodní lišta, prohlížeč fotek, kurzor, štítek ────────────────────── */
.dock {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .5rem .5rem 1.25rem;
  border-radius: 99rem;
  background: rgba(23, 27, 24, .9); color: var(--paper);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 .75rem 2.5rem -.75rem rgba(0, 0, 0, .45);
  transform: translateY(180%); transition: transform .8s var(--ease-out);
}
.dock.is-on { transform: none; }
.dock__price { font-size: .85rem; color: var(--muted-dark); }
.dock__price b { font-size: 1rem; font-weight: 500; color: var(--paper); }
/* na počítači je z lišty malá plovoucí pilulka vpravo dole */
@media (min-width: 56em) {
  .dock { left: auto; right: 1.5rem; bottom: 1.5rem; gap: 1.25rem; padding-left: 1.4rem; }
}

.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0;
  background: rgba(15, 18, 16, .97); color: var(--paper);
}
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: fade-in .4s ease-out; }
.lightbox__figure { display: grid; justify-items: center; gap: 1rem; }
.lightbox__figure img {
  width: auto; height: auto; max-width: min(92vw, 110rem); max-height: 80vh; max-height: 80dvh;
  object-fit: contain; animation: lb-img .7s var(--ease-out);
}
.lightbox__figure figcaption { font-size: .85rem; letter-spacing: .04em; color: var(--muted-dark); }
.lightbox__count { position: absolute; left: 1.5rem; top: 1.75rem; font-size: .8rem; letter-spacing: .12em; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.lightbox__close { position: absolute; right: 1.25rem; top: 1.1rem; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; margin-top: -1.5rem; }
.lightbox__prev { left: 1.25rem; }
.lightbox__next { right: 1.25rem; }
@media (max-width: 47.99em) {
  .lightbox__prev, .lightbox__next { top: auto; bottom: 1.5rem; margin: 0; }
  .lightbox__prev { left: calc(50% - 3.5rem); }
  .lightbox__next { right: calc(50% - 3.5rem); }
}
@keyframes fade-in { from { opacity: 0; } }
@keyframes lb-img { from { opacity: 0; transform: scale(.97); } }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed; left: 0; top: 0; z-index: 80;
    display: grid; place-items: center;
    width: 5.75rem; height: 5.75rem; margin: -2.875rem 0 0 -2.875rem; border-radius: 50%;
    background: var(--mint); color: var(--ink);
    font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
    pointer-events: none;
    scale: 0; transition: scale .5s var(--ease-out);
  }
  .cursor.is-on { scale: 1; }
  .cursor.is-down { scale: .8; }
  .gallery__track { cursor: grab; }
}

.badge-temp { display: none; }
[data-fotky="docasne"] .badge-temp {
  display: block; position: fixed; right: 0; top: 50%; z-index: 45;
  padding: .4rem .8rem;
  font-size: .6rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  background: rgba(23, 27, 24, .82); color: var(--mint);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform-origin: 100% 100%; transform: rotate(-90deg) translateX(50%);
  pointer-events: none;
}

/* Nízká okna (mobil na šířku): úvod se nepřilepuje a roste podle obsahu, scéna s okny je úspornější */
@media (max-height: 34rem) {
  .hero { position: relative; height: auto; min-height: 100vh; min-height: 100svh; }
  .hero__inner { height: auto; min-height: 100vh; min-height: 100svh; padding-top: 5.5rem; }
  .hero__content { padding-bottom: 1.5rem; }
  .hero__title { font-size: clamp(2.2rem, 6vw, 3.5rem); margin: .8rem 0 1rem; }
  .facade__stage { min-height: 0; }
  .facade__step[data-step="0"], .facade.is-scene .facade__step[data-step="1"] { top: 4.75rem; max-width: 38%; }
  .facade__step[data-step="0"] .h2 { margin: .8rem 0 .6rem; font-size: 1.75rem; }
  .facade__text { font-size: .9rem; }
  .facade__big { font-size: 1.5rem; }
  .facade.is-scene .facade__hint { display: none; }
}
/* na šířku položený mobil má tlačítko v hlavičce, spodní lišta by jen zabírala místo */
@media (max-height: 34rem) and (min-width: 40em) { .dock { display: none; } }

/* 20 ── Animace při dorolování ───────────────────────────────────────────── */
.js [data-reveal]:not([data-reveal="img"], [data-reveal="rings"], [data-reveal="wordmark"]) {
  opacity: 0; transform: translateY(1.75rem);
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in:not([data-reveal="img"], [data-reveal="rings"], [data-reveal="wordmark"]) { opacity: 1; transform: none; }

/* řádky v seznamu míst mají navíc plynulé odsazení při zvýraznění */
.js .place[data-reveal] {
  transition: opacity 1.1s var(--ease-out), transform 1.3s var(--ease-out), padding .6s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms), calc(var(--d, 0) * 90ms), 0s;
}

/* fotka se odkryje zdola; ořez je na vnitřním <picture>, aby sledovaný rám zůstal „vidět“ */
.js [data-reveal="img"]:not(.is-in) { background: transparent; }
.js [data-reveal="img"] { transition: background-color .3s 1.2s; }
.js [data-reveal="img"] picture {
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 1.5s var(--ease-in-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal="img"].is-in picture { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.js [data-reveal="img"] img { transform: scale(1.22); transition: transform 2s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="img"].is-in img { transform: none; }

/* nadpisy: slova vyjíždějí zpod „masky“ */
.js [data-split] .w { display: inline-block; clip-path: inset(-.22em -.14em -.26em -.08em); }
.js [data-split] .w > span {
  display: inline-block; transform: translateY(130%) rotate(5deg); transform-origin: 0 100%;
  transition: transform 1.25s var(--ease-out);
  transition-delay: calc(var(--i) * 55ms);
}
.js [data-split].is-in .w > span { transform: none; }

/* 21 ── Omezený pohyb (nastavení systému) ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0s !important;
  }
  .js .hero__media { clip-path: none; }
  .js .hero__media picture { transform: none; }
  .frame picture[data-parallax], .sauna__night picture { inset: 0; height: 100%; }
}

/* Tisk */
@media print {
  .header, .menu, .dock, .cursor, .badge-temp, .lightbox, .facade__hint { display: none !important; }
  .hero { position: relative; height: auto; }
}
