/* ==========================================================================
   KLIMKOVICE VILLAS — designový systém
   Antracit #2A2E33 · zlatá #E2AC55 · bílá #FFFFFF · teplá světlá #F4F1EB
   Jediná písmová rodina: Manrope (400 / 500 / 600 / 700)
   ========================================================================== */

/* --- 1. Tokeny ----------------------------------------------------------- */
:root {
  --ink: #2A2E33;
  --ink-soft: #343A41;
  --ink-line: #3C424A;
  --gold: #E2AC55;
  --gold-deep: #B8823A;
  --gold-soft: rgba(226, 172, 85, .16);
  --white: #FFFFFF;
  --sand: #F4F1EB;
  --line: rgba(42, 46, 51, .13);
  --line-strong: rgba(42, 46, 51, .26);
  --text: #2A2E33;
  --text-muted: #6C727A;
  --text-on-dark: rgba(255, 255, 255, .74);

  --ff: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 4.6vw, 72px);
  --sec-y: clamp(80px, 9vw, 150px);
  --shell: 1320px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --r: 3px;
}

/* --- 2. Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { max-width: 100%; display: block; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
figure, blockquote, dl, dd { margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}
.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--ink); color: #fff; padding: 12px 20px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* --- 3. Typografie ------------------------------------------------------- */
.display-1 {
  font-size: clamp(2.75rem, 6.4vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 500;
  text-wrap: balance;
}
.display-2 {
  font-size: clamp(2.1rem, 4.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  font-weight: 500;
  text-wrap: balance;
  max-width: 18ch;
  margin-bottom: clamp(18px, 2.2vw, 28px);
}
.section-head .display-2 { margin-bottom: 0; }
.display-3 {
  font-size: clamp(1.5rem, 2.2vw, 2.125rem);
  line-height: 1.14;
  letter-spacing: -.035em;
  font-weight: 600;
}
.display-2--wide { max-width: 24ch; }

.eyebrow {
  font-size: .6875rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); flex: none; }
.on-dark .eyebrow { color: var(--gold); }

.lede {
  font-size: clamp(1.0625rem, .5vw + .95rem, 1.25rem);
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 46ch;
}
.on-dark .lede { color: var(--text-on-dark); }

.prose { max-width: 680px; }
.prose p { margin-bottom: .85em; }

.pull {
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.32;
  letter-spacing: -.03em;
  font-weight: 500;
  color: var(--ink);
  border-left: 2px solid var(--gold);
  padding-left: clamp(18px, 2.4vw, 28px);
  margin: clamp(26px, 3vw, 38px) 0;
  max-width: 26ch;
  text-wrap: balance;
}
.on-dark .pull { color: #fff; }

/* --- 4. Layout ----------------------------------------------------------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}
.shell--wide { --shell: 1560px; }
.section { padding-block: var(--sec-y); position: relative; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #fff; }
.section--tight, .section--compact { padding-block: clamp(56px, 6vw, 96px); }
.on-dark { color: #fff; }
.on-dark p { color: var(--text-on-dark); }

.split {
  display: grid;
  gap: clamp(34px, 5vw, 90px);
  align-items: center;
}
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--text-led { grid-template-columns: 1.02fr .98fr; }
  .split--start { align-items: start; }
}

.section-head { margin-bottom: clamp(34px, 4.4vw, 62px); }
.section-head--split { display: grid; gap: clamp(18px, 2.6vw, 44px); align-items: end; }
@media (min-width: 940px) { .section-head--split { grid-template-columns: 1.2fr .8fr; } }

/* --- 5. Média ------------------------------------------------------------ */
.media { position: relative; overflow: hidden; background: var(--sand); border-radius: var(--r); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--4x5 { aspect-ratio: 4 / 5; }
.media--flat { border-radius: 0; }

.media-stack { position: relative; }
.media-stack__main { aspect-ratio: 4 / 5; }
.media-stack__inset {
  position: absolute;
  left: -8%;
  bottom: -7%;
  width: 44%;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--white);
  border-radius: var(--r);
}
.section--sand .media-stack__inset { border-color: var(--sand); }
@media (max-width: 939px) {
  .media-stack__main { aspect-ratio: 4 / 3; }
  .media-stack__inset { width: 40%; left: 0; bottom: -8%; }
}

.band { position: relative; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band--21x9 { aspect-ratio: 21 / 9; }
.band--16x9 { aspect-ratio: 16 / 9; }
@media (max-width: 767px) { .band--21x9, .band--16x9 { aspect-ratio: 4 / 3; } }
.parallax { will-change: transform; }

/* --- 6. Tlačítka a odkazy ------------------------------------------------ */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--ink);
  --btn-bd: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 15px 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: 2px;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  text-align: center;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .42); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.btn--quiet { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong); }
