/* Apartmány Horní Lipová — styly.
   Tokeny převzaty z Claude Design (systém Modernist, zelená varianta e-Finance).
   Barvy, písma, mezery: vždy přes proměnné níže, nikde nepsat hex natvrdo.
   Font Archivo si hostujeme sami (assets/fonts/, viz tamní README.txt) a deklarujeme
   ho @font-face hned pod tímto komentářem. Přes Google Fonts se nenačítá — cizí doména
   přidávala do kritického řetězu další úroveň a zdržovala vykreslení o ~740 ms.
   V index.html jsou na oba soubory <link rel="preload">. */

/* Variabilní Archivo — jeden soubor na podmnožinu pokryje všechny použité řezy
   (400 běžný text, 600 chybová hláška formuláře, 800 nadpisy). */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --color-bg: #f4f6f5;
  --color-surface: #e8edea;
  --color-text: #1b211e;
  /* Ztlumený text. Alfa 0.7 dává na --color-bg kontrast 5,81 : 1; pod 0.62
     (4,5 : 1) neklesat — WCAG AA pro běžný text. */
  --color-text-muted: rgba(27, 33, 30, 0.7);
  --color-divider: #cbd4cf;
  /* Rámeček ovládacích prvků (input, seg, lang-btn, dp-nav). --color-divider má
     na --color-surface jen 1,28 : 1; WCAG 1.4.11 chce u prvků UI 3 : 1.
     #78877f dává 3,18 : 1 na --color-surface, 3,47 : 1 na --color-bg,
     3,77 : 1 na bílém panelu datepickeru. Dekorativní linky (.hr, tabulky)
     zůstávají na --color-divider. */
  --color-border-control: #78877f;
  /* Nedostupný text (dny mimo rozsah v datepickeru). 4,31 : 1 na bílé — pod
     plným textem je čitelně ztlumený, ale nad hranicí 3 : 1. */
  --color-text-disabled: #6f7d77;
  --color-neutral-100: #f8faf9;
  --color-neutral-200: #dde3e0;
  --color-neutral-400: #9aa7a1;
  --color-neutral-800: #2b342f;
  --color-neutral-900: #141a17;
  --color-accent: #00704a;
  --color-accent-100: #dcece5;
  --color-accent-200: #b2d8c9;
  --color-accent-300: #7cbda5;
  --color-accent-400: #2f9773;
  --color-accent-500: #00704a;
  --color-accent-600: #006442;
  --color-accent-700: #005637;
  --color-accent-800: #00432b;
  --color-accent-900: #00301f;
  --color-white: #ffffff;
  --color-overlay: rgba(20, 26, 23, 0.94);
  --color-backdrop: rgba(20, 26, 23, 0.5);

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-md: 0px;
  --shadow-md: 0 3px 10px rgba(20, 26, 23, 0.16);
  --shadow-lg: 0 12px 32px rgba(20, 26, 23, 0.22);

  --container: 1180px;
  --gutter: 24px;
  --rule: 2px solid var(--color-divider);
  --hair: 1px solid var(--color-divider);
  --rule-control: 2px solid var(--color-border-control);
}

