/* ============================================================
   Prodej nemovitosti — one-pager
   Three palettes as token sets, switched via [data-palette]
   ============================================================ */

/* ---- Palette B "Architekt" (default) ---- */
:root,
[data-palette="B"] {
  --bg:        #F1F0EC;
  --surface:   #E8E6DF;
  --paper:     #FBFAF8;
  --ink:       #17181A;
  --ink-2:     #494B4E;
  --ink-3:     #74767A;
  --line:      rgba(23, 24, 26, 0.13);
  --line-strong: rgba(23, 24, 26, 0.28);
  --accent:    #3E5266;
  --accent-2:  #2E3E4E;
  --on-accent: #F4F4F1;
  --hero-scrim: linear-gradient(180deg, rgba(15,17,20,0) 22%, rgba(15,17,20,0.30) 56%, rgba(13,15,18,0.74) 100%);
  --ph-a:      #3E5266;
  --ph-b:      #C9C6BD;
  color-scheme: light;
}

/* ---- Palette A "Pískovec" ---- */
[data-palette="A"] {
  --bg:        #F4EFE6;
  --surface:   #ECE4D6;
  --paper:     #FBF8F2;
  --ink:       #211F1B;
  --ink-2:     #534E45;
  --ink-3:     #837C6E;
  --line:      rgba(33, 31, 27, 0.13);
  --line-strong: rgba(33, 31, 27, 0.30);
  --accent:    #5A6450;
  --accent-2:  #464E3E;
  --on-accent: #F4EFE6;
  --hero-scrim: linear-gradient(180deg, rgba(28,24,18,0) 22%, rgba(28,24,18,0.28) 56%, rgba(24,20,15,0.72) 100%);
  --ph-a:      #5A6450;
  --ph-b:      #D8CDB8;
  color-scheme: light;
}

/* ---- Palette C "Soumrak" (dark, cinematic) ---- */
[data-palette="C"] {
  --bg:        #1A1A1C;
  --surface:   #232225;
  --paper:     #26251F;
  --ink:       #ECE5D7;
  --ink-2:     #B4AC9C;
  --ink-3:     #8A8275;
  --line:      rgba(236, 229, 215, 0.15);
  --line-strong: rgba(236, 229, 215, 0.34);
  --accent:    #B08D57;
  --accent-2:  #C9A56B;
  --on-accent: #1A1A1C;
  --hero-scrim: linear-gradient(180deg, rgba(10,10,11,0.10) 0%, rgba(10,10,11,0.35) 55%, rgba(8,8,9,0.82) 100%);
  --ph-a:      #B08D57;
  --ph-b:      #3A3833;
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* Toggle: render data values in body font instead of mono */
html.data-sans .param .v,
html.data-sans .hero__fact .v,
html.data-sans .fin__price .amt,
html.data-sans .rooms .ra,
html.data-sans .poi .pt,
html.data-sans .stickybar .price {
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background 0.5s ease, color 0.5s ease;
}

/* ---- Type primitives ---- */
.display {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  text-wrap: balance;
}
.mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}
.kicker {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}

h1, h2, h3 { margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 40px; }
section { position: relative; }
.section-pad { padding: clamp(72px, 11vh, 140px) 0; }

.section-head { display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; padding-top: 6px;
}
.section-head .label { font-size: clamp(13px, 1.4vw, 15px); }
.section-title {
  font-family: "Schibsted Grotesk", system-ui, sans-serif;
  font-weight: 500; letter-spacing: -0.02em; line-height: 1.05;
  font-size: clamp(30px, 4.4vw, 50px);
}

/* ============================================================
   Photo placeholders
   ============================================================ */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--ph-a) 22%, var(--ph-b)) 0%, var(--ph-b) 78%);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: color-mix(in srgb, var(--ink) 60%, transparent);
}
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 22px, color-mix(in srgb, var(--ink) 4%, transparent) 22px 23px);
  opacity: 0.5;
}
.ph__tag {
  position: relative;
  text-align: center;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-size: 11px; line-height: 1.5;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
.ph__tag b { display: block; font-size: 15px; line-height: 1.25; margin-bottom: 8px; letter-spacing: 0.06em; color: color-mix(in srgb, var(--ink) 72%, transparent); font-weight: 600; }
.ph__frame {
  position: absolute; inset: 14px;
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
}

/* ============================================================
   Header + sticky CTA
   ============================================================ */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  padding: 12px 40px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: baseline; gap: 12px; color: #fff; transition: color 0.35s ease; }
.topbar.scrolled .brand { color: var(--ink); }
.brand__mark { font-family: "Schibsted Grotesk", sans-serif; font-weight: 600; letter-spacing: -0.01em; font-size: 18px; }
.brand__sub { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; }

.topbar__actions { display: flex; align-items: center; gap: 14px; }
.topbar__phone {
  font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.04em;
  color: #fff; transition: color 0.35s ease; padding: 8px 4px;
}
.topbar.scrolled .topbar__phone { color: var(--ink); }
.topbar__phone:hover { opacity: 0.7; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: 14px;
  letter-spacing: 0.01em;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  background: var(--accent); color: var(--on-accent);
  cursor: pointer; border-radius: 2px;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); transform: translateY(-1px); }