.btn--quiet:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { min-height: 46px; padding: 12px 20px; font-size: .8125rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* rozbalovací bloky */
.disclose {
  display: inline-flex; align-items: center; gap: 16px;
  min-height: 52px; padding: 12px 14px 12px 24px;
  background: transparent;
  border: 1px solid var(--line-strong); border-radius: 2px;
  font-size: .9375rem; font-weight: 600; color: var(--ink);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.disclose:hover { background: var(--sand); border-color: var(--gold); }
.disclose__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .3s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.disclose__icon svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.disclose:hover .disclose__icon { border-color: var(--gold); background: var(--gold-soft); }
.disclose:hover .disclose__icon svg { transform: translateY(2px); }
.disclose[aria-expanded="true"] .disclose__icon { transform: rotate(180deg); border-color: var(--gold); }
.disclose[aria-expanded="true"]:hover .disclose__icon svg { transform: translateY(2px); }
.disclose-hint { margin: 10px 0 0; font-size: .8125rem; color: var(--text-muted); }

.on-dark .disclose { border-color: var(--ink-line); color: #fff; }
.on-dark .disclose:hover { background: rgba(255, 255, 255, .05); border-color: var(--gold); }
.on-dark .disclose__icon { border-color: var(--ink-line); }
.on-dark .disclose-hint { color: rgba(255, 255, 255, .5); }

/* Rozbalení bez skoku stránky: přechod výšky přes grid-template-rows. */
.disclose-panel {
  display: grid; grid-template-rows: 0fr;
  visibility: hidden;
  /* při zavírání se viditelnost přepne až po dojetí animace,
     při otevírání okamžitě – obsah tak nikdy nezůstane skrytý */
  transition: grid-template-rows .3s var(--ease), visibility 0s linear .3s;
}
.disclose-panel > div { overflow: hidden; }
.disclose-panel.is-open {
  grid-template-rows: 1fr; visibility: visible;
  transition: grid-template-rows .3s var(--ease), visibility 0s;
}
.disclose-panel__inner { padding-top: clamp(20px, 2.4vw, 30px); }
.disclose-panel__inner > .prose { max-width: 680px; }

/* --- 7. Hlavička --------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 90;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20, 22, 25, .5), rgba(20, 22, 25, 0));
  transition: opacity .35s var(--ease);
}
.site-header.is-stuck { background: rgba(42, 46, 51, .94); backdrop-filter: blur(6px); }
.site-header.is-stuck::after { opacity: 0; }
.site-header.is-stuck .header-inner { --hpad: 10px; }

.header-inner {
  --hpad: 16px;
  width: min(100% - (var(--gutter) * 2), 1560px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 26px;
  padding-block: var(--hpad);
  transition: padding .35s var(--ease);
}
.brand {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: #fff; margin-right: auto;
}
.brand__logo {
  height: 56px; width: auto;
  transition: height .35s var(--ease);
  /* Kdyby se soubor loga nenačetl, prohlížeč vypíše alt text –
     tyto vlastnosti se na něj přenesou, ať zůstane čitelný. */
  font-size: .9375rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.site-header.is-stuck .brand__logo { height: 46px; }
.brand--footer { margin-right: 0; }
.brand--footer .brand__logo { height: 72px; }
@media (max-width: 520px) {
  .brand__logo, .site-header.is-stuck .brand__logo { height: 44px; }
  .brand--footer .brand__logo { height: 60px; }
}

.nav { display: none; }
@media (min-width: 1060px) { .nav { display: flex; gap: 28px; } }
.nav a {
  position: relative; text-decoration: none; color: rgba(255, 255, 255, .82);
  font-size: .875rem; font-weight: 500; padding: 8px 0;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: #fff; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header-cta { display: none; }
@media (min-width: 700px) { .header-cta { display: inline-flex; } }

.burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 2px; color: #fff;
}
@media (min-width: 1060px) { .burger { display: none; } }
.burger span { position: relative; width: 17px; height: 1px; background: currentColor; display: block; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1px; background: currentColor;
  transition: transform .3s var(--ease);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 89;
  background: var(--ink);
  display: flex; flex-direction: column; justify-content: center;
  padding: 100px var(--gutter) 44px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-nav.is-open { opacity: 1; transform: none; }
.mobile-nav a {
  font-size: clamp(1.5rem, 6vw, 2rem); font-weight: 500; letter-spacing: -.03em;
  color: #fff; text-decoration: none; padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  min-height: 44px; display: flex; align-items: center;
}
.mobile-nav a:last-of-type { border-bottom: 0; }
.mobile-nav .btn { margin-top: 28px; }

/* --- 8. Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(100svh, 940px);
  display: flex; align-items: flex-end;
  padding: calc(84px + 60px) 0 clamp(56px, 8vw, 104px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  animation: heroDrift 30s var(--ease) forwards;
}
@keyframes heroDrift { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(16, 18, 21, .9) 0%, rgba(16, 18, 21, .55) 38%, rgba(16, 18, 21, .12) 70%),
    linear-gradient(to right, rgba(16, 18, 21, .62) 0%, rgba(16, 18, 21, .1) 58%, rgba(16, 18, 21, 0) 82%);
}
.hero__inner { position: relative; }
.hero__tag {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin: 0 0 22px;
  display: flex; align-items: center; gap: 12px;
}
.hero__tag::before { content: ""; width: 30px; height: 1px; background: var(--gold); flex: none; }
.hero h1 { max-width: 21ch; margin-bottom: 24px; }
.hero__sub {
  max-width: 46ch; color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, .5vw + .9rem, 1.1875rem); line-height: 1.55;
  margin-bottom: clamp(30px, 3.6vw, 44px);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn { min-width: 190px; }
@media (max-width: 520px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; min-width: 0; }
}

/* --- 9. Datový panel parametrů ------------------------------------------- */
/* Panel se mírně vysouvá přes spodní okraj hero sekce a propojuje ji
   s následující světlou sekcí. */
.statpanel-wrap {
  position: relative; z-index: 5;
  margin-top: clamp(-56px, -3.4vw, -40px);
  padding-bottom: clamp(8px, 2vw, 24px);
}
@media (max-width: 719px) { .statpanel-wrap { margin-top: -22px; } }

.statpanel {
  max-width: 1280px; margin-inline: auto;
  position: relative;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(226, 172, 85, .07) 0%, rgba(226, 172, 85, 0) 58%),
    linear-gradient(158deg, #343A42 0%, #2A2E33 52%, #24282C 100%);
  border-radius: 5px;
  padding: clamp(26px, 3vw, 44px) clamp(18px, 2.4vw, 36px);
  box-shadow: 0 26px 64px -38px rgba(10, 12, 14, .85);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  overflow: hidden;
}
.statpanel::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, rgba(226, 172, 85, 0), var(--gold) 22%, var(--gold) 78%, rgba(226, 172, 85, 0));
  opacity: .75;
}
@media (min-width: 860px) { .statpanel { grid-template-columns: repeat(5, 1fr); } }

.statpanel__item {
  position: relative;
  padding: clamp(16px, 1.6vw, 20px) clamp(14px, 1.6vw, 26px);
  transition: transform .3s var(--ease);
}
.statpanel__item:hover { transform: translateY(-4px); }

/* oddělovače – krátké subtilní linky, ne rámečky přes celou výšku */
@media (min-width: 860px) {
  .statpanel__item + .statpanel__item::before {
    content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 42%; background: rgba(255, 255, 255, .13);
  }
}
@media (max-width: 859px) {
  .statpanel__item:first-child { grid-column: 1 / -1; }
  .statpanel__item:not(:first-child)::before {
    content: ""; position: absolute; left: clamp(14px, 1.6vw, 26px); right: clamp(14px, 1.6vw, 26px); top: 0;
    height: 1px; background: rgba(255, 255, 255, .11);
  }
  .statpanel__item:nth-child(2)::after,
  .statpanel__item:nth-child(4)::after {
    content: ""; position: absolute; right: 0; top: 22%; width: 1px; height: 56%;
    background: rgba(255, 255, 255, .11);
  }
}
@media (max-width: 359px) {
  .statpanel { grid-template-columns: 1fr; }
  .statpanel__item:nth-child(2)::after, .statpanel__item:nth-child(4)::after { display: none; }
}

.statpanel__num {
  display: block; font-size: .625rem; font-weight: 600;
  letter-spacing: .26em; color: var(--gold); margin-bottom: 12px;
}
.statpanel__value {
  display: block;
  font-size: clamp(1.625rem, 2.5vw, 2.375rem);
  font-weight: 500; letter-spacing: -.05em; line-height: 1.02;
  color: rgba(255, 255, 255, .93);
  transition: color .3s var(--ease);
}
.statpanel__item:hover .statpanel__value { color: #fff; }
.statpanel__label {
  display: block; margin-top: 9px;
  font-size: .8125rem; line-height: 1.4; color: rgba(255, 255, 255, .55);
  max-width: 20ch;
}
.statpanel__rule {
  display: block; margin-top: 16px;
  width: 22px; height: 2px; background: var(--gold); opacity: .8;
  transition: width .35s var(--ease), opacity .35s var(--ease);
}
.statpanel__item:hover .statpanel__rule { width: 46px; opacity: 1; }

/* --- 10. Sekce s číslicí 6 ----------------------------------------------- */
.six {
  background: var(--ink); color: #fff;
  padding-block: clamp(56px, 6vw, 88px);
  min-height: clamp(520px, 65vh, 720px);
  display: flex; align-items: center;
  overflow: hidden;
}
/* Pozor: šířku ani flex-basis zde nenastavovat – .shell si šířku i boční
   okraje řeší sám; `width: 100%` i `flex: 1` by je přebily. */
.six__grid { display: grid; gap: clamp(34px, 4vw, 72px); align-items: center; }
@media (min-width: 900px) { .six__grid { grid-template-columns: 42% minmax(0, 1fr); } }

.six__visual { position: relative; }
@media (min-width: 900px) { .six__visual { display: flex; align-items: center; gap: clamp(16px, 2vw, 30px); } }

.six__label {
  display: none;
  font-size: .625rem; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(255, 255, 255, .3);
  writing-mode: vertical-rl; transform: rotate(180deg);
  white-space: nowrap; flex: none;
}
@media (min-width: 900px) { .six__label { display: block; } }

/* Číslice je viditelná vždy – nezávisí na JavaScriptu ani na animaci. */
.six__number {
  display: block; margin: 0;
  font-family: var(--ff);
  font-size: clamp(220px, 28vw, 440px);
  font-weight: 600;
  line-height: .75;
  letter-spacing: -.09em;
  color: rgba(226, 172, 85, .08);
  -webkit-text-stroke: 1.5px var(--gold);
  user-select: none;
}
@supports not ((-webkit-text-stroke: 1px #000) or (text-stroke: 1px #000)) {
  .six__number { color: rgba(226, 172, 85, .55); }
}
.six__claim {
  margin: clamp(18px, 2.2vw, 28px) 0 0;
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); max-width: 22ch;
}

.six__list { display: grid; gap: 0; margin-bottom: clamp(26px, 3vw, 38px); }
.six__list li {
  display: flex; align-items: baseline; gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 1.8vw, 22px) 0;
  border-bottom: 1px solid var(--ink-line);
}
.six__list li:first-child { border-top: 1px solid var(--ink-line); }
.six__count {
  font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 600;
  letter-spacing: -.05em; line-height: 1; color: var(--gold); flex: none;
  min-width: 1.1em;
}
.six__word {
  font-size: clamp(1.125rem, 1.6vw, 1.5rem); font-weight: 500; letter-spacing: -.03em;
  line-height: 1.25;
}
.six__note {
  max-width: 36ch; color: rgba(255, 255, 255, .82);
  font-size: clamp(1.0625rem, 1.35vw, 1.375rem); line-height: 1.5; letter-spacing: -.02em;
}

/* --- 11. Hlavní přednosti (editorial řádky) ------------------------------ */
.pillars-layout { display: grid; gap: clamp(34px, 4vw, 80px); align-items: start; }
@media (min-width: 960px) { .pillars-layout { grid-template-columns: 38% minmax(0, 1fr); } }
@media (min-width: 960px) { .pillars-intro { position: sticky; top: 118px; } }
.pillars-range {
  margin: clamp(22px, 2.6vw, 32px) 0 0;
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; color: var(--gold-deep);
}
.pillars-range::before { content: ""; width: 34px; height: 1px; background: var(--gold); }

.pillar-rows { display: grid; }
.pillar-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(16px, 2.4vw, 34px);
  padding: clamp(22px, 2.6vw, 30px) clamp(12px, 1.4vw, 20px);
  border-top: 1px solid var(--line);
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.pillar-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .pillar-row { min-height: 148px; } }
.pillar-row:hover { background: rgba(226, 172, 85, .06); border-top-color: var(--gold); }
.pillar-row:hover + .pillar-row { border-top-color: var(--gold); }
.pillar-row:last-child:hover { border-bottom-color: var(--gold); }

.pillar-row__num {
  font-size: clamp(1.5rem, 2.2vw, 2.125rem); font-weight: 500;
  letter-spacing: -.05em; line-height: 1; color: var(--line-strong);
  transition: color .25s var(--ease);
  font-variant-numeric: tabular-nums;
}
.pillar-row:hover .pillar-row__num { color: var(--gold-deep); }
.pillar-row__body { transition: transform .25s var(--ease); }
.pillar-row:hover .pillar-row__body { transform: translateX(6px); }
.pillar-row__body h3 { font-size: clamp(1.25rem, 1.7vw, 1.625rem); letter-spacing: -.04em; margin-bottom: 7px; }
.pillar-row__body p { font-size: .9375rem; line-height: 1.55; color: var(--text-muted); margin: 0; max-width: 46ch; }
.pillar-row__arrow { width: 20px; height: 20px; flex: none; color: var(--line-strong); transition: color .25s var(--ease), transform .25s var(--ease); }
.pillar-row:hover .pillar-row__arrow { color: var(--gold-deep); transform: translateX(5px); }
@media (max-width: 639px) {
  .pillar-row { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; }
  .pillar-row__num { font-size: 1.25rem; padding-top: 2px; }
  .pillar-row__arrow { display: none; }
}

/* --- 12. Nabídka rezidencí ----------------------------------------------- */
.offer__controls {
  display: flex; flex-wrap: wrap; gap: 14px 22px;
  align-items: center; justify-content: space-between;
  margin-bottom: clamp(26px, 3vw, 40px);
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 10px 18px;
  background: transparent; border: 1px solid var(--line); border-radius: 2px;
  font-size: .875rem; font-weight: 600; color: var(--text-muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background-color .25s var(--ease);
}
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.viewswitch { display: none; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
@media (min-width: 980px) { .viewswitch { display: inline-flex; } }
.viewswitch button {
  min-height: 44px; padding: 10px 18px; background: transparent; border: 0;
  font-size: .8125rem; font-weight: 600; color: var(--text-muted);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.viewswitch button + button { border-left: 1px solid var(--line); }
.viewswitch button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.cards { display: grid; gap: clamp(26px, 3vw, 44px) clamp(20px, 2.4vw, 34px); grid-template-columns: 1fr; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card { display: flex; flex-direction: column; cursor: pointer; }
.card.is-hidden { display: none; }
.card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background: var(--sand); border-radius: var(--r); margin-bottom: 20px;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge {
  position: absolute; left: 14px; top: 14px;
  background: rgba(26, 29, 33, .78); color: #fff;
  font-size: .6875rem; font-weight: 600; letter-spacing: .06em;
  padding: 7px 12px; border-radius: 2px;
}
.card__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.card__id {
  font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; color: var(--gold-deep);
  margin: 0;
}
.card__title { font-size: 1.25rem; font-weight: 600; letter-spacing: -.035em; }
.card__claim {
  font-size: .9375rem; line-height: 1.5; color: var(--text-muted);
  margin: 0 0 20px; max-width: 34ch;
}
.card__specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: auto 0 18px; /* auto = spodní bloky karet drží stejnou linii */
}
.card__specs div { min-width: 0; }
.card__specs dt { font-size: .75rem; color: var(--text-muted); margin-bottom: 4px; }
.card__specs dd { font-size: .9375rem; font-weight: 600; letter-spacing: -.02em; }
.card__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.card__price b { font-size: clamp(1.375rem, 1.8vw, 1.625rem); font-weight: 600; letter-spacing: -.045em; }
.card__price span { font-size: .8125rem; color: var(--text-muted); }
.card__actions { display: flex; gap: 10px; margin-top: auto; }
.card__actions .btn { flex: 1; }
@media (max-width: 400px) { .card__actions { flex-direction: column; } }

/* tabulka (pouze desktop) */
.table-wrap { border-top: 1px solid var(--line); }
.rtable { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.rtable th, .rtable td { padding: 18px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.rtable thead th {
  font-size: .6875rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-muted); white-space: nowrap;
  padding-top: 0;
}
.rtable tbody tr { transition: background-color .25s var(--ease); }
.rtable tbody tr:hover { background: var(--sand); }
.rtable tbody tr.is-hidden { display: none; }
.rtable .cell-id { font-weight: 700; color: var(--gold-deep); }
.rtable .cell-price { font-weight: 600; letter-spacing: -.03em; white-space: nowrap; }
.rtable .cell-action { text-align: right; }

.notes {
  margin-top: clamp(28px, 3vw, 42px);
  padding-top: clamp(20px, 2.4vw, 28px);
  border-top: 1px solid var(--line);
  display: grid; gap: 8px 34px;
}
@media (min-width: 820px) { .notes { grid-template-columns: repeat(2, 1fr); } }
.notes li {
  font-size: .875rem; line-height: 1.5; color: var(--text-muted);
  padding-left: 18px; position: relative;
}
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 1px; background: var(--gold); }

/* --- 13. Architektura + konstrukce --------------------------------------- */
.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 3vw, 44px); }
.tabs button {
  background: none; border: 0; padding: 16px 0; margin-right: 34px;
  font-size: clamp(1.0625rem, 1.4vw, 1.25rem); font-weight: 600; letter-spacing: -.03em;
  color: var(--text-muted); position: relative;
  transition: color .25s var(--ease);
}
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.section--ink .tabs { border-color: var(--ink-line); }
.section--ink .tabs button { color: rgba(255, 255, 255, .55); }
.section--ink .tabs button[aria-selected="true"] { color: #fff; }

.tabpanel { display: grid; gap: clamp(30px, 4vw, 66px); }
@media (min-width: 940px) { .tabpanel { grid-template-columns: 1fr 1fr; align-items: start; } }
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(22px, 2.6vw, 30px); }
.taglist li {
  font-size: .8125rem; font-weight: 500; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 2px; padding: 8px 14px;
}
.section--ink .taglist li { color: rgba(255, 255, 255, .74); border-color: var(--ink-line); }

.clt-figure { background: rgba(255, 255, 255, .04); border: 1px solid var(--ink-line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); }
.clt-figure svg { width: 100%; height: auto; }
.clt-figure figcaption { margin-top: 16px; font-size: .8125rem; line-height: 1.5; color: rgba(255, 255, 255, .55); }

/* --- 14. Galerie + lightbox ---------------------------------------------- */
.gallery-filters { margin-bottom: clamp(18px, 2.2vw, 28px); }
.gallery-grid {
  display: grid; gap: clamp(10px, 1.1vw, 14px);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 40vw;
  grid-auto-flow: dense;
}
@media (min-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(200px, 18vw, 290px); }
}
.gallery-item {
  position: relative; overflow: hidden; border: 0; padding: 0;
  background: var(--sand); border-radius: var(--r);
  display: block; width: 100%; height: 100%;
}
.gallery-item.is-hidden { display: none; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item--wide { grid-column: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-more { margin-top: clamp(24px, 3vw, 36px); display: flex; justify-content: center; }

.lightbox {
  position: fixed; inset: 0; z-index: 140;
  background: rgba(14, 15, 17, .96);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s var(--ease);
  touch-action: pan-y;
}
.lightbox.is-open { opacity: 1; }
.lightbox__stage {
  width: min(100% - 24px, 1500px); height: min(100% - 130px, 88vh);
  display: flex; align-items: center; justify-content: center;
}
.lightbox__stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox__bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom));
  color: rgba(255, 255, 255, .75); font-size: .8125rem;
}
.lightbox__caption { max-width: 46ch; text-align: center; }
.lightbox__count { color: var(--gold); font-weight: 600; white-space: nowrap; }
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 50%;
  font-size: 1.25rem; transition: background-color .25s var(--ease);
}
.lb-btn:hover { background: var(--gold); color: var(--ink); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }

