/* =========================================================
   Dům U Pařížana – styly
   ---------------------------------------------------------
   Dva režimy rozložení:
   1) Základ (mobil, tablet, nízké obrazovky): běžná stránka
      se scrollováním, sekce pod sebou.
   2) .is-deck (šířka ≥ 1024 px a výška ≥ 600 px): prezentace
      přes celou obrazovku podle designu 1366 × 768. Všechny
      rozměry jsou v „design pixelech“ --u = 1 px návrhu,
      takže kompozice drží proporce na každém monitoru.
      Třídu .is-deck nastavuje skript v <head> a main.js.
   ========================================================= */

/* ---------- Písma (hostovaná lokálně, licence SIL OFL) ---------- */
@font-face {
  font-family: "Libre Bodoni";
  src: url("../fonts/libre-bodoni-bold.woff2?v=63a09873") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-var.woff2?v=9a70f484") format("woff2");
  font-weight: 300 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design tokeny (brand manuál) ---------- */
:root {
  --c-green: #202923;     /* Deep Architectural Green */
  --c-burgundy: #4D1911;  /* Interior Burgundy – akcent, hover */
  --c-chestnut: #3E3027;  /* Chestnut Wood */
  --c-stone: #B8ADA0;     /* Prague Stone */
  --c-cream: #F2EEE5;     /* Warm Cream – dominantní podklad */

  --c-ink: #000;                 /* text na světlém podkladu (design) */
  --c-ink-muted: rgba(0, 0, 0, .62);
  --c-facade: #ACA595;           /* linky fasády */
  --c-hover-fg: #ACA499;         /* text tlačítka po najetí (design) */
  --c-night: #0E0B09;            /* tmavé plochy (patička, prohlížeč fotek) */
  --c-error: #8C2414;

  --f-serif: "Libre Bodoni", "Bodoni 72", "Bodoni MT", Didot, Georgia, serif;
  --f-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --header-h: 64px;
  --ease: cubic-bezier(.77, 0, .18, 1);
  --ease-out: cubic-bezier(.22, .8, .24, 1);

  /* barvy hlavičky/ovládání podle aktivního slidu (v režimu prezentace) */
  --fg: #fff;
  --fg-soft: rgba(255, 255, 255, .5);
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-deck) { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-night);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
/* <picture> (AVIF + záložní WebP) nemá vlastní box – rozměry a pozici řídí obrázek uvnitř */
picture { display: contents; }
img { height: auto; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, fieldset, address { margin: 0; }
address { font-style: normal; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 200;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  background: var(--c-cream);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s;
}
.skip-link:focus { transform: none; }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out);
}
/* Najetí myší: tmavě červené pozadí #4D1911 (zadání v designu – platí i pro „Poptat“ a šipky) */
.btn:hover,
.btn:focus-visible {
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
  color: var(--c-cream);
}
.slide--light .btn:hover,
.slide--light .btn:focus-visible { color: var(--c-hover-fg); }

.btn--case { text-transform: none; letter-spacing: 0; }
.nobr { white-space: nowrap; }

.btn--sm {
  min-height: 0;
  padding: 6px 11px;
  font-size: 12px;
  letter-spacing: .03em;
}
.btn--dark { color: var(--c-ink); }
.btn[disabled] { opacity: .55; cursor: progress; }

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

/* Kruhové šipky */
.arrow {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out),
              opacity .4s, visibility 0s;
}
.arrow svg {
  width: 32px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}
.arrow:hover,
.arrow:focus-visible {
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
  color: var(--c-cream);
}
.arrow--sm { width: 40px; height: 40px; }
.arrow--sm svg { width: 20px; height: 16px; stroke-width: 2; }
.arrow[disabled] { opacity: .28; cursor: default; pointer-events: none; }
.arrow.is-off {
  opacity: 0;
  visibility: hidden;
  transition: opacity .4s, visibility 0s .4s;
}

/* =========================================================
   ÚVODNÍ ANIMACE – logo UP na vínovém pozadí; při otevření se písmena rozestoupí
   (U doleva, P doprava, jako by kamera proletěla mezi nimi) a vínová plocha se od středu
   rozplyne do webu. Animuje se jen transform a opacity (grafická karta).
   ========================================================= */
.intro { display: none; }
.has-intro .intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 250;
  cursor: pointer;
  /* pojistka bez JavaScriptu: po 5 s se vrstva sama schová */
  animation: intro-failsafe .6s 5s both;
}
.intro.is-opening { pointer-events: none; }
.intro__veil,
.intro__iris {
  position: absolute;
  inset: 0;
}
.intro__veil {
  background: var(--c-burgundy);
  transition: opacity .7s cubic-bezier(.45, 0, .55, 1) .2s;
}
/* Vínová jen po okrajích (průhledný střed ve tvaru obrazovky). Plná plocha zmizí první, pak
   menší a nakonec větší otvor – web se otevírá od středu mezi písmeny k okrajům jako clona
   objektivu. Každá vrstva mění jen průhlednost. */
.intro__iris--near {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(77, 25, 17, 0) 0, rgba(77, 25, 17, 0) 18%, var(--c-burgundy) 46%);
  transition: opacity .6s cubic-bezier(.45, 0, .55, 1) .5s;
}
.intro__iris--far {
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(77, 25, 17, 0) 0, rgba(77, 25, 17, 0) 40%, rgba(77, 25, 17, .9) 78%, var(--c-burgundy) 100%);
  transition: opacity .65s cubic-bezier(.45, 0, .55, 1) .8s;
}
/* Písmena se v logu kříží a kde se překrývají, je logo průhledné. Jako dvě samostatné vrstvy to
   dělá prolnutí: překryv písmen vyjde při „difference“ černý a celé logo se na pozadí skládá přes
   „screen“, který černou propustí (zůstane vínová) a světlou barvu ponechá. */
.intro__mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  mix-blend-mode: screen;
  animation: intro-mark 1.1s var(--ease-out) .15s both;
}
.intro__letter {
  grid-area: 1 / 1;
  width: clamp(64px, 8.4vw, 118px);
  height: auto;
  aspect-ratio: 488.11 / 580.93;
  overflow: visible;
  fill: #ECECE3; /* přes vínovou ve „screen“ vyjde přesně krémová (--c-cream) */
  transition: transform 1.5s cubic-bezier(.6, 0, .25, 1), opacity .5s ease-in .7s;
}
.intro__letter--p { mix-blend-mode: difference; }
.intro.is-opening .intro__veil,
.intro.is-opening .intro__iris { opacity: 0; }
.intro.is-opening .intro__letter { opacity: 0; }
/* Střed písmena odjede za okraj o půl obrazovky + víc než polovinu zvětšeného písmena (0,95 × šířka). */
.intro.is-opening .intro__letter--u { transform: translateX(calc(-50vw - 110%)) scale(1.9); }
.intro.is-opening .intro__letter--p { transform: translateX(calc(50vw + 110%)) scale(1.9); }
@keyframes intro-mark {
  from { opacity: 0; transform: translateY(14px) scale(.96); }
}
@keyframes intro-failsafe {
  to { opacity: 0; visibility: hidden; }
}

/* =========================================================
   HLAVIČKA – základ (mobil / scrollovací režim)
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 16px;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  color: #fff;
  transition: color .45s;
}
/* podklad po odscrollování – na pseudo-elementu (backdrop-filter na hlavičce by zúžil fixed menu) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(242, 238, 229, .94);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  opacity: 0;
  transition: opacity .45s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.site-header.is-scrolled { color: var(--c-ink); }
.site-header.is-scrolled::before { opacity: 1; }

.brand {
  display: block;
  flex: none;
  color: inherit;
  margin-right: auto;
}
.brand__logo {
  width: 136px;
  height: auto;
  aspect-ratio: 1295.38 / 200.39;
  fill: currentColor;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.lang-switch {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-decoration: none;
  padding: 6px 2px;
  opacity: .85;
  transition: opacity .3s;
}
.lang-switch:hover { opacity: 1; text-decoration: underline; }

.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle__bars,
.menu-toggle__bars::before {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
  transition: transform .4s var(--ease);
}
.menu-toggle__bars { transform: translateY(-4px); }
.menu-toggle__bars::before { content: ""; transform: translateY(8px); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: rotate(-90deg); }

/* Mobilní menu přes celou obrazovku */
.site-nav {
  position: fixed;
  inset: 0;
  z-index: -2;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  color: var(--c-cream);
  background: var(--c-chestnut);
  visibility: hidden;
  opacity: 0;
  transition: opacity .45s var(--ease-out), visibility 0s .45s;
}
.menu-open .site-nav {
  visibility: visible;
  opacity: 1;
  transition: opacity .45s var(--ease-out);
}
.menu-open .site-header { color: var(--c-cream); }
.menu-open .site-header::before { opacity: 0; }

