/* ==========================================================================
   Kráľovské domy — design system
   Architectural, calm, confident. Square edges, hairlines, big type.
   ========================================================================== */

:root {
  --paper: #f3f1ec;
  --paper-2: #e8e5de;
  --white: #ffffff;
  --ink: #121211;
  --ink-2: #3b3a36;
  --muted: #76726a;
  --line: #d8d4cb;
  --line-dark: rgba(255, 255, 255, 0.22);
  --accent: #28463a;          /* pine — CTAs, active states */
  --accent-ink: #f3f1ec;

  --free: #2f7a4e;
  --reserved: #c08a1c;
  --sold: #a7a298;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, 3.2vw, 48px);
  --max: 1520px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --fs-display: clamp(3.4rem, 10.4vw, 11rem);
  --fs-h1: clamp(2.6rem, 6.2vw, 6.4rem);
  --fs-h2: clamp(2.1rem, 4.4vw, 4.4rem);
  --fs-h3: clamp(1.35rem, 1.9vw, 1.75rem);
  --fs-lead: clamp(1.1rem, 1.35vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* clip (not hidden) so nothing can widen the page, while position: sticky keeps working */
body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.5;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img, video { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */

.label {
  font-size: 0.84rem;
  letter-spacing: -0.005em;
  color: var(--muted);
}
.label--ink { color: var(--ink); }
.h1, .h2, .h3, .display { margin: 0; font-weight: 500; }
.display { font-size: var(--fs-display); line-height: 0.9; letter-spacing: -0.055em; }
.h1 { font-size: var(--fs-h1); line-height: 0.95; letter-spacing: -0.045em; }
.h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -0.04em; }
.h3 { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.45; letter-spacing: -0.01em; color: var(--ink-2); margin: 0; }
.muted { color: var(--muted); }
p { margin: 0 0 1em; }
.price { font-variant-numeric: tabular-nums; letter-spacing: -0.03em; font-weight: 500; }

/* Split-line reveal: each word lives in a clipping box. */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--ink); --fg: var(--paper);
  position: relative;
  display: inline-flex; align-items: center; gap: 0.7em;
  height: 52px; padding: 0 1.4em;
  background: var(--bg); color: var(--fg);
  font-size: 0.95rem; font-weight: 500; letter-spacing: -0.01em;
  border-radius: 2px;
  overflow: hidden; isolation: isolate;
  transition: color 0.4s var(--ease-out);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform 0.5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:active { transform: scale(0.985); }
.btn .arr { transition: transform 0.5s var(--ease-out); }
.btn:hover .arr { transform: translateX(4px); }
.btn--light { --bg: var(--paper); --fg: var(--ink); }
.btn--light:hover { color: var(--paper); }
.btn--line { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1px currentColor; }
.btn--line:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--accent); }
.btn--sm { height: 40px; padding: 0 1em; font-size: 0.88rem; }

.link {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: 2px;
  transition: background-size 0.5s var(--ease-out);
}
.link:hover { background-size: 0% 1px; background-position: 100% 100%; }

/* ---------- Status ---------- */

.status { display: inline-flex; align-items: center; gap: 0.5em; font-size: var(--fs-small); font-weight: 500; }
.status::before { content: ""; width: 8px; height: 8px; background: currentColor; }
.status--volny { color: var(--free); }
.status--rezervovany { color: var(--reserved); }
.status--predany { color: var(--sold); }

/* ---------- Loader (first visit per session) ---------- */

.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) var(--gutter) calc(24px + env(safe-area-inset-bottom, 0px));
}
.seen .loader, .no-js .loader { display: none; }
.loader__in { display: grid; justify-items: center; gap: 22px; }
.loader__mark { width: clamp(64px, 8vw, 96px); height: auto; }
.loader__mark path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.loader__word { font-size: clamp(1.6rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; font-weight: 500; overflow: hidden; display: flex; gap: 0.28em; }
.loader__word span { display: inline-block; transform: translateY(110%); }
.loader__foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(40px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: space-between; font-size: 0.9rem; color: rgba(243, 241, 236, 0.6); font-variant-numeric: tabular-nums; }
.loader__bar { position: absolute; left: var(--gutter); right: var(--gutter); bottom: calc(28px + env(safe-area-inset-bottom, 0px)); height: 1px; background: rgba(243, 241, 236, 0.16); }
.loader__bar i { position: absolute; inset: 0; background: var(--paper); transform: scaleX(0); transform-origin: left; }
/* Lock scrolling on the root while the loader is up; the body must never become a scroll container. */
html:not(.seen):not(.loaded) { overflow: hidden; }

/* ---------- Header ---------- */

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  color: var(--ink);
  transition: background-color 0.5s var(--ease-out), color 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}
.hdr::after {
  content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: currentColor; opacity: 0.18;
}
.hdr.is-dark { color: var(--paper); }
.hdr.is-solid { background: var(--paper); color: var(--ink); }
.hdr.is-solid::after { left: 0; right: 0; opacity: 0.12; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: -0.02em; font-size: 1.05rem; }
.logo svg { width: 30px; height: 22px; }
.nav { display: flex; gap: clamp(16px, 2.2vw, 36px); font-size: 0.92rem; }
.nav a { position: relative; opacity: 0.86; transition: opacity 0.3s; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease-out);
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.hdr__right { display: flex; align-items: center; gap: 20px; }
.hdr__phone { font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.hdr .btn { height: 40px; }
.hdr.is-dark:not(.is-solid) .btn { --bg: var(--paper); --fg: var(--ink); }
.hdr.is-dark:not(.is-solid) .btn:hover { color: var(--paper); }
.burger { display: none; width: 40px; height: 40px; position: relative; margin-right: -8px; }
.burger:focus-visible { outline: 1px solid currentColor; outline-offset: -2px; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor; transition: transform 0.5s var(--ease-out), top 0.5s var(--ease-out); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 23px; }
.menu-open .burger span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.mnav {
  position: fixed; inset: 0; z-index: 45; height: 100dvh; overflow-y: auto; gap: 40px;
  background: var(--ink); color: var(--paper);
  padding: calc(var(--header-h) + 32px + env(safe-area-inset-top, 0px)) var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.7s var(--ease-in-out);
  visibility: hidden;
}
.menu-open .mnav { clip-path: inset(0 0 0 0); visibility: visible; }
.menu-open .hdr { color: var(--paper); background: transparent; }
.mnav a.big { display: block; font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.15; }
.mnav__foot { display: grid; gap: 8px; color: rgba(243, 241, 236, 0.7); }

/* ---------- Sections ---------- */

.sec { padding-block: clamp(96px, 14vw, 200px); position: relative; }
.sec--tight { padding-block: clamp(64px, 8vw, 120px); }
.sec--dark { background: var(--ink); color: var(--paper); }
.sec--dark .label { color: rgba(243, 241, 236, 0.6); }
.sec--dark .lead { color: rgba(243, 241, 236, 0.78); }
.sec--white { background: var(--white); }
.sec__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: clamp(48px, 6vw, 96px); }
.sec__head .label { grid-column: 1 / -1; }
.sec__head .h2 { grid-column: 1 / span 7; }
.sec__head .lead { grid-column: 9 / span 4; }

