/* Vlastní hostování písem — bez závislosti na Google CDN (i kvůli GDPR).
   Variabilní řezy: jeden soubor pokryje všechny tloušťky.
   Latin-ext subset nese českou diakritiku (ě š č ř ž ů ď ť ň). */
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/instrument-sans-latin-ext.woff2') format('woff2-variations');unicode-range:U+0100-02BA, U+02BD-02/* text a plné tlačítko */, U+02/* linky a okraje karet */-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-20/* Vlastní hostování písem — bez závislosti na Google CDN (i kvůli GDPR).
   Variabilní řezy: jeden soubor pokryje všechny tloušťky.
   Latin-ext subset nese českou diakritiku (ě š č ř ž ů ď ť ň). */, U+2113, U+2/* ---------- 23. MOBILNÍ STICKY CTA ---------- */-2/* linky a okraje karet */F, U+A720-A7FF;}
@font-face{font-family:'Instrument Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/instrument-sans-latin.woff2') format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02/* tlačítko po najetí */, 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:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/inter-latin-ext.woff2') format('woff2-variations');unicode-range:U+0100-02BA, U+02BD-02/* text a plné tlačítko */, U+02/* linky a okraje karet */-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-20/* Vlastní hostování písem — bez závislosti na Google CDN (i kvůli GDPR).
   Variabilní řezy: jeden soubor pokryje všechny tloušťky.
   Latin-ext subset nese českou diakritiku (ě š č ř ž ů ď ť ň). */, U+2113, U+2/* ---------- 23. MOBILNÍ STICKY CTA ---------- */-2/* linky a okraje karet */F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url('../fonts/inter-latin.woff2') format('woff2-variations');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02/* tlačítko po najetí */, 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;}

/* =========================================================
   APARTHOTEL POLANICA SPORT RESORT — landing page
   Designový systém
   ========================================================= */

/* Záložní písma se srovnanými metrikami.
   Poměry jsou naměřené (canvas measureText), ne odhadnuté: Instrument Sans
   má 100,3 % šířky Arialu, Inter 106 %. Díky tomu zabere text před načtením
   webfontu skoro stejné místo a při výměně se stránka nepřesází. */
@font-face {
  font-family: "Instrument Sans Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 102.9%;
  ascent-override: 94.3%;
  descent-override: 24.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 106%;
  ascent-override: 91.5%;
  descent-override: 22.6%;
  line-gap-override: 0%;
}

/* ---------- 1. TOKENY ---------- */
:root {
  /* Light-first. Stránka je bílý list na světle šedé ploše, barvu nesou
     fotky, ne rozhraní. Tmavá zůstala jen jako inkoust pro text a hlavní
     tlačítko, proto si názvy --ink-* drží význam „nejtmavší odstín“. */
  --ink-900:      #0F1110;   /* text a plné tlačítko */
  --ink-800:      #1A1D1B;   /* tlačítko po najetí */
  --ink-700:      #2A2E2C;
  --ink-600:      #E7E4DE;   /* linky a okraje karet */
  --forest-900:   #12211B;   /* zápatí */
  --forest-800:   #0F1110;
  --forest-700:   #2A2E2C;

  --ground:       #EFEDE8;   /* plocha za bílým listem */
  --ivory:        #F6F4F0;   /* tlumené pruhy uvnitř listu */
  --paper:        #FFFFFF;   /* karty */
  --sand:         #EFEDE8;
  --sand-deep:    #DAD6CE;
  --line:         #E3DFD8;
  --line-soft:    #EDEAE4;

  /* --brass      = plochy a ikony (AA s bílým textem)
     --brass-text = drobný text a odkazy na světlém pozadí
     --brass-lite = akcent na tmavém pozadí */
  --brass:        #8A6E36;
  --brass-text:   #785D2A;
  --brass-lite:   #D9BE8B;   /* jantar — hlavní akcent na tmavé */
  --brass-soft:   #EDE4D0;

  /* Terakota je vzorkovaná z interiérů projektu (rezavé židle a filc
     #9B604F), ztmavená tak, aby na ní bílý text prošel WCAG AA.
     Má na stránce jednu jedinou práci: signalizovat živý stav. */
  --terra:        #A2512F;
  --terra-text:   #8E4426;

  --text:         #16241E;
  --text-muted:   #515D57;
  --on-dark:      #F4F1E9;
  --on-dark-mut:  #AEBCB2;

  --danger:       #96331F;

  --font-display: "Instrument Sans", "Instrument Sans Fallback", system-ui, sans-serif;
  --font-body:    "Inter", "Inter Fallback", system-ui, -apple-system, sans-serif;

  --wrap:        1280px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  /* Rytmus sekcí. Dvě hodnoty, nic mezi tím: běžná sekce a nosná sekce.
     Vzdušnost je po typografii druhý důvod, proč referenční stránky
     působí čistě. Dřív měla sekce 48 až 76 px, což je na tuhle velikost
     písma málo a řádky pak splývají do jedné šedé masy. */
  --section-y:     clamp(4.5rem, 7.5vw, 7rem);
  --section-y-key: clamp(6.5rem, 11vw, 10.5rem);
  --sechead-gap:   clamp(2.5rem, 4.5vw, 4rem);

  /* Typografická škála. Osm kroků, nic mezi tím. Před sjednocením měla
     stránka ~50 velikostí písma, z toho 25 v rozmezí .72 až 1.3 rem.
     Rozdíl 0,01 rem nikdo nepřečte jako záměr, ale dohromady rozbíjí
     dojem systému, a to je přesně to, co dělalo stránku nepřehlednou. */
  --t-giant:   clamp(3.5rem, 1.5rem + 9vw, 8rem);
  --t-display: clamp(2.2rem, 1.5rem + 2.6vw, 3.25rem);
  --t-h2:      clamp(1.6rem, 1.25rem + 1.4vw, 2.05rem);
  --t-h3:      1.3rem;
  --t-lead:    clamp(1.06rem, 1rem + .3vw, 1.19rem);
  --t-body:    1.0625rem;
  --t-small:   .95rem;
  --t-micro:   .8rem;

  /* Reference má měkké, výrazně zaoblené plochy. Dřívější 4 px byly
     zvolené k tmavému, ostrému systému; na bílém listu působí tvrdě. */
  --radius:      16px;
  --radius-sm:   10px;
  --radius-lg:   26px;
  --radius-pill: 100px;

  /* Odsazení bílého listu od okraje okna. Čte ho i navigace, aby s ním
     lícovala a nepůsobila jako oříznutý pruh přes celé okno. */
  --okraj:       14px;
  --shadow-sm:   0 1px 2px rgba(15, 26, 21, .06), 0 6px 18px rgba(15, 26, 21, .06);
  --shadow-md:   0 2px 6px rgba(15, 26, 21, .07), 0 20px 50px rgba(15, 26, 21, .12);
  --ease:        cubic-bezier(.22, .68, .36, 1);
  --nav-h:       74px;
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Bílý list na šedé ploše, jak to má reference. Šedá kolem dává stránce
   okraj a bílá tím přestane splývat s hranou okna. Na mobilu se okraj
   nevyplatí, tam list jde od kraje ke kraji. */
.sheet {
  background: var(--paper);
  overflow: hidden;
}
@media (min-width: 900px) {
  body { padding: var(--okraj); }
  .sheet { border-radius: var(--radius-lg); }
}

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

/* Velký stupeň unese lehčí řez, malý ne. Hero a nadpisy sekcí proto jedou
   na 500 — ubere to těžkopádnost a přiblíží to referenci. Karty a otázky
   zůstávají na 600, jinak by na 21 px splynuly s běžným textem, který má
   400. Instrument Sans hostujeme v rozsahu 400 až 700, lehčí řez nemáme. */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.03;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1, h2 { font-weight: 500; }

p { text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }

::selection { background: var(--forest-700); color: var(--ivory); }

:where(a, button, input, select, textarea, summary, details):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -110%);
  z-index: 400; background: var(--forest-900); color: var(--on-dark);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) var(--radius);
  font-size: var(--t-small); font-weight: 500; transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: translate(-50%, 0); }

