:root {
  --bg: #f4efe7;
  --surface: #fbf8f2;
  --surface-strong: #fffdf9;
  --surface-elevated: rgba(255, 253, 249, 0.96);
  --ink: #162126;
  --ink-soft: #24343b;
  --muted: #53616a;
  --line: rgba(22, 33, 38, 0.12);
  --line-strong: rgba(22, 33, 38, 0.18);
  --accent: #ca6a2d;
  --accent-soft: #ecd3bf;
  --forest: #23483f;
  --sand: #dcb48b;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 18px 45px rgba(22, 33, 38, 0.12);
  --shadow-deep: 0 28px 80px rgba(22, 33, 38, 0.18);
  --shadow-lift: 0 16px 34px rgba(22, 33, 38, 0.1);
  --max: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(202, 106, 45, 0.12), transparent 32%),
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.62), transparent 18%),
    radial-gradient(circle at 76% 54%, rgba(35, 72, 63, 0.08), transparent 24%),
    linear-gradient(180deg, #f7f2eb 0%, #f1ebe2 42%, #fbf8f2 100%);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
[data-lightbox-trigger] { cursor: zoom-in; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.page-shell { overflow: clip; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(251, 248, 242, 0.84);
  border-bottom: 1px solid rgba(22, 33, 38, 0.08);
  box-shadow: 0 10px 28px rgba(22, 33, 38, 0.05);
}

.header-inner,
.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

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

.brand { display: inline-flex; flex-direction: column; gap: 2px; }
.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.brand-note,
.eyebrow,
.meta-note,
.microcopy { color: var(--muted); font-size: 0.92rem; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a { font-size: 0.98rem; color: var(--muted); }
.site-nav a:hover { color: var(--ink); }
.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(202, 106, 45, 0.32);
}
.cta-row, .button-row { display: flex; gap: 12px; flex-wrap: wrap; }

.button,
.button-secondary,
.button-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  overflow: hidden;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button::before,
.button-secondary::before,
.button-ghost::before,
.metric-card::before,
.glass-card::before,
.stat-card::before,
.detail-card::before,
.info-card::before,
.program-card::before,
.overlay-card::before,
.layout-card::before,
.catalog-card::before,
.report-card::before,
.page-hero-panel::before,
.map-card::before,
.form-card::before,
.cta-panel::before,
.contact-card::before,
.footer-card::before,
details::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.button { background: linear-gradient(180deg, #d97839, var(--accent)); color: #fff; box-shadow: 0 16px 32px rgba(202, 106, 45, 0.28); }
.button-secondary { background: linear-gradient(180deg, #2b5a4f, var(--forest)); color: #fff; box-shadow: 0 16px 32px rgba(35, 72, 63, 0.24); }
.button-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 239, 231, 0.92));
  box-shadow: 0 12px 24px rgba(22, 33, 38, 0.08);
}
.button:hover, .button-secondary:hover, .button-ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: grid;
  align-items: end;
  background:
    linear-gradient(180deg, rgba(13, 20, 22, 0.25), rgba(13, 20, 22, 0.72)),
    url("./assets/images/hero-kvartal.jpg") center/cover no-repeat;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(220, 180, 139, 0.28), transparent 22%),
    linear-gradient(90deg, rgba(16, 21, 25, 0.75) 0%, rgba(16, 21, 25, 0.32) 48%, rgba(16, 21, 25, 0.12) 100%);
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(280px, 340px);
  gap: 32px;
  align-items: end;
  padding: 72px 0 58px;
}

.hero-copy h1,
.page-hero h1,
.section-title,
.faq-block h2,
.cta-panel h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  margin: 12px 0 16px;
}

.hero-copy p { max-width: 560px; font-size: 1.08rem; color: rgba(255, 255, 255, 0.82); }

.hero-points,
.stats-grid,
.facts-grid,
.advantage-grid,
.preview-grid,
.detail-grid,
.contact-grid,
.footer-grid,
.purchase-grid,
.infra-grid,
.location-grid,
.genplan-grid { display: grid; gap: 16px; }