.site-nav__list { display: grid; gap: 4px; }
.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 8px 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  opacity: .58;
  transition: opacity .3s;
}
/* Aktivní sekce (aria-current nastavuje main.js podle zobrazeného slidu / pozice scrollu) */
.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link[aria-current="true"] { opacity: 1; }
.site-nav__num {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-stone);
}
.site-nav__extra {
  display: grid;
  gap: 24px;
  justify-items: start;
  margin-top: auto;
  padding-top: 40px;
  font-size: 15px;
}
.site-nav__contact a { text-decoration: none; }
.site-nav__lang { font-size: 13px; letter-spacing: .06em; color: var(--c-stone); }

/* Hlavička na širokých obrazovkách bez režimu prezentace (např. nízký notebook) */
@media (min-width: 1024px) {
  .menu-toggle, .site-nav__extra, .site-nav__num { display: none; }
  .site-nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    padding: 0;
    overflow: visible;
    color: inherit;
    background: none;
    visibility: visible;
    opacity: 1;
    transition: none;
  }
  .site-nav__list { display: flex; gap: 48px; }
  .site-nav__link {
    padding: 4px 0;
    font-family: var(--f-sans);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: .045em;
    position: relative;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s var(--ease-out);
  }
  .site-nav__link { opacity: .7; }
  .site-nav__link:hover::after,
  .site-nav__link[aria-current="true"]::after { transform: scaleX(1); }
  .site-nav__link[aria-current="true"]::after { height: max(1.5px, .12em); }
  .brand { margin-right: 0; }
  .site-header { justify-content: space-between; }
  .brand__logo { width: 168px; }
}

/* =========================================================
   SEKCE – základ (scrollovací režim)
   ========================================================= */
.deck { display: block; }
.deck:focus { outline: none; }

.slide { position: relative; }

.slide--photo {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
  background: #17120F;
}
.slide__media { position: absolute; inset: 0; }
.slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Lokalita: fotka 4 : 3 s horní třetinou oblohy – ořez drží v záběru řeku s mosty */
.slide__img--location { object-position: 50% 72%; }
.slide__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, 0) 160px),
    linear-gradient(0deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .72) 38%, rgba(0, 0, 0, .2) 72%, rgba(0, 0, 0, .05) 100%);
}
/* Lokalita: na telefonu a tabletu je text vysoko nad světlou oblohou fotky – ztmavení i nahoře */
.slide__shade--wide {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .3) 0, rgba(0, 0, 0, 0) 160px),
    linear-gradient(0deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .74) 40%, rgba(0, 0, 0, .56) 70%, rgba(0, 0, 0, .48) 100%);
}

.slide__content {
  position: relative;
  padding: calc(var(--header-h) + 72px) var(--gutter) 64px;
}

.slide__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(30px, 8.4vw, 52px);
  line-height: 1.12;
  text-transform: uppercase;
  text-wrap: balance;
}
.slide__title:focus { outline: none; }
/* Nadtitulek – součást nadpisu (název sekce pro vyhledávače a čtečky); visí nad nadpisem mimo tok,
   takže nadpis ani nic pod ním neposouvá */
.slide__title { position: relative; }
.slide__eyebrow {
  position: absolute;
  left: 0;
  bottom: 100%;
  margin-bottom: 10px;
  width: max-content;
  max-width: calc(100vw - 2 * var(--gutter));
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
}

.slide__rule {
  display: block;
  width: 50px;
  height: 2px;
  margin: 28px 0 24px 3px;
  background: currentColor;
}

.slide__lower { display: flex; flex-direction: column; align-items: flex-start; }

.slide__text {
  max-width: 34em;
  font-size: 15px;
  line-height: 1.55;
  hyphens: manual;
}
.slide__address {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .4s var(--ease-out);
}
.slide__address:hover { background-size: 100% 1px; }
/* Text o více odstavcích: první je úvodní (perex) */
.slide__text > p + p { margin-top: .8em; }
.slide__lead { font-weight: 500; }

/* Klíčové údaje (01 Budova) a adresa s metrem (03 Lokalita) */
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 36px;
  margin-top: 28px;
}
.facts__item { display: flex; flex-direction: column; }
.facts__value {
  order: -1;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.1;
  white-space: nowrap;
}
.facts__label {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.facts--location { flex-direction: column; gap: 6px; }
.facts--location .facts__item {
  display: block;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* 03 Lokalita: orientační plánek – jemná průhledná vrstva přes fotku (inline SVG, generuje tools/planek.py);
   1 jednotka SVG = 1 px návrhu 1366 × 768. Popisky mají tmavý lem, aby se daly číst na světlé obloze
   i na zeleni. Plánek se na telefonu zmenšuje, popisky a značky metra jsou proto tam větší. */
.location-map {
  max-width: 640px;
  margin: 48px 0 0;
  pointer-events: none;
}
/* Mimo prezentaci se zobrazí jen jádro plánku (x 52–690, y 30–545 z 766,5 × 659,75 jednotek);
   okolní síť ulic přesahuje do okrajů a sekce ji ořízne */
.location-map__svg {
  display: block;
  width: calc(100% * 766.5 / 638);
  height: auto;
  margin: calc(-100% * 30 / 638) 0 calc(-100% * 114.75 / 638) calc(-100% * 52 / 638);
  overflow: visible;
}
.location-map__net { fill: var(--c-cream); stroke: var(--c-cream); opacity: .12; }
.location-map__streets { fill: var(--c-cream); stroke: var(--c-cream); opacity: .26; }
.location-map__edge { fill: var(--c-cream); opacity: .6; }
.location-map__street,
.location-map__label,
.location-map__name,
.location-map__addr {
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .3);
  stroke-width: 2.5px;
  stroke-linejoin: round;
}
.location-map__street,
.location-map__label {
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
}
.location-map__street { font-size: 20.5px; fill: var(--c-cream); fill-opacity: .85; }
.location-map__label { fill: var(--c-cream); }
.location-map__metro { scale: 1.65; } /* značka i název stanice zvětšené kolem středu značky */
.location-map__ring,
.location-map__leader { fill: none; stroke: var(--c-cream); stroke-opacity: .6; }
.location-map__house { fill: var(--c-cream); }
.location-map__name {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 27px;
  letter-spacing: .02em;
  fill: var(--c-cream);
}
.location-map__addr { font-size: 20.5px; fill: var(--c-cream); }
@media (min-width: 768px) {
  .location-map__street { font-size: 12px; }
  .location-map__metro { scale: none; }
  .location-map__name { font-size: 17px; }
  .location-map__addr { font-size: 12.5px; }
}

/* ---------- 02 Kanceláře ---------- */
.slide--light {
  color: var(--c-ink);
  background: var(--c-cream);
}
.slide--light .slide__content { padding-top: calc(var(--header-h) + 36px); }
.offices__overview > .slide__content,
.floor > .slide__content { padding-bottom: 0; }

.floors-table {
  width: 100%;
  max-width: 440px;
  margin-top: 32px;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: .035em;
}
.floors-table caption { caption-side: top; }
.floors-table__caption {
  padding-bottom: 14px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  text-align: left;
  text-transform: uppercase;
}
.floors-table th,
.floors-table td {
  padding: 10px 16px 10px 0;
  font-weight: 300;
  text-align: left;
  vertical-align: middle;
  transition: color .3s, background-color .3s;
}
.floors-table thead th {
  padding-top: 0;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.floors-table tbody tr { border-top: 1px solid rgba(0, 0, 0, .7); cursor: pointer; }
.floors-table tbody th { font-weight: 500; }
.floors-table tbody th a { text-decoration: none; }
.floors-table tbody tr.is-hot th,
.floors-table tbody tr.is-hot td { color: var(--c-burgundy); }
.floors-table tfoot tr { border-top: 1px solid rgba(0, 0, 0, .7); }
.floors-table tfoot th,
.floors-table tfoot td { font-weight: 500; }
.offices__summary { width: 100%; }

/* Fasáda s výběrem podlaží */
.facade {
  --label-col: 34%;
  position: relative;
  width: min(100%, 360px);
  margin: 56px auto 0;
  padding-left: var(--label-col);
}
.facade__img { position: relative; width: 100%; height: auto; } /* nad vrstvou světel */
.facade__zones {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: var(--label-col);
  width: calc(100% - var(--label-col));
  height: 100%;
  overflow: visible;
}
.facade__zone {
  fill: var(--c-facade);
  opacity: 0;
  cursor: pointer;
  transition: opacity .35s var(--ease-out);
}

/* Rozsvícená okna patra (najetí myší / aktivní patro v detailu) – vrstva pod kresbou fasády */
.facade__lights {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--label-col);
  width: calc(100% - var(--label-col));
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.facade__light {
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.facade__light.is-hot,
.facade__light.is-active { opacity: 1; }
/* V detailu svítí otevřené patro; při najetí na jiné patro se ztlumí, aby bylo jasné, kam míří myš */
.facade.has-hot .facade__light.is-active:not(.is-hot) { opacity: .35; }

/* Obsazená patra (1., 2. a 7.NP) – trvale šrafovaná, nedají se vybrat */
.facade__zone--occupied {
  fill: url(#facade-hatch);
  opacity: 1;
  cursor: default;
}
.facade__hatch-bg { fill: var(--c-cream); fill-opacity: .55; }
.facade__hatch-line { stroke: var(--c-facade); stroke-width: 1; }

.facade__labels {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--label-col);
}
.facade__label-item { position: absolute; left: 0; right: 0; transform: translateY(-50%); }
.facade__label-item[data-floor="6"] { top: 33.46%; }
.facade__label-item[data-floor="5"] { top: 46.32%; }
.facade__label-item[data-floor="4"] { top: 59.18%; }
.facade__label-item[data-floor="3"] { top: 71.10%; }
.facade__label-item[data-floor="7"] { top: 20.08%; }
.facade__label-item[data-floor="2"] { top: 84.90%; }
.facade__label-item[data-floor="1"] { top: 94.20%; }
.facade__label {
  position: relative;
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 12px 6px 0;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.1;
  color: rgba(0, 0, 0, .48);
  text-decoration: none;
  transition: color .3s;
}
.facade__label:hover,
.facade__label:focus-visible,
.facade__label.is-hot { color: var(--c-ink); }
/* Otevřené patro: tmavý popisek a linka od popisku k fasádě (k rozsvíceným oknům) */
.facade__label::after {
  content: "";
  flex: 1;
  height: 1px;
  margin-left: 10px;
  background: var(--c-burgundy);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease-out);
}
.facade__label[aria-current="true"] { color: var(--c-ink); }
.facade__label[aria-current="true"]::after { transform: none; transition-duration: .7s; transition-delay: .25s; }
.facade__label--occupied,
.facade__label--occupied:hover {
  position: relative;
  color: rgba(0, 0, 0, .26);
  cursor: default;
}
.facade__status {
  position: absolute;
  left: 0;
  top: calc(100% - 5px);
  font-family: var(--f-sans);
  font-weight: 500;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-burgundy);
}

/* Detail patra */
.offices { padding-bottom: 72px; }
/* Bez JavaScriptu jsou vidět přehled i všechna patra pod sebou. Na telefonu detail nahradí přehled
   i fasádu (vedle sebe se nevejdou) a patra se přepínají seznamem pater; od tabletu výš zůstává
   fasáda vedle detailu (viz níže) */
.js .offices__detail { display: none; }
.js .offices.is-detail .offices__detail { display: block; }
.js:not(.is-deck) .offices.is-detail .offices__overview { display: none; } /* v prezentaci se prolínají (viz níže) */
@media (max-width: 767px) {
  .js .offices.is-detail .facade { display: none; }
}

/* Šipka zpět na přehled pater – jen v detailu */
.offices__back {
  display: none;
  align-items: center;
  gap: 14px;
  margin: calc(var(--header-h) + 28px) var(--gutter) 0;
  font-weight: 500;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--c-ink);
}
.js .offices.is-detail .offices__back { display: inline-flex; }
.offices__back-icon { width: 48px; height: 48px; pointer-events: none; }
.offices__back-icon svg { width: 22px; height: 18px; stroke-width: 1.8; }
.offices__back:hover .offices__back-icon,
.offices__back:focus-visible .offices__back-icon {
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
  color: var(--c-cream);
}
.offices__back:focus-visible { outline-offset: 6px; }