/* ---------- 3. LAYOUT ---------- */
.wrap {
  width: 100%; max-width: var(--wrap);
  margin-inline: auto; padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--key { padding-block: var(--section-y-key); }

/* Tmavé sekce sdílí chování textu i akcentů */

/* ---------- 4. TYPOGRAFIE ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: 1rem;
}

.sechead { max-width: 60ch; margin-bottom: var(--sechead-gap); }
/* Dvě úrovně nadpisů. Když mají všechny sekce stejně velký nadpis,
   nemá oko kde zakotvit a stránka působí nepřehledně, i když je čistá.
   Velký nadpis dostávají jen tři sekce, které nesou konverzi. */
.sechead__title { font-size: var(--t-h2); }
.section--key .sechead__title { font-size: var(--t-display); }
.sechead__lead {
  margin-top: 1.25rem;
  font-size: var(--t-lead);
  color: var(--text-muted); max-width: 52ch;
}

.sechead--split { max-width: none; display: grid; gap: 1.25rem clamp(2rem, 5vw, 5rem); align-items: end; }
@media (min-width: 900px) {
  .sechead--split { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .sechead--split .sechead__lead { margin-top: 0; }
}

/* ---------- 5. TLAČÍTKA ---------- */
.btn {
  --btn-bg: var(--forest-800);
  --btn-fg: var(--ivory);
  --btn-bd: var(--forest-800);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: var(--t-body); font-weight: 600;
  text-decoration: none; text-align: center;
  transition: background .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), transform .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn__arrow, .btn__cube {
  width: 1.15rem; height: auto; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s var(--ease);
}
.btn__arrow { width: 1.2rem; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { --btn-bg: var(--brass); --btn-bd: var(--brass); --btn-fg: #FFF; }
.btn--primary:hover { --btn-bg: #6F5726; --btn-bd: #6F5726; }

.btn--dark { --btn-bg: var(--forest-800); --btn-bd: var(--forest-800); --btn-fg: var(--ivory); }
.btn--dark:hover { --btn-bg: var(--forest-700); --btn-bd: var(--forest-700); }

/* Textová akce se šipkou. Dvě pilulky vedle sebe si berou stejný díl
   pozornosti, takže návštěvník nevidí jeden zřetelný další krok.
   Sekundární akce proto vypadá jako odkaz, ne jako druhé tlačítko. */
.btn--ghost {
  --btn-bg: transparent; --btn-bd: transparent; --btn-fg: var(--text);
  padding-inline: .3rem;
}
.btn--ghost:hover {
  --btn-bg: transparent; --btn-bd: transparent;
  transform: none; text-decoration: underline; text-underline-offset: 5px;
}

/* Zákaz zalomení jen u malých tlačítek (navigace, sticky lišta). Na velkých
   by dlouhé CTA v kartě nešlo zalomit a karta by na mobilu roztlačila stránku. */
.btn--sm { min-height: 44px; padding: .5rem 1.35rem; font-size: var(--t-small); white-space: nowrap; }
.btn--lg { min-height: 60px; padding: 1rem 2rem; font-size: var(--t-lead); }
.btn--block { width: 100%; }

/* ---------- 6. NAVIGACE ---------- */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  /* Hero je světlé, navigace má tmavý text od začátku. */
  background: transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
/* Navigace lícuje s bílým listem: stejný okraj, stejné zaoblení, stejná bílá.
   Přes celou šířku okna a s hranatými rohy vypadala jako oříznutý pruh
   nalepený nad stránkou, ne jako její součást. */
@media (min-width: 900px) {
  .nav {
    inset-inline: var(--okraj);
    inset-block-start: var(--okraj);
    border-radius: var(--radius-lg);
  }
}
.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: .85rem var(--gutter);
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--nav-h);
}
.nav.is-stuck {
  background: var(--paper);
  box-shadow: 0 1px 2px rgba(15, 26, 21, .04), 0 8px 28px rgba(15, 26, 21, .07);
}

.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; flex: none; min-height: 44px; }
.nav__mark { width: 30px; height: 30px; fill: var(--brass); flex: none; }
.nav__name { display: flex; flex-direction: column; line-height: 1.12; }
.nav__name strong {
  font-family: var(--font-display); font-size: var(--t-body); font-weight: 600;
  letter-spacing: -.02em; color: var(--text);
}
.nav__name em {
  font-style: normal; font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-muted);
}

.nav__links { display: none; gap: clamp(.9rem, 1.5vw, 1.5rem); margin-inline-start: auto; }
.nav__links a {
  /* Popisky se po korektuře prodloužily („Jak investice funguje“) a lámaly
     se uvnitř navigace do dvou řádků. Nesmí se zalomit, proto menší stupeň. */
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  white-space: nowrap;
  text-decoration: none; font-size: var(--t-small); font-weight: 500;
  color: var(--text-muted); transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 9px; height: 1px; width: 0;
  background: currentColor; transition: width .25s var(--ease);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--text); }
.nav__links a:hover::after, .nav__links a.is-current::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
@media (min-width: 1040px) { .nav__actions { margin-inline-start: 0; } }

.nav__phone {
  display: none; align-items: center; gap: .45rem;
  text-decoration: none; font-size: var(--t-body); font-weight: 600;
  color: var(--text); padding: .5rem .7rem; border-radius: var(--radius-pill); min-height: 44px;
  transition: background .2s var(--ease), color .3s var(--ease);
}
.nav__phone:hover { background: rgba(255, 255, 255, .14); }
.nav.is-stuck .nav__phone:hover { background: rgba(35, 64, 52, .07); }
.nav__phone svg { width: 15px; height: 15px; fill: var(--brass); }