.hero-points {
  margin: 28px 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.metric-card,
.glass-card,
.detail-card,
.info-card,
.cta-panel,
.map-card,
.form-card,
.program-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.metric-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
  box-shadow: 0 18px 40px rgba(10, 15, 18, 0.16);
  overflow: hidden;
}

.metric-card strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.glass-card {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  box-shadow: 0 22px 46px rgba(10, 15, 18, 0.18);
  overflow: hidden;
}

.quick-facts { display: grid; gap: 14px; }
.quick-facts div { display: grid; gap: 4px; }
.quick-facts dt { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,.7); }
.quick-facts dd { margin: 0; font-size: 1.1rem; }

section { padding: 92px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 30px;
}

.section-title { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin: 0; }
.section-lead { max-width: 620px; color: var(--muted); margin: 0; }

.contrast-section {
  background: linear-gradient(180deg, rgba(35, 72, 63, 0.98), rgba(21, 47, 41, 0.98));
  color: #f4efe7;
}

.contrast-section .section-lead,
.contrast-section .eyebrow,
.contrast-section .microcopy { color: rgba(244, 239, 231, 0.75); }

.stats-grid,
.facts-grid,
.preview-grid,
.detail-grid,
.infra-grid,
.purchase-grid,
.contact-grid,
.footer-grid,
.location-grid,
.genplan-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }

.stat-card,
.detail-card,
.info-card,
.program-card {
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.contrast-section .stat-card,
.contrast-section .detail-card,
.contrast-section .info-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.stat-card span { display: block; font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

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

.advantage {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 34px rgba(8, 12, 16, 0.12);
  overflow: hidden;
}

.advantage span,
.label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(202, 106, 45, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  margin-bottom: 14px;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 320px;
  box-shadow: var(--shadow-deep);
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overlay-card {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 1;
  max-width: 360px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 243, 235, 0.94));
  border-radius: 20px;
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(22, 33, 38, 0.08);
  overflow: hidden;
}

.slider-shell { display: grid; gap: 18px; }
.slider-controls, .filter-toolbar, .tabs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.tab,
.filter-toolbar select,
.filter-toolbar input {
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 239, 231, 0.92));
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(22, 33, 38, 0.06);
}

.tab.is-active { background: var(--forest); border-color: var(--forest); color: #fff; }

.horizontal-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(270px, 360px);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}

.horizontal-cards::-webkit-scrollbar { height: 8px; }
.horizontal-cards::-webkit-scrollbar-thumb { background: rgba(22, 33, 38, 0.22); border-radius: 999px; }

.layout-card,
.catalog-card,
.report-card {
  position: relative;
  scroll-snap-align: start;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(246, 240, 232, 0.98));
  border: 1px solid rgba(22, 33, 38, 0.09);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  transform: translateZ(0);
}

.layout-card figure,
.catalog-card figure,
.report-card figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.86), transparent 38%),
    linear-gradient(180deg, #fff, #f3ece2);
}

.layout-card img,
.catalog-card img,
.report-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(22, 33, 38, 0.12));
}

.layout-card .card-body,
.catalog-card .card-body,
.report-card .card-body {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(248, 243, 236, 0.96));
}

.layout-card h3,
.catalog-card h3 {
  color: var(--ink);
}

.layout-card .meta-list,
.catalog-card .meta-list {
  color: var(--ink-soft);
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 16px;
  font-weight: 700;
  color: var(--ink);
}

.meta-list { display: grid; gap: 6px; color: var(--ink-soft); margin-bottom: 16px; }
.breadcrumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 0.94rem; margin-bottom: 20px; }
.page-hero { padding: 46px 0 34px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); margin: 12px 0 14px; max-width: 840px; }

.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: end;
}

.page-hero-panel,
.map-card,
.form-card,
.cta-panel {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 240, 232, 0.96));
  border: 1px solid rgba(22, 33, 38, 0.09);
  box-shadow: var(--shadow-deep);
  overflow: hidden;
}

.map-surface {
  margin-top: 18px;
  min-height: 300px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(35, 72, 63, 0.85), rgba(22, 33, 38, 0.92)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: cover, 42px 42px, 42px 42px;
  position: relative;
  overflow: hidden;
}