.floor-nav {
  padding: 24px var(--gutter) 0;
}
.floor-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.floor-nav__link {
  display: block;
  padding: 8px 14px;
  border: 1px solid rgba(0, 0, 0, .3);
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: rgba(0, 0, 0, .55);
  text-decoration: none;
  transition: color .3s, border-color .3s, background-color .3s;
}
.floor-nav__link:hover,
.floor-nav__link:focus-visible { color: var(--c-ink); border-color: var(--c-ink); }
.floor-nav__link[aria-current="true"] {
  color: var(--c-cream);
  background: var(--c-ink);
  border-color: var(--c-ink);
}

.js .floor:not(.is-active):not(.is-leaving) { display: none; }
.floor > .slide__content { padding-top: 32px; }
.floor__meta {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: var(--c-ink-muted);
}
.floor__features {
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.5;
}
.floor__features li {
  position: relative;
  padding-left: 18px;
}
.floor__features li::before {
  content: "•";
  position: absolute;
  left: 0;
}
.floor__plan {
  margin: 40px var(--gutter) 0;
}
.floor__plan-link { display: block; cursor: zoom-in; }
.floor__plan img { width: 100%; }
.floor__plan--empty {
  display: grid;
  place-items: center;
  aspect-ratio: 700 / 352;
  border: 1px dashed rgba(0, 0, 0, .28);
}
.floor__plan-placeholder {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  color: rgba(0, 0, 0, .42);
}

/* ---------- 04 Galerie – pás fotek ---------- */
.gallery__ambient { background: var(--c-night); }
.gallery__ambient img {
  position: absolute;
  inset: -12%;
  width: 124%;
  max-width: none;
  height: 124%;
  object-fit: cover;
  filter: blur(48px) saturate(1.15);
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.gallery__ambient img.is-active { opacity: .5; }
/* Prezentace: rozmazané fotky jsou trvale samostatné vrstvy. Jinak by je prohlížeč při každém
   kroku galerie na začátku i na konci prolínání přesouval mezi vrstvami a celý rozmazaný obraz
   (blur 48 px přes celou obrazovku) znovu rastroval. Při scrollování (mobil) to naopak nechceme –
   rozmazání je tam „zapečené“ do stránky a posouvá se bez dalšího vykreslování. */
.is-deck .gallery__ambient img { will-change: opacity; }

.gallery { align-self: stretch; margin-top: 28px; }
.gallery__viewport {
  margin: 0 calc(-1 * var(--gutter));
  padding-left: var(--gutter);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  scrollbar-width: none;
  -webkit-user-select: none;
  user-select: none;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track {
  position: relative;
  display: flex;
  gap: 8px;
  width: max-content;
  height: clamp(220px, 58vw, 440px);
  padding-right: var(--gutter);
}
.gallery__item {
  flex: none;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always; /* rychlé švihnutí prstem posune jen o jednu fotku */
}
.gallery__item a {
  display: block;
  height: 100%;
  background: rgba(255, 255, 255, .06);
  cursor: zoom-in;
  -webkit-user-drag: none;
}
.gallery__item img {
  width: auto;
  max-width: none;
  height: 100%;
}

.gallery__bar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px 16px;
  max-width: 440px;
  margin-top: 20px;
}
.gallery__count {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
}
.gallery__total { font-size: .62em; color: var(--c-stone); }
.gallery__arrows { display: flex; gap: 8px; }
.gallery__progress {
  grid-column: 1 / -1;
  position: relative;
  height: 1px;
  background: rgba(255, 255, 255, .26);
}
.gallery__progress > span {
  position: absolute;
  inset: 0;
  background: var(--c-cream);
  transform-origin: left;
  transform: scaleX(var(--progress, .1429));
  transition: transform .9s var(--ease);
}
.gallery__caption {
  grid-column: 1 / -1;
  min-height: 2.7em;
  font-size: 13px;
  line-height: 1.35;
  color: var(--c-stone);
}

/* ---------- 05 Kontakt ---------- */
.contact-lines {
  position: relative;
  padding: 0 var(--gutter) 64px;
  margin-top: -24px;
  font-size: 15px;
  line-height: 1.6;
}
.contact-lines__name { font-weight: 500; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }

/* ---------- Ovládání prezentace (skryté mimo režim prezentace) ---------- */
.deck-nav { display: none; }

/* =========================================================
   PATIČKA
   ========================================================= */
.site-footer {
  display: grid;
  gap: 14px;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 238, 229, .68);
  background: var(--c-night);
  border-top: 1px solid rgba(242, 238, 229, .12);
}
.site-footer a,
.site-footer .link-btn { color: rgba(242, 238, 229, .9); }
.site-footer a:hover,
.site-footer .link-btn:hover { color: #fff; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

/* =========================================================
   POPTÁVKOVÝ FORMULÁŘ
   Bez JS: běžná sekce na konci stránky. S JS: vysouvací panel.
   ========================================================= */
.inquiry {
  position: relative;
  color: var(--c-ink);
  background: var(--c-cream);
}
.inquiry__backdrop { display: none; }
.inquiry__panel {
  position: relative;
  padding: 56px var(--gutter) 48px;
}
.js .inquiry {
  position: fixed;
  inset: 0;
  z-index: 90;
  visibility: hidden;
  background: none;
  transition: visibility 0s .6s;
}
.js .inquiry.is-open {
  visibility: visible;
  transition: none;
}
.js .inquiry__backdrop {
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(10, 8, 7, .55);
  opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.js .inquiry.is-open .inquiry__backdrop { opacity: 1; }
.js .inquiry__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 600px);
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--c-cream);
  box-shadow: -24px 0 60px rgba(0, 0, 0, .25);
  transform: translateX(100%);
  transition: transform .6s var(--ease);
}
.js .inquiry.is-open .inquiry__panel { transform: none; }

