/* ============================================================
   Včelník Microsite – Stylesheet
   Paleta: #F7F4EE (bg) · #2A3A2E (dark) · #C8A45E (accent) · #B7AE9E (secondary)
   Fonty: Source Serif 4 (nadpisy) · DM Sans (tělo)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #F7F4EE;
  --bg-warm:   #EDE8DC;
  --dark:      #2A3A2E;
  --dark-deep: #1C2A20;
  --accent:    #C8A45E;
  --accent-dk: #A8843E;
  --secondary: #B7AE9E;
  --border:    #D8D2C6;
  --text:      #2A3A2E;
  --text-muted:#6B7A6E;
  --white:     #FFFFFF;

  --ff-serif: 'Source Serif 4', Georgia, serif;
  --ff-sans:  'DM Sans', system-ui, sans-serif;

  --max-w: 1240px;
  --px:    clamp(20px, 5vw, 64px);
  --gap-section: clamp(80px, 10vw, 140px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-sans);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, picture { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: var(--ff-sans); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ── Typography ─────────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  line-height: 1.12;
  font-weight: 600;
}

h1 { font-size: clamp(40px, 5.5vw, 80px); }
h2 { font-size: clamp(30px, 3.5vw, 52px); }
h3 { font-size: clamp(22px, 2.2vw, 34px); }
h4 { font-size: clamp(18px, 1.6vw, 24px); }

.eyebrow {
  display: block;
  font-family: var(--ff-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ── Scroll animations ──────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible { opacity: 1; transform: none; }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Placeholders ───────────────────────────────────────────── */

.ph {
  background: #CFC9BC;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  width: 100%;
  height: 100%;
}

.ph-dark {
  background: linear-gradient(135deg, #354a39 0%, #2A3A2E 100%);
  position: relative;
}
.ph-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(255,255,255,0.015) 18px, rgba(255,255,255,0.015) 19px);
}

.ph-label {
  font-size: 12px;
  font-family: var(--ff-sans);
  text-align: center;
  line-height: 1.5;
  position: relative;
  z-index: 1;
}
.ph .ph-label   { color: #8A8070; }
.ph-dark .ph-label { color: rgba(255,255,255,0.3); }

.ph-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.ph .ph-icon   { border: 1.5px solid #A09888; color: #A09888; }
.ph-dark .ph-icon { border: 1.5px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.3); }

/* ── NAV ────────────────────────────────────────────────────── */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px var(--px);
  transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}

.site-nav.scrolled {
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px var(--px);
  border-bottom-color: var(--border);
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 17px;
  color: rgba(255,255,255,0.9);
  transition: color 0.4s;
  letter-spacing: 0.01em;
}
.site-nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s;
  letter-spacing: 0.01em;
}
.site-nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--accent); }

.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 2px;
  font-size: 13.5px !important;
  font-weight: 500;
  transition: background 0.25s !important;
}
.nav-cta:hover { background: var(--accent-dk) !important; color: var(--white) !important; }

@media (max-width: 820px) {
  .nav-links { display: none; }
}

/* ── HERO ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vw, 100px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg .ph-dark {
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  display: block;
  -webkit-user-drag: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,42,32,0.45) 0%, rgba(28,42,32,0.10) 38%, transparent 60%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 2px;
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero h1 {
  color: var(--white);
  max-width: 14ch;
  margin-bottom: 22px;
  text-wrap: pretty;
  text-shadow: 0 2px 18px rgba(20,30,22,0.45);
}

.hero-subline {
  color: rgba(255,255,255,0.8);
  font-size: clamp(15px, 1.4vw, 18px);
  max-width: 56ch;
  line-height: 1.6;
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(20,30,22,0.5);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.28s, border-color 0.28s;
  letter-spacing: 0.01em;
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  border: 1.5px solid var(--accent);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  padding: 13px 24px;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.28s;
}
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }

.scroll-hint {
  position: absolute;
  bottom: 36px;
  right: var(--px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.scroll-hint span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-lr;
}
.scroll-line {
  width: 1px;
  height: 44px;
  background: rgba(255,255,255,0.25);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:.25} 50%{opacity:.7} }

@media (max-width: 768px) {
  .hero { height: 78vh; }
  .scroll-hint { display: none; }
}

/* ── QUICK FACTS ────────────────────────────────────────────── */

