/* Byt 201 · Plzeň-Litice
   Style: "magazine" (full-bleed photo, large condensed headlines, story blocks), an interactive 3D model as the
   centrepiece, and the three facade colours of the building (brick red, ochre, teal) as a recurring stripe motif.
   Type: Barlow Condensed (DIN-like, signage / technical drawing) for headlines, numbers and labels, Barlow for text.
   Both are open-source fonts (SIL Open Font License) stored in ../fonts, so nothing is loaded from outside.
   Theme follows the browser (prefers-color-scheme); the header button can force light or dark.
   Mobile: one compact column, swipeable photo strip, call / viewing bar pinned to the bottom. */

@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-condensed-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #f4f1ea;      /* warm plaster white */
  --paper-2: #ebe7dd;
  --card: #faf8f3;
  --ink: #16201b;        /* deep green-black */
  --ink-2: #4f5a53;
  --line: #d9d4c7;
  --oak: #b98a5e;
  --red: #b4432f;        /* facade panels */
  --ochre: #e2a42e;
  --teal: #2b7f86;
  --cta: var(--red);
  --cta-ink: #ffffff;
  --pin: #d9482b;
  --stripes: linear-gradient(90deg, var(--red) 0 33.34%, var(--ochre) 33.34% 66.67%, var(--teal) 66.67%);
  --room: #e8e5da;
  --room-h: #ddd8c6;
  --room-sel: #efd2a8;
  --wall: #232a26;
  --fix-line: #9a8f78;
  --stage: #e7e9e4;      /* background of the 3D scene */

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Bahnschrift, system-ui, sans-serif;
  --f-label: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Bahnschrift, system-ui, sans-serif;
  --f-body: "Barlow", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --gutter: 22px;
  --maxw: 1180px;
  --r: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #101614;
    --paper-2: #151c19;
    --card: #161e1a;
    --ink: #ece9e1;
    --ink-2: #a2aca5;
    --line: #2a342f;
    --oak: #d3a577;
    --red: #e5785f;
    --ochre: #e8b44c;
    --teal: #5fb4b9;
    --cta-ink: #1b1210;
    --pin: #ff6a45;
    --room: #1f2824;
    --room-h: #29352f;
    --room-sel: #51412f;
    --wall: #dde2de;
    --fix-line: #7d7662;
    --stage: #1b1f22;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #101614;
  --paper-2: #151c19;
  --card: #161e1a;
  --ink: #ece9e1;
  --ink-2: #a2aca5;
  --line: #2a342f;
  --oak: #d3a577;
  --red: #e5785f;
  --ochre: #e8b44c;
  --teal: #5fb4b9;
  --cta-ink: #1b1210;
  --pin: #ff6a45;
  --room: #1f2824;
  --room-h: #29352f;
  --room-sel: #51412f;
  --wall: #dde2de;
  --fix-line: #7d7662;
  --stage: #1b1f22;
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1; letter-spacing: .008em; text-transform: uppercase; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--r); }
.skip:focus { top: 12px; }
.small { font-size: .85rem; color: var(--ink-2); line-height: 1.5; }
.link { color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:hover { text-decoration-thickness: 2px; }
.more-row { margin-top: 14px; }

/* ---------- small parts ---------- */
.plate {
  display: inline-block; background: var(--ink); color: var(--paper);
  font: 600 0.90rem/1 var(--f-label); letter-spacing: .08em;
  padding: 5px 8px 4px; border-radius: 2px; font-variant-numeric: tabular-nums;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font: 600 0.83rem/1.3 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 30px; height: 5px; background: var(--stripes); flex: none; }
.eyebrow.on-dark { color: #fff; font-weight: 700; font-size: 1.17rem; letter-spacing: .11em; }   /* tučné písmo od 18,7 px platí podle WCAG jako velký text (stačí kontrast 3:1) */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cta); color: var(--cta-ink); border: 1.5px solid var(--cta); border-radius: var(--r);
  padding: 13px 24px; font: 600 1.03rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.75); backdrop-filter: blur(4px); }