.inquiry__close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: calc(var(--gutter) - 10px);
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.js .inquiry__close { display: inline-flex; }
.inquiry__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.inquiry__close:hover { color: var(--c-burgundy); }

.inquiry__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-burgundy);
}
.inquiry__title {
  margin-top: 14px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(28px, 6vw, 38px);
  line-height: 1.12;
  text-transform: uppercase;
}
.inquiry__title:focus { outline: none; }
.inquiry__rule {
  display: block;
  width: 50px;
  height: 2px;
  margin: 22px 0 20px 2px;
  background: currentColor;
}
.inquiry__lead { max-width: 32em; font-size: 15px; }
.inquiry__direct {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, .14);
  font-size: 13px;
  color: var(--c-ink-muted);
}
.inquiry__direct a { color: var(--c-ink); text-decoration: none; }
.inquiry__direct a:hover { text-decoration: underline; }

.inquiry__success { margin-top: 8px; display: grid; gap: 16px; justify-items: start; font-size: 15px; }
.inquiry__success-title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
}
.inquiry__success-title:focus { outline: none; }

/* Formulář */
.form { margin-top: 28px; }
.form__grid { display: grid; gap: 22px 28px; }
@media (min-width: 560px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
}
.field { display: grid; gap: 6px; }
.form > .field,
.form > .field--floors { margin-top: 24px; }
.field__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-chestnut);
}
.field__req { color: var(--c-burgundy); }
.field__input {
  width: 100%;
  padding: 8px 0 9px;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, .38);
  border-radius: 0;
  background: transparent;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px; /* 16 px – iOS jinak při kliknutí přibližuje */
  line-height: 1.4;
  color: var(--c-ink);
  transition: border-color .3s, box-shadow .3s;
  -webkit-appearance: none;
  appearance: none;
}
.field__input::placeholder { color: rgba(0, 0, 0, .4); }
.field__input:hover { border-bottom-color: rgba(0, 0, 0, .65); }
.field__input:focus {
  outline: none;
  border-bottom-color: var(--c-burgundy);
  box-shadow: 0 1px 0 var(--c-burgundy);
}
.field__input--area { resize: vertical; min-height: 104px; }
.field__input[aria-invalid="true"] { border-bottom-color: var(--c-error); box-shadow: 0 1px 0 var(--c-error); }
.field__error { min-height: 0; font-size: 12px; font-weight: 400; color: var(--c-error); }
.field__error:empty { display: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.chip span {
  display: block;
  padding: 9px 16px;
  border: 1px solid rgba(0, 0, 0, .38);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  transition: background-color .3s, border-color .3s, color .3s;
}
.chip:hover span { border-color: var(--c-burgundy); }
.chip input:checked + span {
  color: var(--c-cream);
  background: var(--c-burgundy);
  border-color: var(--c-burgundy);
}
.chip input:focus-visible + span { outline: 2px solid var(--c-burgundy); outline-offset: 2px; }

.form__hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__note {
  margin-top: 24px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--c-ink-muted);
}
.form__actions { margin-top: 24px; }
.form__submit { min-width: 220px; }
.form__status { margin-top: 16px; font-size: 14px; font-weight: 400; }
.form__status:empty { display: none; }
.form__status.is-error { color: var(--c-error); }

/* =========================================================
   PROHLÍŽEČ FOTEK
   ========================================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  padding: calc(64px + env(safe-area-inset-top, 0px)) var(--gutter) calc(112px + env(safe-area-inset-bottom, 0px));
  color: var(--c-cream);
  background: rgba(10, 8, 7, .97);
  opacity: 0;
  transition: opacity .45s var(--ease-out);
  touch-action: pinch-zoom;
}
.lightbox.is-open { opacity: 1; }
/* Plocha pro fotku a popisek; fotka s popiskem pod sebou je v ní uprostřed */
.lightbox__stage {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 0;
}
/* Šířku nastavuje main.js podle poměru stran fotky (vejde se i s popiskem) – popisek je pak
   přesně stejně široký jako fotka (fotky na šířku, na výšku i čtvercové) */
.lightbox__figure { max-width: 100%; margin: 0; }
.lightbox__figure picture { display: block; }
.lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain; /* při přepnutí na fotku jiného formátu se stará při mizení nezdeformuje */
  opacity: 1;
  transition: opacity .35s var(--ease-out);
}
.lightbox__img.is-loading { opacity: 0; }
/* Popisek pod fotkou: tenká linka v šířce fotky (jako u pásu galerie), vlevo text, vpravo pořadí */
.lightbox__caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(242, 238, 229, .18);
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: .02em;
  color: rgba(242, 238, 229, .76);
}
.lightbox__count {
  flex: none;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--c-cream);
}
.lightbox__total { font-size: .62em; color: var(--c-stone); }
.lightbox__close {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: calc(var(--gutter) - 10px);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  background: none;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lightbox__close:hover { color: #fff; }
.lightbox .arrow {
  position: absolute;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  width: 48px;
  height: 48px;
}
.lightbox .arrow svg { width: 26px; height: 21px; }
.lightbox__prev { right: calc(var(--gutter) + 60px); }
.lightbox__next { right: var(--gutter); }
/* od tabletu šipky po stranách fotky – jasně „další fotka“, ne další sekce webu */
@media (min-width: 768px) {
  .lightbox .arrow { top: 50%; bottom: auto; margin-top: -24px; }
  .lightbox__prev { left: 24px; right: auto; }
  .lightbox__next { right: 24px; }
}

/* Otevřený panel / galerie / menu – stránka pod ním se nescrolluje */
.has-overlay body { overflow: hidden; }

/* =========================================================
   COOKIES (lišta a nastavení – vkládá assets/js/consent.js)
   ========================================================= */
.cc-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 120;
  display: grid;
  gap: 16px;
  max-width: 560px;
  padding: 22px 22px 20px;
  color: var(--c-ink);
  background: var(--c-cream);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
  font-size: 13px;
  line-height: 1.55;
}
.cc-banner__title,
.cc-dialog__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  text-transform: uppercase;
}
.cc-banner__text { margin-top: 8px; color: var(--c-ink-muted); }
.cc-banner__text a,
.cc-dialog a { color: var(--c-ink); }
.cc-banner__actions,
.cc-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cc-banner .btn,
.cc-dialog .btn { min-height: 40px; padding: 8px 16px; font-size: 12px; color: var(--c-ink); }
.cc-banner .btn:hover,
.cc-dialog .btn:hover,
.cc-banner .btn:focus-visible,
.cc-dialog .btn:focus-visible { color: var(--c-cream); }
.cc-banner .link-btn { font-size: 12px; margin-left: 6px; }

.cc-dialog {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 0;
  color: var(--c-ink);
  background: var(--c-cream);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .4);
}
.cc-dialog::backdrop { background: rgba(10, 8, 7, .55); }
.cc-dialog__inner { display: grid; gap: 18px; padding: 26px 24px 24px; font-size: 13px; line-height: 1.55; }
.cc-dialog__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-dialog__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.cc-dialog__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.cc-cats { display: grid; gap: 12px; }
.cc-cat { padding: 14px 16px; border: 1px solid rgba(0, 0, 0, .14); }
.cc-cat__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cc-cat__title { font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.cc-cat__state { font-size: 12px; color: var(--c-ink-muted); }
.cc-cat__text { margin-top: 6px; color: var(--c-ink-muted); }
.cc-switch {
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border: 1px solid rgba(0, 0, 0, .45);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color .3s, border-color .3s;
}
.cc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  transition: transform .3s var(--ease-out), background-color .3s;
}
.cc-switch:checked { background: var(--c-burgundy); border-color: var(--c-burgundy); }
.cc-switch:checked::after { transform: translateX(20px); background: var(--c-cream); }

/* =========================================================
   PRÁVNÍ STRÁNKY A 404
   ========================================================= */
.page-plain {
  color: var(--c-ink);
  background: var(--c-cream);
}
.page-plain .site-header { color: var(--c-ink); }
.page-plain .site-header::before { opacity: 1; }
.page-plain .site-header__back {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.page-plain .site-header__back:hover { text-decoration: underline; }
.page-plain .site-header .lang-switch { margin-left: auto; } /* vpravo vedle „Zpět na web“ */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: calc(var(--header-h) + 56px) var(--gutter) 88px;
}
.legal__eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-burgundy);
}
.legal__title {
  margin-top: 14px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.1;
  text-transform: uppercase;
}
.legal__rule { display: block; width: 50px; height: 2px; margin: 26px 0 22px 3px; background: currentColor; }
.legal__meta { font-size: 13px; color: var(--c-ink-muted); }
/* kotvy (obsah dokumentu, „viz bod 12“, odkaz Cookies v patičce) nezajedou pod pevnou hlavičku */
.legal [id] { scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 24px); }