@media (min-width: 1040px) { .nav__links { display: flex; } .nav__phone { display: inline-flex; } }
@media (min-width: 680px) and (max-width: 1039px) { .nav__phone { display: inline-flex; } }
/* Na úzké obrazovce posuneme výřez k páru na balkoně, ať ve fotce zůstanou lidé. */
@media (max-width: 700px) { .hero__slide { object-position: 72% 44%; } }

/* Nástup hero textu */
@media (prefers-reduced-motion: no-preference) {
  .hero__title .line, .hero__lead, .hero__actions {
    animation: heroIn .9s var(--ease) both;
  }
  .hero__title .line:nth-child(1) { animation-delay: .08s; }
  .hero__title .line:nth-child(2) { animation-delay: .16s; }
  .hero__title .line:nth-child(3) { animation-delay: .24s; }
  .hero__lead    { animation-delay: .34s; }
  .hero__actions { animation-delay: .42s; }
  @keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
}

.disclaimer {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.15rem, 2.4vw, 1.6rem);
  background: var(--brass-soft);
  border-inline-start: 2px solid var(--brass);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.disclaimer svg {
  width: 20px; height: 20px; margin-top: .15rem; flex: none;
  fill: none; stroke: var(--brass); stroke-width: 1.5; stroke-linecap: round;
}
.disclaimer p { font-size: var(--t-small); line-height: 1.6; color: #4A4229; max-width: 76ch; }
.disclaimer strong { color: #3A3320; }

/* ---------- 13. RESORT ---------- */
/* ---------- 14. 3D VIEWER ---------- */
.viewer { position: relative; }
.viewer__frame {
  position: relative; background: var(--forest-900);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; height: clamp(420px, 68vh, 740px);
  box-shadow: var(--shadow-md);
}
#sm3de { position: absolute; inset: 0; width: 100%; height: 100%; }

.viewer__poster { position: absolute; inset: 0; z-index: 3; }
.viewer__poster img { width: 100%; height: 100%; object-fit: cover; }
.viewer__posterInner {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 1.25rem;
  background: linear-gradient(180deg, rgba(18, 33, 27, .3) 0%, rgba(18, 33, 27, .62) 100%);
}
.viewer__launch {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.6rem 1rem 1.1rem;
  background: rgba(247, 244, 237, .97); border-radius: var(--radius-pill);
  text-align: left; max-width: min(100%, 26rem);
  box-shadow: 0 12px 36px rgba(10, 20, 16, .34);
  transition: transform .22s var(--ease), background .22s var(--ease);
}
.viewer__launch:hover { transform: translateY(-2px) scale(1.01); background: #FFF; }
.viewer__launchIcon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center;
  background: var(--brass); border-radius: 50%;
}
.viewer__launchIcon svg {
  width: 21px; height: 23px; fill: none; stroke: #FFF;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.viewer__launchText { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.viewer__launchText strong {
  font-family: var(--font-display); font-size: var(--t-body); font-weight: 600;
  letter-spacing: -.015em; color: var(--text);
}
.viewer__launchText em { font-style: normal; font-size: var(--t-small); color: var(--text-muted); }

.viewer__loading, .viewer__fallback {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-content: center; justify-items: center; gap: 1rem;
  text-align: center; padding: 2rem 1.5rem;
  color: var(--on-dark); background: var(--forest-900);
}
.viewer__loading[hidden], .viewer__fallback[hidden], .viewer__poster[hidden] { display: none; }
.viewer__loading p { font-size: var(--t-body); color: var(--on-dark-mut); }
.viewer__spinner { display: flex; gap: .4rem; }
.viewer__spinner span {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brass-lite);
  animation: pulseDot 1.15s var(--ease) infinite;
}
.viewer__spinner span:nth-child(2) { animation-delay: .16s; }
.viewer__spinner span:nth-child(3) { animation-delay: .32s; }
@keyframes pulseDot { 0%, 70%, 100% { opacity: .25; transform: scale(.8); } 35% { opacity: 1; transform: scale(1); } }
.viewer__fallback h3 { font-size: var(--t-h3); }
.viewer__fallback p { font-size: var(--t-body); color: var(--on-dark-mut); max-width: 36ch; }

.viewer__bar {
  margin-top: 1rem; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: .85rem 1.5rem;
}
.viewer__hint { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: var(--t-small); color: var(--text-muted); }
.viewer__hint span { display: inline-flex; align-items: center; gap: .4rem; }
.viewer__hint span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); flex: none; }
.viewer__hint b { font-weight: 600; color: var(--text); }

.viewer__expand {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 44px; padding: .55rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper);
  font-size: var(--t-small); font-weight: 600; color: var(--text);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.viewer__expand:hover { border-color: var(--forest-800); background: var(--ivory); }
.viewer__expand[hidden] { display: none; }
.viewer__expand svg {
  width: 15px; height: 15px; flex: none; fill: none; stroke: var(--brass);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.viewer__close {
  position: absolute; z-index: 310;
  inset-block-start: .85rem; inset-inline-end: .85rem;
  display: none; align-items: center; gap: .5rem;
  min-height: 44px; padding: .6rem 1.1rem;
  background: var(--forest-900); color: var(--ivory); border-radius: var(--radius-pill);
  font-size: var(--t-small); font-weight: 600;
  box-shadow: 0 6px 22px rgba(10, 20, 16, .4);
}
.viewer.is-full .viewer__close { display: inline-flex; }
.viewer__close svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.viewer.is-full .viewer__frame {
  position: fixed; inset: 0; z-index: 300;
  height: 100dvh; width: 100vw; border-radius: 0; border: 0;
}
body.no-scroll { overflow: hidden; }

/* Slovníček */
.legend { margin-top: 1.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legend summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .95rem; min-height: 52px; cursor: pointer; list-style: none;
}
.legend summary::-webkit-details-marker { display: none; }
.legend__label { font-size: var(--t-body); font-weight: 500; color: var(--text); }
.legend summary:hover .legend__label { color: var(--brass-text); }
.legend__body { padding-bottom: 1.35rem; }
.legend__list { display: grid; gap: .5rem 1.75rem; margin: 0; }
@media (min-width: 620px) { .legend__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .legend__list { grid-template-columns: repeat(3, 1fr); } }
.legend__list > div { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); gap: .75rem; padding-block: .3rem; align-items: baseline; }
.legend__list dt { font-family: var(--font-display); font-size: var(--t-small); font-weight: 600; color: var(--forest-700); }
.legend__list dd { margin: 0; font-size: var(--t-small); color: var(--text-muted); }

/* ---------- 15. SCARCITY (živé číslo) ---------- */
.scarcity {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding-top: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
  text-align: center;
}
.scarcity__kicker {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brass-text); margin-bottom: .5rem;
}
.scarcity__num {
  font-family: var(--font-display);
  font-size: var(--t-giant);
  font-weight: 600; letter-spacing: -.055em; line-height: .9;
  color: var(--forest-900); font-variant-numeric: tabular-nums lining-nums;
}
.scarcity__slash { color: var(--text-muted); margin-inline: .04em; }
.scarcity__num > span:last-child { color: var(--text-muted); }
/* Terakota z interiérů projektu — nese naléhavost, ale nekřičí. */
.scarcity__num > span:first-child { color: var(--forest-900); }