.rule { height: 1px; background: currentColor; opacity: 0.15; border: 0; margin: 0; }

/* ---------- Hero ---------- */

.hero { position: relative; height: 260vh; background: var(--paper); }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__type {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h);
}
.hero__kicker { margin-bottom: clamp(20px, 3vw, 40px); display: flex; justify-content: space-between; gap: 24px; font-size: 0.95rem; letter-spacing: -0.01em; }
.hero__row { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); white-space: nowrap; }
.hero__row--2 { justify-content: flex-end; }
.hero__slot {
  flex: 0 0 auto;
  width: clamp(120px, 21vw, 380px);
  aspect-ratio: 16 / 10;
  display: inline-block;
}
.hero__media {
  position: absolute; inset: 0;
  clip-path: inset(40% 40% 40% 40%);
  will-change: clip-path;
}
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media video { opacity: 0; transition: opacity .8s ease; }
.hero__media video.is-on { opacity: 1; }
/* Legibility scrim only where the copy sits (bottom), so the photo keeps its contrast. */
.hero__media::after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(to bottom, rgba(10, 10, 9, 0.32) 0, rgba(10, 10, 9, 0) 140px),
    linear-gradient(to top, rgba(10, 10, 9, 0.55) 0%, rgba(10, 10, 9, 0.18) 38%, rgba(10, 10, 9, 0) 62%); opacity: var(--shade, 0); }