.prose { margin-top: 40px; font-size: 15px; line-height: 1.65; }
.prose > * + * { margin-top: 14px; }
.prose h2 {
  margin-top: 44px;
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .01em;
}
/* podkapitoly (a) Dotazy…, Zpracovatelé, Co jsou cookies?) – tučný řádek jako v dokumentu klienta */
.prose h3 { margin-top: 28px; font-size: 15px; font-weight: 600; line-height: 1.45; }
.prose h2 + h3 { margin-top: 18px; }
.prose h3 + * { margin-top: 8px; }
.prose ul { padding-left: 1.2em; }
.prose ul ul { margin-top: 6px; list-style-type: "–  "; }
.prose li + li { margin-top: 6px; }
.prose code { font-size: .92em; }
.prose a { color: var(--c-burgundy); overflow-wrap: anywhere; } /* dlouhé adresy (tools.google.com/…) se na telefonu zalomí */
.prose .btn { color: var(--c-ink); text-decoration: none; }
.prose .btn:hover { color: var(--c-cream); }
.prose .legal__updated { margin-top: 40px; font-size: 13px; font-style: italic; color: var(--c-ink-muted); }

/* Obsah dokumentu */
.legal-toc { padding: 20px 0 22px; border-top: 1px solid rgba(0, 0, 0, .14); border-bottom: 1px solid rgba(0, 0, 0, .14); }
.prose .legal-toc__title {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .1em;
  color: var(--c-chestnut);
}
.legal-toc ol { padding-left: 1.7em; font-size: 14px; }
.legal-toc li + li { margin-top: 4px; }
.legal-toc li::marker { color: var(--c-ink-muted); }
.prose .legal-toc a { color: inherit; text-decoration: none; }
.prose .legal-toc a:hover,
.prose .legal-toc a:focus-visible { color: var(--c-burgundy); text-decoration: underline; }

.legal-table { overflow-x: auto; }
.legal-table table { width: 100%; font-size: 13px; line-height: 1.5; }
.legal-table th,
.legal-table td { padding: 10px 14px 10px 0; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(0, 0, 0, .14); }
.legal-table thead th { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--c-chestnut); }
.legal-table tbody th { font-weight: 400; }
.legal-table code { white-space: nowrap; } /* název cookie (cookie_consent, _ga_[ID]) se nezalomí */
@media (max-width: 479px) {
  /* telefon: čtyři sloupce tabulky cookies se vejdou bez posouvání do strany */
  .legal-table th,
  .legal-table td { padding-right: 8px; }
  .legal-table table { font-size: 12px; }
}

.page-plain .site-footer { margin-top: 0; }

.notfound {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 18px;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 40px) var(--gutter) 64px;
  max-width: 900px;
}
.notfound__code { font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--c-burgundy); }
.notfound__title {
  font-family: var(--f-serif);
  font-weight: 700;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.1;
  text-transform: uppercase;
}
.notfound p { font-size: 15px; max-width: 34em; }
.notfound .btn { margin-top: 12px; color: var(--c-ink); }
.notfound .btn:hover { color: var(--c-cream); }

/* =========================================================
   TELEFON (do 767 px) – sekce jako karty pod sebou
   Jen kompozice na telefonu; tablet ani prezentace se nemění.
   ========================================================= */
@media (max-width: 767px) {
  :root { --head: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }

  /* Skok na sekci (menu, tlačítka, odkaz) zarovná kartu k hornímu okraji: hlavička leží přes
     horní odsazení karty a celá karta je vidět najednou */
  .slide { scroll-margin-top: calc(-1 * var(--header-h)); }

  /* Hlavička po odscrollování ladí s kartou pod ní – přes tmavé fotky tmavá, přes Kanceláře
     krémová (data-over nastavuje main.js) */
  .site-header::before { transition: opacity .45s, background-color .45s; }
  html:not(.menu-open) .site-header.is-scrolled[data-over="dark"] { color: #fff; }
  .site-header[data-over="dark"]::before {
    background-color: rgba(14, 11, 9, .74);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
  }

  .slide__content { padding-top: calc(var(--head) + 64px); padding-bottom: 56px; }
  .slide__cta { margin-top: 32px; min-width: 264px; }
  /* text na fotce sahá na telefonu výš – ztmavení pod ním o něco silnější */
  .slide__shade:not(.slide__shade--wide) {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .42) 0, rgba(0, 0, 0, 0) 160px),
      linear-gradient(0deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .76) 38%, rgba(0, 0, 0, .4) 68%, rgba(0, 0, 0, .16) 100%);
  }

  /* 01 Budova: klíčové údaje v jedné řadě */
  .facts:not(.facts--location) {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: space-between;
    gap: 0 14px;
    align-self: stretch;
    max-width: 30rem; /* telefon na šířku: řada se neroztáhne přes celou obrazovku */
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .24);
  }
  .facts__value { font-size: clamp(21px, 6.4vw, 26px); }
  .facts__label { font-size: 10px; letter-spacing: .07em; }

  /* 02 Kanceláře */
  .offices__overview > .slide__content { padding-top: calc(var(--head) + 44px); }
  .floors-table thead th { white-space: normal; vertical-align: bottom; } /* 320 px: tabulka se vejde */
  .floors-table th,
  .floors-table td { padding-right: 12px; }
  .facade { width: auto; max-width: 360px; margin: 56px var(--gutter) 0; } /* popisky pater v linii textu */
  .offices__back { margin-top: calc(var(--head) + 32px); }
  .floor-nav__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .floor-nav__link { padding: 10px 4px; font-size: 15px; text-align: center; }

  /* 05 Kontakt: text výš v kartě, fotka oblouku pod ním */
  .slide--last { justify-content: center; }

  /* Poptávka: patra v jedné řadě stejně široká jako výběr pater v detailu */
  .chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip span { padding: 9px 4px; text-align: center; }
}
/* Nejužší telefony (320 px): logo, EN, Poptat a menu se vejdou do hlavičky */
@media (max-width: 359px) {
  .site-header,
  .site-header__actions { gap: 10px; }
  .brand__logo { width: 112px; }
}

/* =========================================================
   TABLET (scrollovací režim)
   ========================================================= */
@media (min-width: 768px) {
  .slide__content { padding-bottom: 88px; }
  .slide__text { font-size: 16px; }
  /* Kanceláře: přehled vlevo, fasáda vpravo; v detailu se fasáda přesune do levého sloupce
     (zůstává při scrollování na místě) a detail patra je vedle ní */
  .offices {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    column-gap: 40px;
    align-items: end;
    padding-right: var(--gutter);
  }
  .offices__overview { grid-area: 1 / 1; }
  .facade { grid-area: 1 / 2; margin: 0; width: 100%; }
  .offices__back,
  .offices__detail { grid-column: 1 / -1; }
  .js:not(.is-deck) .offices.is-detail {
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    align-items: start;
  }
  .js:not(.is-deck) .offices.is-detail .offices__back { grid-area: 1 / 1 / 2 / -1; justify-self: start; }
  .js:not(.is-deck) .offices.is-detail .facade {
    grid-area: 2 / 1;
    position: sticky;
    top: calc(var(--header-h) + 24px);
    width: auto;
    margin: 40px 0 0 var(--gutter);
  }
  .js:not(.is-deck) .offices.is-detail .offices__detail { grid-area: 2 / 2; }
  .floor-nav { display: none; }
  .contact-lines { padding-bottom: 88px; margin-top: -40px; }
  .site-footer { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
  .lightbox { padding-left: 96px; padding-right: 96px; padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px)); } /* šipky jsou po stranách */
}

/* =========================================================
   REŽIM PREZENTACE (.is-deck) – přesně podle designu 1366 × 768
   ========================================================= */
.is-deck {
  /* 1 design px; omezení 1,6 px drží rozumné velikosti na velmi velkých monitorech */
  --u: min(100vw / 1366, 100vh / 768, 1.6px);
  --u: min(100vw / 1366, 100dvh / 768, 1.6px);
  --fs-text: max(12px, calc(14 * var(--u)));
  height: 100%;
  overflow: hidden;
  scroll-padding-top: 0;
}
.is-deck[data-theme="light"] {
  --fg: #000;
  --fg-soft: rgba(0, 0, 0, .38);
}
/* Barva ovládání podle slidu, který je právě pod ním – data-tone nastavuje main.js každému
   prvku zvlášť ve chvíli, kdy ho při přechodu přejede hrana nového slidu */