/* --- 15. Modal detailu rezidence ----------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(10px, 3vw, 40px);
  background: rgba(18, 20, 23, .8);
  opacity: 0; transition: opacity .25s var(--ease);
  overflow-y: auto; overscroll-behavior: contain;
}
.modal.is-open { opacity: 1; }
.modal__panel {
  position: relative; width: min(100%, 1100px);
  background: var(--white); border-radius: var(--r);
  transform: translateY(18px); transition: transform .35s var(--ease);
  margin: auto;
}
.modal.is-open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(26, 29, 33, .82); color: #fff; border: 0; border-radius: 2px;
  font-size: 1.125rem; transition: background-color .25s var(--ease);
}
.modal__close:hover { background: var(--gold); color: var(--ink); }
.lightbox .modal__close { top: 16px; right: 16px; background: rgba(255, 255, 255, .12); }

.rd__hero { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sand); }
@media (max-width: 640px) { .rd__hero { aspect-ratio: 4 / 3; } }
.rd__hero img { width: 100%; height: 100%; object-fit: cover; }
.rd__hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16, 18, 21, .84), rgba(16, 18, 21, .04) 62%);
}
.rd__hero-text { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(20px, 3.2vw, 40px); color: #fff; z-index: 2; }
.rd__hero-id { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin: 0; }
.rd__hero-title {
  font-size: clamp(1.625rem, 3.4vw, 2.75rem); line-height: 1.04;
  letter-spacing: -.045em; font-weight: 500; margin: 8px 0 0;
}
.rd__hero-claim { font-size: clamp(.9375rem, 1.3vw, 1.125rem); color: rgba(255, 255, 255, .84); margin: 10px 0 0; max-width: 44ch; }

.rd__body { padding: clamp(22px, 3.2vw, 44px); display: grid; gap: clamp(26px, 3.2vw, 46px); }
@media (min-width: 900px) { .rd__body { grid-template-columns: 1.3fr .7fr; align-items: start; } }
.rd__story p { line-height: 1.7; }
.rd__story .pull { margin: 26px 0; }
.rd__aside { position: sticky; top: 22px; }
@media (max-width: 899px) { .rd__aside { position: static; } }
.rd__params { background: var(--sand); padding: clamp(20px, 2.4vw, 28px); border-radius: var(--r); }
.rd__params h4 { font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 14px; }
.rd__specs { display: grid; }
.rd__specs > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9375rem;
}
.rd__specs dt { color: var(--text-muted); }
.rd__specs dd { font-weight: 600; text-align: right; }
.rd__price { font-size: clamp(1.625rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.045em; margin: 18px 0 2px; }
.rd__price-note { font-size: .8125rem; color: var(--text-muted); }
.rd__cta { display: grid; gap: 10px; margin-top: 18px; }
.rd__gallery {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  padding: 0 clamp(22px, 3.2vw, 44px) clamp(22px, 3.2vw, 44px);
}
@media (min-width: 700px) { .rd__gallery { grid-template-columns: repeat(4, 1fr); } }
.rd__gallery-title {
  grid-column: 1 / -1; font-size: .6875rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-muted); font-weight: 600;
  padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 2px;
}
.thumb {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border: 0; padding: 0; background: var(--sand); border-radius: 2px; display: block; width: 100%;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.thumb:hover img { transform: scale(1.05); }

/* --- 16. Lokalita -------------------------------------------------------- */
.locality-points { display: grid; gap: 0; margin-top: clamp(26px, 3vw, 38px); max-width: 520px; }
.locality-points li { padding: 18px 0; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.locality-points li:last-child { border-bottom: 1px solid var(--line); }
.locality-points b { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.025em; }
.locality-points span { font-size: .9375rem; line-height: 1.5; color: var(--text-muted); }

/* --- 17. Závěrečná sekce ------------------------------------------------- */
.finale {
  position: relative; isolation: isolate; color: #fff;
  min-height: min(72svh, 660px);
  display: flex; align-items: center;
  padding-block: clamp(70px, 9vw, 130px);
  overflow: hidden;
  text-align: center;
}
.finale__media { position: absolute; inset: -6% 0; z-index: -2; }
.finale__media img { width: 100%; height: 100%; object-fit: cover; }
.finale::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(16, 18, 21, .84), rgba(16, 18, 21, .5));
}
.finale__inner { max-width: 30ch; margin-inline: auto; }
.finale .display-2 { max-width: none; }
.finale__tag {
  font-size: .6875rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 600; color: var(--gold); margin: 0 0 22px;
}
.finale h2 { margin: 0 auto clamp(28px, 3.6vw, 42px); max-width: 100%; }