.btn--lg { padding: 16px 30px; font-size: 15px; }
.btn .arrow { transition: transform 0.25s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* mobile bottom sticky bar */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.1,1);
}
.stickybar.show { transform: translateY(0); }
.stickybar .price { font-family: "JetBrains Mono", monospace; font-size: 14px; font-weight: 600; }
.stickybar .price small { display: block; font-size: 10px; color: var(--ink-3); letter-spacing: 0.12em; }

/* ============================================================
   1. HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
.hero__img { position: absolute; inset: 0; }
.hero__img .ph { width: 100%; height: 100%; }
.hero__scrim { position: absolute; inset: 0; background: var(--hero-scrim); }
.hero__inner { position: relative; width: 100%; padding-bottom: clamp(40px, 6vh, 76px); }
.hero__kicker {
  font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.3em;
  text-transform: uppercase; color: rgba(255,255,255,0.82); margin-bottom: 22px;
  display: flex; align-items: center; gap: 14px;
}
.hero__kicker::before { content: ""; width: 38px; height: 1px; background: rgba(255,255,255,0.6); }
.hero__title {
  color: #fff; font-size: clamp(34px, 5.6vw, 76px); max-width: 16ch;
  letter-spacing: -0.022em; line-height: 1.06; text-shadow: 0 2px 40px rgba(0,0,0,0.25);
}
.hero__sub { color: rgba(255,255,255,0.9); font-size: clamp(16px, 1.7vw, 21px); margin-top: 20px; max-width: 46ch; }
.hero__facts {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0;
  margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.25);
}
.hero__fact { padding-right: 28px; margin-right: 28px; border-right: 1px solid rgba(255,255,255,0.22); }
.hero__fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.hero__fact .v { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; color: #fff; font-size: clamp(15px, 1.5vw, 18px); font-weight: 600; }
.hero__fact .k { font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.65); margin-top: 4px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero__cta .btn--ghost:hover { border-color: #fff; color: #fff; }
.hero__scrollcue { position: absolute; right: 40px; bottom: 34px; writing-mode: vertical-rl; font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.6); }

/* ============================================================
   2. PARAMETRY
   ============================================================ */