.hero__over {
  position: absolute; inset: 0; z-index: 2;
  color: var(--paper);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: clamp(28px, 4vw, 56px);
  opacity: 0; visibility: hidden;
}
.hero__over-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.hero__over .h1 { grid-column: 1 / span 7; }
.hero__over-side { grid-column: 9 / span 4; display: grid; gap: 24px; }
.hero__over-side p { margin: 0; color: rgba(243, 241, 236, 0.86); font-size: var(--fs-lead); line-height: 1.4; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__price { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.hero__price b { white-space: nowrap; }
.hero__price b { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; letter-spacing: -0.03em; }
.hero__scroll { position: absolute; left: var(--gutter); bottom: clamp(24px, 4vw, 44px); display: flex; align-items: center; gap: 12px; }
.hero__scroll i { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease-in-out) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Proof strip ---------- */

.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.proof__in { display: grid; grid-template-columns: repeat(5, 1fr); }
.proof__i { padding: clamp(22px, 3vw, 36px) 0; padding-right: 16px; border-left: 1px solid var(--line); padding-left: clamp(16px, 2vw, 28px); }
.proof__i:first-child { border-left: 0; padding-left: 0; }
.proof__v { font-size: clamp(1.35rem, 2.3vw, 2.1rem); letter-spacing: -0.035em; font-weight: 500; line-height: 1.1; font-variant-numeric: tabular-nums; }
.proof__k { margin-top: 6px; color: var(--muted); font-size: var(--fs-small); }

/* ---------- Compare ---------- */

.cmp { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.cmp__table { grid-column: 1 / span 7; }
.cmp__img { grid-column: 9 / span 4; position: relative; }
.cmp__img figure { margin: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.cmp__img .ph { aspect-ratio: 4 / 5; overflow: hidden; }
.cmp__img img { width: 100%; height: 100%; }
.cmp__img figcaption { margin-top: 12px; }
.cmp__cols { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.cmp__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cmp__row > :first-child { color: var(--muted); font-size: var(--fs-small); }
.cmp__row .flat { color: var(--muted); }
.cmp__row .house { font-weight: 500; }
.cmp__row--total { border-bottom: 1px solid var(--ink); }
.cmp__row--total .flat, .cmp__row--total .house { font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -0.03em; }
.cmp__row--total .flat { text-decoration: line-through; text-decoration-thickness: 1px; }

/* ---------- Built (horizontal) ---------- */

.built { position: relative; }
.built__pin { height: 100vh; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.built__track { display: flex; gap: clamp(16px, 2vw, 28px); padding-left: var(--gutter); will-change: transform; align-items: stretch; }
.built__intro { flex: 0 0 clamp(300px, 34vw, 520px); display: flex; flex-direction: column; justify-content: space-between; padding-right: clamp(16px, 3vw, 48px); }
.built__stat { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.built__stat b { font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.built__card { flex: 0 0 auto; margin: 0; }
.built__card .ph { height: min(60vh, 600px); aspect-ratio: var(--ar, 4/3); overflow: hidden; }
.built__card img { width: 100%; height: 100%; transform: scale(1.12); will-change: transform; }
.built__card figcaption { display: flex; justify-content: space-between; gap: 24px; padding-top: 14px; color: rgba(243, 241, 236, 0.65); font-size: var(--fs-small); }
.built__card--video .ph { position: relative; background: #000; }
.built__card--video video { width: 100%; height: 100%; object-fit: cover; display: block; }
.built__play { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; justify-items: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.6) 100%); cursor: pointer; border: 0; font: inherit; font-size: var(--fs-small); letter-spacing: 0.04em; transition: opacity 0.3s; padding: 0 0 18px; }
.built__play-ico { align-self: center; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; transition: transform 0.3s; box-shadow: 0 8px 30px rgba(0,0,0,0.35); }
.built__play-ico::after { content: ""; margin-left: 5px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #111; }
.built__play:hover .built__play-ico { transform: scale(1.08); }
.built__play-lbl { display: flex; gap: 10px; align-items: baseline; }
.built__play-dur { font-variant-numeric: tabular-nums; opacity: 0.7; }
.built__card--video.is-playing .built__play { opacity: 0; pointer-events: none; }
.built__end { flex: 0 0 clamp(260px, 26vw, 400px); display: flex; flex-direction: column; justify-content: flex-end; padding-right: var(--gutter); }

/* ---------- Finder ---------- */

.finder { display: grid; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: end; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.fgroup { display: grid; gap: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line); }
.seg button { height: 38px; padding: 0 14px; font-size: 0.9rem; color: var(--ink-2); transition: background 0.3s, color 0.3s; border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg button:not([aria-pressed="true"]):hover { background: var(--paper-2); }
.range { display: grid; gap: 6px; min-width: 200px; }
.range__val { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; }
.range input[type="range"]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--ink); border: 0; }
.range input[type="range"]::-moz-range-track { height: 1px; background: var(--ink); }
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; background: var(--ink); border: 0; border-radius: 0; }
.filters__count { margin-left: auto; text-align: right; }
.filters__count b { font-size: 1.6rem; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; }

.mp { position: relative; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.mp__scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.mp__scroll > svg { width: 100%; height: auto; min-width: 720px; }
.mp--portrait .mp__scroll > svg { min-width: 0; }
.mp--portrait .unit-no { font-size: 15px; font-weight: 500; }
.mp--portrait .stage-label { font-size: 24px; fill: var(--ink-2); }
.mp--portrait .street-name { font-size: 20px; }
.mp--portrait .mp__compass { transform: rotate(90deg); }
.mp .street-name { fill: var(--muted); }
.mp .road { fill: var(--paper-2); }
.mp .road-stroke { stroke: var(--paper-2); stroke-width: 26; fill: none; }
.mp .bay { fill: #f1efea; }
.mp .bay-line { stroke: var(--white); stroke-width: 1; }
.mp .road-line { stroke: var(--white); stroke-width: 1.2; stroke-dasharray: 8 8; fill: none; }
.mp .green { fill: #e3e8df; }
.mp .plot { fill: var(--white); stroke: var(--line); stroke-width: 1; transition: fill 0.3s, opacity 0.4s; cursor: pointer; }
.mp .plot.volny { fill: #dcebe1; }
.mp .plot.rezervovany { fill: #f2e6c9; }
.mp .plot.predany { fill: #f1efea; }
.mp .house { pointer-events: none; transition: fill 0.3s, opacity 0.4s; }
.mp .house.volny { fill: var(--free); }
.mp .house.rezervovany { fill: var(--reserved); }
.mp .house.predany { fill: var(--sold); }
.mp .unit-no { font-family: var(--mono); font-size: 10px; fill: var(--ink); pointer-events: none; text-anchor: middle; transition: opacity 0.4s; }
.mp .u.dim .plot, .mp .u.dim .house { opacity: 0.22; }
.mp .u.dim .unit-no { opacity: 0.3; }
.mp .u:hover .plot, .mp .u.is-active .plot { fill: var(--ink); }
.mp .u:hover .unit-no, .mp .u.is-active .unit-no { fill: var(--paper); }
.mp .u.is-current .plot { fill: var(--ink); }
.mp .u.is-current .unit-no { fill: var(--paper); }
.mp .stage-label { font-size: 12px; fill: var(--muted); }
.mp .street-name { font-size: 12px; }
.mp .mp__compass { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; min-width: 0; }

.tip {
  position: absolute; z-index: 5; pointer-events: none;
  width: 260px; background: var(--ink); color: var(--paper);
  padding: 16px 18px; font-size: 0.88rem;
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.25s, transform 0.35s var(--ease-out);
}
.tip.on { opacity: 1; transform: none; }
.tip__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.tip__top b { font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
.tip dl { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; }
.tip dt { color: rgba(243, 241, 236, 0.6); }
.tip dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tip__price { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-dark); font-size: 1.15rem; letter-spacing: -0.02em; }
.tip .status--predany { color: #cfcac0; }

/* Unit sheet (mobile tap) */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--white); color: var(--ink);
  padding: 20px var(--gutter) calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  transform: translateY(105%);
  transition: transform 0.55s var(--ease-out);
}
.sheet.on { transform: none; }
.sheet__grab { width: 36px; height: 3px; background: var(--line); margin: 0 auto 14px; }

/* Cards list */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.card { background: var(--paper); padding: 22px; display: grid; gap: 18px; position: relative; transition: background 0.4s var(--ease-out); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card:hover { background: var(--white); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; }
.card__no { font-size: 2.4rem; font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.card__plan { height: 120px; display: flex; align-items: center; justify-content: center; }
.card__plan svg { height: 100%; width: auto; }
.card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; font-size: 0.9rem; }
.card dt { color: var(--muted); font-size: 0.78rem; }
.card dd { margin: 0; font-variant-numeric: tabular-nums; }
.card__foot { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.card__price { font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 500; }
.card__go { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ink); transition: background 0.3s, color 0.3s; }
.card:hover .card__go { background: var(--ink); color: var(--paper); }
.card--predany .card__price { color: var(--muted); }
.card > a.cover { position: absolute; inset: 0; }

/* Table (cenník) */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.tbl th { text-align: left; font-size: 0.84rem; color: var(--muted); font-weight: 400; padding: 14px 12px; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl th button { display: inline-flex; gap: 6px; align-items: center; text-transform: inherit; letter-spacing: inherit; }
.tbl th button[data-dir="asc"]::after { content: "↑"; }
.tbl th button[data-dir="desc"]::after { content: "↓"; }
.tbl td { padding: 16px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr { cursor: pointer; transition: background 0.25s; }
.tbl tbody tr:hover { background: var(--white); }
.tbl tr.is-predany td { color: var(--muted); }
.tbl td.go { text-align: right; }

/* ---------- Types (circle carousel) ---------- */

.types { position: relative; height: 240vh; }
.types__pin { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--header-h); overflow: hidden; }
.types__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.types__info { display: grid; gap: clamp(20px, 3vh, 36px); align-content: center; }
.types__index { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.types__index button { display: flex; align-items: baseline; gap: 10px; padding: 0 4px 14px 0; margin-right: 24px; font-size: 1rem; color: var(--muted); position: relative; transition: color 0.4s; }
.types__index button .num { font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.types__index button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease-out); }
.types__index button[aria-selected="true"] { color: var(--ink); }
.types__index button[aria-selected="true"]::after { transform: scaleX(1); }
.types__panels { display: grid; }
.types__panel { grid-area: 1 / 1; display: grid; gap: 14px; align-content: start; visibility: hidden; opacity: 0; }
.types__panel.on { visibility: visible; opacity: 1; }
.types__tag { margin: 0; font-size: 0.95rem; }
.types__name { margin: 0; font-size: clamp(2.2rem, 3.6vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; font-weight: 500; white-space: nowrap; }
.types__body { margin: 0; color: var(--ink-2); max-width: 44ch; }
.types__panel dl { display: grid; grid-template-columns: 1fr auto; margin: 6px 0 4px; border-top: 1px solid var(--line); }
.types__panel dt, .types__panel dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.types__panel dt { color: var(--muted); font-size: 0.92rem; }
.types__panel dd { text-align: right; font-variant-numeric: tabular-nums; }
.types__panel .link { justify-self: start; }
.types__circle { margin: 0; position: relative; justify-self: center; width: min(100%, calc(100svh - var(--header-h) - 120px)); aspect-ratio: 1; }
.types__disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; }
.types__disc > * { position: absolute; inset: 0; width: 100%; height: 100%; clip-path: circle(0% at 50% 50%); }
.types__disc > .on { clip-path: circle(75% at 50% 50%); }
.types__coord { position: absolute; right: 4%; bottom: 6%; background: var(--paper); padding: 8px 14px; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* ---------- Location ---------- */

.loc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
.loc__map { grid-column: 1 / span 8; position: relative; background: var(--white); border: 1px solid var(--line); }
.loc__map svg { width: 100%; height: auto; }
.loc__list { grid-column: 9 / span 4; }
.loc__item { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: default; transition: padding 0.4s var(--ease-out); }
.loc__item:first-child { border-top: 1px solid var(--ink); }
.loc__item:hover, .loc__item.on { padding-left: 12px; }
.loc__item b { font-weight: 500; }
.loc__item .t { font-size: 1.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: right; grid-row: span 2; align-self: center; }
.loc__item .t small { font-size: 0.8rem; color: var(--muted); letter-spacing: 0; margin-left: 2px; }
.loc__item span { color: var(--muted); font-size: 0.88rem; }
.lm .land { fill: var(--white); }
.lm .field { fill: #eceee6; }
.lm .water { fill: #d5e0e3; }
.lm .road { stroke: #d8d4cb; stroke-width: 3; fill: none; stroke-linecap: round; }
.lm .hwy { stroke: var(--ink); stroke-width: 5; fill: none; stroke-linecap: round; }
.lm .route { stroke: var(--accent); stroke-width: 2.5; fill: none; stroke-dasharray: 6 6; }
.lm .town { fill: #e5e1d8; }
.lm .poi circle { fill: var(--white); stroke: var(--ink); stroke-width: 1.5; transition: r 0.3s, fill 0.3s; }
.lm .poi text { font-size: 13px; fill: var(--ink); }
.lm .poi .sub { font-size: 12px; fill: var(--muted); }
.lm .poi.on circle { fill: var(--ink); }
.lm .home rect { fill: var(--accent); }
.lm .home text { fill: var(--accent); font-weight: 600; font-size: 14px; }
.lm .lbl { font-size: 12px; fill: var(--muted); }

/* ---------- Life grid ---------- */

.life { position: relative; min-height: 100vh; min-height: 100svh; color: var(--paper); overflow: hidden; }
.life__bg { position: absolute; inset: 0; }
.life__bg > * { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease-out), transform 1.6s var(--ease-out); transform: scale(1.06); }
.life__bg > .on { opacity: 1; transform: none; }
.life__bg::after { content: ""; position: absolute; inset: 0; background: rgba(12, 12, 11, 0.38); }
.life__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1.2fr 1fr; min-height: 100vh; min-height: 100svh; }
.life__cell { border-left: 1px solid var(--line-dark); border-top: 1px solid var(--line-dark); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: space-between; position: relative; transition: background 0.6s var(--ease-out), color 0.6s var(--ease-out); }
.life__cell:nth-child(4n + 1) { border-left: 0; }
.life__intro { grid-column: 1 / span 2; grid-row: 1; border-top: 0; justify-content: flex-end; padding-top: calc(var(--header-h) + 32px); }
.life__intro p { max-width: 36ch; color: rgba(243, 241, 236, 0.84); font-size: var(--fs-lead); }
.life__cell--spacer { border-top: 0; }
.life__cell h3 { font-size: 1.15rem; font-weight: 500; margin: 0; }
.life__cell .meta { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.life__cell .km { font-size: 2rem; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.life__cell .desc { font-size: 0.9rem; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.6s var(--ease-out); max-width: 30ch; margin: 12px 0 0; }
.life__cell.is-hover { background: var(--paper); color: var(--ink); }
.life__cell.is-hover .desc { opacity: 1; transform: none; color: var(--ink-2); }
.life__cell .circ { width: 56px; height: 56px; border: 1px solid currentColor; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; transition: transform 0.6s var(--ease-out); }
.life__cell.is-hover .circ { transform: rotate(-45deg); }

/* ---------- Standard ---------- */

.std { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.std__side { grid-column: 1 / span 5; }
.std__side-in { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 28px; }
.std__side .ph { aspect-ratio: 5 / 4; overflow: hidden; }
.std__side img { width: 100%; height: 100%; }
.std__list { grid-column: 7 / span 6; }
.std__grp { border-top: 1px solid var(--ink); padding: 22px 0 36px; display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; }
.std__grp .n { font-size: 0.9rem; color: var(--muted); padding-top: 4px; font-variant-numeric: tabular-nums; }
.std__grp h3 { margin: 0 0 14px; }
.std__grp ul { list-style: none; margin: 0; padding: 0; display: grid; }
.std__grp li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; }
.std__grp li span { min-width: 0; overflow-wrap: anywhere; }
.std__grp li span:last-child { color: var(--muted); text-align: right; }
.std__extra { margin-top: 24px; padding: 28px; background: var(--ink); color: var(--paper); display: grid; gap: 14px; }
.std__extra p { color: rgba(243, 241, 236, 0.78); margin: 0; }

/* ---------- Finance ---------- */

.fin__calc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; margin-bottom: 40px; }
.fin__pick { grid-column: 1 / span 5; display: grid; gap: 12px; }
.fin__pick select { height: 52px; border: 1px solid var(--ink); background: transparent; padding: 0 14px; border-radius: 0; font-size: 1rem; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23121211' stroke-width='1.4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.fin__total { grid-column: 8 / span 5; text-align: right; }
.fin__total b { font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.fin__bar { display: grid; grid-template-columns: var(--c1, 3fr) var(--c2, 15fr) var(--c3, 82fr); height: 64px; gap: 2px; transition: grid-template-columns 0.8s var(--ease-out); }
.fin__bar > div { background: var(--paper-2); position: relative; overflow: hidden; }
.fin__bar > div::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); }
.fin__bar.in > div::after { transform: scaleX(1); }
.fin__bar > div:nth-child(2)::after { background: var(--ink-2); transition-delay: 0.2s; }
.fin__bar > div:nth-child(3)::after { background: var(--accent); transition-delay: 0.4s; }
.fin__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin-top: 28px; }
.fin__step { display: grid; gap: 8px; }
.fin__step b { font-size: clamp(1.4rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.fin__step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Availability (FOMO) ---------- */

.avail { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.avail__nums { grid-column: 1 / span 6; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(24px, 5vw, 72px); }
.avail__n b { display: block; font-size: clamp(3.6rem, 9vw, 8.4rem); line-height: 0.9; font-weight: 500; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.avail__n.volny b { color: var(--free); }
.avail__n.rezervovany b { color: var(--reserved); }
.avail__n.predany b { color: rgba(243, 241, 236, 0.4); }
.avail__dots { grid-column: 8 / span 5; display: grid; grid-template-columns: repeat(17, 1fr); gap: 4px; }
.avail__dots i { aspect-ratio: 1; background: rgba(243, 241, 236, 0.12); transform: scale(0.4); opacity: 0; }
.avail__dots i.volny { background: var(--free); }
.avail__dots i.rezervovany { background: var(--reserved); }
.avail__dots i.predany { background: rgba(243, 241, 236, 0.32); }
.avail__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 32px; margin-top: 16px; border-top: 1px solid var(--line-dark); }

/* ---------- News ---------- */

.news__item { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding: 28px 0; border-top: 1px solid var(--line); align-items: baseline; }
.news__item:last-child { border-bottom: 1px solid var(--line); }
.news__item time { grid-column: 1 / span 2; font-size: 0.9rem; color: var(--muted); }
.news__item h3 { grid-column: 3 / span 5; margin: 0; }
.news__item p { grid-column: 9 / span 4; margin: 0; color: var(--ink-2); }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.contact__left { grid-column: 1 / span 5; display: grid; align-content: space-between; gap: 40px; }
.contact__img { aspect-ratio: 4 / 3; overflow: hidden; }
.contact__img img { width: 100%; height: 100%; }
.contact__person { display: grid; gap: 4px; }
.contact__person a { font-size: clamp(1.4rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; }
.contact__form { grid-column: 7 / span 6; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.fld { position: relative; grid-column: span 1; padding-top: 18px; }
.fld--full { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 12px 0 10px; font-size: 1.05rem; border-radius: 0; outline: none; transition: border-color 0.3s;
  appearance: none;
}
.fld textarea { resize: vertical; min-height: 96px; }
.fld label { position: absolute; left: 0; top: 30px; color: var(--muted); pointer-events: none; transition: transform 0.35s var(--ease-out), font-size 0.35s, color 0.3s; transform-origin: left top; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--ink); }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label,
.fld select + label { transform: translateY(-22px) scale(0.78); color: var(--ink-2); }
.form__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 32px; flex-wrap: wrap; }
.form__note { font-size: 0.82rem; color: var(--muted); max-width: 38ch; }
.form__msg { grid-column: 1 / -1; margin-top: 16px; font-size: 0.95rem; }
.form__msg.ok { color: var(--free); }
.form__msg.err { color: #b3361e; }
.sec--dark .fld input, .sec--dark .fld select, .sec--dark .fld textarea { border-color: var(--line-dark); }
.sec--dark .fld input:focus, .sec--dark .fld textarea:focus { border-color: var(--paper); }
.sec--dark .fld label { color: rgba(243, 241, 236, 0.55); }

/* ---------- Footer ---------- */

.ftr { background: var(--ink); color: var(--paper); padding: clamp(64px, 8vw, 120px) 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
.ftr__big { font-size: clamp(3rem, 12.5vw, 13rem); letter-spacing: -0.06em; line-height: 0.85; font-weight: 500; margin: 0 0 clamp(48px, 6vw, 96px); }
.ftr__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-top: 32px; border-top: 1px solid var(--line-dark); }
.ftr__cols > div { grid-column: span 3; display: grid; gap: 8px; align-content: start; font-size: 0.95rem; }
.ftr__cols a { opacity: 0.8; transition: opacity 0.3s; }
.ftr__cols a:hover { opacity: 1; }
.ftr .label { color: rgba(243, 241, 236, 0.5); margin-bottom: 6px; }
.ftr__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; font-size: 0.8rem; color: rgba(243, 241, 236, 0.5); }

/* ---------- Sticky mobile CTA ---------- */

.mcta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-top: 1px solid var(--line);
  grid-template-columns: auto 1fr 1fr; gap: 8px; align-items: center;
  transform: translateY(110%); transition: transform 0.5s var(--ease-out);
}
.mcta.on { transform: none; }
.mcta .from { font-size: 0.78rem; color: var(--muted); line-height: 1.2; padding-right: 6px; }
.mcta .from b { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.02em; }
.mcta .btn { height: 46px; justify-content: center; padding: 0 12px; font-size: 0.9rem; }

/* ---------- Page heads (subpages) ---------- */

.phead { padding-top: calc(var(--header-h) + clamp(48px, 7vw, 110px)); padding-bottom: clamp(40px, 5vw, 72px); }
.phead__row { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.phead .h1 { grid-column: 1 / span 8; }
.phead .lead { grid-column: 9 / span 4; }
.crumbs { display: flex; gap: 10px; margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.tabs { display: inline-flex; border: 1px solid var(--ink); }
.tabs button { height: 40px; padding: 0 18px; font-size: 0.9rem; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Unit detail ---------- */

.ud__head { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.ud__title { grid-column: 1 / span 7; }
.ud__title .h1 { display: flex; align-items: baseline; gap: 0.25em; }
.ud__title .h1 small { font-size: 0.4em; letter-spacing: -0.02em; color: var(--muted); }
.ud__price { grid-column: 9 / span 4; text-align: right; display: grid; gap: 6px; justify-items: end; }
.ud__price b { font-size: clamp(2.2rem, 4.6vw, 4rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }
.ud__params { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: clamp(32px, 4vw, 56px); }
.ud__params > div { padding: 20px 16px 20px 0; border-right: 1px solid var(--line); padding-left: 16px; }
.ud__params > div:first-child { padding-left: 0; }
.ud__params > div:last-child { border-right: 0; }
.ud__params b { display: block; font-size: clamp(1.3rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.ud__params span { color: var(--muted); font-size: 0.85rem; }
.ud__main { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); margin-top: clamp(48px, 6vw, 96px); }
.ud__plan { grid-column: 1 / span 8; background: var(--white); border: 1px solid var(--line); padding: clamp(16px, 3vw, 40px); }
.ud__plan svg { width: 100%; height: auto; }
.ud__plan-tabs { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 16px; flex-wrap: wrap; }
.ud__side { grid-column: 9 / span 4; display: grid; gap: 32px; align-content: start; }
.ud__rooms { width: 100%; border-collapse: collapse; }
.ud__rooms td { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.ud__rooms td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ud__rooms tr.total td { border-bottom: 1px solid var(--ink); font-weight: 500; }
.ud__incl { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ud__incl li { display: flex; gap: 12px; }
.ud__incl li::before { content: ""; width: 12px; height: 1px; background: var(--ink); margin-top: 0.75em; flex: 0 0 auto; }
.ud__mini .mp svg { min-width: 0; width: 100%; height: auto; }
.gal { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px; }
.gal figure { margin: 0; overflow: hidden; position: relative; cursor: zoom-in; }
.gal figure img { width: 100%; height: 100%; transition: transform 1.2s var(--ease-out); }
.gal figure:hover img { transform: scale(1.03); }
.gal .g1 { grid-column: span 8; aspect-ratio: 16 / 10; }
.gal .g2 { grid-column: span 4; }
.gal .g3 { grid-column: span 4; aspect-ratio: 4 / 3; }
.gal .g4 { grid-column: span 4; aspect-ratio: 4 / 3; }
.gal .g5 { grid-column: span 4; aspect-ratio: 4 / 3; }

.lb { position: fixed; inset: 0; z-index: 80; background: rgba(12, 12, 11, 0.94); display: grid; place-items: center; padding: 5vw; opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.lb.on { opacity: 1; visibility: visible; }
.lb img { max-height: 88vh; width: auto; object-fit: contain; }
.lb button { position: absolute; top: calc(20px + env(safe-area-inset-top, 0px)); right: 20px; color: var(--paper); font-size: 0.9rem; }

/* ---------- Reveal defaults (JS enhances) ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); }
.js [data-clip] { clip-path: inset(100% 0 0 0); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .nav, .hdr__phone { display: none; }
  .burger { display: block; }
  .proof__in { grid-template-columns: repeat(3, 1fr); }
  .proof__i:nth-child(4) { border-left: 0; padding-left: 0; }
  .proof__i:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .ud__params { grid-template-columns: repeat(3, 1fr); }
  .ud__params > div:nth-child(3) { border-right: 0; }
  .ud__params > div:nth-child(4) { padding-left: 0; }
  .ud__params > div:nth-child(n + 4) { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .hdr .btn { display: none; }
  .sec__head .h2, .sec__head .lead, .phead .h1, .phead .lead { grid-column: 1 / -1; }
  .hero { height: 220vh; }
  .display { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero__kicker { flex-direction: column; gap: 4px; font-size: 0.85rem; }
  .hero__type { justify-content: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .hero__over { justify-content: flex-end; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); }
  .hero__over .h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero__over-side p { font-size: 0.98rem; }
  .hero__price b { font-size: 1.8rem; }
  .hero__ctas { flex-wrap: nowrap; gap: 8px; }
  .hero__ctas .btn { flex: 1 1 0; justify-content: center; height: 48px; padding: 0 10px; font-size: 0.88rem; }
  .hero__ctas .btn .arr { display: none; }
  .hero__media img, .hero__media video { object-position: 24% 50%; }
  .hero__row { flex-wrap: wrap; white-space: normal; }
  .hero__row--1 { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__row--2 { justify-content: flex-start; }
  .hero__slot { width: 100%; aspect-ratio: 1 / 1; max-height: 46svh; order: 2; }
  .hero__over .h1, .hero__over-side { grid-column: 1 / -1; }
  .hero__over-side { gap: 18px; }
  .hero__scroll { display: none; }
  .cmp__table, .cmp__img { grid-column: 1 / -1; }
  .cmp__img { order: -1; }
  .cmp__img .ph { aspect-ratio: 4 / 3; }
  .cmp__cols, .cmp__row { grid-template-columns: 0.9fr 1fr 1fr; gap: 10px; }
  .built__pin { height: auto; padding-block: 96px; }
  .built__track { flex-direction: column; padding-right: var(--gutter); transform: none !important; }
  .built__intro, .built__end { flex: none; padding-right: 0; }
  .built__card { height: auto; }
  .built__card .ph { height: auto; aspect-ratio: 4 / 3; }
  .built__card--video .ph { aspect-ratio: 9 / 16; max-height: 70vh; margin-inline: auto; }
  .filters { gap: 14px 20px; }
  .filters__count { margin-left: 0; text-align: left; width: 100%; }
  .range { min-width: 0; width: 100%; }
  .types { height: auto; }
  .types__pin { position: relative; height: auto; padding-block: 88px; display: block; }
  .types__grid { grid-template-columns: 1fr; gap: 32px; }
  .types__circle { order: -1; width: min(100%, 440px); }
  .types__name { font-size: 2.4rem; }
  .loc__map, .loc__list { grid-column: 1 / -1; }
  .loc__map { overflow-x: auto; }
  .loc__map { overflow: hidden; }
  .life__grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .life__intro { grid-column: 1 / -1; grid-row: auto; min-height: 60vh; }
  .life__cell--spacer { display: none; }
  .life__cell { min-height: 38vh; border-left: 1px solid var(--line-dark); }
  .life__cell:nth-child(odd) { border-left: 0; }
  .life__cell .desc { opacity: 1; transform: none; }
  .std__side, .std__list { grid-column: 1 / -1; }
  .std__side-in { position: static; }
  .std__grp { grid-template-columns: 1fr; }
  .std__grp .n { display: none; }
  .std__grp li { flex-direction: column; gap: 2px; }
  .std__grp li span:last-child { text-align: left; }
  .fin__pick, .fin__total { grid-column: 1 / -1; text-align: left; }
  .fin__steps { grid-template-columns: 1fr; gap: 20px; }
  .avail__nums, .avail__dots { grid-column: 1 / -1; }
  .avail__nums { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .news__item time, .news__item h3, .news__item p { grid-column: 1 / -1; }
  .contact__left, .contact__form { grid-column: 1 / -1; }
  .form { grid-template-columns: 1fr; }
  .ftr__cols > div { grid-column: span 6; }
  .mcta { display: grid; }
  body.has-mcta .ftr { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .ud__title, .ud__price { grid-column: 1 / -1; text-align: left; justify-items: start; }
  .ud__plan, .ud__side, .ud-col { grid-column: 1 / -1 !important; }
  .gal .g1, .gal .g2 { grid-column: 1 / -1; }
  .gal .g2 { aspect-ratio: 4 / 3; }
  .gal .g3, .gal .g4, .gal .g5 { grid-column: span 6; }
  .gal .g5 { grid-column: 1 / -1; }
  .tbl-desktop { display: none; }
}
@media (max-width: 860px) {
  /* 12-column desktop grids collapse to one column; eleven gutters alone would not fit a phone. */
  .sec__head, .hero__over-grid, .cmp, .loc, .std, .fin__calc, .avail, .news__item, .contact,
  .phead__row, .ud__head, .ud__main, .incl { grid-template-columns: minmax(0, 1fr); }
  .ud-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .ud__side .btn, .contact .btn { white-space: normal; text-align: center; line-height: 1.2; height: auto; min-height: 52px; padding-block: 12px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
  .ftr__cols > div { grid-column: auto; }
  .hero__ctas .btn { white-space: normal; text-align: center; line-height: 1.15; }
}
@media (max-width: 600px) {
  .proof__in { grid-template-columns: 1fr 1fr; }
  .proof__i, .proof__i:nth-child(4) { border-left: 0; padding-left: 0; }
  .proof__i:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .proof__i:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .proof__i:last-child { grid-column: 1 / -1; }
  /* Compare: row label on its own line, flat vs house side by side below */
  .cmp__cols, .cmp__row { grid-template-columns: 1fr 1fr; gap: 6px 16px; }
  .cmp__cols > :first-child { display: none; }
  .cmp__row > :first-child { grid-column: 1 / -1; font-size: 0.8rem; }
  .cmp__row { padding: 16px 0; }
  .cmp__row--total .flat, .cmp__row--total .house { font-size: 1.35rem; }

  /* Life: calm vertical list instead of a dense grid */
  .life__grid { grid-template-columns: 1fr; }
  .life__intro { min-height: 70vh; }
  .life__cell:not(.life__intro) { min-height: 0; border-left: 0 !important; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); }
  .life__cell .meta { display: block; flex: 1; }
  .life__cell .meta .circ { display: none; }
  .life__cell:not(.life__intro) > div:last-child { text-align: right; }
  .life__cell .km { font-size: 1.4rem; }
  .life__cell .desc { display: none; }
  .life__cell h3 { font-size: 1.05rem; }

  .lm text { font-size: 15px; }
  .lm .poi .sub, .lm .lbl { font-size: 12px; }
}
@media (min-width: 861px) {
  .only-mobile { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js [data-clip] { clip-path: none; }
}

/* Split "what's included" block on the offer page */
.incl { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: end; }
.incl > div { grid-column: 1 / span 7; }
.incl > ul { grid-column: 9 / span 4; color: rgba(243, 241, 236, 0.85); }
@media (max-width: 860px) { .incl > div, .incl > ul { grid-column: 1 / -1; } }


/* --- cookie lišta (js/cookies.js) a stránka Ochrana osobných údajov */
:root {
  --cc-font: var(--font); --cc-bg: var(--white); --cc-ink: var(--ink); --cc-muted: var(--muted);
  --cc-line: var(--line); --cc-line-strong: var(--line); --cc-accent: var(--accent); --cc-accent-ink: var(--accent-ink);
  --cc-radius: 4px; --cc-btn-radius: 999px;
}
.pravne { max-width: 860px; margin-inline: auto; }
.pravne h2 { font-size: var(--fs-h3); margin: 2em 0 .5em; font-weight: 500; }
.pravne p, .pravne li { color: var(--ink-2); line-height: 1.7; }
.pravne ul { padding-left: 1.2em; display: grid; gap: .4em; list-style: disc; }
.pravne a, .pravne__odkaz { color: var(--ink); text-decoration: underline; }
.pravne__odkaz { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.pravne__ucinnost { color: var(--muted) !important; font-family: var(--mono); font-size: .8rem; }
.pravne__tabulka { overflow-x: auto; margin: 1em 0; }
.pravne table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 520px; }
.pravne th, .pravne td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.pravne th { font-weight: 600; }
.ftr__legal a, .form__note a, .ftr__legal .pravne__odkaz { color: inherit; text-decoration: underline; }

/* --- Vzorový dom 12-B (home): záložky miestností nad galériou .gal */
.vzor__intro { grid-column: 9 / span 4; display: grid; gap: 20px; align-content: start; }
.vzor__intro .link { justify-self: start; }
.vzor__lista { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin: clamp(32px, 4vw, 56px) 0 20px; }
.vzor__tabs { flex-wrap: wrap; }
.vzor__tabs button { transition: background-color 0.3s var(--ease-out), color 0.3s var(--ease-out); }
.vzor__tabs button:hover:not([aria-selected="true"]) { background: rgba(18, 18, 17, 0.06); }
.vzor__gal[hidden] { display: none; }
@media (max-width: 899px) {
  .vzor__intro { grid-column: 1 / -1; }
  .vzor__lista { flex-direction: column; align-items: flex-start; }
  .vzor__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .vzor__tabs button { flex: none; white-space: nowrap; }
}
.sec__head .vzor__intro .lead { grid-column: auto; }

/* ---------- Stavba v čase: drone frames cross-fade along a date slider ---------- */
.grow__stage { position: relative; margin: 0; height: min(56.25vw, calc(100svh - 190px)); min-height: 320px; overflow: hidden; background: var(--ink); }
.grow__stage img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; will-change: clip-path; }
.grow__edge { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: var(--paper); opacity: 0; z-index: 2; pointer-events: none; box-shadow: 0 0 12px rgba(0, 0, 0, 0.35); }
.grow__stage img:last-of-type { opacity: 1; }
.grow__stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to bottom, transparent, rgba(18, 18, 17, 0.55)); pointer-events: none; z-index: 1; }
.grow__date { position: absolute; left: clamp(16px, 2.4vw, 36px); bottom: clamp(14px, 2.2vw, 32px); z-index: 3; overflow: hidden; color: var(--paper); font-size: clamp(1.7rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.grow__date span { display: block; }
.grow__ctl { --thumb: 30px; margin-top: clamp(20px, 2.4vw, 32px); }
.grow__range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: grab; }
.grow__range:active { cursor: grabbing; }
.grow__range:focus { outline: none; }
.grow__range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(90deg, var(--ink) calc(var(--thumb) / 2 + (100% - var(--thumb)) * var(--v, 1)), var(--line) 0); }
.grow__range::-moz-range-track { height: 2px; background: var(--line); }
.grow__range::-moz-range-progress { height: 2px; background: var(--ink); }
.grow__range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: var(--thumb); height: var(--thumb); margin-top: calc(1px - var(--thumb) / 2); border-radius: 50%; background: var(--ink); border: 8px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); transition: transform 0.3s var(--ease-out); }
.grow__range::-moz-range-thumb { width: var(--thumb); height: var(--thumb); box-sizing: border-box; border-radius: 50%; background: var(--ink); border: 8px solid var(--paper); box-shadow: 0 0 0 1px var(--ink); transition: transform 0.3s var(--ease-out); }
.grow__range:active::-webkit-slider-thumb { transform: scale(1.18); }
.grow__range:active::-moz-range-thumb { transform: scale(1.18); }
.grow__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(40, 70, 58, 0.35); }
.grow__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px rgba(40, 70, 58, 0.35); }
.grow__ticks { list-style: none; margin: 0; padding: 0 calc(var(--thumb) / 2); display: flex; justify-content: space-between; }
.grow__ticks li { width: 0; display: flex; justify-content: center; }
.grow__ticks button { position: relative; flex: none; padding: 12px 6px 8px; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; transition: color 0.3s; }
.grow__ticks button::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 7px; background: currentColor; }
.grow__ticks button:hover, .grow__ticks button[aria-current="true"] { color: var(--ink); }
.grow__ticks li:first-child button { transform: translateX(calc(50% - var(--thumb) / 2 - 6px)); }
.grow__ticks li:first-child button::before { left: calc(var(--thumb) / 2 + 6px - 0.5px); }
.grow__ticks li:last-child button { transform: translateX(calc(-50% + var(--thumb) / 2 + 6px)); }
.grow__ticks li:last-child button::before { left: auto; right: calc(var(--thumb) / 2 + 6px - 0.5px); }

/* ---------- Lokalita: annotated drone panorama ---------- */
.pano { position: relative; margin: 0 0 clamp(48px, 6vw, 96px); }
.pano__ph { aspect-ratio: 2 / 1; overflow: hidden; }
.pano__ph img { width: 100%; height: 100%; object-position: 50% 0%; }
.pano__pins { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 2 / 1; pointer-events: none; }
.pano__pin { position: absolute; }
.pano__pin i { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 4px rgba(243, 241, 236, 0.35); }
.pano__pin b { position: absolute; left: 0; bottom: 14px; transform: translateX(-50%); padding: 7px 11px; background: var(--paper); color: var(--ink); font-size: 0.86rem; font-weight: 500; white-space: nowrap; line-height: 1.1; }
.pano__pin--down b { bottom: auto; top: 14px; }
.pano__pin b em { font-style: normal; color: var(--muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.pano__pin.is-l b { transform: translateX(-14px); }
.pano__pin.is-r b { transform: translateX(calc(-100% + 14px)); }
.pano__pin--home i { border-radius: 0; background: var(--accent); box-shadow: 0 0 0 4px rgba(243, 241, 236, 0.8); }
.pano__pin--home b { background: var(--accent); color: var(--accent-ink); }
.pano figcaption { margin-top: 12px; }

@media (max-width: 860px) {
  .grow__stage { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .grow__ctl { --thumb: 32px; }
  .grow__ticks button { font-size: 0.78rem; padding-inline: 2px; }
  .pano__ph, .pano__pins { aspect-ratio: 4 / 3; }
  .pano { margin-inline: calc(var(--gutter) * -1); }
  .pano figcaption { padding-inline: var(--gutter); }
  .pano__pin--far { display: none; }
  .pano__pin b { font-size: 0.74rem; padding: 5px 8px; }
  .pano__pin b em { margin-left: 4px; }
  /* Senec sits between two other labels on a phone; hang it to the left of its dot. */
  .pano__pin.pano__pin--flip b { transform: translateX(calc(-100% + 14px)); }
}