.scarcity__bar {
  max-width: 34rem; margin: clamp(1.25rem, 3vw, 2rem) auto 0;
  height: 6px; border-radius: var(--radius-pill); background: rgba(18, 33, 27, .12); overflow: hidden;
}
.scarcity__fill {
  display: block; height: 100%; border-radius: var(--radius-pill); background: var(--brass);
  transition: width 1.2s var(--ease);
}
.scarcity__line {
  margin: clamp(1.25rem, 3vw, 1.75rem) auto 0;
  font-size: var(--t-lead);
  color: var(--text-muted); max-width: 40ch;
}
.scarcity__line b { color: var(--text); font-weight: 600; }
.scarcity .btn { margin-top: clamp(1.5rem, 3vw, 2rem); }

/* ---------- 16. APARTMÁNY ---------- */
.unit { display: grid; gap: clamp(1.75rem, 3.5vw, 3.25rem); align-items: start; }
@media (min-width: 940px) { .unit { grid-template-columns: minmax(0, 58fr) minmax(0, 42fr); } }

.unit__main { overflow: hidden; border-radius: var(--radius); margin: 0; }
.unit__main img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.unit__thumbs { margin-top: .7rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.unit__thumb {
  position: relative; padding: 0; border-radius: var(--radius); overflow: hidden;
  line-height: 0; border: 1px solid transparent; opacity: .55; min-height: 44px;
  transition: border-color .2s var(--ease), opacity .2s var(--ease);
}
.unit__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.unit__thumb:hover { opacity: .85; }
.unit__thumb.is-active { opacity: 1; border-color: var(--brass); }

.specs { display: grid; margin: 0; }
.specs__row {
  display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: 1rem;
  padding-block: clamp(.8rem, 1.6vw, 1.05rem);
  border-top: 1px solid var(--line-soft); align-items: baseline;
}
.specs__row:last-child { border-bottom: 1px solid var(--line-soft); }
.specs dt { font-size: var(--t-micro); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.specs dd { margin: 0; font-family: var(--font-display); font-size: var(--t-lead); font-weight: 500; letter-spacing: -.015em; }
.specs__row--hi dd { color: var(--brass-text); font-weight: 600; }

/* ---------- 17. BALÍČKY ---------- */
.pkgs { display: grid; gap: clamp(1rem, 2vw, 1.4rem); }
@media (min-width: 900px) {
  .pkgs { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

}

.pkg {
  position: relative; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.6vw, 1.9rem);
  display: flex; flex-direction: column; gap: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.pkg:hover { border-color: var(--sand-deep); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.pkg--feature { border-color: var(--brass); box-shadow: var(--shadow-sm); }
.pkg--feature:hover { border-color: var(--brass); box-shadow: var(--shadow-md); }

/* Doporučená volba se pozná jasnějším rámem a drobným popiskem,
   ne barevnou nálepkou v rohu. Ta vypadala jako akční leták. */
.pkg__flag {
  display: block; margin-bottom: 1rem;
  color: var(--brass-text);
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
/* Zvýrazněná karta je tmavá i ve světlé sekci, takže si barvy textu musí
   nést sama. Když visely na `.section--dark`, přepnutím sekce do světla
   z nich zbyl tmavý text na tmavé kartě: název měl kontrast 1,00. */
.pkg--feature {
  border-color: var(--brass);
  background: var(--ink-700);
  color: var(--on-dark);
}
.pkg--feature .pkg__flag { color: var(--brass-lite); }
.pkg--feature .pkg__title { color: #FFF; }
.pkg--feature .pkg__num { color: var(--brass-lite); }
.pkg--feature .pkg__price,
.pkg--feature .pkg__price span { color: var(--brass-lite); }
.pkg--feature .pkg__price em { color: var(--on-dark-mut); }
.pkg--feature .pkg__list li { color: var(--on-dark); }
.pkg--feature .pkg__list li::before { color: var(--brass-lite); }

/* Číslo stojí nad nadpisem, ne vedle něj. Vedle nadpisu odsazovalo i perex,
   takže nadpis, perex, cena a seznam měly každý jinou levou hranu. */
.pkg__top { display: grid; gap: .35rem; align-content: start; }
.pkg__num {
  font-family: var(--font-display); font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .16em; color: var(--brass-text); font-variant-numeric: tabular-nums;
}
.pkg__title { font-size: var(--t-h3); }
/* Komu je služba určená. Ve zvýrazněné tmavé kartě musí mít vlastní barvu. */
.pkg__for { font-size: var(--t-small); line-height: 1.45; color: var(--text-muted); }
.pkg--feature .pkg__for { color: var(--on-dark-mut); }

/* Doplněk ceny stojí vždy pod částkou, ne vedle ní. „od 5 000 Kč“ je širší
   než „25 000 Kč“, takže se doplněk v jedné kartě zalomil a ve druhé ne
   a ceny přestaly působit jako jedna řada. */
.pkg__price {
  display: flex; flex-direction: column; align-items: flex-start; gap: .3rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--line-soft);
}
.pkg__price span {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600; letter-spacing: -.04em; color: var(--forest-800);
  font-variant-numeric: tabular-nums lining-nums;
}
/* Cenu ve zvýrazněné kartě řeší pravidlo výš, tady by ji přebilo na tmavém. */
.pkg__price em { font-style: normal; font-size: var(--t-small); color: var(--text-muted); }

.pkg__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.pkg__list li { position: relative; padding-inline-start: 1.5rem; font-size: var(--t-body); line-height: 1.5; color: var(--text-muted); }
.pkg__list li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .4em;
  width: 9px; height: 5px;
  border-inline-start: 1.5px solid var(--brass); border-block-end: 1.5px solid var(--brass);
  transform: rotate(-45deg);
}
.pkg__list b { color: var(--text); font-weight: 600; }

/* „Objednat investiční konzultaci“ se do šířky karty nevešlo na jeden řádek
   a sdílená mřížka pak zvedla výšku i zbylým dvěma tlačítkům. */
.pkg__cta { margin-top: auto; font-size: var(--t-small); padding-inline: .9rem; gap: .4rem; }

/* Bloky karet musí sedět v jedné lince napříč všemi třemi kartami.
   Jako flexové sloupce to nešlo: výška bloku závisela na tom, co je nad ním
   v té které kartě, takže nadpis na dva řádky nebo štítek navíc posunul
   všechno pod sebou. Sdílená mřížka dá každému bloku vlastní řádek; karta,
   které blok chybí (konzultace nemá podmínky), svůj řádek nechá prázdný.
   Musí stát AŽ ZA `.pkg { display: flex }`, jinak ho základní pravidlo přebije. */
@media (min-width: 900px) {
  @supports (grid-template-rows: subgrid) {
    .pkgs { grid-template-rows: auto auto auto 1fr auto auto; }
    .pkg  { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
    .pkg__flag  { grid-row: 1; }
    .pkg__top   { grid-row: 2; }
    .pkg__price { grid-row: 3; }
    .pkg__list  { grid-row: 4; align-content: start; }
    .pkg__terms { grid-row: 5; }
    .pkg__cta   { grid-row: 6; margin-top: 0; }
  }
}

.pkgs__after {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: var(--t-body); color: var(--text-muted); max-width: 62ch;
}
.pkgs__after b { color: var(--text); font-weight: 600; }
.pkgs__after a { color: var(--brass-text); font-weight: 600; text-decoration: none; }
.pkgs__after a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 18. TOMÁŠ + DŮVĚRA ---------- */
.person { display: grid; gap: clamp(1.75rem, 3.5vw, 3.5rem); align-items: center; }
@media (min-width: 940px) { .person { grid-template-columns: minmax(0, 38fr) minmax(0, 62fr); } }

.person__photo { margin: 0; overflow: hidden; border-radius: var(--radius); }
.person__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%;
  filter: saturate(.95);
}
@media (max-width: 939px) { .person__photo img { aspect-ratio: 3 / 2; object-position: 50% 20%; } }

.person__name { font-size: var(--t-h2); }
.person__role { margin-top: .45rem; font-size: var(--t-small); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* Čtyři konkrétní věci, které Tomáš pro klienta dělá. Sekce je tmavá,
   takže si barvy nesou samy a nevisí na `.section--dark`. */
.person__points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .6rem; }
@media (min-width: 640px) { .person__points { grid-template-columns: repeat(2, 1fr); column-gap: 1.75rem; } }
.person__points li {
  position: relative; padding-inline-start: 1.5rem;
  font-size: var(--t-body); line-height: 1.5; color: var(--text);
}
.person__points li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .42em;
  width: 9px; height: 5px;
  border-inline-start: 1.5px solid var(--brass-text);
  border-block-end: 1.5px solid var(--brass-text);
  transform: rotate(-45deg);
}
.person__text {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-size: var(--t-lead);
  font-weight: 400; line-height: 1.42; letter-spacing: -.018em;
  color: var(--text); max-width: 44ch;
  padding-inline-start: 1.15rem; border-inline-start: 2px solid var(--brass);
}

.person__contact {
  margin-top: 1.75rem; display: grid; gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 560px) { .person__contact { grid-template-columns: repeat(2, 1fr); } }
.person__link {
  background: var(--ivory); padding: .9rem 1.1rem;
  display: flex; flex-direction: column; gap: .15rem;
  text-decoration: none; min-height: 60px; transition: background .2s var(--ease);
}
.person__link:hover { background: var(--paper); }
.person__link span { font-size: var(--t-micro); font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: var(--text-muted); }
.person__link b { font-size: var(--t-small); font-weight: 600; color: var(--text); }

/* Ověřená hodnocení */
.proof__list {
  list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0;
  display: grid; gap: 1.5rem clamp(1.5rem, 3vw, 3rem);
}
@media (min-width: 720px) { .proof__list { grid-template-columns: repeat(3, 1fr); } }
.proof__item {
  display: flex; flex-direction: column; gap: .3rem;
  padding-inline-start: 1.1rem; border-inline-start: 2px solid var(--brass);
}
.proof__big {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--forest-800); font-variant-numeric: tabular-nums lining-nums;
}
.proof__big b { font-weight: inherit; font-size: inherit; }
.proof__big span { font-size: .38em; font-weight: 500; letter-spacing: -.01em; color: var(--text-muted); }
.proof__desc { font-size: var(--t-small); line-height: 1.5; color: var(--text-muted); }
.proof__desc b { display: block; font-size: var(--t-body); font-weight: 600; color: var(--text); margin-bottom: .1rem; }

.trust__note {
  margin-top: 1.5rem; font-size: var(--t-small); color: var(--text-muted);
  max-width: 76ch; padding-inline-start: 1rem;
  border-inline-start: 2px solid var(--sand-deep);
}
.trust__note b { color: var(--text); font-weight: 600; }

/* ---------- 19. STAVBA ---------- */
.site { display: grid; gap: clamp(1rem, 2vw, 1.35rem); }
@media (min-width: 860px) {
  .site { grid-template-columns: minmax(0, 62fr) minmax(0, 38fr); grid-template-rows: auto auto; }
  .site__big { grid-row: 1 / 3; }
}
.site figure { margin: 0; }
.site figure > img { border-radius: var(--radius); }
.site img { width: 100%; object-fit: cover; }
.site__big img { aspect-ratio: 16 / 11; }
.site__sm img { aspect-ratio: 16 / 9; }
/* Velká fotka roste do výšky obou řádků vedle sebe, ale popisek musí zůstat
   uvnitř rámce. Bez flexu si obrázek vzal 100 % výšky figure a popisek
   vypadl ven, kde ho ořízlo. */
@media (min-width: 860px) {
  .site__big { display: flex; flex-direction: column; }
  .site__big img { flex: 1 1 auto; height: auto; aspect-ratio: auto; min-height: 24rem; }
}
.site figcaption { margin-top: .55rem; font-size: var(--t-micro); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- 20. PRUHY UVNITŘ SEKCE A DOTAZY ---------- */

/* Sloučením sekcí zmizely nadpisy, které dřív držely orientaci. Tenhle pruh
   ji vrací, ale schválně nekřičí jako nadpis sekce — je to mezinadpis uvnitř
   jednoho argumentu, ne nový argument. Proto krok --t-h3, ne --t-h2. */
.band {
  margin-top: clamp(3.5rem, 6vw, 5.5rem);
  padding-top: clamp(1.5rem, 2.5vw, 2rem);
  border-top: 1px solid var(--ink-600);
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.band__label {
  font-family: var(--font-body);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass-text); margin-bottom: .6rem;
}
.band__title { font-size: var(--t-h3); color: var(--text); }

/* Široká fotka areálu s odstavcem pod ní. Vybavení resortu je podružná
   informace, takže ji nese jeden odstavec, ne dvacet útržků v mřížce. */
.area { margin-top: clamp(3.5rem, 6vw, 5.5rem); }
.area img {
  width: 100%; border-radius: var(--radius);
  aspect-ratio: 21 / 9; object-fit: cover;
}
.area__text {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  max-width: 68ch; font-size: var(--t-lead);
  color: var(--text-muted); line-height: 1.6;
}
.area__text b { color: var(--text); font-weight: 500; }
.area__label {
  display: block; margin-bottom: .5rem;
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass-text);
}

.qalist { display: grid; max-width: 68rem; }

.qa { border-top: 1px solid var(--sand-deep); }
.qa:last-child { border-bottom: 1px solid var(--sand-deep); }
.qa summary {
  display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) 1.75rem;
  gap: .75rem; align-items: start;
  padding-block: clamp(1rem, 2vw, 1.3rem);
  cursor: pointer; list-style: none; min-height: 56px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover .qa__q { color: var(--forest-700); }
.qa__idx { font-family: var(--font-display); font-size: var(--t-small); font-weight: 600; color: var(--brass-text); padding-top: .3rem; font-variant-numeric: tabular-nums; }
.qa__q {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 500; letter-spacing: -.02em; line-height: 1.32;
  color: var(--text); transition: color .2s var(--ease);
}
.qa__icon { position: relative; width: 1.75rem; height: 1.75rem; justify-self: end; margin-top: .1rem; flex: none; }
.qa__icon::before, .qa__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--forest-700);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}
.qa__icon::before { width: 15px; height: 1.5px; transform: translate(-50%, -50%); }
.qa__icon::after  { width: 1.5px; height: 15px; transform: translate(-50%, -50%); }
details[open] > summary .qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.qa__a { padding: 0 1.75rem clamp(1.1rem, 2vw, 1.45rem) 3.15rem; overflow: hidden; }
.qa__a p { font-size: var(--t-body); color: var(--text-muted); max-width: 60ch; }
.qa__a a { color: var(--brass-text); font-weight: 500; text-underline-offset: 3px; }
.qa__a b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  details[open] > .qa__a, details[open] > .legend__body { animation: qaOpen .3s var(--ease); }
  @keyframes qaOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
}