/* ── základ ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--color-bg); color: var(--color-text);
  font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent-700); text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: var(--color-accent-200); }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 64px 0 0; }
.section > .container > .hr, .hr { height: 2px; border: 0; margin: 0 0 40px; background: var(--color-divider); }
.text-muted { color: var(--color-text-muted); }
.eyebrow {
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.12;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-accent); margin: 0 0 18px;
}
.kicker { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-accent); margin-bottom: 20px; }
.label-caps { font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.h-section { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.025em; margin-bottom: 18px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; font-size: 14px; max-width: 44ch; }
.prose { max-width: 46ch; text-wrap: pretty; }
.grid-2 { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── tlačítka ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: 800; font-size: 14px; line-height: 1.2;
  color: var(--color-text); background: transparent; border: 1px solid transparent;
  padding: 10px 16px; border-radius: var(--radius-md); white-space: nowrap;
}
.btn:hover { color: var(--color-text); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-border-control); }
.btn-secondary:hover { background: rgba(27, 33, 30, 0.07); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: var(--color-accent-100); color: var(--color-accent); }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; white-space: normal; }
.btn-light { background: var(--color-bg); color: var(--color-text); }
.btn-light:hover { background: var(--color-neutral-200); }
.btn-outline-light { border-color: var(--color-bg); color: var(--color-bg); }
.btn-outline-light:hover { background: rgba(244, 246, 245, 0.12); color: var(--color-bg); }

/* ── formulářové prvky ─────────────────────────────────────────────── */
.field > label { display: block; font-size: 14px; margin-bottom: 5px; color: var(--color-text-muted); }
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit; font-size: 14px;
  color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface); border: 1px solid var(--color-border-control); border-radius: var(--radius-md);
}
.input:hover { border-color: rgba(27, 33, 30, 0.6); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
/* Oddělovač voleb je 1px mezera nad podkladem v barvě rámečku — funguje i když se volby
   na úzkém displeji zalomí pod sebe (border-left by tam byl špatně). Volby se roztáhnou (flex: 1),
   takže mají pod sebou stejnou šířku. */
.seg { display: inline-flex; flex-wrap: wrap; gap: 1px; overflow: hidden; border: 1px solid var(--color-border-control); background: var(--color-border-control); }
.seg-opt { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; font-size: 14px; cursor: pointer; position: relative; background: var(--color-bg); }
.seg-opt input { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.seg-opt:has(input:checked) { background: var(--color-accent); color: var(--color-bg); }
.seg-opt:not(:has(input:checked)):hover { background: var(--color-neutral-100); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.check { display: flex; cursor: pointer; align-items: flex-start; gap: 10px; font-size: 14px; }
.check input { width: 16px; height: 16px; accent-color: var(--color-accent); margin: 1px 0 0; flex: none; }
input[type="range"] { width: 100%; accent-color: var(--color-accent); }

/* ── štítky, tabulka ───────────────────────────────────────────────── */
.tag { display: inline-flex; align-items: center; font-size: 14px; letter-spacing: 0.02em; padding: 3px 10px; white-space: nowrap; }
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); padding: var(--space-2); border-bottom: var(--rule);
}
.table td { padding: var(--space-2); border-bottom: var(--hair); vertical-align: middle; }
.table tbody tr:hover { background: rgba(27, 33, 30, 0.04); }
.table .strong { font-family: var(--font-heading); font-weight: 800; }
/* position: relative — aby absolutně pozicovaný .vh ("Akce" v hlavičce) zůstal uvnitř obalu
   a neroztahoval stránku do šířky (bez toho se kotví k body a obal ho neořízne). */
.table-wrap { position: relative; overflow-x: auto; border-top: var(--rule); }
.table tbody tr[data-detail] { cursor: pointer; }
.table-wrap .table { min-width: 720px; }
.table .row-sub, .table .row-chevron { display: none; }
/* Tablet / úzký desktop (701–960 px): všech šest sloupců bez vodorovného scrollu — menší hlavičky, těsnější buňky. */
@media (max-width: 960px) {
  .table-wrap .table { min-width: 0; }
  .table th { font-size: 12px; letter-spacing: 0.06em; }
  .table th, .table td { padding-inline: 6px; }
  .table th:first-child, .table td:first-child { padding-left: 0; }
  .table th:last-child, .table td:last-child { padding-right: 0; }
  .table td:nth-child(4), .table td:nth-child(6) { white-space: nowrap; }
}
/* Mobil: tři sloupce bez vodorovného scrollu — číslo (+ podřádek dispozice · výměra), cena, stav.
   Sloupce dispozice, výměra a tlačítko Detail jsou skryté; klik funguje na celém volném řádku, šipka › to naznačuje. */
@media (max-width: 700px) {
  .table-wrap .table { min-width: 0; }
  .table th:nth-child(2), .table td:nth-child(2), .table th:nth-child(3), .table td:nth-child(3), .table th:nth-child(6), .table td:nth-child(6) { display: none; }
  .table .row-sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }
  .table .row-state, .table td:nth-child(4) { white-space: nowrap; }
  .table .row-state { text-align: right; }
  .table .row-chevron { display: inline-block; color: var(--color-accent); font-size: 20px; line-height: 1; margin-left: 4px; vertical-align: middle; }
  /* Těsnější sazba, aby se tři sloupce vešly i na 320 px v PL/EN (delší hlavičky a štítky). */
  .table th { font-size: 12px; padding-inline: 6px; }
  .table td { padding-inline: 6px; }
  .table th:first-child, .table td:first-child { padding-left: 0; }
  .table th:nth-child(5), .table td:nth-child(5) { padding-right: 0; } /* poslední viditelný sloupec (6. je skrytý) */
  .table .tag { padding-inline: 8px; }
  .table tr.is-sold .tag { background: none; padding: 0; } /* prodané jen tlumeným textem, štítky volných tím víc vyniknou */
}
@media (max-width: 360px) {
  .table, .table .tag { font-size: 13px; }
  .table th { font-size: 11px; }
  .table tr.is-sold td { color: var(--color-text-muted); }
  .table tr.is-sold .strong { font-weight: 600; }
  .table th:nth-child(5) { text-align: right; }
}