.quick-facts {
  background: var(--dark);
  padding: clamp(6px, 0.8vw, 10px) 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fact-card {
  padding: clamp(8px, 0.9vw, 12px) clamp(16px, 2vw, 28px);
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fact-card:nth-child(4n)   { border-right: none; }
.fact-card:nth-child(n+5)  { border-bottom: none; }

.fact-icon {
  width: 24px; height: 24px;
  color: var(--accent);
  margin-bottom: 8px;
}

.fact-value {
  font-family: var(--ff-serif);
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 4px;
}

.fact-label {
  font-size: 13.5px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

@media (max-width: 820px) {
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact-card:nth-child(4n)  { border-right: 1px solid rgba(255,255,255,0.07); }
  .fact-card:nth-child(2n)  { border-right: none; }
  .fact-card:nth-child(n+5) { border-bottom: 1px solid rgba(255,255,255,0.07); }
  .fact-card:nth-child(n+7) { border-bottom: none; }
}

/* ── STORY ──────────────────────────────────────────────────── */

.story {
  padding: var(--gap-section) 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 5vw, 96px);
  align-items: start;
}

.story-text p {
  margin-bottom: 22px;
  color: var(--text);
  line-height: 1.68;
}

.pull-quote {
  background: var(--bg-warm);
  border-left: 3px solid var(--accent);
  padding: 30px 36px;
  margin-top: 44px;
  font-family: var(--ff-serif);
  font-size: clamp(17px, 1.5vw, 21px);
  font-style: italic;
  line-height: 1.52;
  color: var(--dark);
}
.pull-quote cite {
  display: block;
  margin-top: 14px;
  font-style: normal;
  font-family: var(--ff-sans);
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.story-visuals {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story-photo { border-radius: 2px; overflow: hidden; }
.story-photo-main { aspect-ratio: 3/2; }
.story-photo-sm   { aspect-ratio: 16/7; }

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-visuals { flex-direction: row; }
  .story-photo-main, .story-photo-sm { flex: 1; aspect-ratio: 4/3; }
}

/* ── WINTER GARDEN ──────────────────────────────────────────── */

.garden {
  padding: var(--gap-section) 0;
  background: var(--bg-warm);
}

.garden-header {
  max-width: 580px;
  margin: 0 auto clamp(48px, 5vw, 72px);
  text-align: center;
}
.garden-header p {
  margin-top: 20px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── Before/After slider ────────────────────────────────────── */

.ba-slider {
  margin: 0 auto clamp(56px, 6vw, 84px);
  max-width: 1100px;
}

.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 2px;
  background: #1c2a20;
  user-select: none;
  -webkit-user-select: none;
  cursor: ew-resize;
  box-shadow: 0 24px 60px -28px rgba(28,42,32,0.45),
              0 1px 0 rgba(0,0,0,0.04);
}

/* Obě fotky leží přesně na sobě, ve stejných pixelových rozměrech
   (stage). Slider mění JEN viditelnou část horní vrstvy přes clip-path. */
.ba-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}

.ba-before {
  /* JS aktualizuje --ba-pos (0–100). 0 = before zcela skrytý, 100 = plně viditelný. */
  --ba-pos: 25;
  clip-path: inset(0 calc(100% - var(--ba-pos) * 1%) 0 0);
  -webkit-clip-path: inset(0 calc(100% - var(--ba-pos) * 1%) 0 0);
  will-change: clip-path;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 25%;                        /* updated by JS */
  width: 2px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 0 0 1px rgba(28,42,32,0.18),
              0 6px 18px -6px rgba(0,0,0,0.5);
  transform: translateX(-50%);
  pointer-events: none;
  will-change: left;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(28,42,32,0.12);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
  pointer-events: auto;
  box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35),
              0 2px 6px -2px rgba(0,0,0,0.25);
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.ba-handle:hover {
  background: var(--accent);
  color: #fff;
  transform: translate(-50%, -50%) scale(1.06);
}
.ba-handle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(200,164,94,0.55),
              0 10px 24px -6px rgba(0,0,0,0.35);
}
.ba-handle svg {
  width: 20px;
  height: 20px;
  display: block;
}

.ba-stage.dragging { cursor: grabbing; }
.ba-stage.dragging .ba-handle { transition: none; }

/* Tags */
.ba-tag {
  position: absolute;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 11px;
  background: rgba(28,42,32,0.78);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.ba-tag-left  { left: 18px;  }
.ba-tag-right { right: 18px; }
.ba-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}
.ba-tag-dot-accent { background: var(--accent); opacity: 1; }

.ba-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

@media (max-width: 600px) {
  .ba-stage { aspect-ratio: 3 / 2.2; }
  .ba-handle { width: 44px; height: 44px; }
  .ba-tag {
    top: 12px;
    padding: 6px 10px;
    font-size: 10px;
    letter-spacing: 0.06em;
  }
  .ba-tag-left  { left: 12px; }
  .ba-tag-right { right: 12px; }
}

/* ── Garden photos (legacy grid – ponecháno pro budoucí use) ── */
.garden-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 56px;
}
.garden-photo { aspect-ratio: 3/2; border-radius: 2px; overflow: hidden; }
.garden-photo .ph { background: #C9C2B4; }

.garden-photo-label {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-align: center;
}

.garden-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 680px;
  margin: 0 auto;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.gs-value {
  font-family: var(--ff-serif);
  font-size: clamp(26px, 2.8vw, 42px);
  font-weight: 600;
  color: var(--dark);
}
.gs-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── ENERGY ─────────────────────────────────────────────────── */

.energy {
  padding: var(--gap-section) 0;
}

.energy-header {
  max-width: 640px;
  margin-bottom: clamp(40px, 4vw, 64px);
}
.energy-header p {
  margin-top: 18px;
  color: var(--text-muted);
  line-height: 1.65;
}

.energy-diagram-wrap {
  background: var(--dark);
  border-radius: 4px;
  padding: clamp(28px, 4vw, 56px) clamp(24px, 3vw, 48px);
  margin-bottom: 48px;
  overflow-x: auto;
}

.energy-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.e-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 20px;
  border-radius: 2px;
}
.e-card-value {
  font-family: var(--ff-serif);
  font-size: clamp(22px, 2vw, 34px);
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 5px;
  line-height: 1.1;
}
.e-card-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.energy-comparison {
  background: var(--bg-warm);
  border-radius: 4px;
  padding: 36px clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 24px;
  align-items: center;
}
.cmp-item { text-align: center; }
.cmp-value {
  font-family: var(--ff-serif);
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 600;
  color: var(--dark);
}
.cmp-value.good { color: var(--accent); }
.cmp-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.cmp-vs {
  text-align: center;
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--secondary);
}
.cmp-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  grid-column: 1/-1;
}