/* ---------- 21. KONTAKT ---------- */
.contact { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); } }

.contact__title { font-size: var(--t-display); }
.contact__lead { margin-top: 1.1rem; color: var(--text-muted); max-width: 40ch; }
.contact__lead b { color: var(--text); font-weight: 600; }

.contact__assure { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .5rem; }
.contact__assure li { position: relative; padding-inline-start: 1.5rem; font-size: var(--t-body); color: var(--text-muted); }
.contact__assure li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .42em;
  width: 9px; height: 5px;
  border-inline-start: 1.5px solid var(--brass-text); border-block-end: 1.5px solid var(--brass-text);
  transform: rotate(-45deg);
}
.contact__direct { margin-top: 1.9rem; padding-top: 1.4rem; border-top: 1px solid rgba(244, 241, 233, .16); }
.contact__direct p { font-size: var(--t-micro); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }
.contact__phone {
  display: inline-block; margin-top: .3rem;
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600; letter-spacing: -.03em; color: var(--brass-text); text-decoration: none;
}
.contact__phone:hover { color: #DC/* zápatí */A; }

.form {
  background: var(--ivory); border-radius: var(--radius);
  padding: clamp(1.35rem, 3vw, 2.4rem);
  display: grid; gap: 1.1rem; position: relative; box-shadow: var(--shadow-md);
}
.field { display: grid; gap: .4rem; }
.field-row { display: grid; gap: 1.1rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: repeat(2, 1fr); } }