/* ── hlavička ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--color-bg); border-bottom: var(--rule); }
.site-header .bar { display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter); }
.brand { display: flex; align-items: center; gap: 14px; margin-right: auto; color: inherit; text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand-name {
  font-family: var(--font-heading); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; line-height: 1.15;
  border-left: var(--rule); padding-left: 14px;
}
.nav-desktop { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; }  /* gap 16 místo 18 — při 14px se navigace vejde na jeden řádek stejně dlouho jako dřív při 13px */
.nav-desktop a { color: inherit; text-decoration: none; }
.nav-desktop a:hover { color: var(--color-accent); }
.lang-switch { display: flex; gap: 2px; }
.lang-btn {
  background: var(--color-bg); color: var(--color-text); border: var(--rule-control);
  padding: 6px 10px; font-family: var(--font-heading); font-weight: 800; font-size: 14px; cursor: pointer;
}
.lang-btn.is-active { background: var(--color-accent); color: var(--color-white); border-color: var(--color-accent); }
.nav-mobile { display: none; align-items: center; gap: 16px; }
.nav-mobile .btn { padding: 8px 12px; font-size: 14px; }
.burger {
  width: 42px; height: 42px; border: var(--rule); background: var(--color-bg); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.burger span { display: block; width: 18px; height: 2px; background: var(--color-text); transition: transform 0.2s ease, opacity 0.2s ease; }
/* Otevřené menu: tři čárky se složí do křížku (posun o 6 px = výška čárky 2 px + mezera 4 px). */
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-drawer { display: none; border-top: var(--rule); flex-direction: column; }
.nav-drawer.is-open { display: flex; }
.nav-drawer a {
  color: inherit; text-decoration: none; padding: 14px var(--gutter); border-bottom: var(--hair);
  font-family: var(--font-heading); font-weight: 800; font-size: 15px;
}
.nav-drawer .lang-switch { padding: 14px var(--gutter); gap: 6px; }

@media (max-width: 960px) {
  .nav-desktop, .site-header .bar > .lang-switch, .site-header .bar > .btn-primary { display: none; }
  .nav-mobile { display: flex; }
}
@media (max-width: 560px) {
  .site-header .bar { gap: 12px; } /* na úzkém displeji se jinak lišta s delším "Zadzwoń" (PL) nevejde */
}

/* ── hero ───────────────────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); align-items: stretch; border-bottom: var(--rule); }
.hero-copy { padding: 56px 32px 48px 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -0.03em; margin: 0 0 20px; }
.hero h1 .accent { color: var(--color-accent); }
.hero-lead { font-size: 17px; max-width: 42ch; margin: 0 0 28px; text-wrap: pretty; }
.hero-actions, .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) {
  .hero-actions .btn, .actions .btn { flex: 1 1 100%; } /* na mobilu pod sebou a stejně široká */
}
/* Pevná výška fotky: delší text v EN/PL by jinak natáhl sloupec a fotka (object-fit: cover) by se v každé jazykové mutaci ořízla jinak. */
.hero-media { min-height: 644px; border-left: var(--rule); }
.hero-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; object-position: center 62%; }
@media (max-width: 700px) {
  .hero-copy { padding: 40px 0 32px; }
  .hero-media { border-left: 0; border-top: var(--rule); min-height: 240px; }
  .hero-media img { min-height: 240px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); border-bottom: var(--rule); }