.is-deck [data-tone="dark"] { --fg: #fff; --fg-soft: rgba(255, 255, 255, .5); }
.is-deck [data-tone="light"] { --fg: #000; --fg-soft: rgba(0, 0, 0, .38); }
.is-deck body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

/* Hlavička */
.is-deck .site-header {
  inset: 0 0 auto;
  height: calc(110 * var(--u));
  padding: 0;
  color: var(--fg);
  pointer-events: none;
  transition: color .6s var(--ease-out);
}
/* Kopie hlavičky v nové barvě během přechodu mezi světlým a tmavým slidem (main.js – sweepHeader) */
.chrome-ghost {
  position: fixed;
  inset: 0 0 auto;
  z-index: 61;
  height: calc(110 * var(--u));
  overflow: hidden;
  pointer-events: none;
  transform: translateZ(0); /* hlavička uvnitř se umisťuje vůči této vrstvě */
}
.is-deck .site-header.is-sweeping { overflow: hidden; }
.chrome-ghost .site-header > * { pointer-events: none; }
/* tmavý přechod pod hlavičkou je součástí slidů (.slide__shade) – při přechodu odjede se slidem */
.is-deck .site-header::before {
  display: none;
  opacity: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, 0));
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  height: calc(150 * var(--u));
  transition: opacity .6s var(--ease-out);
}
.is-deck[data-theme="light"] .site-header::before { opacity: 0; }
.is-deck .site-header > * { pointer-events: auto; }
.is-deck .brand,
.is-deck .site-nav__link,
.is-deck .lang-switch,
.is-deck .site-header__actions .btn--sm { color: var(--fg); }
.is-deck .brand { transition: color .3s var(--ease-out); }
.is-deck .site-nav__link { transition: opacity .3s, color .3s var(--ease-out); }
.is-deck .lang-switch { transition: opacity .3s, color .3s var(--ease-out); }
.is-deck .brand {
  position: absolute;
  left: calc(58.6 * var(--u));
  top: calc(35.6 * var(--u));
}
.is-deck .brand__logo { width: calc(182.1 * var(--u)); }
.is-deck .site-nav {
  position: absolute;
  left: calc(50% - 162 * var(--u));
  top: calc(47.5 * var(--u));
}
.is-deck .site-nav__list { gap: calc(51.4 * var(--u)); }
.is-deck .site-nav__link {
  padding: calc(3 * var(--u)) 0;
  font-size: max(11px, calc(12 * var(--u)));
}
.is-deck .site-header__actions {
  position: absolute;
  right: calc(50.8 * var(--u));
  top: calc(42 * var(--u));
  gap: calc(26 * var(--u));
}
.is-deck .site-header__actions .btn--sm {
  height: calc(27.1 * var(--u));
  min-width: calc(71.7 * var(--u));
  padding: 0 calc(10 * var(--u));
  font-size: max(11px, calc(12 * var(--u)));
  border-color: currentColor;
}
.is-deck .site-header__actions .btn--sm:hover,
.is-deck .site-header__actions .btn--sm:focus-visible { border-color: var(--c-burgundy); color: var(--c-cream); }
.is-deck .lang-switch { font-size: max(10px, calc(11 * var(--u))); }

/* Plátno a slidy */
.is-deck .deck {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--c-night);
  touch-action: pinch-zoom;
}
.is-deck .slide {
  position: absolute;
  inset: 0;
  display: block;
  min-height: 0;
  overflow: hidden;
  visibility: hidden;
}
.is-deck .slide.is-active { visibility: visible; }
/* Skryté slidy se nevykreslují a jejich obrázky (loading="lazy") se nenačítají, dokud na ně
   návštěvník nepřejde – fotky dalšího slidu připravuje dopředu main.js (prepareSlide) */
.is-deck .slide:not(.is-active) { content-visibility: hidden; }
.is-deck .slide.is-current { z-index: 2; }
.is-deck .slide__media { will-change: transform; }

/* Ztmavení vlevo – změřeno z designu (shodné na všech slidech s fotkou) */
.is-deck .slide__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) calc(150 * var(--u))),
    linear-gradient(90deg,
    #000 0,
    #000 calc(80 * var(--u)),
    rgba(0, 0, 0, .98) calc(120 * var(--u)),
    rgba(0, 0, 0, .96) calc(160 * var(--u)),
    rgba(0, 0, 0, .92) calc(200 * var(--u)),
    rgba(0, 0, 0, .87) calc(240 * var(--u)),
    rgba(0, 0, 0, .80) calc(280 * var(--u)),
    rgba(0, 0, 0, .70) calc(320 * var(--u)),
    rgba(0, 0, 0, .57) calc(360 * var(--u)),
    rgba(0, 0, 0, .42) calc(400 * var(--u)),
    rgba(0, 0, 0, .23) calc(440 * var(--u)),
    rgba(0, 0, 0, 0) calc(478 * var(--u)));
}
/* Lokalita: text ve dvou sloupcích sahá dál do fotky, ztmavení proto pokračuje dál doprava */
.is-deck .slide__shade--wide {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) calc(150 * var(--u))),
    linear-gradient(90deg,
    #000 0,
    #000 calc(120 * var(--u)),
    rgba(0, 0, 0, .96) calc(240 * var(--u)),
    rgba(0, 0, 0, .9) calc(360 * var(--u)),
    rgba(0, 0, 0, .82) calc(480 * var(--u)),
    rgba(0, 0, 0, .7) calc(600 * var(--u)),
    rgba(0, 0, 0, .55) calc(680 * var(--u)),
    rgba(0, 0, 0, .35) calc(760 * var(--u)),
    rgba(0, 0, 0, .15) calc(840 * var(--u)),
    rgba(0, 0, 0, 0) calc(920 * var(--u)));
}
.is-deck .slide--last .slide__shade {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28) 0, rgba(0, 0, 0, 0) calc(150 * var(--u))),
    linear-gradient(0deg, rgba(0, 0, 0, .55) 0, rgba(0, 0, 0, 0) calc(110 * var(--u))),
    linear-gradient(90deg,
      #000 0,
      #000 calc(80 * var(--u)),
      rgba(0, 0, 0, .98) calc(120 * var(--u)),
      rgba(0, 0, 0, .96) calc(160 * var(--u)),
      rgba(0, 0, 0, .92) calc(200 * var(--u)),
      rgba(0, 0, 0, .87) calc(240 * var(--u)),
      rgba(0, 0, 0, .80) calc(280 * var(--u)),
      rgba(0, 0, 0, .70) calc(320 * var(--u)),
      rgba(0, 0, 0, .57) calc(360 * var(--u)),
      rgba(0, 0, 0, .42) calc(400 * var(--u)),
      rgba(0, 0, 0, .23) calc(440 * var(--u)),
      rgba(0, 0, 0, 0) calc(478 * var(--u)));
}

/* Obsah slidu: nadpis nahoře, linka přesně ve svislém středu, text a tlačítko pod ní */
.is-deck .slide__content {
  position: absolute;
  inset: 0;
  padding: 0;
  pointer-events: none;
}
.is-deck .slide__content > * { pointer-events: auto; }
.is-deck .slide__title {
  position: absolute;
  left: calc(55.5 * var(--u));
  top: calc(50% - 176.8 * var(--u));
  max-width: 11.6em;
  font-size: calc(45 * var(--u));
  line-height: 1.2;
  text-wrap: balance;
}
.is-deck .slide__eyebrow {
  margin-bottom: calc(18 * var(--u));
  max-width: none;
  font-size: max(11px, calc(12 * var(--u)));
  white-space: nowrap;
}
.is-deck #kancelare-title { max-width: 13.2em; }
.is-deck .slide--gallery .slide__title { max-width: 7.4em; } /* nesmí zasahovat do pásu fotek */
.is-deck .slide__rule {
  position: absolute;
  left: calc(59 * var(--u));
  top: calc(50% - 1 * var(--u));
  width: calc(50.7 * var(--u));
  height: max(1.5px, calc(2 * var(--u)));
  margin: 0;
}
.is-deck .slide__lower {
  position: absolute;
  left: calc(55.5 * var(--u));
  top: calc(50% + 25.9 * var(--u));
  bottom: calc(87.9 * var(--u));
}
.is-deck .slide__text {
  max-width: none;
  width: 20.7em;
  font-size: var(--fs-text);
  line-height: 1.2;
}
.is-deck .slide__text > p + p { margin-top: calc(7 * var(--u)); }
.is-deck .slide__text--hero { width: calc(406 * var(--u)); }
.is-deck .slide__text--location { width: calc(609 * var(--u)); column-count: 2; column-gap: calc(32 * var(--u)); }
.is-deck .facts { gap: 0 calc(32 * var(--u)); margin-top: calc(16 * var(--u)); }
.is-deck .facts__value { font-size: calc(22 * var(--u)); }
.is-deck .facts__label { margin-top: calc(4 * var(--u)); font-size: max(9px, calc(9.5 * var(--u))); }
.is-deck .facts--location { flex-direction: row; gap: 0 calc(40 * var(--u)); margin-top: calc(18 * var(--u)); }
.is-deck .facts--location .facts__item { font-size: max(10px, calc(10.5 * var(--u))); }
.is-deck .location-map {
  position: absolute;
  left: calc(50% - 83 * var(--u));
  top: calc(50% - 374 * var(--u));
  width: calc(766.5 * var(--u));
  max-width: none;
  margin: 0;
  pointer-events: none; /* jen obrázek – nepřekrývá výběr textu vlevo */
  isolation: isolate;
}
.is-deck .location-map__svg { width: 100%; margin: 0; }
/* jemné ztmavení fotky jen pod plánkem – fotka zůstává vidět, plánek je čitelný i na obloze */
.is-deck .location-map::before {
  content: "";
  position: absolute;
  inset: -15% -10%; /* větší než plánek – ztmavení doběhne do nuly mimo jeho okraje */
  z-index: -1;
  background: radial-gradient(closest-side at 45.8% 44.6%, rgba(0, 0, 0, .5), rgba(0, 0, 0, .4) 40%, rgba(0, 0, 0, .18) 72%, rgba(0, 0, 0, 0));
}
.is-deck .slide__text--gallery { width: 19.6em; }
.is-deck .slide__text--floor { width: var(--floor-text-w); }
.is-deck .slide__cta {
  margin-top: auto;
  min-width: 0;
  width: calc(264.6 * var(--u));
  min-height: 0;
  height: calc(45 * var(--u));
  padding: 0 calc(16 * var(--u));
  font-size: var(--fs-text);
  letter-spacing: 0;
}
/* 01 Budova: v prezentaci jsou místo tlačítka dole klíčové údaje (dál vede šipka a menu) */
.is-deck .slide__cta--hero { display: none; }
.is-deck .slide__lower > .facts { margin-top: auto; }
.is-deck .slide__cta--contact { margin-bottom: calc(5.7 * var(--u)); }

