/* ====== Základ ====== */
:root {
  --green-950: #0d1f1a;
  --green-900: #12291f;
  --green-800: #1b3a2d;
  --graphite: #22262a;
  --ink: #1d2420;
  --paper: #faf9f6;
  --paper-alt: #f1efe9;
  --gold: #c2a35d;
  --gold-dark: #a8873f;
  --muted: #6b7570;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(13, 31, 26, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, .hero-price {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--green-950);
}
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
p + p { margin-top: 0.9rem; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container.narrow { width: min(820px, 92%); }

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-alt); }
.section-lead { color: var(--muted); max-width: 46rem; margin-bottom: 2rem; }
.section-cta { text-align: center; margin-top: 2.6rem; }

/* ====== Tlačítka ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.8rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 "Inter", sans-serif;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--green-950); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.7); color: #fff; background: rgba(255,255,255,0.08); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-lg { padding: 1rem 2.4rem; font-size: 1.05rem; }
.btn-sm { min-height: 38px; padding: 0.55rem 1.1rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ====== Header ====== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(13, 31, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}
.site-header.visible { transform: translateY(0); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}
.brand { font-family: "Playfair Display", serif; font-size: 1.15rem; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--gold); font-size: 0.9em; }
.header-nav { display: flex; gap: 1.3rem; }
.header-nav a { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 0.9rem; }
.header-nav a:hover { color: var(--gold); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.header-price { color: var(--gold); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.header-call {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.header-call:hover { color: var(--gold); }

/* ====== Hero ====== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,31,26,0.55) 0%, rgba(13,31,26,0.15) 45%, rgba(13,31,26,0.75) 100%);
}
.hero-content { position: relative; z-index: 1; color: #fff; text-align: center; padding: 7rem 0 5rem; }
.hero-eyebrow { text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.8rem; color: var(--gold); margin-bottom: 1.2rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.5vw, 4.6rem); text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.hero-price { font-size: clamp(1.5rem, 3.5vw, 2.2rem); color: var(--gold); margin: 1.1rem 0 1.8rem; }
.hero-cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1.3rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.78); }
.hero-scroll {
  position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 2rem; text-decoration: none; z-index: 1;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ====== Fakta ribbon ====== */