.stat { padding: 24px 20px; border-left: var(--hair); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-n { font-family: var(--font-heading); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -0.02em; }
.stat-n.accent { color: var(--color-accent-700); }
.stat-l { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 8px; }

.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); border-bottom: var(--rule); }
.benefit { padding: 28px 20px; border-left: var(--hair); }
.benefit:first-child { padding-left: 0; border-left: 0; }
.benefit svg { width: 26px; height: 26px; stroke: var(--color-accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.benefit-t { font-family: var(--font-heading); font-weight: 800; font-size: 16px; margin-top: 14px; }
.benefit p { font-size: 14px; margin: 6px 0 0; }
@media (max-width: 700px) {
  .stat, .benefit { border-left: 0; padding-left: 0; border-bottom: var(--hair); }
  .stats .stat:last-child, .benefits .benefit:last-child { border-bottom: 0; }
}

/* ── seznamy se řádky ─────────────────────────────────────────────── */
.rows { border-top: var(--rule); }
.row { display: flex; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: var(--hair); font-size: 14px; }
.row-name { font-family: var(--font-heading); font-weight: 800; font-size: 15px; flex: 1; }
.row-note { font-size: 14px; text-align: right; }
.row-val { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--color-accent-700); min-width: 68px; text-align: right; }
.rows-foot { font-size: 14px; margin-top: 10px; }

/* ── o projektu ─────────────────────────────────────────────────────── */
.figure-frame { border: var(--rule); margin: 0; }
.figure-cap { font-size: 14px; margin-top: 8px; }
.figure-col { display: flex; flex-direction: column; }
.figure-col .figure-frame { flex: 1 1 auto; min-height: 320px; }
.figure-col .figure-frame img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
@media (max-width: 700px) {
  .figure-col .figure-frame { min-height: 240px; }
  .figure-col .figure-frame img { min-height: 240px; }
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 22px; }

/* ── nabídka ────────────────────────────────────────────────────────── */
.unit-cards { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); margin-top: 32px; }
.unit-card { background: var(--color-surface); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.unit-cover { padding: 0; border: 0; background: none; cursor: pointer; display: block; margin: -20px -20px 4px; }
.unit-cover img { width: 100%; height: 200px; object-fit: cover; }
.unit-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.unit-title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.unit-area { font-size: 14px; }
.unit-note { font-size: 14px; margin: 0; flex: 1; }
.price-big { font-family: var(--font-heading); font-weight: 800; font-size: 24px; color: var(--color-accent-700); letter-spacing: -0.02em; }

/* ── investice ──────────────────────────────────────────────────────── */
.steps { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr)); }
.step { background: var(--color-surface); padding: 24px; }
.step-n { font-family: var(--font-heading); font-weight: 800; font-size: 14px; color: var(--color-accent); letter-spacing: 0.06em; }
.step h3 { font-size: 20px; margin: 12px 0 8px; }  /* h3 kvůli pořadí nadpisů, velikost jako dřív */
.step p { font-size: 14px; margin: 0; }
.calc { margin-top: 40px; border-top: var(--rule); padding-top: 32px; }
.calc h3 { margin: 0 0 10px; }
.calc-intro { font-size: 14px; max-width: 44ch; }
.calc .field { margin-top: 16px; }
.calc .field-narrow > .input { max-width: 300px; } /* úzký jen input; popisek a nápověda mají plnou šířku, aby se nelámaly */
.calc-hint { font-size: 14px; margin-top: 6px; }
.calc-short-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); margin-top: 16px; }
.calc-short-grid .field { margin-top: 0; }
.calc-service { margin-top: 16px; border-top: var(--hair); padding-top: 14px; }
.calc-service .label-caps { margin-bottom: 10px; }
.calc-out { background: var(--color-surface); padding: 24px; }
.calc-price { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 20px; }
.calc-tiles { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); }
.tile { background: var(--color-bg); padding: 16px; }
.tile-l { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.tile-v { font-family: var(--font-heading); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; margin-top: 6px; }
.tile-s { font-size: 14px; margin-top: 4px; opacity: 0.9; }
.tile-accent { background: var(--color-accent); color: var(--color-bg); }
.tile-accent .tile-l { opacity: 0.9; }
.calc-note { font-size: 14px; margin: 14px 0 0; }
.calc-note + .calc-note { margin-top: 6px; }

/* ── CTA pás ────────────────────────────────────────────────────────── */
.cta-band { margin-top: 64px; }
.cta-band .inner { background: var(--color-accent); color: var(--color-bg); padding: clamp(32px, 5vw, 56px); }
.cta-band .grid-2 { gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); align-items: center; }
.cta-band .kicker { color: inherit; opacity: 0.9; margin-bottom: 16px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; margin: 0; line-height: 1.04; }
.cta-band p { font-size: 16px; margin: 0 0 22px; max-width: 40ch; }