.params { background: var(--surface); }
.params__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.param {
  padding: 26px 26px 26px 0;
  border-bottom: 1px solid var(--line);
}
.param .k { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.param .v { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; font-size: clamp(19px, 2vw, 25px); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.param .v small { font-size: 0.6em; color: var(--ink-2); letter-spacing: 0.02em; }
.param--price .v { color: var(--accent); }

/* ============================================================
   3. GALERIE
   ============================================================ */
.gallery__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px;
  grid-auto-flow: dense;
}
.gcell { position: relative; cursor: pointer; overflow: hidden; }
.gcell .ph { width: 100%; height: 100%; transition: transform 0.7s cubic-bezier(0.2,0,0.1,1); }
.gcell:hover .ph { transform: scale(1.035); }
.gcell::after {
  content: "↗"; position: absolute; top: 14px; right: 16px;
  font-size: 18px; color: #fff; opacity: 0; transform: translateY(-4px);
  transition: opacity 0.3s ease, transform 0.3s ease; mix-blend-mode: difference;
}
.gcell:hover::after { opacity: 1; transform: translateY(0); }
.gcell--xl { grid-column: span 4; aspect-ratio: 16/10; }
.gcell--md { grid-column: span 2; aspect-ratio: 4/5; }
.gcell--sq { grid-column: span 2; aspect-ratio: 1/1; }
.gcell--wide { grid-column: span 3; aspect-ratio: 3/2; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90; display: none;
  align-items: center; justify-content: center;
  background: rgba(8,8,9,0.94); padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox__stage { position: relative; width: min(1100px, 92vw); aspect-ratio: 16/10; }
.lightbox__stage .ph { width: 100%; height: 100%; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; width: 50px; height: 50px; cursor: pointer; font-size: 20px;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__close { top: -64px; right: 0; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: -68px; }
.lightbox__nav--next { right: -68px; }
.lightbox__count { position: absolute; bottom: -44px; left: 0; font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.1em; color: rgba(255,255,255,0.7); }

/* ============================================================
   4. O DOMĚ
   ============================================================ */
.about__lead { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.about__body p { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); margin-bottom: 22px; max-width: 52ch; }
.about__body p:first-child::first-letter {
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: 3.4em; line-height: 0.78;
  float: left; padding: 6px 14px 0 0; color: var(--ink);
}
.about__meta { padding-top: 8px; }
.about__meta dt { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.about__meta dd { margin: 0 0 22px; font-size: 16px; color: var(--ink); }
.pullquote {
  margin: clamp(56px, 8vw, 100px) auto 0; max-width: 1000px;
  font-family: "Schibsted Grotesk", sans-serif; font-weight: 500;
  font-size: clamp(26px, 3.6vw, 46px); line-height: 1.18; letter-spacing: -0.02em;
  text-wrap: balance; text-align: center; color: var(--ink);
}
.pullquote .mark { color: var(--accent); }

/* ============================================================
   5. DISPOZICE
   ============================================================ */
.plans { background: var(--surface); }
.plans__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.plan__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.plan__head h3 { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.plan__head .area { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--ink-3); }
.plan__img { aspect-ratio: 4/3; margin-bottom: 22px; border: 1px solid var(--line); }
.plan__img .ph { width: 100%; height: 100%; }
.rooms { list-style: none; margin: 0; padding: 0; }
.rooms li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rooms li .rn { font-size: 15px; }
.rooms li .ra { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.rooms .dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }

/* ============================================================
   6. CO DŮM NABÍZÍ
   ============================================================ */
.feat__list { border-top: 1px solid var(--line-strong); }
.feat {
  display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; gap: 24px;
  padding: 26px 4px; border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s cubic-bezier(0.3,0,0.1,1), background 0.4s ease;
}
.feat:hover { padding-left: 18px; background: color-mix(in srgb, var(--accent) 5%, transparent); }
.feat .n { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-3); }
.feat .t { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.01em; }
.feat .d { font-size: 14px; color: var(--ink-2); max-width: 30ch; text-align: right; }

/* ============================================================
   7. LOKALITA
   ============================================================ */
.loc__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.loc__map { position: relative; min-height: 460px; border: 1px solid var(--line); overflow: hidden; }
.loc__map .ph { position: absolute; inset: 0; }
.loc__pin {
  position: absolute; top: 46%; left: 52%; transform: translate(-50%, -50%);
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); border: 3px solid var(--paper);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 26%, transparent);
}
.loc__pin::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1px solid var(--accent); animation: ping 2.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loc__pin::after { animation: none; } }
.poi { list-style: none; margin: 0; padding: 0; }
.poi li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.poi li:first-child { border-top: 1px solid var(--line-strong); }
.poi .pn { font-size: 17px; }
.poi .pn small { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.poi .pt { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink); text-align: right; }
.poi .pt b { font-size: 18px; }

/* ============================================================
   8. ENERGETIKA
   ============================================================ */