.field__label { font-size: var(--t-small); font-weight: 600; letter-spacing: .04em; color: var(--text); }
.field__opt { font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.req { color: var(--brass-text); }

.field__input {
  width: 100%; min-height: 52px; padding: .8rem .95rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--t-body); color: var(--text);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field__input::placeholder { color: #9AA39D; }
.field__input:hover { border-color: var(--sand-deep); }
.field__input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(138, 110, 54, .18); }
.field__input:disabled { background: #EFEAE0; color: var(--text-muted); cursor: not-allowed; }
.field__textarea { min-height: 104px; resize: vertical; line-height: 1.55; }

.field__selectWrap { position: relative; }
.field__select { padding-inline-end: 2.75rem; cursor: pointer; }
.field__select:invalid { color: #9AA39D; }
.field__chev {
  position: absolute; inset-inline-end: 1.05rem; inset-block-start: 50%;
  transform: translateY(-50%); width: 12px; height: 8px; pointer-events: none;
  fill: none; stroke: var(--text-muted); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.field__error { display: none; font-size: var(--t-small); font-weight: 500; color: var(--danger); align-items: center; gap: .35rem; }
.field__error::before {
  content: "!"; display: inline-grid; place-items: center; width: 15px; height: 15px;
  border-radius: 50%; background: var(--danger); color: #FFF; font-size: var(--t-micro); font-weight: 700; flex: none;
}
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__input { border-color: var(--danger); }
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 3px rgba(150, 51, 31, .16); }

.field--check { gap: .5rem; }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .7rem; align-items: start; cursor: pointer; padding-block: .25rem; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 22px; height: 22px; flex: none; margin-top: .1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  display: grid; place-items: center;
  transition: background .18s var(--ease), border-color .18s var(--ease);
}
.check__box svg {
  width: 12px; height: 10px; fill: none; stroke: #FFF; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(.7);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
}
.check:hover .check__box { border-color: var(--sand-deep); }
.check input:checked + .check__box { background: var(--brass); border-color: var(--brass); }
.check input:checked + .check__box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--brass); outline-offset: 3px; }
.check__text { font-size: var(--t-small); color: var(--text-muted); line-height: 1.5; }
.field--check.is-invalid .check__box { border-color: var(--danger); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#formSubmit { margin-top: .3rem; }
#formSubmit .btn__spinner {
  display: none; width: 17px; height: 17px; flex: none;
  border: 2px solid rgba(255, 255, 255, .35); border-top-color: #FFF;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#formSubmit.is-loading { pointer-events: none; opacity: .82; }
#formSubmit.is-loading .btn__arrow { display: none; }
#formSubmit.is-loading .btn__spinner { display: block; }

.form__foot { font-size: var(--t-small); color: var(--text-muted); text-align: center; }

.form__success {
  position: absolute; inset: 0; z-index: 5;
  background: var(--ivory); border-radius: var(--radius);
  display: grid; place-content: center; justify-items: center; gap: .65rem;
  text-align: center; padding: clamp(1.75rem, 4vw, 3rem);
}
.form__success[hidden] { display: none; }
.form__successMark {
  width: 56px; height: 56px; border-radius: 50%; background: var(--forest-800);
  display: grid; place-items: center; margin-bottom: .3rem;
}
.form__successMark svg { width: 26px; height: 26px; fill: none; stroke: var(--brass-text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.form__success h3 { font-size: var(--t-h3); }
.form__success p { font-size: var(--t-body); color: var(--text-muted); max-width: 32ch; }
.form__successAlt { font-size: var(--t-small) !important; }
.form__successAlt a { color: var(--brass-text); font-weight: 600; }

.form__error {
  padding: .85rem 1rem; background: rgba(150, 51, 31, .08);
  border-inline-start: 2px solid var(--danger); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--t-small); color: #7A2/* Velký stupeň unese lehčí řez, malý ne. Hero a nadpisy sekcí proto jedou
   na 500 — ubere to těžkopádnost a přiblíží to referenci. Karty a otázky
   zůstávají na 600, jinak by na 21 px splynuly s běžným textem, který má
   400. Instrument Sans hostujeme v rozsahu 400 až 700, lehčí řez nemáme. */;
}
.form__error[hidden] { display: none; }
.form__error a { color: #7A2/* Velký stupeň unese lehčí řez, malý ne. Hero a nadpisy sekcí proto jedou
   na 500 — ubere to těžkopádnost a přiblíží to referenci. Karty a otázky
   zůstávají na 600, jinak by na 21 px splynuly s běžným textem, který má
   400. Instrument Sans hostujeme v rozsahu 400 až 700, lehčí řez nemáme. */; font-weight: 600; }

/* ---------- 22. FOOTER ---------- */
.footer { background: var(--forest-900); color: var(--on-dark); padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.footer__top { display: grid; gap: 2rem; padding-bottom: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(244, 241, 233, .14); }
@media (min-width: 760px) { .footer__top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer__brand { display: flex; align-items: flex-start; gap: .85rem; }
.footer__mark { width: 32px; height: 32px; fill: var(--brass-lite); flex: none; }
.footer__brand p { font-family: var(--font-display); font-size: var(--t-lead); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.footer__brand span { display: block; margin-top: .3rem; font-family: var(--font-body); font-size: var(--t-small); font-weight: 400; letter-spacing: 0; color: var(--on-dark-mut); }
.footer__contact { font-style: normal; display: grid; gap: .25rem; font-size: var(--t-small); color: var(--on-dark-mut); }
.footer__contact b { color: var(--on-dark); font-weight: 600; font-size: var(--t-body); margin-bottom: .15rem; }
.footer__contact a { color: var(--brass-lite); text-decoration: none; width: fit-content; min-height: 28px; display: inline-flex; align-items: center; }
.footer__contact a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: var(--t-micro); line-height: 1.6; color: var(--on-dark-mut); opacity: .82; max-width: 92ch; }
.footer__meta { margin-top: 1.5rem; font-size: var(--t-small); color: var(--on-dark-mut); opacity: .7; }

/* ---------- 23. MOBILNÍ STICKY CTA ---------- */
.mobcta {
  position: fixed; z-index: 90; inset-inline: 0; inset-block-end: 0;
  display: flex; gap: .55rem;
  padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
  background: #F7F4ED; border-top: 1px solid var(--line);
  box-shadow: 0 -2px 18px rgba(15, 26, 21, .08);
  transform: translateY(110%); transition: transform .3s var(--ease);
}
.mobcta[hidden] { display: flex; }
.mobcta.is-visible { transform: translateY(0); }
@media (min-width: 940px) { .mobcta { display: none !important; } }
.mobcta__call {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); text-decoration: none;
}
.mobcta__call svg { width: 19px; height: 19px; fill: var(--forest-800); }
.mobcta__main {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: .8rem 1.1rem;
  background: var(--brass); color: #FFF; border-radius: var(--radius-pill);
  font-size: var(--t-body); font-weight: 600; text-decoration: none;
}
.mobcta__main .btn__arrow { width: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 939px) { body.has-mobcta .footer { padding-bottom: calc(2rem + 74px + env(safe-area-inset-bottom)); } }

/* ---------- 24. REVEAL ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .js .reveal.is-in { 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;
  }
}

/* ---------- 25. PRINT ---------- */
@media print {
  .nav, .mobcta, .viewer__frame, .hero__actions, .pkg__cta { display: none !important; }
  body { background: #FFF; color: #000; }
  .section { padding-block: 1.5rem; }
}

/* ---------- PŘEHRÁVAČ ÚVODNÍHO VIDEA ---------- */
.player {
  position: relative; margin: 0;
  border-radius: var(--radius); overflow: hidden;
}

/* Zástupný rámeček, dokud video není nahrané. Šedá plocha 16:9 a ikona
   přehrávání, nic jiného. Dřív tu byl navíc plovoucí panel s popiskem
   a druhý text; působilo to jako rozbité, protože to vypadalo jako dvě
   věci přes sebe. */
.player__frame {
  display: grid; place-items: center;
  aspect-ratio: 16 / 9;
  /* Vlastní šedá, ne --sand. Ta je skoro totožná s pozadím hera,
     takže rámeček splýval a nebylo poznat, kde začíná. */
  background: #E6E3DC;
  border-radius: var(--radius);
}
.player__icon {
  display: grid; place-items: center;
  width: clamp(56px, 6vw, 72px); aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(15, 17, 16, .07);
}
.player__icon svg { width: 40%; height: auto; fill: var(--text-muted); margin-left: 8%; }

/* Atribut hidden musí přebít `display: grid` výš, jinak by rámeček zůstal
   viditelný i ve chvíli, kdy se video nahraje, a překrývaly by se. */
.player__frame[hidden], .player__video[hidden] { display: none !important; }
/* height:auto je nutné — atribut height="900" na &lt;video&gt; se propisuje
   jako CSS výška a přebil by aspect-ratio. */
.player__video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }

/* ---------- REELS ---------- */
.reels {
  list-style: none; padding: 0 0 .5rem; margin: 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 68%;
  gap: .85rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--sand-deep) transparent;
}
@media (min-width: 620px) { .reels { grid-auto-columns: 34%; } }
/* Osm reels by se ve mřížce zalomilo do dvou řad a zabralo 1,6 obrazovky
   hned za úvodem, což by odsunulo čísla o výnosu pod fold. Zůstává proto
   jedna řada: čtyři jsou vidět, zbytek se posouvá. */
@media (min-width: 1000px) { .reels { grid-auto-columns: 23.6%; } }

.reel {
  position: relative; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden;
  background: var(--forest-900);
}
.reel__video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; }

.reel__btn {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; gap: .6rem;
  padding: .9rem;
  background: linear-gradient(to top, rgba(10, 20, 16, .7) 0%, rgba(10, 20, 16, 0) 45%);
}
.reel__sound {
  width: 38px; height: 38px; flex: none;
  display: grid; place-items: center;
  background: rgba(10, 20, 16, .72); border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
}
.reel__sound svg { width: 18px; height: 18px; fill: #FFF; stroke: #FFF; stroke-width: 1.6; fill-rule: evenodd; }
.reel.is-loud .reel__sound { background: var(--terra); border-color: var(--terra); }
.reel__label {
  font-size: var(--t-small); font-weight: 600; color: #FFF;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .5);
}
.reels__hint {
  margin-top: .9rem; font-size: var(--t-small); color: var(--text-muted);
}
/* Nápověda zůstává i na desktopu, protože pás se posouvá i tam. */

/* ---------- SCROLL CHOREOGRAFIE ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* Postupné nabíhání — děti se objevují za sebou, ne naráz.
     Zpoždění nastavuje JS přes --i, ať to funguje i pro dynamický obsah. */
  .js .stagger > * {
    opacity: 0; transform: translateY(14px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    transition-delay: calc(var(--i, 0) * 70ms);
  }
  .js .stagger.is-in > * { opacity: 1; transform: none; }

  /* Fotky nenaskočí, ale dosednou — jemný dojezd ze zoomu. */
  .zoom-in { overflow: hidden; }
  .js .zoom-in img {
    transform: scale(1.06);
    transition: transform 1.1s var(--ease);
  }
  .js .zoom-in.is-in img { transform: scale(1); }
}

/* Ukazatel postupu čtení — tenká linka pod navigací.
   Dává dlouhé stránce hmatatelný pocit, kde člověk je. */

/* ---------- OBŘÍ ČÍSLA (podle Glide) ---------- */
.figures { display: grid; gap: 0; }
.figure {
  display: grid; gap: .5rem 3rem;
  padding-block: clamp(1.25rem, 2.4vw, 1.85rem);
  border-top: 1px solid var(--ink-600);
  align-items: baseline;
}
.figure:last-child { border-bottom: 1px solid var(--ink-600); }
@media (min-width: 800px) {
  .figure { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); align-items: center; }
}

.figure__num {
  font-family: var(--font-display);
  font-size: var(--t-display);
  font-weight: 600; line-height: .88; letter-spacing: -.05em;
  color: var(--ink-900); font-variant-numeric: tabular-nums lining-nums;
  display: flex; align-items: baseline; gap: .12em;
}
.figure__unit {
  font-size: .3em; font-weight: 500; letter-spacing: -.01em;
  color: var(--brass-text);
}
.figure__body { max-width: 56ch; }
.figure__label {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass-text);
  margin-bottom: .5rem;
}
.figure__text { font-size: var(--t-body); color: var(--text-muted); }
.figure__text a { color: var(--brass-text); text-underline-offset: 3px; }