/* ── galerie ────────────────────────────────────────────────────────── */
.gallery { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); grid-auto-rows: 215px; grid-auto-flow: dense; }
.gallery > figure { background: var(--color-surface); margin: 0; overflow: hidden; }
.gallery > figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .span-2 { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
.gallery button { padding: 0; border: 0; background: none; width: 100%; height: 100%; cursor: zoom-in; display: block; }
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery .tall { grid-row: span 1; }
}

/* ── mapa ───────────────────────────────────────────────────────────── */
.map-media { min-height: 320px; background: var(--color-surface); border: var(--rule); }
.map-media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.transport { margin-top: 28px; }
.transport .row { padding: 11px 0; }
.transport .row-val { min-width: 78px; }

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { border-top: var(--rule); }
.faq-item { border-bottom: var(--hair); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-heading); font-weight: 800; font-size: 17px; color: var(--color-text);
}
.faq-q:hover { color: var(--color-accent); }
.faq-q .sign { color: var(--color-accent); font-size: 22px; line-height: 1; flex: none; }
/* Plynulé otevírání: výška přes grid-template-rows 0fr → 1fr (bez měření v JS).
   Vnitřní div s overflow:hidden ořezává obsah i spodní okraj odstavce. */
.faq-a-wrap { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 0.3s ease, visibility 0.3s; }
.faq-a-wrap > div { overflow: hidden; min-height: 0; }
.faq-item.is-open .faq-a-wrap { grid-template-rows: 1fr; visibility: visible; }
.faq-a { margin: 0 0 20px; max-width: 68ch; font-size: 14px; }