/* --- 18. Kontakt --------------------------------------------------------- */
.contact__grid { display: grid; gap: clamp(32px, 4.5vw, 76px); align-items: start; }
@media (min-width: 980px) { .contact__grid { grid-template-columns: .8fr 1.2fr; } }
.contact__media { margin-top: clamp(26px, 3vw, 40px); }

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 900px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-size: .8125rem; font-weight: 600; color: var(--text); }
.field .opt { font-weight: 400; color: var(--text-muted); }
.field .req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 15px 2px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
  border-radius: 0; font-size: 1rem;
  transition: border-color .25s var(--ease);
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236C727A' stroke-width='1.4' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; background-size: 12px;
  padding-right: 30px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); outline: none; box-shadow: 0 1px 0 0 var(--gold);
}
.field .error { font-size: .8125rem; color: #A63A29; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A63A29; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--gold-deep); }
.consent label { font-size: .875rem; line-height: 1.5; font-weight: 400; color: var(--text-muted); }
.consent-error { font-size: .8125rem; color: #A63A29; }
.form__submit { display: grid; gap: 12px; justify-items: start; margin-top: 6px; }
.form__note { font-size: .875rem; color: var(--text-muted); }
.form__status { padding: 14px 16px; font-size: .9375rem; line-height: 1.5; background: var(--sand); border-left: 2px solid var(--gold); }
.form__status[data-state="error"] { border-left-color: #A63A29; }
.form-success { padding: clamp(30px, 4vw, 54px) 0; }
.form-success__mark { width: 48px; height: 48px; margin-bottom: 20px; color: var(--gold-deep); }
.form-success h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.04em; margin-bottom: 12px; }
.form-success p { color: var(--text-muted); max-width: 44ch; }

/* --- 19. Patička --------------------------------------------------------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .66); padding-top: clamp(48px, 5vw, 72px); }
.footer__top { display: grid; gap: clamp(28px, 3.6vw, 56px); padding-bottom: clamp(34px, 4vw, 52px); }
@media (min-width: 780px) { .footer__top { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.footer__claim { font-size: 1.0625rem; line-height: 1.5; color: rgba(255, 255, 255, .8); max-width: 32ch; margin-top: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 4px 26px; }
.footer__links a {
  font-size: .9375rem; text-decoration: none; color: rgba(255, 255, 255, .66);
  min-height: 44px; display: flex; align-items: center;
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid var(--ink-line);
  padding-block: 22px calc(22px + env(safe-area-inset-bottom));
  font-size: .8125rem; color: rgba(255, 255, 255, .45);
}

/* --- 20. Sticky CTA (mobil) ---------------------------------------------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80;
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(150%); opacity: 0;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
  pointer-events: none;
}
.sticky-cta.is-visible { transform: none; opacity: 1; pointer-events: auto; }
@media (min-width: 700px) { .sticky-cta { display: none; } }
body.has-sticky-cta .site-footer { padding-bottom: 80px; }
@media (min-width: 700px) { body.has-sticky-cta .site-footer { padding-bottom: 0; } }

/* --- 21. Animace odhalení ------------------------------------------------ */
/* Skrytí platí jen s běžícím JavaScriptem – bez něj zůstává obsah viditelný. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal-d1.is-in { transition-delay: .08s; }
.js .reveal-d2.is-in { transition-delay: .16s; }

body.modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
  .parallax { transform: none !important; }
}