.map-route, .map-point { position: absolute; border-radius: 999px; }
.map-route { height: 4px; background: linear-gradient(90deg, var(--sand), #fff); }
.map-point { width: 18px; height: 18px; background: var(--accent); box-shadow: 0 0 0 10px rgba(202,106,45,.18); }
.map-label { position: absolute; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.9); font-size: 0.92rem; }

.faq-list { display: grid; gap: 12px; }
details {
  position: relative;
  border-radius: 18px;
  border: 1px solid rgba(22, 33, 38, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 243, 236, 0.96));
  padding: 18px 20px;
  box-shadow: 0 12px 24px rgba(22, 33, 38, 0.06);
  overflow: hidden;
}
summary { cursor: pointer; font-weight: 600; }
summary::-webkit-details-marker { display: none; }

form { display: grid; gap: 12px; }
.field-group {
  display: grid;
  gap: 8px;
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.consent-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 6px;
  padding: 0;
  box-shadow: none;
}

.consent-check a {
  color: var(--forest);
  text-decoration: underline;
}

.field-group label {
  font-size: 0.95rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #ffffff, #faf6f0);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.form-status { min-height: 24px; font-size: 0.94rem; color: var(--forest); }
.contact-card, .footer-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(246, 240, 232, 0.92));
  border: 1px solid rgba(22, 33, 38, 0.09);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.footer { padding: 30px 0 60px; }
.footer-grid .footer-card:nth-child(1) { grid-column: span 5; }
.footer-grid .footer-card:nth-child(2) { grid-column: span 3; }
.footer-grid .footer-card:nth-child(3) { grid-column: span 4; }

.note-strip {
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(202,106,45,.18), rgba(220,180,139,.18));
  color: var(--ink);
  border: 1px solid rgba(202, 106, 45, 0.16);
  box-shadow: 0 12px 26px rgba(202, 106, 45, 0.08);
}

.layout-card:hover,
.catalog-card:hover,
.report-card:hover,
.page-hero-panel:hover,
.map-card:hover,
.form-card:hover,
.cta-panel:hover,
.contact-card:hover,
.footer-card:hover,
.stat-card:hover,
.detail-card:hover,
.info-card:hover,
.program-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 76px rgba(22, 33, 38, 0.16);
}

.layout-card,
.catalog-card,
.report-card,
.page-hero-panel,
.map-card,
.form-card,
.cta-panel,
.contact-card,
.footer-card,
.stat-card,
.detail-card,
.info-card,
.program-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hidden { display: none !important; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 12, 16, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-dialog {
  position: relative;
  width: min(1200px, 100%);
  max-height: 100%;
  display: grid;
  gap: 12px;
  justify-items: center;
}

.lightbox-image-wrap {
  width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
}

.lightbox-caption {
  color: #f5efe7;
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(22, 33, 38, 0.74);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

[data-animate].is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1024px) {
  .hero-content, .page-hero-grid, .advantage-grid { grid-template-columns: 1fr; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8,
  .footer-grid .footer-card:nth-child(1),
  .footer-grid .footer-card:nth-child(2),
  .footer-grid .footer-card:nth-child(3) { grid-column: span 12; }
  .hero-points { grid-template-columns: 1fr; }

  .site-nav {
    position: fixed;
    inset: 76px 16px auto;
    background: linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(245, 238, 228, 0.96));
    border: 1px solid rgba(22, 33, 38, 0.1);
    border-radius: 24px;
    padding: 18px;
    display: none;
    box-shadow: var(--shadow-deep);
  }

  .site-nav.is-open { display: grid; }
  .site-nav .nav-cta {
    text-align: center;
    justify-content: center;
  }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 720px) {
  .header-inner, .container { width: min(var(--max), calc(100% - 20px)); }
  section { padding: 74px 0; }
  .horizontal-cards { grid-auto-columns: minmax(86vw, 86vw); }
  .cta-row, .button-row, .filter-toolbar, .tabs, .section-head { align-items: stretch; }
  .button, .button-secondary, .button-ghost { width: 100%; }
}