/* ── kontakt ────────────────────────────────────────────────────────── */
.contact-section { padding-bottom: 80px; }
.contact-card { background: var(--color-surface); padding: 24px; margin-bottom: 24px; }
.contact-name { font-family: var(--font-heading); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.contact-role { font-size: 14px; margin-bottom: 16px; }
.contact-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.contact-links a { text-decoration: none; }
.contact-links .phone { font-family: var(--font-heading); font-weight: 800; }
.contact-meta { display: grid; gap: 14px; font-size: 14px; }
.contact-meta .label-caps { margin-bottom: 4px; }
.form-box { background: var(--color-surface); padding: clamp(20px, 3vw, 32px); }
.form-box h3 { margin: 0 0 6px; }
.form-intro { font-size: 14px; margin: 0 0 22px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.form-grid + .field, .form-grid + .form-grid, .field + .field, .field + .form-grid { margin-top: 14px; }
.form-grid > .field + .field, .calc-short-grid > .field + .field { margin-top: 0; }
.form-box .check { margin-top: 10px; }
.form-box .check.first { margin-top: 16px; }
.form-error { margin: 16px 0 0; font-size: 14px; color: var(--color-accent-700); font-weight: 600; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }
.form-actions .text-muted { font-size: 14px; }
.form-sent-title { font-family: var(--font-heading); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; margin-bottom: 10px; }
.form-sent p { font-size: 14px; max-width: 44ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── datepicker (js/datepicker.js) ─────────────────────────────────── */
.dp-wrap { position: relative; }
.dp-input { padding-right: 38px; cursor: pointer; }
.dp-toggle {
  position: absolute; right: 1px; top: 1px; bottom: 1px; width: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--color-accent);
  transition: background 120ms ease, color 120ms ease;
}
.dp-toggle:hover { background: var(--color-accent-100); }
.dp-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.dp-panel {
  /* Panel je nejmenší 272 px (aby se sedm sloupců dnů dalo pohodlně zasáhnout),
     jinak kopíruje šířku pole; na úzkých displejích ho drží v okně max-width
     a dorovnání --dp-shift z js/datepicker.js. */
  position: absolute; z-index: 30; top: calc(100% + 6px); left: var(--dp-shift, 0px);
  width: max(100%, 272px); max-width: calc(100vw - 16px);
  padding: var(--space-3);
  background: var(--color-white); color: var(--color-text);
  border: var(--rule); border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
}
.dp-panel.is-above { top: auto; bottom: calc(100% + 6px); }

.dp-head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.dp-title {
  flex: 1; min-width: 0; text-align: center;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 15px; letter-spacing: -0.01em; line-height: 1.2;
}
.dp-nav {
  flex: none; width: 28px; height: 28px; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; color: var(--color-accent);
  border: 1px solid var(--color-border-control); border-radius: var(--radius-md);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.dp-nav:hover:not(:disabled) { background: var(--color-accent-100); border-color: var(--color-accent); }
.dp-nav:disabled { color: var(--color-text-disabled); cursor: default; }
.dp-nav svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.dp-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 2px; }
.dp-dow span {
  text-align: center; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  /* Zkratky dnů: na 0.55 měly na bílém panelu kontrast 3,73 : 1, tedy pod WCAG AA. */
  color: var(--color-text-muted); padding-bottom: 5px; border-bottom: var(--hair);
}

.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day {
  min-height: 34px; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; line-height: 1;
  color: var(--color-text); background: none;
  border: 0; border-radius: var(--radius-md);
  transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}
.dp-day:hover:not(:disabled) { background: var(--color-accent-100); }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--color-accent); }
.dp-day.is-selected, .dp-day.is-selected:hover { background: var(--color-accent); color: var(--color-bg); box-shadow: none; }
/* Dny mimo zobrazený měsíc jdou vybrat, takže potřebují plný kontrast AA;
   opravdu nedostupné (.is-muted) jsou ztlumené víc a musí přebít .is-outside. */
.dp-day.is-outside { color: var(--color-text-muted); }
.dp-day.is-muted, .dp-day.is-muted.is-outside { color: var(--color-text-disabled); cursor: default; }

.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); padding-top: var(--space-2); border-top: var(--hair); }
.dp-action {
  padding: 5px 10px; cursor: pointer;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--color-accent); background: none;
  border: 1px solid transparent; border-radius: var(--radius-md);
  transition: background 120ms ease, color 120ms ease;
}
.dp-action:hover { background: var(--color-accent-100); }
.dp-action-ghost { color: var(--color-text-muted); }
.dp-action-ghost:hover { background: var(--color-neutral-200); color: var(--color-text); }

