:root {
  --bg: #f4f0ea;
  --bg-white: #fff;
  --card: #fff;
  --text: #1d2420;
  --muted: #5a6660;
  --green: #24463a;
  --green-dark: #1a3228;
  --green2: #4a8a6a;
  --green-light: #edf5f0;
  --sand: #e8e2d9;
  --line: #e8e2d9;
  --warn-bg: #fdf8ee;
  --warn-line: #e8d49a;
  --warn-dot: #b87d12;
  --shadow: 0 12px 40px rgba(29,36,32,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; }

/* ── TOPBAR ── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 5vw;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -.02em;
  color: var(--text);
}

.topbar nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.topbar nav a {
  text-decoration: none;
  color: #4a5750;
  font-size: 14px;
  transition: color .2s;
}

.topbar nav a:hover { color: var(--green); }

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
}

/* ── HERO ── */
.hero {
  min-height: 86vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 8vw 5vw;
  overflow: hidden;
  background: var(--green-dark);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.48), rgba(0,0,0,.12) 55%, rgba(0,0,0,.02));
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 36px 40px;
  backdrop-filter: blur(3px);
}

.hero-card { color: #fff; }

.eyebrow {
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: .13em;
  color: var(--green2);
  font-size: 11px;
  margin: 0 0 10px;
}

/* ── TYPOGRAPHY ── */
.hero h1, .section h2 {
  font-family: Georgia, serif;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 52px);
  margin: 0 0 16px;
  color: #fff;
}

.lead {
  font-size: 19px;
  color: #3a4a40;
  margin: 0 0 20px;
}

.hero-card .eyebrow { color: #fff; }
.hero-card .lead { color: #fff; }
.hero-card h1 { color: #fff; }
.hero-card .price { color: #fff; }
.hero-card .secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }

.price {
  font-size: 30px;
  font-weight: 900;
  margin: 16px 0;
  color: var(--green);
  letter-spacing: -.02em;
}

/* ── BUTTONS ── */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: opacity .2s;
}

.button:hover { opacity: .88; }

.primary { background: var(--green); color: #fff; }

.secondary {
  background: var(--bg-white);
  color: var(--green);
  border: 1.5px solid var(--sand);
}

/* ── SECTIONS ── */
.section {
  padding: 80px 5vw;
  max-width: 1260px;
  margin: 0 auto;
}

/* sekce na bílém podkladu */
.section-white {
  background: var(--bg-white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-white > .section { padding-top: 80px; padding-bottom: 80px; }

/* sekce na pískové */
.section-sand { background: var(--bg); }

/* ── INTRO ── */
.intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.intro h2, .section h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  margin: 0 0 18px;
}

.intro p:last-child, .split p, .contact p, .location-text p {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.75;
}

/* ── FEATURES ── */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.features article {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}

.features article::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  margin-bottom: 16px;
}

.features h3 { font-size: 15px; margin: 0 0 8px; }
.features p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ── PARAMETRY ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.table-card {
  background: #f9f7f4;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
}

.table-card dl { margin: 0; }

.table-card div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}

.table-card div:last-child { border: 0; }
.table-card dt { font-weight: 700; font-size: 14px; }
.table-card dd { margin: 0; color: var(--muted); font-size: 14px; }

/* ── DISPOZICE ── */
.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.layout-grid article {
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  padding-top: 28px;
  position: relative;
  overflow: hidden;
}

.layout-grid article:nth-child(1)::before { background: var(--green-dark); }
.layout-grid article:nth-child(2)::before { background: var(--green2); }
.layout-grid article:nth-child(3)::before { background: #a0c4b3; }

.layout-grid article::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.layout-grid h3 { font-size: 15px; margin: 0 0 8px; }
.layout-grid p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.6; }

/* ── GALERIE ── */
.gallery-section { max-width: 1420px; }

.gallery-group { margin-top: 36px; }

.gallery-group h3 {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 0;
}

.gallery a {
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 14px;
  background: #d8d2c8;
}

.gallery a:first-child,
.gallery a:nth-child(2) {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}

.gallery a:hover img { transform: scale(1.05); }

/* ── STAV ── */
.state-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 1320px;
}

.state-card {
  border-radius: 22px;
  padding: 28px 30px;
  border: 1px solid var(--line);
}

.state-card.good {
  background: #f0f8f3;
  border-color: #b8d8c4;
}

.state-card.warn {
  background: var(--warn-bg);
  border-color: var(--warn-line);
}

.state-card .eyebrow { margin-bottom: 6px; }
.state-card h2 { font-size: clamp(20px, 2.5vw, 28px); margin: 0 0 18px; }

.state-card ul { list-style: none; padding: 0; margin: 0; }

.state-card li {
  font-size: 15px;
  color: #3a4a3f;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.55;
}

.state-card li:last-child { border-bottom: none; }

.state-card li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

.state-card.good li::before { background: var(--green); }
.state-card.warn li::before { background: var(--warn-dot); }

/* ── LOKALITA ── */
.location-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
  max-width: 1320px;
}