.btn-light:hover { background: #fff; color: #16201b; }
.btn-sm { padding: 9px 14px; font-size: .78rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: transparent; border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font: 600 0.87rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; color: var(--ink); white-space: nowrap;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- header: transparent over the hero, solid after scrolling ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: #fff; border-bottom: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.top.solid { background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); color: var(--ink); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand .plate { font-size: 1.1rem; padding: 6px 10px 5px; background: #fff; color: #16201b; transition: background .25s, color .25s; }
.top.solid .brand .plate { background: var(--ink); color: var(--paper); }
.brand-t { display: flex; flex-direction: column; line-height: 1.15; }
.brand-t b { font: 600 1.12rem var(--f-label); letter-spacing: .06em; text-transform: uppercase; }
.brand-t small { font-size: .78rem; opacity: .8; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { text-decoration: none; font: 600 0.90rem/1 var(--f-label); letter-spacing: .14em; text-transform: uppercase; padding: 6px 0; border-bottom: 1.5px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.top-act { display: flex; align-items: center; gap: 10px; }
.top .chip, .top .theme-btn { color: inherit; border-color: color-mix(in srgb, currentColor 42%, transparent); }
.top .chip:hover, .top .theme-btn:hover { border-color: currentColor; }
.theme-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent;
  display: inline-grid; place-items: center; cursor: pointer; padding: 0; flex: none;
}
.theme-btn svg { width: 18px; height: 18px; display: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn[data-mode="auto"] .i-auto, .theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }
#langBtn { height: 38px; padding-inline: 12px; }
.top .top-cta { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: clamp(580px, 90vh, 840px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #1d2622; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  /* fotka zůstává světlá, čitelnost textu zajišťuje silnější písmo a tmavý obrys (viz .hero-txt níže) */
  background: linear-gradient(180deg, rgba(8,14,11,.62) 0%, rgba(8,14,11,0) 24%, rgba(8,14,11,0) 40%, rgba(8,14,11,.84) 100%),
              linear-gradient(90deg, rgba(8,14,11,.34), rgba(8,14,11,0) 55%);
}
.hero-in { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px 40px; flex-wrap: wrap; padding-bottom: clamp(30px, 5vw, 58px); }
/* text na fotce: nejtučnější řez, čistě bílá a tmavý obrys + měkká záře, takže nepotřebuje ztmavenou fotku */
.hero h1 { text-shadow: 0 0 1px rgba(0,0,0,.95), 0 1px 3px rgba(0,0,0,.8), 0 0 10px rgba(0,0,0,.65), 0 0 26px rgba(0,0,0,.5); }
.hero .eyebrow, .hero-sub { text-shadow: 0 0 2px #000, 0 0 2px #000, 0 0 3px #000, 0 0 5px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.85), 0 0 20px rgba(0,0,0,.7); }
.hero h1 { font-size: clamp(3.3rem, 7.8vw, 7.2rem); font-weight: 700; line-height: .93; margin-top: 16px; max-width: 12ch; }
html[lang="en"] .hero h1 { max-width: 17ch; }
.hero h1 em { font-style: normal; color: #ffd45e; }
.hero-sub { margin-top: 16px; font: 700 1.16rem/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.cta-row { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.price-card {
  position: relative; background: color-mix(in srgb, var(--paper) 92%, transparent); color: var(--ink); backdrop-filter: blur(8px);
  padding: 26px 28px 20px; min-width: 290px; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r);
}
.price-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--stripes); border-radius: var(--r) var(--r) 0 0; }
.price-card small { font: 600 0.81rem/1 var(--f-label); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-2); }
.price-card b { font: 600 clamp(2.5rem, 4.2vw, 3.3rem)/1.05 var(--f-display); font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.price-card span:last-child { font-size: .88rem; color: var(--ink-2); }

/* ---------- facts band ---------- */
.facts-band { background: var(--paper-2); border-bottom: 1px solid var(--line); }
/* každá položka je „podmřížka“ se třemi řádky (popisek, hodnota, poznámka), takže hlavní hodnoty leží vždy na stejné čáře, i když se popisek zalomí */
.facts dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); row-gap: 0; margin: 0; }
.facts dl > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; align-content: start; padding: 22px 22px 20px; border-right: 1px solid var(--line); }
.facts dl > div:first-child { padding-left: 0; }
.facts dl > div:last-child { border-right: 0; }
.facts dt { font: 600 0.76rem/1.2 var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.facts dd { margin: 6px 0 0; font: 600 2.28rem/1.1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.facts dd.note { margin: 4px 0 0; font: 400 .8rem/1.3 var(--f-body); color: var(--ink-2); font-variant-numeric: normal; }
 not (grid-template-rows: subgrid) { .facts dl > div { display: block; } .facts dt { min-height: 2.5em; } }

/* ---------- sections ---------- */
.section { padding-block: clamp(40px, 6vw, 84px) 0; }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(18px, 3vw, 32px); max-width: 64ch; }
.sec-head h2 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.sec-sub { color: var(--ink-2); }

/* ---------- walk-through: 3D model with hotspots / plan ---------- */
.walk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(300px, 4fr); gap: clamp(20px, 4vw, 52px); align-items: start; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font: 600 0.87rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage { position: relative; background: var(--stage); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.stage-3d { position: relative; aspect-ratio: 3 / 2; }
.stage-3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage-3d.live .poster, .stage-3d.live .pins, .stage-3d.live .play { display: none; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.poster-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .poster-light { display: none; }
  :root:not([data-theme="light"]) .poster-dark { display: block; }
}
:root[data-theme="dark"] .poster-light { display: none; }
:root[data-theme="dark"] .poster-dark { display: block; }
:root[data-theme="light"] .poster-light { display: block; }
:root[data-theme="light"] .poster-dark { display: none; }

.pins { position: absolute; inset: 0; }
.pin { position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; cursor: pointer; display: grid; place-items: center; z-index: 2; }
.pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--pin); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pin) 35%, transparent), 0 0 0 10px color-mix(in srgb, var(--pin) 14%, transparent); transition: transform .15s; }
.pin:hover i, .pin:focus-visible i { transform: scale(1.25); }
.pin span {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 4px; white-space: nowrap;
  background: var(--ink); color: var(--paper); font: 600 0.81rem/1 var(--f-label); letter-spacing: .06em; padding: 5px 9px; border-radius: 999px;
}
.pin.l span { left: auto; right: 100%; margin-left: 0; margin-right: 4px; }
.pin.sel span { background: var(--pin); color: #fff; }
.pin.sel i { transform: scale(1.25); }
.play {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 3;
  display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper);
  border: 0; border-radius: 999px; padding: 11px 22px 11px 12px; cursor: pointer; white-space: nowrap;
  font: 600 0.94rem/1 var(--f-label); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.play:hover { background: var(--cta); color: var(--cta-ink); }
.play-ico { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); position: relative; flex: none; }
.play-ico::after { content: ""; position: absolute; left: 10px; top: 7px; border-left: 10px solid var(--ink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.stage-links { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 12px; font-size: .9rem; }

.stage-plan { padding: 16px 16px 12px; background: var(--card); }
#planSvg { width: 100%; height: auto; max-height: 640px; margin-inline: auto; }
#planSvg .room { cursor: pointer; outline: none; }
#planSvg .room path { fill: var(--room); transition: fill .15s; }
#planSvg .room:hover path { fill: var(--room-h); }
#planSvg .room:focus-visible path { stroke: var(--cta); stroke-width: .06; }
#planSvg .room.sel path { fill: var(--room-sel); }
#planSvg .wall { fill: var(--wall); pointer-events: none; }
#planSvg .gap { fill: var(--card); pointer-events: none; }
#planSvg .glass { fill: none; stroke: var(--wall); stroke-width: .035; pointer-events: none; }
#planSvg .fix { fill: url(#hatch); stroke: var(--fix-line); stroke-width: .03; pointer-events: none; }
#planSvg .fixp { fill: none; stroke: var(--fix-line); stroke-width: .035; pointer-events: none; }
#planSvg text { pointer-events: none; font-family: var(--f-label); fill: var(--ink); text-anchor: middle; paint-order: stroke; stroke: var(--room); stroke-width: .12; stroke-linejoin: round; }
#planSvg .tl-sel { stroke: var(--room-sel); }
#planSvg .t-n { font-size: .34px; font-weight: 600; letter-spacing: .01em; }
#planSvg .t-a { font-size: .28px; font-weight: 400; font-variant-numeric: tabular-nums; fill: var(--ink-2); }
#planSvg .t-m { font-size: .26px; fill: var(--ink-2); stroke: none; letter-spacing: .12em; text-transform: uppercase; }
#planSvg .t-d { font-size: .28px; fill: var(--ink-2); stroke: var(--card); letter-spacing: .03em; font-variant-numeric: tabular-nums; }
#planSvg .dimline { stroke: var(--ink-2); stroke-width: .025; fill: none; pointer-events: none; }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .78rem; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 8px; }
.sw { width: 18px; height: 12px; border: 1px solid var(--fix-line); }
.sw-room { background: var(--room); border-color: var(--line); }
.sw-fix { background: repeating-linear-gradient(135deg, transparent 0 3px, var(--fix-line) 3px 4px); }

.room-panel { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.room-panel h3 { font-size: clamp(2.1rem, 3.4vw, 2.8rem); }
.rp-area { font: 600 1.80rem/1.2 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.rp-area span:last-child { font: 400 .95rem var(--f-body); color: var(--ink-2); margin-left: 8px; }
.rp-points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.rp-points li { padding-left: 20px; position: relative; }
.rp-points li::before { content: ""; position: absolute; left: 0; top: .72em; width: 12px; height: 4px; background: var(--stripes); }
.rp-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-photos button { padding: 0; border: 0; background: var(--paper-2); width: calc(33.333% - 6px); min-width: 90px; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.rp-photos img { width: 100%; height: 100%; object-fit: cover; }
.room-panel .btn { align-self: flex-start; }

/* ---------- story blocks (full-bleed photo + text) ---------- */
.stories { margin-top: clamp(40px, 6vw, 84px); }
.story { display: grid; grid-template-columns: 1.18fr 1fr; align-items: stretch; background: var(--paper); }
.story.r { grid-template-columns: 1fr 1.18fr; }
.story.r img { order: 2; }
.story img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; }
.story .t { padding: clamp(30px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.stories .story:nth-child(even) .t, .story-loc .t { background: var(--paper-2); }
.story h3 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); max-width: 15ch; }
.story .t > p:not(.eyebrow) { color: var(--ink-2); max-width: 44ch; }
/* hodnota nahoře, popisek pod ní; hodnoty jsou na jedné čáře, i když se některý popisek zalomí na dva řádky */
.stats { display: grid; grid-auto-flow: column; grid-template-rows: auto auto; justify-content: start; column-gap: 34px; margin: 6px 0 0; }
.stats > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
.stats dt { grid-row: 2; font: 600 0.76rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); max-width: 16ch; }
.stats dd { grid-row: 1; margin: 0 0 3px; font: 600 2.40rem/1.1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }

/* ---------- gallery ---------- */
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 16px; }
.tile { position: relative; padding: 0; border: 0; background: var(--paper-2); cursor: zoom-in; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover img { transform: scale(1.03); }
.tile .cap {
  position: absolute; inset: auto 0 0 0; padding: 22px 12px 10px; text-align: left; color: #fff; font-size: .8rem; line-height: 1.3;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent); opacity: 0; transition: opacity .2s;
}
.tile:hover .cap, .tile:focus-visible .cap { opacity: 1; }
@media (min-width: 701px) { .gal.collapsed .tile:nth-child(n+9) { display: none; } }

.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: rgba(10, 12, 14, .95); color: #fff; }
.lb[open] { display: grid; grid-template-columns: 64px minmax(0, 1fr) 64px; align-items: center; }
.lb::backdrop { background: rgba(10, 12, 14, .95); }
.lb-fig { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 2px; }
.lb-fig figcaption { font-size: .95rem; text-align: center; padding-inline: 8px; }
.lb-count { opacity: .6; font-variant-numeric: tabular-nums; margin-left: 8px; }
.lb-nav, .lb-x { background: none; border: 0; color: #fff; cursor: pointer; font: 300 3.36rem/1 var(--f-label); height: 100%; opacity: .75; }
.lb-nav:hover, .lb-x:hover { opacity: 1; }
.lb-x { position: absolute; top: 6px; right: 10px; height: auto; font-size: 2.4rem; z-index: 2; padding: 4px 10px; }

/* ---------- video ---------- */
.video-box { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); overflow: hidden; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-box .play { bottom: auto; top: 50%; transform: translate(-50%, -50%); }

/* ---------- accordions and key-value lists ---------- */
.acc { border-bottom: 1px solid var(--line); }
.acc details { border-top: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 0; font: 600 1.62rem/1.3 var(--f-display);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; font: 300 2.02rem/1 var(--f-label); color: var(--cta); transition: transform .2s; }
.acc details[open] summary::after { transform: rotate(45deg); }
.kv { margin: 0; padding: 0; }
.acc .kv { padding-bottom: 10px; }
.kv > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line); }
.kv dt { font: 600 0.78rem/1.5 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; max-width: 72ch; }
.kv a { text-underline-offset: 3px; }
.kv.terms { border-bottom: 1px dashed var(--line); margin-bottom: clamp(22px, 3vw, 38px); }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(18px, 4vw, 52px); align-items: start; }
.calc-in { display: flex; flex-direction: column; gap: 18px; }
.seg-rad { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seg-rad label { cursor: pointer; }
.seg-rad input { position: absolute; opacity: 0; pointer-events: none; }
.seg-rad span { display: inline-block; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 16px; font: 600 0.87rem/1 var(--f-label); letter-spacing: .1em; text-transform: uppercase; }
.seg-rad input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.seg-rad input:focus-visible + span { outline: 2px solid var(--cta); outline-offset: 2px; }
.fld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.fld.two > div { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.fld label, .fld-h label { font: 600 0.78rem/1.3 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.fld-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.fld-h output { font: 600 1.50rem/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.fld .hint { font-size: .82rem; color: var(--ink-2); min-height: 1.3em; }
input[type="range"] { width: 100%; accent-color: var(--cta); height: 28px; margin: 0; }
.adv summary { cursor: pointer; font: 600 0.85rem/1.4 var(--f-label); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 4px 0 10px; }
.adv summary:hover { color: var(--ink); }

.calc-out { position: relative; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.calc-out::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 5px; background: var(--stripes); border-radius: var(--r) var(--r) 0 0; }
.big { font: 600 clamp(2.7rem, 4.8vw, 3.7rem)/1 var(--f-display); font-variant-numeric: lining-nums tabular-nums; }
.big small { font: 400 1.05rem var(--f-body); color: var(--ink-2); }
.stack { display: flex; height: 10px; border-radius: 2px; overflow: hidden; background: var(--line); }
.stack i { display: block; height: 100%; }
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rows li { display: flex; align-items: baseline; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; font-size: .94rem; }
.rows li b { margin-left: auto; font-weight: 600; white-space: nowrap; }
.rows .dot { width: 10px; height: 10px; border-radius: 2px; flex: none; align-self: center; }
.cash { font-size: .94rem; padding: 10px 12px; border-left: 3px solid var(--teal); background: var(--card); }
.cash b { font-variant-numeric: tabular-nums; }

/* ---------- location ---------- */
.story-loc { margin-top: clamp(40px, 6vw, 84px); }
.loc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 4vw, 52px); align-items: start; padding-top: clamp(26px, 4vw, 48px); }
.map-links { margin-top: 8px; }
.map-box { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); overflow: hidden; }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; text-align: center; padding: 18px; }
.map-ph > p:first-child { max-width: 30ch; color: var(--ink-2); }
.poi-list { list-style: none; margin: 0; padding: 0; }
.poi-list li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 70px; gap: 14px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line); font-size: .94rem; }
.poi-list li:first-child { border-top: 0; padding-top: 0; }
.poi-list .bar { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.poi-list .bar i { display: block; height: 100%; background: var(--oak); border-radius: 3px; }
.poi-list .d { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- contact ---------- */
.contact { padding-bottom: clamp(40px, 6vw, 84px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(14px, 3vw, 28px); align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.who { font: 600 2.28rem/1.1 var(--f-display); }
.big-link { font: 600 clamp(1.6rem, 2.8vw, 2.1rem)/1.3 var(--f-display); text-decoration: none; border-bottom: 2px solid var(--red); overflow-wrap: anywhere; }
.big-link:hover { color: var(--red); }
.share-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.form .fld input, .form .fld select, .form .fld textarea, #mailText {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 10px 12px; font-size: 1rem;
}
.form .fld input:focus, .form .fld select:focus, .form .fld textarea:focus { border-color: var(--cta); outline: none; }
.form .btn { align-self: flex-start; }
#mailText { resize: vertical; font-size: .9rem; }
#mailFallback { display: flex; flex-direction: column; gap: 10px; }

.foot { background: var(--paper-2); padding-bottom: 22px; }
.foot::before { content: ""; display: block; height: 6px; background: var(--stripes); margin-bottom: 20px; }
.foot-in { font-size: .8rem; color: var(--ink-2); }
.foot p { max-width: 90ch; }

/* quick contact bar: phones only */
.dock { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .facts dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts dl > div { border-bottom: 1px solid var(--line); }
  .facts dl > div:nth-child(3n) { border-right: 0; }
  .facts dl > div:nth-child(4), .facts dl > div:nth-child(1) { padding-left: 0; }
  .facts dl > div:nth-child(n+4) { border-bottom: 0; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 68px; }
  .nav { display: none; }
  .top-act { margin-left: auto; }
  .walk, .calc, .loc-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .room-panel { position: static; }
  .story, .story.r { grid-template-columns: minmax(0, 1fr); }
  .story.r img { order: 0; }
  .story img { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .story h3 { max-width: none; }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  body { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .top-in { min-height: 56px; gap: 12px; }
  .top-cta { display: none; }
  .brand .plate { font-size: 1rem; padding: 5px 8px 4px; }

  .hero { min-height: clamp(520px, 84vh, 680px); }
  .hero h1 { font-size: 3.3rem; }
  .hero-sub { font-size: .98rem; margin-top: 12px; }
  .hero .eyebrow { gap: 10px; }
  .hero .eyebrow::before { width: 24px; }
  .cta-row { margin-top: 18px; }
  .cta-row .btn { flex: 1 1 0; padding-inline: 10px; white-space: nowrap; font-size: .84rem; }
  .hero .cta-row .btn:first-child { display: none; }     /* „Domluvit prohlídku“ je na telefonu stále vidět ve spodní liště */
  .price-card { width: 100%; min-width: 0; padding: 20px 20px 16px; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
  .price-card small { width: 100%; }
  .price-card b { font-size: 2.6rem; }

  .facts dl > div { padding: 16px 12px 14px; }
  .facts dd { font-size: 1.85rem; }
  .facts dd.note { font-size: .74rem; }
  .facts dt { font-size: .62rem; letter-spacing: .12em; }

  .section { padding-block: 34px 0; }
  .sec-head { gap: 8px; margin-bottom: 14px; }
  .sec-head h2 { font-size: 2.2rem; }

  /* 3D stage */
  .pin { width: 40px; height: 40px; }
  .pin span { display: none; }
  .pin.sel span { display: block; }
  .play { padding: 10px 18px 10px 10px; font-size: .76rem; bottom: 10px; }
  .stage-plan { padding: 8px; }
  #planSvg { max-height: 62vh; }
  .rp-photos button { min-width: 0; }

  /* stories */
  .stories, .story-loc { margin-top: 36px; }
  .story img { aspect-ratio: 16 / 11; }
  .story .t { padding: 22px var(--gutter) 28px; gap: 10px; }
  .story h3 { font-size: 2.2rem; }
  .stats { display: none; }

  /* photos: swipeable strip */
  .scroll-x { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .scroll-x::-webkit-scrollbar { display: none; }
  .gal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; margin-top: 12px; }
  .gal::-webkit-scrollbar { display: none; }
  .gal .tile { flex: 0 0 82%; scroll-snap-align: start; }
  .tile .cap { display: none; }
  .more-row:has(#galMore) { display: none; }

  /* lists */
  .acc summary { padding: 15px 0; font-size: 1.45rem; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; }
  .fld.two { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .poi-list li { grid-template-columns: minmax(0, 1fr) 64px; padding: 8px 0; }
  .poi-list .bar { display: none; }
  .map-box { aspect-ratio: 16 / 10; }
  .form .fld.two { grid-template-columns: 1fr 1fr; gap: 10px; }
  .contact-grid { gap: 12px; }

  .lb[open] { grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .lb-nav { font-size: 2.4rem; }

  /* pinned call / viewing bar */
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transition: transform .25s;
  }
  .dock .btn { padding: 13px 8px; font-size: .84rem; }
  .dock .btn-ghost { background: var(--paper); }
  .dock.dock-hide { transform: translateY(110%); }
}
@media (max-width: 380px) {
  .brand-t small { display: none; }
  .hero h1 { font-size: 2.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
