:root {
  --bg: #f4f1ea;
  --surface: #fffdf8;
  --text: #1d1d1b;
  --muted: #666258;
  --brand: #0f766e;
  --brand-dark: #0a4f4a;
  --accent: #c49a6c;
  --line: #ddd5c8;
  --shadow: 0 12px 30px rgba(20, 20, 20, 0.08);
  --radius: 16px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #fdfbf7 0%, var(--bg) 45%, #efe9de 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(var(--max), 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(253, 251, 247, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.logo span {
  color: var(--brand);
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-dark);
}

.btn {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), #168f85);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.3);
}

.btn-secondary {
  color: var(--brand-dark);
  border: 1px solid rgba(15, 118, 110, 0.32);
  background-color: rgba(15, 118, 110, 0.08);
}

.hero {
  padding: 74px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(196, 154, 108, 0.2);
  border: 1px solid rgba(196, 154, 108, 0.6);
  color: #7a5833;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 6px 12px;
  margin-bottom: 14px;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
}

.lead {
  margin: 0 0 20px;
  color: #3a3a37;
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.price-note {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 600;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(221, 213, 200, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.hero-media img {
  border-radius: var(--radius);
  min-height: 280px;
  object-fit: cover;
}

body[data-page="home"] .hero-media img {
  min-height: 180px;
  max-height: 300px;
}

section {
  padding: 54px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.section-subtitle {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 70ch;
}

.cards {
  display: grid;
  gap: 20px;
}

.cards.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card-body {
  padding: 18px;
}

.card h3,
.card h2 {
  margin: 0 0 8px;
  line-height: 1.3;
}

.card-actions {
  display: grid;
  gap: 10px;
}

.muted {
  color: var(--muted);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 190px;
}

body[data-page="home"] .card > a > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

body[data-page="apartments"] .card > a > img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

body[data-page="home"] .gallery img {
  height: 170px;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq p {
  margin: 10px 0 0;
  color: #3c3c3b;
}

.page-hero {
  padding: 48px 0 16px;
}

.cta-strip {
  padding: 20px;
  border: 1px solid #cde6e3;
  background: linear-gradient(125deg, #edf8f7, #f9f4ec);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.map-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.map-embed iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
}

.map-link-wrap {
  margin: 12px 0 0;
}

.map-link-wrap a {
  color: var(--brand-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-grid,
  .cards.cols-3,
  .cards.cols-2 {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .header-inner {
    justify-content: center;
    padding: 10px 0;
  }

  .nav {
    width: 100%;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 1140px) {
  .header-inner {
    justify-content: center;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav {
    gap: 10px;
  }

  .nav a {
    font-size: 0.9rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 36px;
  }

  .btn {
    width: 100%;
  }

  .map-embed iframe {
    height: 340px;
  }
}