@media (max-width: 820px) {
  .energy-cards { grid-template-columns: repeat(2, 1fr); }
  .energy-comparison { grid-template-columns: 1fr; }
  .cmp-vs { transform: rotate(90deg); display: inline-block; }
}

/* ── FLOOR PLAN / GALLERY ───────────────────────────────────── */

.dispozice {
  padding: var(--gap-section) 0;
  background: var(--bg-warm);
}

.floor-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 44px;
  gap: 0;
}
.floor-tab {
  padding: 13px 28px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.floor-tab.active { color: var(--dark); border-bottom-color: var(--accent); }
.floor-tab:hover { color: var(--dark); }
.floor-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.floor-panel { display: none; }
.floor-panel.active { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }

.floor-plan-ph {
  aspect-ratio: 4/3;
  border: 1.5px dashed var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.floor-plan-ph .ph { background: #D8D2C6; }

.room-list { display: flex; flex-direction: column; }
.room-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  gap: 12px;
}
.room-item:last-child { border-bottom: none; }
.room-name { color: var(--text-muted); }
.room-size { font-weight: 600; color: var(--dark); white-space: nowrap; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 56px;
}
.gallery-item {
  aspect-ratio: 3/2;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.gallery-item .ph { background: #CFC9BC; transition: filter 0.25s; }
.gallery-item:hover .ph { filter: brightness(0.88); }

@media (max-width: 860px) {
  .floor-panel.active { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── LOCATION ───────────────────────────────────────────────── */

.location {
  padding: var(--gap-section) 0;
}

.location-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 5vw, 96px);
  align-items: start;
  margin-bottom: clamp(56px, 6vw, 88px);
}
.location-body p { margin-bottom: 20px; line-height: 1.67; }
.location-body p:last-child { margin-bottom: 0; }

.poi-table {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.poi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}
.poi-row:last-child { border-bottom: none; }
.poi-row:nth-child(odd) { background: rgba(0,0,0,0.015); }
.poi-name { color: var(--text-muted); }
.poi-dist { font-weight: 600; color: var(--dark); font-family: var(--ff-serif); font-size: 15px; white-space: nowrap; }

.map-block { margin-bottom: clamp(48px, 5vw, 72px); }
.map-block h3 { margin-bottom: 24px; }
.map-frame {
  border-radius: 4px;
  overflow: hidden;
  height: 440px;
  border: 1px solid var(--border);
}
.map-frame iframe { width: 100%; height: 100%; border: none; display: block; }

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tip-card {
  background: var(--bg-warm);
  border-radius: 2px;
  overflow: hidden;
}
.tip-photo {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.tip-photo .ph { background: #C9C2B4; }
.tip-body { padding: 18px 20px 20px; }
.tip-title {
  font-family: var(--ff-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}
.tip-desc { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

@media (max-width: 860px) {
  .location-body { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .tips-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* ── CONTACT + FAQ ──────────────────────────────────────────── */

.contact-section {
  padding: var(--gap-section) 0 0;
  background: var(--dark);
}

.price-block {
  text-align: center;
  padding-bottom: clamp(56px, 6vw, 88px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
  margin-bottom: clamp(56px, 6vw, 88px);
}
.price-eyebrow {
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-family: var(--ff-sans);
  margin-bottom: 14px;
  display: block;
}
.price-value {
  font-family: var(--ff-serif);
  font-size: clamp(52px, 7vw, 100px);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.price-note { font-size: 16px; color: rgba(255,255,255,0.5); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 88px);
  margin-bottom: clamp(64px, 7vw, 100px);
}

.contact-info h3 { color: var(--white); margin-bottom: 28px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.contact-icon {
  width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact-link { color: rgba(255,255,255,0.85); font-size: 16px; transition: color 0.2s; }
.contact-link:hover { color: var(--accent); }

/* Form */
.contact-form h3 { color: var(--white); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 2px;
  padding: 13px 15px;
  font-family: var(--ff-sans);
  font-size: 16px;
  color: var(--white);
  transition: border-color 0.22s;
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.22); }
.form-group textarea { min-height: 110px; resize: vertical; }
.honeypot { display: none !important; }

.gdpr-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 8px 0 18px;
}
.gdpr-row input[type="checkbox"] {
  width: 18px; height: 18px; min-height: auto;
  flex-shrink: 0; margin-top: 3px;
  accent-color: var(--accent);
}
.gdpr-row label {
  font-size: 12.5px;
  color: rgba(255,255,255,0.38);
  line-height: 1.55;
  letter-spacing: 0;
  margin: 0;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.28s;
  letter-spacing: 0.02em;
}
.btn-submit:hover { background: var(--accent-dk); }

.form-success {
  display: none;
  background: rgba(200,164,94,0.14);
  border: 1px solid rgba(200,164,94,0.5);
  border-radius: 2px;
  padding: 24px;
  text-align: center;
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.6;
}
.form-success.show { display: block; }

/* FAQ */
.faq-block {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: clamp(56px, 6vw, 88px) 0;
}
.faq-block h3 { color: var(--white); margin-bottom: 36px; }
.faq-list { border-top: 1px solid rgba(255,255,255,0.09); }
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.09); }

.faq-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-align: left;
  font-size: 15.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.faq-trigger:hover { color: var(--white); }
.faq-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.faq-chevron {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--secondary);
  transition: transform 0.32s ease;
}
.faq-item.open .faq-chevron { transform: rotate(45deg); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-inner {
  padding-bottom: 22px;
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  line-height: 1.66;
}
.faq-inner p { margin-bottom: 10px; }
.faq-inner p:last-child { margin-bottom: 0; }
.faq-inner strong { color: rgba(255,255,255,0.82); }
.faq-inner ul { padding-left: 20px; }
.faq-inner li { margin-bottom: 5px; }

/* ── FOOTER ─────────────────────────────────────────────────── */

footer {
  background: var(--dark-deep);
  padding: 32px var(--px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand { font-family: var(--ff-serif); font-size: 15px; color: rgba(255,255,255,0.35); }
.footer-note  { font-size: 13px; color: rgba(255,255,255,0.2); }

/* ── STICKY CTA (mobile) ────────────────────────────────────── */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: var(--dark-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 10px 16px;
  align-items: center;
  gap: 10px;
}
.sticky-btn-main {
  flex: 1;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 13px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  cursor: pointer;
  text-align: center;
  transition: background 0.25s;
}
.sticky-btn-main:hover { background: var(--accent-dk); }
.sticky-btn-call {
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  text-decoration: none;
}

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 72px; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── LIGHTBOX ───────────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--white); }
.lightbox-ph {
  width: min(80vw, 840px);
  aspect-ratio: 16/9;
  background: #1C2A20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.35);
  font-size: 14px;
  font-family: var(--ff-sans);
  text-align: center;
  padding: 40px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}
.lightbox-ph-title {
  font-family: var(--ff-serif);
  font-size: 18px;
  color: rgba(255,255,255,0.55);
}

/* ── Utilities ──────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Detail nemovitosti – akordeon ──────────────────────── */
.detail-item { border-bottom: 1px solid var(--border); }
.detail-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 4px;
  font-family: var(--ff-serif);
  font-size: 19px;
  font-weight: 400;
  color: var(--dark);
  transition: color 0.2s;
}
.detail-item summary::-webkit-details-marker { display: none; }
.detail-item summary:hover { color: var(--accent-dk); }
.detail-num {
  font-family: var(--ff-sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  min-width: 28px;
}
.detail-title { flex: 1; }
.detail-chevron {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  transition: transform 0.3s;
  width: 20px;
  text-align: center;
}
.detail-item[open] .detail-chevron { transform: rotate(45deg); color: var(--accent-dk); }
.detail-body {
  padding: 4px 4px 28px 56px;
  max-width: 720px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.detail-body h4 {
  font-family: var(--ff-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 18px 0 10px;
}
.detail-body h4:first-child { margin-top: 0; }
.detail-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.detail-body li { padding-left: 14px; position: relative; }
.detail-body li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 1px;
  background: var(--accent);
}
.detail-body p { margin-top: 12px; }
@media (max-width: 540px) {
  .detail-item summary { font-size: 17px; gap: 14px; padding: 18px 2px; }
  .detail-body { padding-left: 42px; font-size: 14.5px; }
}

section { position: relative; }

/* ============================================================
   MOBILNÍ VYLEPŠENÍ
   ============================================================ */

/* ── Hamburger tlačítko ────────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 4px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
  transform-origin: center;
}
.site-nav.scrolled .nav-burger span { background: var(--dark); }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobilní menu overlay ──────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 88;
  background: var(--dark-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.mobile-menu.open {
  transform: none;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 0 32px;
}

.mobile-menu li a {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  padding: 12px 0;
  text-align: center;
  transition: color 0.2s;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  width: 100%;
}
.mobile-menu li:last-child a {
  color: var(--accent);
  border-bottom: none;
  margin-top: 16px;
  font-size: clamp(18px, 5vw, 24px);
  font-family: var(--ff-sans);
  font-weight: 500;
  background: var(--accent);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 2px;
  width: auto;
}
.mobile-menu li:last-child a:hover { background: var(--accent-dk); }

.mobile-menu-contact {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.mobile-menu-contact a {
  color: rgba(255,255,255,0.4);
  font-size: 15px;
  letter-spacing: 0.02em;
}

@media (max-width: 820px) {
  .nav-burger { display: flex; }
}

/* ── Čtyři obrazy – vertikální na mobilu ───────────────────── */
@media (max-width: 640px) {
  .four-images {
    grid-template-columns: 1fr !important;
  }
  .four-image-card {
    grid-template-columns: 1fr !important;
  }
  .four-image-card > div:first-child {
    aspect-ratio: 16/9 !important;
  }
}

/* ── Story visuals – stack na mobilu ───────────────────────── */
@media (max-width: 860px) {
  .story-visuals {
    flex-direction: column !important;
  }
  .story-photo-main, .story-photo-sm {
    aspect-ratio: 16/9 !important;
  }
}

/* ── Quick facts – 1 sloupec na velmi malých obrazovkách ───── */
@media (max-width: 400px) {
  .facts-grid { grid-template-columns: 1fr; }
  .fact-card { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07) !important; }
  .fact-card:last-child { border-bottom: none !important; }
}

/* ── Garden stats – 1 sloupec na malých mobilech ───────────── */
@media (max-width: 480px) {
  .garden-stats { grid-template-columns: 1fr; gap: 20px; }
}

/* ── Energie srovnání – kompaktnější ───────────────────────── */
@media (max-width: 640px) {
  .energy-comparison { padding: 24px 20px; }
  .cmp-vs { display: none; }
  .cmp-note { font-size: 12px; }
}

/* ── Tips grid – 1 sloupec na velmi malých ─────────────────── */
@media (max-width: 420px) {
  .tips-grid { grid-template-columns: 1fr; }
}

/* ── Gallery – 2 sloupce i na mobilu (OK), ale menší gap ───── */
@media (max-width: 480px) {
  .gallery-grid { gap: 6px; }
}

/* ── Contact form ─────────────────────────────────────────── */
@media (max-width: 480px) {
  .price-value { font-size: clamp(40px, 12vw, 64px); }
}

/* ── Obecná mobilní typografie ─────────────────────────────── */
@media (max-width: 480px) {
  :root { --px: 18px; }
  .pull-quote { padding: 22px 20px; font-size: 16px; }
  .faq-trigger { font-size: 14.5px; }
}

/* ============================================================
   WIRED PHOTOS – obrázky doplněné z assets/photos
   ============================================================ */

/* Univerzální „výplň kontejneru" – obrázek vyplní rodiče s daným
   poměrem stran (story, čtyři obrazy, galerie, tipy). */
.fit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  -webkit-user-drag: none;
}

/* Galerie – hover ztmavení nyní na obrázku místo placeholderu */
.gallery-item img { transition: filter 0.25s; }
.gallery-item:hover img { filter: brightness(0.88); }

/* ── Lightbox – skutečný obrázek ────────────────────────────── */
.lightbox-fig {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 92vw;
  margin: 0;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.lightbox-cap {
  text-align: center;
  line-height: 1.5;
}
.lightbox-cap-title {
  display: block;
  font-family: var(--ff-serif);
  font-size: 18px;
  color: rgba(255,255,255,0.85);
}
.lightbox-cap-desc {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: 4px;
}
.lightbox-cap-count {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
  letter-spacing: 0.08em;
}

/* ── Lightbox – navigační šipky ─────────────────────────────── */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); }
.lightbox-nav svg { width: 24px; height: 24px; display: block; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
@media (max-width: 600px) {
  .lightbox-nav { width: 44px; height: 44px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ============================================================
   GALERIE v2 – mix fotek a before/after sliderů
   ============================================================ */
.gallery-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 22px;
  align-items: start;
}
.gallery-cell {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.gallery-cell .gallery-item {
  aspect-ratio: 3/2;
  width: 100%;
}
/* Portrétové fotky (na výšku) – vyšší poměr, ať se neořezávají do úzkého pruhu */
.gallery-cell--tall .gallery-item { aspect-ratio: 3/4; }
.gallery-cap {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
  letter-spacing: 0.01em;
}

/* Nadpis pokoje – přes celou šířku mřížky */
.gallery-room {
  grid-column: 1 / -1;
  font-family: var(--ff-serif);
  font-size: clamp(19px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--dark);
  margin: 30px 0 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.gallery-room:first-child { margin-top: 0; }

/* První záběr pokoje – velký, přes celou šířku mřížky */
.gallery-cell--wide { grid-column: 1 / -1; }

/* before/after slider uvnitř galerie – zruš okraje a max-width globálního .ba-slider */
.gallery-grid .ba-slider { margin: 0; max-width: none; }
.gallery-grid .ba-stage {
  aspect-ratio: 3/2;
  box-shadow: 0 12px 30px -20px rgba(28,42,32,0.45);
}
.gallery-grid .ba-handle { width: 50px; height: 50px; }
.gallery-grid .ba-tag {
  top: 14px;
  padding: 6px 11px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.gallery-grid .ba-tag-left  { left: 14px; }
.gallery-grid .ba-tag-right { right: 14px; }

@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 24px; }
}


/* ── Příběh domu – editoriální (text bez bočních fotek) ───────── */
.story-grid { grid-template-columns: 1fr; }
.story-text { max-width: 780px; margin: 0 auto; text-align: center; }
.story-text .pull-quote { text-align: left; }
.story-text p { text-align: left; }

/* ── Půdorysy (reálné obrázky místo placeholderu) ───────────── */
.floor-plan-ph { aspect-ratio: auto; border: 1px solid var(--border); background: #fff; }
.floor-plan-img { width: 100%; height: auto; display: block; }

/* ── Lightbox: půdorys jako samostatný zvětšený obrázek ─────── */
.lightbox--single .lightbox-nav { display: none; }
/* půdorys může roztáhnout figuru nad běžných 92vw */
.lightbox--single .lightbox-fig { max-width: 96vw; }
.lightbox-img.is-plan {
  width: min(1400px, 96vw);
  height: auto;
  max-width: 96vw;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
}