/* Postupné objevení obsahu nového slidu – vlastností translate, ne transform: transform přímých
   potomků slidu (.contact-lines) animuje main.js při stírání a obě animace tak běží nezávisle
   na grafické kartě */
.is-deck .slide .slide__title,
.is-deck .slide .slide__rule,
.is-deck .slide .slide__lower,
.is-deck .slide .contact-lines,
.is-deck .slide .facade,
.is-deck .slide .floor__plan {
  transition: opacity .7s var(--ease-out), translate .9s var(--ease-out);
}
.is-deck .slide.is-entering .slide__title,
.is-deck .slide.is-entering .slide__rule,
.is-deck .slide.is-entering .slide__lower,
.is-deck .slide.is-entering .contact-lines,
.is-deck .slide.is-entering .facade,
.is-deck .slide.is-entering .floor__plan {
  opacity: 0;
  translate: 0 calc(18 * var(--u));
  transition: none;
}
.is-deck .slide .slide__rule { transition-delay: .08s; }
.is-deck .slide .slide__lower,
.is-deck .slide .facade,
.is-deck .slide .floor__plan { transition-delay: .16s; }
/* plánek na Lokalitě je součást obrázku slidu – přijede rovnou s fotkou, bez dodatečného objevení */
.is-deck .slide .contact-lines { transition-delay: .24s; }

/* ---------- 02 Kanceláře (prezentace) ---------- */
.is-deck .offices,
.is-deck .offices__overview,
.is-deck .offices__detail {
  position: absolute;
  inset: 0;
  padding: 0;
}
.is-deck .offices {
  display: block; /* ne mřížka z tabletu – absolutně umístěné prvky by se měřily k buňce mřížky */
  /* detail patra vpravo od fasády: text a vedle něj půdorys */
  --floor-x: calc(456 * var(--u));
  --floor-text-w: calc(17.2 * var(--fs-text));
  --plan-x: calc(var(--floor-x) + var(--floor-text-w) + 44 * var(--u));
  --plan-w: min(700 * var(--u), 100vw - var(--plan-x) - 55.5 * var(--u));
}
/* Otevření detailu: přehled ustoupí doleva spolu s fasádou a zmizí, detail přijede zprava,
   až fasáda uvolní místo. Zavření stejně, jen opačným směrem. */
.is-deck .offices__overview {
  display: block;
  transition: opacity .55s var(--ease-out) .5s, transform .9s var(--ease-out) .5s, visibility 0s;
}
.is-deck .offices.is-detail .offices__overview {
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(-48 * var(--u)));
  transition: opacity .28s var(--ease-out), transform .5s var(--ease), visibility 0s .5s;
}
.is-deck .offices__detail {
  display: block;
  pointer-events: none; /* leží přes fasádu – klikat jde jen na jeho obsah */
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(48 * var(--u)));
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.is-deck .offices.is-detail .offices__detail {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .6s var(--ease-out) .5s, transform .9s var(--ease-out) .5s, visibility 0s;
}

/* Pod linkou dva sloupce: text vlevo, přehled pater s tlačítkem vpravo */
.is-deck .slide__lower--offices {
  display: grid;
  grid-template-columns: auto calc(277.8 * var(--u));
  column-gap: calc(40 * var(--u));
  align-items: stretch;
}
.is-deck .offices__summary { display: flex; flex-direction: column; align-items: flex-start; }
.is-deck .floors-table__caption {
  padding-bottom: calc(12 * var(--u));
  font-size: max(11px, calc(12.5 * var(--u)));
}
.is-deck .floors-table {
  width: calc(277.8 * var(--u));
  max-width: none;
  margin-top: 0;
  font-size: max(10px, calc(10.24 * var(--u)));
  line-height: 1.28;
  table-layout: fixed;
}
.is-deck .floors-table th,
.is-deck .floors-table td { padding: calc(2 * var(--u)) 0 calc(8 * var(--u)) calc(2.3 * var(--u)); }
.is-deck .floors-table thead th { padding-top: 0; padding-bottom: calc(7.3 * var(--u)); white-space: normal; vertical-align: bottom; }
.is-deck .floors-table th:nth-child(1) { width: calc(71.4 * var(--u)); }
.is-deck .floors-table th:nth-child(2) { width: calc(154.5 * var(--u)); }
.is-deck .floors-table tbody tr,
.is-deck .floors-table tfoot tr { border-top-width: max(.5px, calc(.57 * var(--u))); }
.is-deck .floors-table tbody tr:hover th,
.is-deck .floors-table tbody tr:hover td { background: rgba(172, 165, 149, .14); }

.is-deck .facade {
  --label-col: calc(133.04 * var(--u));
  position: absolute;
  left: calc(50% + 45.6 * var(--u));
  top: calc(50% - 228.12 * var(--u));
  width: calc(354.63 * var(--u));
  margin: 0;
}
/* V detailu stojí fasáda vlevo; plynulý posun z původního místa animuje main.js (jen transform) */
.is-deck .offices.is-detail .facade { left: calc(55.5 * var(--u)); }
.is-deck .facade__label {
  padding: calc(4 * var(--u)) calc(16 * var(--u)) calc(4 * var(--u)) 0;
  font-size: max(14px, calc(18 * var(--u)));
}
.is-deck .facade__status {
  top: calc(100% - 3 * var(--u));
  font-size: max(8.5px, calc(9 * var(--u)));
}
.is-deck .facade__label::after { margin-left: calc(10 * var(--u)); height: max(1px, calc(1.2 * var(--u))); }

/* Šipka zpět vlevo nahoře – objeví se, když fasáda dojede na místo */
.is-deck .offices__back {
  display: inline-flex;
  position: absolute;
  left: calc(55.5 * var(--u));
  top: calc(50% - 256 * var(--u));
  gap: calc(14 * var(--u));
  margin: 0;
  font-size: max(11px, calc(12 * var(--u)));
  opacity: 0;
  visibility: hidden;
  transform: translateX(calc(16 * var(--u)));
  transition: opacity .25s var(--ease-out), transform .45s var(--ease-out), visibility 0s .45s;
}
.is-deck .offices.is-detail .offices__back {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .5s var(--ease-out) .5s, transform .8s var(--ease-out) .5s, visibility 0s;
}
.is-deck .offices__back-icon { width: calc(48 * var(--u)); height: calc(48 * var(--u)); }
.is-deck .offices__back-icon svg { width: calc(22 * var(--u)); height: calc(18 * var(--u)); }

/* Detail patra – text začíná vpravo od fasády (--floor-x), půdorys vedle textu */
.is-deck .floor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.is-deck .floor > * { pointer-events: auto; }
.is-deck .floor > .slide__content { left: calc(var(--floor-x) - 55.5 * var(--u)); pointer-events: none; }
.is-deck .floor.is-leaving * { pointer-events: none; } /* odcházející patro při přepnutí na jiné */
.is-deck .floor__meta {
  position: absolute;
  left: calc(56.5 * var(--u));
  top: calc(50% - 100 * var(--u));
  margin: 0;
  font-size: max(11px, calc(12 * var(--u)));
}
.is-deck .floor .slide__rule { top: calc(50% - 58 * var(--u)); }
.is-deck .floor .slide__lower { top: calc(50% - 31 * var(--u)); }
.is-deck .floor__features {
  margin-top: calc(10.6 * var(--u));
  font-size: var(--fs-text);
  line-height: 1.2;
}
.is-deck .floor__features li { padding-left: calc(18 * var(--u)); }
.is-deck .floor .slide__cta { width: var(--floor-text-w); }
.is-deck .floor__plan {
  position: absolute;
  left: var(--plan-x);
  top: calc(50% - var(--plan-w) * 808 / 2800 - 12 * var(--u)); /* svisle na střed (půdorys 1400 × 808) */
  width: var(--plan-w);
  margin: 0;
}
.is-deck .floor__plan--empty { height: calc(352 * var(--u)); aspect-ratio: auto; }
.is-deck .floor__plan-placeholder { font-size: max(14px, calc(18 * var(--u))); }