.location-text { grid-column: 1 / 2; }

.coords {
  font-weight: 800;
  color: var(--green) !important;
  margin: 4px 0 20px;
}

.map-card {
  grid-column: 1 / -1;
  padding: 0;
  overflow: hidden;
  min-height: 420px;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* ── KONTAKT ── */
.contact {
  background: var(--green-dark);
  color: #fff;
  max-width: none;
  margin: 0 5vw 0;
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact .eyebrow { color: rgba(255,255,255,.5); }
.contact h2 { color: #fff; font-size: clamp(24px, 3vw, 40px); margin: 0 0 14px; }
.contact > div > p { color: rgba(255,255,255,.72); font-size: 17px; margin-bottom: 24px; }
.contact .contact-line { font-size: 16px; color: rgba(255,255,255,.72); margin: 0 0 6px; }
.contact .contact-line a { color: #fff; font-weight: 600; text-decoration: none; }

.contact-form {
  background: #fff;
  color: var(--text);
  border-radius: 22px;
  padding: 28px;
  border: none;
  box-shadow: none;
}

.contact-form label {
  display: block;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #4a5750;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14px;
  background: #f9f7f4;
  color: var(--text);
}

.contact-form button {
  width: 100%;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  font-weight: 900;
  font-size: 15px;
  cursor: pointer;
  transition: opacity .2s;
}

.contact-form button:hover { opacity: .88; }

.contact-form small {
  display: block;
  color: var(--muted);
  margin-top: 12px;
  font-size: 12px;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 32px 5vw;
  color: #888;
  font-size: 13px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}

/* ── RESPONSIVE 900px ── */
@media (max-width: 900px) {
  .topbar nav { display: none; }
  .hero { min-height: 82vh; padding: 24px; }
  .hero-card { padding: 26px; border-radius: 22px; }
  .intro, .split, .state-section, .contact, .location-detail { grid-template-columns: 1fr; gap: 24px; }
  .location-text, .map-card { grid-column: auto; grid-row: auto; }
  .features, .layout-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .table-card div { grid-template-columns: 1fr; gap: 3px; }
  .contact { margin: 0 16px; padding: 32px 24px; border-radius: 24px; }
  .section { padding: 56px 20px; }
  .section-white > .section { padding-top: 56px; padding-bottom: 56px; }
}

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox.active { display: flex; }

.lightbox-img-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 80px;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  display: block;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  line-height: 1;
}

.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-btn:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: 13px;
  font-family: Inter, system-ui, sans-serif;
  pointer-events: none;
}

.lightbox-caption {
  position: fixed;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-family: Inter, system-ui, sans-serif;
  text-align: center;
  max-width: 600px;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lightbox-img-wrap { padding: 60px 16px 80px; }
  .lightbox-btn { width: 40px; height: 40px; font-size: 20px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

/* ── RESPONSIVE 560px ── */
@media (max-width: 560px) {
  .features, .layout-grid, .gallery { grid-template-columns: 1fr; }
  .gallery a:first-child, .gallery a:nth-child(2) { grid-column: auto; }
  .hero h1 { font-size: 34px; }
  .lead { font-size: 17px; }
  .price { font-size: 26px; }
  .contact { padding: 28px 20px; }
}