.energy__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.escale { display: flex; flex-direction: column; gap: 7px; }
.eband { position: relative; display: flex; align-items: center; gap: 4px; min-height: 46px; padding: 7px 18px; color: #fff; }
.eband .el { font-family: "JetBrains Mono", monospace; font-weight: 700; font-size: 15px; width: 24px; flex-shrink: 0; }
.eband .ed { font-size: 13px; line-height: 1.15; opacity: 0.95; }
.eband::after { content: ""; position: absolute; right: -1px; top: 0; border-top: 21px solid transparent; border-bottom: 21px solid transparent; border-left: 16px solid currentColor; color: inherit; }
.eband { width: calc(58% + var(--w, 0%)); }
.eband.is-active {
  min-height: 58px; box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2;
}
.eband.is-active .el { font-size: 20px; }
.eA { background: #2e7d52; } .eB { background: #4f9e54; }
.eC { background: #8bb04b; } .eD { background: #d6c33f; }
.eE { background: #e0a23c; } .eF { background: #d97b38; } .eG { background: #c2453b; }
.eband::after { display: none; }
.energy__read .big { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: clamp(56px, 9vw, 110px); line-height: 0.9; letter-spacing: -0.03em; }
.energy__read .big .cls { color: var(--accent); }
.energy__read .lbl { font-family: "JetBrains Mono", monospace; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.energy__read p { color: var(--ink-2); margin-top: 18px; max-width: 40ch; }

/* ============================================================
   9. CENA A FINANCOVÁNÍ
   ============================================================ */
.finance { background: var(--surface); }
.fin__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.fin__price .lbl { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.fin__price .amt { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.02em; margin: 12px 0 6px; color: var(--accent); }
.fin__price .note { color: var(--ink-2); font-size: 15px; max-width: 38ch; margin-top: 16px; }
.calc { background: var(--paper); border: 1px solid var(--line); padding: clamp(26px, 3vw, 38px); }
.calc h3 { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: 20px; margin-bottom: 22px; }
.calc__row { margin-bottom: 20px; }
.calc__row label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-2); margin-bottom: 8px; }
.calc__row label .val { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.calc input[type="range"] { width: 100%; accent-color: var(--accent); height: 4px; }
.calc input[type="text"], .calc input[type="number"] {
  width: 100%; font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums;
  font-size: 16px; padding: 12px 14px; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 2px;
}
.calc input:focus { outline: none; border-color: var(--accent); }
.calc__out { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: baseline; justify-content: space-between; }
.calc__out .lbl { font-size: 13px; color: var(--ink-2); }
.calc__out .res { font-family: "JetBrains Mono", monospace; font-variant-numeric: tabular-nums; font-weight: 600; font-size: clamp(26px, 3.4vw, 36px); color: var(--ink); }
.calc__out .res small { font-size: 0.5em; color: var(--ink-3); }
.calc__disc { font-size: 12px; color: var(--ink-3); margin-top: 16px; line-height: 1.5; }

/* ============================================================
   10. MAKLÉŘ + FORMULÁŘ
   ============================================================ */
.agent__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.agent__photo { aspect-ratio: 4/5; border: 1px solid var(--line); }
.agent__photo .ph { width: 100%; height: 100%; }
.agent__name { font-family: "Schibsted Grotesk", sans-serif; font-weight: 500; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.01em; margin-top: 26px; }
.agent__role { color: var(--ink-2); font-size: 16px; margin-top: 6px; }
.agent__contact { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.agent__contact a { display: flex; align-items: center; gap: 12px; font-family: "JetBrains Mono", monospace; font-size: 15px; }
.agent__contact a:hover { color: var(--accent); }
.agent__contact .ic { width: 18px; opacity: 0.6; }

.form__intro { color: var(--ink-2); font-size: 17px; max-width: 44ch; margin-bottom: 28px; }
.field { margin-bottom: 18px; position: relative; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; font-family: "Hanken Grotesk", sans-serif; font-size: 16px;
  padding: 13px 15px; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 2px; transition: border-color 0.2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field.invalid input, .field.invalid textarea { border-color: #c2453b; }
.field .err { display: none; color: #c2453b; font-size: 12px; margin-top: 6px; font-family: "JetBrains Mono", monospace; }
.field.invalid .err { display: block; }
.form__submit { display: flex; align-items: center; gap: 18px; margin-top: 8px; flex-wrap: wrap; }
.form__ok { display: none; align-items: center; gap: 10px; color: var(--accent); font-size: 15px; font-weight: 500; }
.form__ok.show { display: flex; }

/* ============================================================
   11. PATIČKA
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line-strong); padding: 64px 0 48px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.footer__mark { font-family: "Schibsted Grotesk", sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.footer__cta-text { max-width: 30ch; color: var(--ink-2); margin-top: 14px; font-size: 15px; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; padding-top: 26px; border-top: 1px solid var(--line); font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--ink-3); letter-spacing: 0.04em; }
.footer__legal a:hover { color: var(--ink); }

/* ============================================================
   Reveal animations
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s cubic-bezier(0.2,0,0.1,1), transform 0.9s cubic-bezier(0.2,0,0.1,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .gcell .ph, .btn, .feat { transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .wrap, .wrap-narrow { padding: 0 28px; }
  .topbar { padding: 14px 28px; }
  .params__grid { grid-template-columns: repeat(2, 1fr); }
  .about__lead { grid-template-columns: 1fr; gap: 36px; }
  .loc__grid, .energy__grid, .fin__grid, .agent__grid, .plans__grid { grid-template-columns: 1fr; }
  .feat .d { display: none; }
  .gcell--xl, .gcell--wide { grid-column: span 6; }
  .gcell--md, .gcell--sq { grid-column: span 3; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .topbar__actions .btn { display: none; }
  .topbar.scrolled .topbar__actions .btn { display: none; }
  .stickybar { display: flex; }
  .hero__fact { padding-right: 18px; margin-right: 18px; }
  .field--row { grid-template-columns: 1fr; }
  .params__grid { grid-template-columns: 1fr; }
  .feat { grid-template-columns: 40px 1fr; }
}

/* ============================================================
   injected — reálné obrázky, mapa, lightbox foto, SVG půdorys
   ============================================================ */
.rimg { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcell .rimg { transition: transform 0.7s cubic-bezier(0.2,0,0.1,1); }
.gcell:hover .rimg { transform: scale(1.035); }
.loc__map .rimg { position: absolute; inset: 0; border: 0; }
.plan__img .plansvg { width: 100%; height: 100%; display: block; color: var(--ink); }
.lightbox__stage #lbImg { background: #0b0b0c; }
.lightbox__cap { position: absolute; bottom: -44px; right: 0; font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.8); }
@media (prefers-reduced-motion: reduce) { .gcell .rimg { transition: none; } }

/* ============================================================
   injected — animace (Ken Burns hero, blur-up reveal)
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  .hero__img .rimg { animation: heroZoom 24s ease-out both; transform-origin: 50% 62%; }
  @keyframes heroZoom { from { transform: scale(1.0); } to { transform: scale(1.09); } }
}
.reveal {
  filter: blur(5px);
  transition: opacity 0.9s cubic-bezier(0.2,0,0.1,1),
              transform 0.9s cubic-bezier(0.2,0,0.1,1),
              filter 0.9s cubic-bezier(0.2,0,0.1,1);
}
.reveal.in { filter: blur(0); }
@media (prefers-reduced-motion: reduce) { .reveal { filter: none !important; } }

/* ============================================================
   injected — 3D vizualizace (Three.js)
   ============================================================ */
.viz__lead { max-width: 60ch; color: var(--ink-2); font-size: 1.05rem; line-height: 1.6; margin: 0 0 28px; }
.viz3d {
  position: relative; width: 100%; height: 560px;
  border: 1px solid var(--line); overflow: hidden; touch-action: pan-y;
  background: radial-gradient(120% 90% at 50% 0%, var(--paper) 0%, var(--surface) 55%, color-mix(in srgb, var(--ink) 9%, var(--surface)) 100%);
}
.viz3d canvas { display: block; }
.viz3d__hint {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border: 1px solid var(--line); padding: 7px 11px; pointer-events: none;
}
.viz3d__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
@media (pointer: coarse) { .viz3d__hint { display: none; } }
@media (max-width: 760px) { .viz3d { height: 400px; } }

/* ============================================================
   injected — 3D embed (Sketchfab)
   ============================================================ */
.viz3d iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.viz3d__hint { top: 14px; bottom: auto; }
.viz__credit { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); letter-spacing: 0.01em; }

/* ============================================================
   injected — hero čitelnost + vizualizace tag (feedback Vojta)
   ============================================================ */
.hero__scrim {
  background:
    linear-gradient(180deg, rgba(8,10,13,0.18) 0%, rgba(8,10,13,0.26) 30%, rgba(8,10,13,0.50) 62%, rgba(6,8,11,0.84) 100%),
    linear-gradient(90deg, rgba(8,10,13,0.50) 0%, rgba(8,10,13,0.14) 42%, rgba(8,10,13,0) 68%);
}
.hero__title, .hero__sub { text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 2px 30px rgba(0,0,0,0.55); }
.hero__kicker { text-shadow: 0 1px 12px rgba(0,0,0,0.5); }
.hero__fact .v, .hero__fact .k { text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.hero__viztag {
  position: absolute; top: 96px; right: 32px; z-index: 3;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.92);
  background: rgba(10,12,15,0.42); border: 1px solid rgba(255,255,255,0.22);
  padding: 7px 12px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
}
@media (max-width: 760px) { .hero__viztag { top: 74px; right: 16px; font-size: 10px; } }

/* ============================================================
   injected — fix horizontálního scrollu (Ken Burns hero přetékal)
   ============================================================ */
.hero__img { overflow: hidden; }
html, body { overflow-x: clip; }

/* ============================================================
   injected — Zlonice (varianty studie, půdorys, poznámky)
   ============================================================ */
.rimg--contain { object-fit: contain; background: var(--paper); }
.gallery__note { margin: 0 0 28px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.02em; }
.plan__note { margin: 16px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.viz__note { margin: 24px 0 0; font-size: 14px; color: var(--ink-2); max-width: 72ch; line-height: 1.6; }
.varianty { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); }
.varianta { border: 1px solid var(--line); background: var(--paper); padding: clamp(24px, 3vw, 40px); }
.varianta__kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.varianta__title { font-family: "Schibsted Grotesk", sans-serif; font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); margin: 10px 0 20px; letter-spacing: -0.01em; line-height: 1.1; }
.varianta__meta { display: grid; gap: 0; }
.varianta__meta > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; border-top: 1px solid var(--line); padding: 11px 0; font-size: 15px; }
.varianta__meta .k { color: var(--ink-2); }
.varianta__meta .v { font-family: "JetBrains Mono", monospace; font-weight: 600; color: var(--ink); text-align: right; }
@media (max-width: 760px) { .varianty { grid-template-columns: 1fr; } }

/* ============================================================
   injected — Zlonice vision-first (vize galerie)
   ============================================================ */
.vize__lead { max-width: 64ch; color: var(--ink-2); font-size: 1.06rem; line-height: 1.6; margin: 0 0 8px; }
.vize__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(22px, 3vw, 36px); }
.vize__cell { position: relative; aspect-ratio: 4/3; overflow: hidden; border: 1px solid var(--line); }
.vize__cell .rimg { transition: transform 0.7s cubic-bezier(0.2,0,0.1,1); }
.vize__cell:hover .rimg { transform: scale(1.04); }
.vize__cap { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(20,18,14,0.52); border: 1px solid rgba(255,255,255,0.18); padding: 5px 10px; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (max-width: 760px) { .vize__grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .vize__cell .rimg { transition: none; } }

/* ============================================================
   injected — varianty půdorysy + o obci
   ============================================================ */
.varianta__plan { margin: 4px 0 22px; border: 1px solid var(--line); background: #fff; }
.varianta__plan img { display: block; width: 100%; height: auto; }
.obec { max-width: 74ch; margin: 0 0 clamp(26px, 4vw, 44px); }
.obec p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.65; margin: 0 0 18px; }

/* ============================================================
   injected — univerzální lightbox (celý obrázek)
   ============================================================ */
.lightbox__stage #lbImg { object-fit: contain; background: #0b0b0c; }

/* ============================================================
   injected — citát v sekci Lokalita (zarovnání + vzduch)
   ============================================================ */
#lokalita .pullquote {
  margin: clamp(20px, 3vw, 36px) 0 clamp(40px, 5vw, 64px);
  font-size: clamp(22px, 2.8vw, 34px);
  max-width: 34ch;
}

/* ============================================================
   injected — sekce Lokalita: dva sloupce (text + obrázek) + citát na střed
   ============================================================ */
.obec__lead { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.obec__text .section-head { margin-bottom: clamp(20px, 3vw, 30px); }
.obec__text p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.65; margin: 0 0 18px; max-width: 56ch; }
.obec__img { margin: 0; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.obec__img img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.obec__cap { padding: 11px 15px; font-size: 12px; color: var(--ink-3); letter-spacing: 0.02em; border-top: 1px solid var(--line); }
#lokalita .pullquote { margin: clamp(36px, 5vw, 60px) auto clamp(40px, 5vw, 64px); text-align: center; max-width: 42ch; }
@media (max-width: 860px) { .obec__lead { grid-template-columns: 1fr; gap: 28px; } }

/* ============================================================
   injected — tři varianty studie (půdorysy 1.NP + podkroví)
   ============================================================ */
.varianty3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.6vw, 36px); }
.varianta3 { margin: 0; display: flex; flex-direction: column; }
.varianta3__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.varianta3__kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.varianta3__title { font-family: "Schibsted Grotesk", sans-serif; font-weight: 600; font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.01em; line-height: 1.1; }
.varianta3__plan { border: 1px solid var(--line); background: #fff; overflow: hidden; }
.varianta3__plan img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.varianta3__cap { margin-top: 13px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 860px) { .varianty3 { grid-template-columns: 1fr; gap: 30px; } }
