:root {
  --ink: #16181a;
  --muted: #6c7278;
  --rule: #e3e1dd;
  --accent: #2f4f4f;
  --accent-dk: #24403f;
  --bg: #fbfaf8;
  --card: #fff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- первый экран ---------- */

.hero { position: relative; background: #0f1112; }

.hero-img {
  width: 100%;
  height: 54vh;
  min-height: 260px;
  max-height: 560px;
  object-fit: cover;
}

.hero-body {
  padding: 28px 0 34px;
  background: #16181a;
  color: #fff;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 14px;
  color: #c6cdd0;
  letter-spacing: .2px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -.5px;
}

.price {
  margin: 8px 0 18px;
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 700;
}

.price span { font-weight: 400; font-size: .62em; color: #c6cdd0; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  font-size: 14px;
  color: #c6cdd0;
}

.hero-facts b { color: #fff; font-size: 17px; margin-right: 5px; }

/* ---------- кнопки ---------- */

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

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: #25d366;
  color: #06331a;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 2px solid #25d366;
}

.btn-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }

.btn:hover { filter: brightness(1.06); }
.btn-alt:hover { background: rgba(255,255,255,.12); filter: none; }

/* ---------- секции ---------- */

.sec { padding: 52px 20px 8px; }

h2 {
  margin: 0 0 22px;
  font-size: clamp(23px, 3.6vw, 31px);
  letter-spacing: -.3px;
}

h3 { margin: 0 0 10px; font-size: 17px; }

.lede { max-width: 720px; }
.lede p { margin: 0 0 14px; font-size: 18px; }

.note {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 780px;
}

/* ---------- галерея ---------- */

.gal-title {
  margin: 26px 0 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
}

.gal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.gal-item {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #e9e7e3;
  aspect-ratio: 3 / 2;
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.gal-item:hover img { transform: scale(1.04); }

/* ---------- планировка ---------- */

.floors {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.floor {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 18px 20px;
}

.floor h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
}

.floor h3 span { font-weight: 400; font-size: 14px; color: var(--muted); }

.floor ul { margin: 0; padding: 0; list-style: none; font-size: 15px; }

.floor li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px dotted var(--rule);
}

.floor li:last-child { border-bottom: 0; }
.floor li span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- карточки ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 20px 22px;
}

.card p { margin: 0; font-size: 15px; }

.ticks { margin: 0; padding: 0; list-style: none; font-size: 15px; }

.ticks li {
  position: relative;
  padding: 5px 0 5px 22px;
  border-bottom: 1px dotted var(--rule);
}

.ticks li:last-child { border-bottom: 0; }

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
}

.loc { margin: 0; padding: 0; list-style: none; font-size: 15px; }

.loc li {
  display: flex;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dotted var(--rule);
}

.loc b { flex: 0 0 110px; color: var(--accent); }

.map-link { margin: 18px 0 0; font-size: 15px; }
.map-link a { color: var(--accent); }

/* ---------- цена ---------- */

.band { margin: 8px 0 34px; }

.band-bar {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e8ede9 0%, #b7c9c1 55%, #85a099 100%);
}

.tick {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 20px;
  background: rgba(0,0,0,.28);
  transform: translateX(-50%);
}

.us {
  position: absolute;
  top: -6px;
  width: 12px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  transform: translateX(-50%);
}

.us b {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.band-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  min-width: 460px;
}

th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--rule); }
th { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
td:not(:first-child), th:not(:first-child) { text-align: right; }
tr.me { background: #eef3f0; font-weight: 700; }
tr.me td { color: var(--accent-dk); }

/* ---------- подвал ---------- */

.foot {
  margin-top: 60px;
  padding: 52px 0 44px;
  background: #16181a;
  color: #fff;
}

.foot h2 { margin-bottom: 10px; }
.foot p { max-width: 620px; color: #c6cdd0; font-size: 16px; }
.foot .cta { margin-top: 24px; }

.foot-note { margin-top: 26px; font-size: 14px; color: #8d949a; }
.foot-note a { color: #c6cdd0; }

/* ---------- просмотр фотографии ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8,9,10,.94);
  padding: 20px;
}

.lb[hidden] { display: none; }

.lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.lb button {
  position: absolute;
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
}

.lb button:hover { background: rgba(255,255,255,.24); }

.lb-close { top: 16px; right: 16px; width: 44px; height: 44px; font-size: 26px; }

.lb-prev, .lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 32px;
}

.lb-prev { left: 14px; }
.lb-next { right: 14px; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero-body { padding: 22px 0 26px; }
  .hero-facts { gap: 8px 18px; font-size: 13px; }
  .btn { padding: 12px 20px; font-size: 15px; }
  .cta .btn { flex: 1 1 100%; text-align: center; }
  .sec { padding-top: 40px; }
  .gal-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .loc b { flex-basis: 96px; }
  .lb-prev, .lb-next { width: 42px; height: 42px; font-size: 26px; }
}