@media (max-width: 560px) {
  .dp-day { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .dp-toggle, .dp-nav, .dp-day, .dp-action, .faq-a-wrap, .burger span { transition: none; }
}

/* ── dluhopisy / fond ──────────────────────────────────────────────── */
.bonds-section { border-top: var(--rule); margin-top: 0; }
.bonds-section .container { padding-top: 56px; padding-bottom: 56px; }
.bonds-section h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.025em; margin-bottom: 24px; }
.bonds { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }
.bond { background: var(--color-surface); padding: 20px; }
.bond-rate { font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: var(--color-accent-700); letter-spacing: -0.02em; }
.bond-name { font-family: var(--font-heading); font-weight: 800; font-size: 15px; margin: 10px 0 4px; }
.bond-note { font-size: 14px; }
.bonds-more { margin-top: 16px; }
.fund { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); background: var(--color-surface); padding: clamp(24px, 3vw, 32px); margin-top: 32px; align-items: center; }
.fund .kicker { margin-bottom: 14px; }
.fund h3 { margin: 0 0 12px; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.fund p { font-size: 14px; margin: 0; max-width: 44ch; }
.fund-actions { display: flex; flex-direction: column; gap: 12px; }
.disclaimer { font-size: 14px; margin-top: 16px; max-width: 80ch; }

/* ── patička ────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-neutral-900); color: var(--color-neutral-200); margin-top: 0; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.site-footer img { height: 52px; width: auto; margin-bottom: 14px; }
.footer-co { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--color-white); }
.footer-addr { font-size: 14px; margin-top: 8px; line-height: 1.7; }
.footer-col { font-size: 14px; line-height: 1.9; }
.footer-col .label-caps { color: var(--color-neutral-400); margin-bottom: 8px; }
.footer-col a { color: var(--color-accent-400); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent-300); }
.footer-legal { font-size: 14px; color: var(--color-neutral-400); line-height: 1.8; }

/* ── detail apartmánu (modal) ─────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50; background: var(--color-backdrop);
  display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow-y: auto;
}
.modal { width: min(880px, 100%); background: var(--color-bg); box-shadow: var(--shadow-lg); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 24px 20px; border-bottom: var(--rule); }
.modal-head .kicker { margin-bottom: 8px; }
.modal-title { font-family: var(--font-heading); font-weight: 800; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.025em; line-height: 1.1; }
.modal-sub { font-size: 14px; margin-top: 6px; }
.modal-section { padding: 24px 24px 0; }
.modal-body { padding: 24px; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.plan-thumb { display: block; width: 100%; padding: 0; border: var(--rule); background: var(--color-white); cursor: zoom-in; height: 300px; overflow: hidden; }
.plan-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.detail-gallery { display: grid; gap: 2px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); padding: 12px 24px 0; }
.detail-gallery button { padding: 0; border: 0; background: var(--color-surface); cursor: zoom-in; display: block; min-width: 0; }
.detail-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-price-row { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: var(--hair); }
.detail-price { font-family: var(--font-heading); font-weight: 800; font-size: 30px; color: var(--color-accent-700); letter-spacing: -0.02em; }
.detail-block { margin-top: 24px; }
.detail-block .label-caps { margin-bottom: 12px; }
.detail-block p { font-size: 14px; max-width: 76ch; margin: 0 0 12px; text-wrap: pretty; }
.spec { display: flex; gap: 20px; padding: 11px 0; border-bottom: var(--hair); font-size: 14px; align-items: baseline; }
.spec-k { font-family: var(--font-heading); font-weight: 800; min-width: 180px; flex-shrink: 0; }
.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.detail-actions .text-muted { font-size: 14px; }
@media (max-width: 560px) {
  .modal-backdrop { padding: 0; }
  .modal-head, .modal-body { padding: 18px; }
  .modal-section { padding: 18px 18px 0; }
  .detail-gallery { padding: 12px 18px 0; grid-template-columns: 1fr 1fr; }
  .spec { flex-direction: column; gap: 2px; }
}

/* ── lightbox ───────────────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 60; background: var(--color-overlay);
  display: flex; align-items: center; justify-content: center; gap: 16px; padding: 24px; cursor: zoom-out;
}
.lightbox-stage { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; max-height: 100%; }
.lightbox-stage img { max-width: 100%; max-height: calc(100vh - 110px); object-fit: contain; cursor: default; touch-action: pan-y pinch-zoom; -webkit-user-drag: none; }
.lightbox-stage img.plan { background: var(--color-white); }
.lightbox-counter { color: rgba(255, 255, 255, 0.75); font-size: 14px; letter-spacing: 0.08em; }
.lightbox-nav {
  flex: 0 0 auto; width: 48px; height: 48px; border: 2px solid rgba(255, 255, 255, 0.5); background: none;
  color: var(--color-white); font-size: 22px; cursor: pointer; line-height: 1;
}
.lightbox-nav:hover { background: var(--color-accent); border-color: var(--color-accent); }
.lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border: 2px solid rgba(255, 255, 255, 0.5);
  background: none; color: var(--color-white); font-size: 20px; cursor: pointer; line-height: 1;
}
@media (max-width: 560px) {
  .lightbox { padding: 12px; gap: 6px; }
  .lightbox-nav { width: 40px; height: 40px; }
}

body.is-locked { overflow: hidden; }