/* Se sloupcem videa je text v užší koloně — nadpis musí zmenšit,
   jinak se „Apartmán v horách," zalomí a rozbije trojřádkovou skladbu. */
@media (min-width: 980px) {
}

/* =========================================================
   HERO — dvě karty na světlé ploše
   Vlevo bílý panel s obsahem, vpravo smyčka fotek.
   ========================================================= */
.hero {
  background: var(--ivory);
  padding-block: calc(var(--nav-h) + clamp(1rem, 3vw, 2rem)) clamp(3rem, 6vw, 5rem);
  min-height: 0;
  display: block;
}

.hero__cards { display: grid; gap: clamp(1rem, 2vw, 1.25rem); align-items: stretch; }
@media (min-width: 980px) {
  .hero__cards { grid-template-columns: minmax(0, 49fr) minmax(0, 51fr); }
}

/* ---- levý bílý panel ---- */
.hero__panel {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.4vw, 3rem);
  display: flex; flex-direction: column;
  box-shadow: 0 1px 2px rgba(15, 26, 21, .05), 0 20px 50px rgba(15, 26, 21, .07);
}

.hero__kicker {
  font-size: var(--t-micro); font-weight: 600; letter-spacing: .15em;
  text-transform: uppercase; color: var(--brass-text);
  margin-bottom: 1.1rem;
}