/* ---------- 04 Galerie (prezentace) – pás fotek vpravo od textu ---------- */
.is-deck .gallery {
  align-self: auto;
  width: calc(264.6 * var(--u));
  margin: auto 0 calc(30 * var(--u));
}
/* pás: od 400 design px zleva do pravého okraje, svisle kolem středu (pod šipkami zůstává místo) */
.is-deck .gallery__viewport {
  position: absolute;
  left: calc(344.5 * var(--u));
  top: calc(-287.9 * var(--u));
  width: calc(100vw - 400 * var(--u));
  height: calc(484 * var(--u));
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-snap-type: none;
  touch-action: pan-y pinch-zoom;
}
.is-deck .gallery__track {
  width: auto;
  height: 100%;
  gap: calc(14 * var(--u));
  padding-right: 0;
  transition: transform .9s var(--ease);
  will-change: transform;
}
.is-deck .gallery__item {
  opacity: .36;
  transition: opacity .6s var(--ease-out);
}
.is-deck .gallery__item:hover { opacity: .7; }
.is-deck .gallery__item.is-active { opacity: 1; }
.is-deck .gallery__viewport.is-dragging,
.is-deck .gallery__viewport.is-dragging * { cursor: grabbing; }
.is-deck .gallery__bar {
  gap: calc(10 * var(--u)) calc(12 * var(--u));
  max-width: none;
  margin-top: 0;
}
.is-deck .gallery__count { font-size: calc(24 * var(--u)); }
.is-deck .gallery__arrows { gap: calc(8 * var(--u)); }
.is-deck .arrow--sm { width: calc(36 * var(--u)); height: calc(36 * var(--u)); }
.is-deck .arrow--sm svg { width: calc(18 * var(--u)); height: calc(14 * var(--u)); }
.is-deck .gallery__caption { font-size: max(11px, calc(12 * var(--u))); }
.is-deck .gallery + .slide__cta { margin-top: 0; }
/* pás fotek přijíždí se slidem jako fotka na pozadí – postupně se objeví jen texty a ovládání */
.is-deck .slide--gallery.is-entering .slide__lower { opacity: 1; translate: none; }
.is-deck .slide--gallery .slide__text,
.is-deck .slide--gallery .gallery__bar {
  transition: opacity .7s var(--ease-out) .16s, translate .9s var(--ease-out) .16s;
}
.is-deck .slide--gallery .slide__cta {
  transition: opacity .7s var(--ease-out) .16s, translate .9s var(--ease-out) .16s,
              background-color .35s var(--ease-out), border-color .35s var(--ease-out), color .35s var(--ease-out);
}
.is-deck .slide--gallery.is-entering .slide__text,
.is-deck .slide--gallery.is-entering .gallery__bar,
.is-deck .slide--gallery.is-entering .slide__cta {
  opacity: 0;
  translate: 0 calc(18 * var(--u));
  transition: none;
}

/* ---------- 05 Kontakt (prezentace) ---------- */
.is-deck .contact-lines {
  position: absolute;
  left: calc(50% + 270 * var(--u));
  top: calc(50% + 247.6 * var(--u));
  margin: 0;
  padding: 0;
  font-size: var(--fs-text);
  line-height: 1.2;
}

/* ---------- Ovládání: tečky a šipky ---------- */
.is-deck .deck-nav { display: block; }
.is-deck .pager {
  position: fixed;
  left: 50%;
  bottom: calc(22.3 * var(--u));
  z-index: 40;
  display: flex;
  color: var(--fg);
  transform: translateX(-50%);
  transition: color .12s, transform .6s var(--ease);
}
.is-deck .pager li { position: relative; }
.is-deck .pager li + li::before {
  content: "";
  position: absolute;
  top: calc(11.85 * var(--u));
  right: calc(50% + 3.85 * var(--u));
  width: calc(10.1 * var(--u));
  height: 1px;
  background: currentColor;
  opacity: .45;
  pointer-events: none;
}
.is-deck .pager__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(1.4 * var(--u));
  width: calc(17.9 * var(--u));
  padding-top: calc(8 * var(--u));
  color: inherit;
  text-decoration: none;
}
.is-deck .pager__dot {
  width: calc(7.7 * var(--u));
  height: calc(7.7 * var(--u));
  border-radius: 50%;
  background: currentColor;
  opacity: .45;
  transition: opacity .4s, transform .4s var(--ease-out);
}
.is-deck .pager__item:hover .pager__dot { opacity: .8; }
.is-deck .pager__item[aria-current="true"] .pager__dot { opacity: 1; transform: scale(1.12); }
.is-deck .pager__num {
  font-size: max(7px, calc(6 * var(--u)));
  line-height: 1;
  letter-spacing: .04em;
  opacity: .6;
}
.is-deck .pager__item[aria-current="true"] .pager__num { opacity: 1; }

.is-deck .deck-nav .arrow {
  position: fixed;
  bottom: calc(82.3 * var(--u));
  z-index: 40;
  width: calc(56.3 * var(--u));
  height: calc(56.3 * var(--u));
  color: var(--fg);
}
.is-deck .deck-nav .arrow svg {
  width: calc(32.5 * var(--u));
  height: calc(25.8 * var(--u));
}
/* barva se při přechodu přepíná v okamžiku, kdy šipku přejede hrana slidu – proto krátce */
.is-deck .deck-nav .arrow {
  transition: background-color .35s var(--ease-out), border-color .12s, color .12s, opacity .4s, visibility 0s;
}
.is-deck .deck-nav .arrow--next { right: calc(79.2 * var(--u)); }
.is-deck .deck-nav .arrow--prev {
  right: calc(156.5 * var(--u));
  transition: background-color .35s var(--ease-out), border-color .12s, color .12s,
              opacity .4s, visibility 0s, translate .7s var(--ease);
}
/* Na posledním slidu zůstává jen šipka zpět – v designu na pozici pravé šipky
   (posun přes translate běží na grafické kartě; animace right by v každém snímku přepočítávala rozvržení) */
.is-deck.is-last .deck-nav .arrow--prev { translate: calc((156.5 - 79.2) * var(--u)) 0; }
.is-deck .deck-nav .arrow:hover,
.is-deck .deck-nav .arrow:focus-visible { color: var(--c-cream); }

/* ---------- Patička na posledním slidu ---------- */
.is-deck .site-footer {
  position: fixed;
  inset: auto 0 0;
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: calc(4 * var(--u)) calc(32 * var(--u));
  padding: calc(10 * var(--u)) calc(55.5 * var(--u)) calc(12 * var(--u));
  font-size: max(9.5px, calc(10 * var(--u)));
  line-height: 1.45;
  color: rgba(242, 238, 229, .62);
  background: none;
  border: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease-out), visibility 0s .5s;
}
.is-deck.is-last .site-footer {
  opacity: 1;
  visibility: visible;
  transition: opacity .6s var(--ease-out) .55s;
}
.is-deck .site-footer__operator { max-width: calc(560 * var(--u)); }
.is-deck .site-footer__links { gap: calc(4 * var(--u)) calc(18 * var(--u)); }

/* Formulář a galerie v režimu prezentace */
.is-deck .inquiry__panel { padding-left: 48px; padding-right: 48px; }
.is-deck .inquiry__close { right: 38px; }
.is-deck .lightbox {
  padding: calc(84 * var(--u)) calc(120 * var(--u)) calc(64 * var(--u));
}
.is-deck .lightbox__caption {
  gap: calc(6 * var(--u)) calc(32 * var(--u));
  margin-top: calc(16 * var(--u));
  padding-top: calc(13 * var(--u));
  font-size: max(12px, calc(13 * var(--u)));
}
.is-deck .lightbox__count { font-size: calc(20 * var(--u)); }
.is-deck .lightbox__close { right: calc(45 * var(--u)); top: calc(30 * var(--u)); }
.is-deck .lightbox .arrow {
  top: 50%;
  bottom: auto;
  margin-top: calc(-28.15 * var(--u));
  width: calc(56.3 * var(--u));
  height: calc(56.3 * var(--u));
}
.is-deck .lightbox .arrow svg { width: calc(32.5 * var(--u)); height: calc(25.8 * var(--u)); }
.is-deck .lightbox__next { right: calc(36 * var(--u)); }
.is-deck .lightbox__prev { left: calc(36 * var(--u)); right: auto; }

/* =========================================================
   Přístupnost
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .btn, .arrow, .chip span { border: 1px solid ButtonText; }
  .slide__rule, .inquiry__rule, .legal__rule { background: CanvasText; }
  .facade__light rect { fill: Highlight; }
}

@media print {
  .site-header, .deck-nav, .inquiry, .lightbox, .cc-banner, .slide__media, .slide__shade { display: none !important; }
  .slide { color: #000 !important; min-height: 0 !important; background: none !important; }
  body { background: #fff; }
}