.facts-ribbon { background: var(--green-950); color: #fff; }
.facts-inner {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 2rem;
  padding: 1rem 0; font-size: 0.9rem;
}
.facts-inner span { color: rgba(255,255,255,0.75); white-space: nowrap; }
.facts-inner b { color: var(--gold); font-weight: 600; }

/* ====== Galerie ====== */
.gallery-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.gtab {
  border: 1px solid #d9d4c6; background: #fff; color: var(--green-900);
  border-radius: 999px; padding: 0.45rem 1.2rem; font: 600 0.88rem "Inter", sans-serif; cursor: pointer;
  transition: all 0.2s;
}
.gtab.active, .gtab:hover { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.gallery a { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: #ddd; }
.gallery a.big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ====== Video ====== */
.video-player {
  position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16/9;
  background: #000; box-shadow: var(--shadow); cursor: pointer;
}
.video-poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }
.video-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; transition: transform 0.2s;
}
.video-play:hover { transform: scale(1.08); }
.video-player.playing .video-poster,
.video-player.playing .video-play { display: none; }
.video-slideshow { position: absolute; inset: 0; display: none; background: #000; }
.video-player.playing .video-slideshow { display: block; }
.video-slideshow iframe, .video-slideshow video { width: 100%; height: 100%; border: 0; }
.ken { position: absolute; inset: 0; opacity: 0; background-size: cover; background-position: center; transition: opacity 1.2s ease; }
.ken.show { opacity: 1; animation: kenburns 7s ease-in-out both; }
@keyframes kenburns { from { transform: scale(1) translate(0,0); } to { transform: scale(1.14) translate(-2%, -2%); } }
.video-caption { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1rem; letter-spacing: 0.02em; }

/* ====== Plány ====== */
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.plan-card { background: #fff; border: 1px solid #e6e3da; border-radius: var(--radius); padding: 1.2rem; }
.plan-card h4 { font: 600 1.05rem "Inter", sans-serif; color: var(--green-950); margin-bottom: 0.2rem; }
.plan-card .plan-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.8rem; }
.plan-card svg { width: 100%; height: auto; display: block; }

/* ====== Popis ====== */
.spec-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.5rem 1.5rem; margin: 1rem 0; }
.spec-list li { border-bottom: 1px solid #e6e3da; padding: 0.5rem 0; display: flex; justify-content: space-between; gap: 1rem; font-size: 0.95rem; }
.spec-list strong { font-weight: 600; color: var(--green-900); }

/* ====== Lokalita ====== */
.locality-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2.5rem; align-items: start; }
.locality-badges { list-style: none; margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.locality-badges li { background: #fff; border: 1px solid #e0dcd0; border-radius: 999px; padding: 0.35rem 0.9rem; font-size: 0.83rem; color: var(--green-900); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#map { height: 420px; width: 100%; }

/* ====== Makléř ====== */
.makler-card { display: flex; gap: 1.8rem; align-items: flex-start; background: var(--paper-alt); border: 1px solid #e6e3da; border-radius: 10px; padding: 1.8rem; }
.makler-avatar { flex: 0 0 auto; border-radius: 50%; overflow: hidden; }
.makler-info h3 { margin: 0 0 0.2rem; }
.makler-role { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.7rem; }
.makler-note { color: var(--green-800); font-size: 0.92rem; margin-top: 0.6rem; }
.makler-actions { display: flex; gap: 0.7rem; margin-top: 1.1rem; flex-wrap: wrap; }

.tech-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin: 2.2rem 0 0; }
.tech-badge { text-align: center; background: #fff; border: 1px solid #e6e3da; border-radius: var(--radius); padding: 1rem 0.6rem; }
.tech-badge b { display: block; font-family: "Playfair Display", serif; color: var(--green-900); font-size: 1.1rem; }
.tech-badge span { font-size: 0.78rem; color: var(--muted); }

.reviews-title { margin-top: 2.6rem; }
.reviews-demo-note { font-size: 0.8rem; color: #a08a4a; background: #fdf3d7; border: 1px solid #eed9a0; border-radius: var(--radius); padding: 0.4rem 0.8rem; display: inline-block; margin-bottom: 1.2rem; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.review-card { background: #fff; border: 1px solid #e6e3da; border-radius: var(--radius); padding: 1.2rem; }
.review-stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 0.5rem; }
.review-text { font-size: 0.93rem; }
.review-author { margin-top: 0.7rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; }

/* ====== Formulář ====== */
.section-dark { background: linear-gradient(160deg, var(--green-950), var(--green-800)); color: #fff; }
.section-dark h2 { color: #fff; }
.section-dark .section-lead { color: rgba(255, 255, 255, 0.75); }
.form-trust {
  display: flex; align-items: center; gap: 0.9rem; margin: 1.2rem 0 1.6rem;
  padding: 0.9rem 1.1rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius); font-size: 0.9rem;
}
.form-trust a { color: var(--gold); text-decoration: none; }
.form-trust-avatar { flex: 0 0 auto; border-radius: 50%; overflow: hidden; }

#leadForm, #exitForm { margin-top: 0.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: rgba(255,255,255,0.9); }
.form-field .opt { font-weight: 400; color: rgba(255, 255, 255, 0.5); }
.form-field input {
  width: 100%; min-height: 44px; padding: 0.8rem 1rem; border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.07);
  color: #fff; font: 400 1rem "Inter", sans-serif; transition: border-color 0.2s, background 0.2s;
}
.form-field input::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-field input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.12); }
.form-field input.invalid { border-color: #e2695d; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.chip {
  border: 1px solid rgba(255, 255, 255, 0.3); background: transparent; color: rgba(255,255,255,0.85);
  border-radius: 999px; padding: 0.5rem 1rem; min-height: 40px; font: 500 0.83rem "Inter", sans-serif; cursor: pointer; transition: all 0.2s;
}
.chip:hover, .chip.active { background: var(--gold); border-color: var(--gold); color: var(--green-950); }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
#submitBtn { margin-top: 0.5rem; }
#submitBtn:disabled { opacity: 0.6; cursor: wait; }
.form-microcopy { text-align: center; margin-top: 0.7rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.form-msg { margin-top: 1rem; text-align: center; font-weight: 500; min-height: 1.5em; }
.form-msg.ok { color: #a8d5a2; }
.form-msg.err { color: #f0a49b; }

/* ====== Footer ====== */
.footer-cta {
  display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap;
  padding: 2rem 0 1.6rem; text-align: center;
}
.footer-cta p { font-family: "Playfair Display", serif; font-size: 1.25rem; color: #fff; }
.site-footer { background: var(--graphite); color: rgba(255, 255, 255, 0.75); padding-bottom: 2.4rem; font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; }
.footer-title { font-weight: 600; color: #fff; margin-bottom: 0.4rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.footer-note { text-align: right; font-size: 0.8rem; color: rgba(255, 255, 255, 0.45); }

/* ====== Sticky mobilní lišta ====== */
.sticky-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: none; gap: 0; transform: translateY(100%); transition: transform 0.3s ease;
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-call, .sticky-cta {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 54px; text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.sticky-call { background: var(--green-900); color: #fff; flex: 0 0 42%; }
.sticky-cta { background: var(--gold); color: var(--green-950); }

/* ====== Exit-intent ====== */
.exit-modal { position: fixed; inset: 0; z-index: 120; background: rgba(10,18,15,0.72); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.exit-modal[hidden] { display: none; }
.exit-box { position: relative; background: var(--paper); border-radius: 10px; padding: 2rem 1.8rem; max-width: 400px; width: 100%; box-shadow: var(--shadow); }
.exit-box h3 { margin: 0 0 0.5rem; }
.exit-box p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.1rem; }
.exit-box input { width: 100%; min-height: 46px; padding: 0.8rem 1rem; border: 1px solid #d9d4c6; border-radius: var(--radius); font: 400 1rem "Inter", sans-serif; margin-bottom: 0.8rem; }
.exit-box input:focus { outline: none; border-color: var(--gold); }
.exit-close { position: absolute; top: 0.5rem; right: 0.7rem; background: none; border: none; font-size: 1.8rem; color: var(--muted); cursor: pointer; line-height: 1; }
.exit-box .form-msg { color: var(--green-800); }
.exit-box .form-msg.ok { color: #2e7d32; }
.exit-box .form-msg.err { color: #c0392b; }

/* ====== Lightbox ====== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10, 18, 15, 0.94); display: flex; align-items: center; justify-content: center; touch-action: pan-y; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 4px; user-select: none; }
.lightbox button { position: absolute; background: none; border: none; color: rgba(255, 255, 255, 0.8); font-size: 2.6rem; cursor: pointer; padding: 0.5rem 1rem; line-height: 1; }
.lightbox button:hover { color: var(--gold); }
.lb-close { top: 0.7rem; right: 0.7rem; }
.lb-prev { left: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.4rem; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .locality-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery a.big { grid-column: span 2; grid-row: auto; aspect-ratio: 16/10; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .tech-badges { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-note { text-align: left; }
  .makler-card { flex-direction: column; align-items: center; text-align: center; }
  .makler-actions { justify-content: center; }
}

@media (max-width: 640px) {
  .header-nav, .header-price { display: none; }
  /* Jeden sticky prvek na obrazovku: na mobilu jen spodní lišta, horní header schovaný */
  .site-header { display: none; }
  .sticky-bar { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .spec-list { grid-template-columns: 1fr; }
  #map { height: 320px; }
  .hero-content { padding-top: 5rem; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .form-trust { flex-direction: row; }
  body { padding-bottom: 54px; } /* místo pro sticky lištu */
}