.hero__title {
  font-size: var(--t-display);
  line-height: 1.02; letter-spacing: -.035em; color: var(--text);
}
.hero__title .line { display: block; }

.hero__lead {
  margin-top: 1.15rem;
  font-size: var(--t-body);
  color: var(--text-muted); max-width: 44ch;
}

.hero__actions {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  display: flex; flex-wrap: wrap; gap: .7rem;
}
.hero__actions .btn { flex: 1 1 auto; }
@media (min-width: 520px) { .hero__actions .btn { flex: 0 1 auto; } }

.hero__risk { margin-top: .9rem; font-size: var(--t-small); color: var(--text-muted); }

.hero__stats {
  list-style: none; padding: 0;
  margin: auto 0 0; padding-top: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-soft);
}
/* Vlasové dělicí linky mezi údaji: čtou se pak jako tři samostatná
   fakta, ne jako jeden slitý řádek. */
.hero__stats li {
  display: flex; flex-direction: column; gap: .3rem;
  padding-inline: clamp(.6rem, 1.4vw, 1.1rem);
}
.hero__stats li:first-child { padding-inline-start: 0; }
.hero__stats li:last-child { padding-inline-end: 0; }
.hero__stats li + li { border-inline-start: 1px solid var(--line-soft); }
.hero__stats b {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--text);
  font-variant-numeric: tabular-nums lining-nums;
}
.hero__stats > li > span:last-child {
  font-size: var(--t-micro); line-height: 1.3; color: var(--text-muted);
}

/* ---- pravá karta se smyčkou fotek ---- */
.hero__gallery {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius);
  background: var(--ink-800);
  min-height: 22rem;
  box-shadow: 0 1px 2px rgba(15, 26, 21, .05), 0 20px 50px rgba(15, 26, 21, .09);
}
@media (max-width: 979px) { .hero__gallery { aspect-ratio: 4 / 3; min-height: 0; } }

.hero__slide, .hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%;
}
.hero__slide {
  opacity: 0; transform: scale(1.04);
  transition: opacity .55s var(--ease), transform 3.4s linear;
}
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero__video { opacity: 0; transition: opacity .8s var(--ease); }
.hero__video.is-on { opacity: 1; }
body.has-hero-video .hero__slide,
body.has-hero-video .hero__slide.is-on { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hero__slide, .hero__video { transition: none; } }

.hero__caption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 2.5rem 1.25rem 1.1rem;
  font-size: var(--t-micro); letter-spacing: .02em; color: rgba(255, 255, 255, .92);
  background: linear-gradient(to top, rgba(6, 12, 10, .82) 0%, rgba(6, 12, 10, .45) 55%, rgba(6, 12, 10, 0) 100%);
}
.player__video[hidden] { display: none; }

/* V hero panelu jsou tlačítka o kus těsnější, ať se vejdou vedle sebe. */
.hero__actions .btn--lg { padding-inline: 1.5rem; font-size: var(--t-body); }

/* V úzkém panelu (980–1200 px) jsou tlačítka pod sebou přes celou šířku —
   je to čistší než jedno zalomené. */
@media (min-width: 980px) and (max-width: 1199px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* Na mobilu dáme fotku nad text — návštěvník vidí projekt hned
   a jako LCP prvek slouží přednačtený obrázek místo odstavce. */
@media (max-width: 979px) {
  .hero__cards { grid-template-rows: auto auto; }
  .hero__gallery { order: -1; }
}

/* Video navazuje přímo pod karty se stejnou mezerou, aby hero
   působilo jako jeden souvislý blok, ne jako dvě oddělené sekce. */
/* Rámeček přes celou šířku obsahu je 666 px prázdné šedé plochy.
   Video v 900 px je pořád velké dost a stránka se tím nenatahuje. */
.hero__video-row { margin-top: clamp(1rem, 2vw, 1.25rem); max-width: 900px; margin-inline: auto; }
.hero__video-row .player {
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 26, 21, .05), 0 20px 50px rgba(15, 26, 21, .07);
}
.hero__video-row .player__video { border-radius: var(--radius); }

