/* Design: half airbnb (white, photo-forward, rounded cards, pill CTAs),
   half teenage engineering (mono micro-labels, lowercase, numbered sections,
   hairline spec sheets, industrial gray panels, orange accents). */

:root {
  --ink: #222222;
  --muted: #717171;
  --bg: #ffffff;
  --panel: #f4f4f2;
  --line: #e6e6e3;
  --hard: #222222;
  --rausch: #ff385c;      /* airbnb — buttons */
  --rausch-dark: #e31c5f;
  --orange: #ff4d00;      /* teenage engineering — technical accents */
  --green: #3f7d4e;       /* "green frame" partitions on the plan */
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans Georgian', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'IBM Plex Mono', Menlo, Consolas, 'Noto Sans Georgian', monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 14px; }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.small { font-family: var(--mono); font-size: 0.72rem; color: var(--muted); text-transform: lowercase; letter-spacing: 0.02em; }

/* mono section labels — te style */
.kicker {
  font-family: var(--mono); font-size: 0.74rem; font-weight: 500;
  text-transform: lowercase; letter-spacing: 0.06em;
  color: var(--muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.kicker .idx { color: var(--orange); font-weight: 700; }
.kicker .idx::after { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--line); margin-left: 10px; vertical-align: middle; }

/* alternating industrial panels */
.panel-section { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; gap: 18px; padding: 14px 24px; max-width: 1180px; margin: 0 auto; }
.brand { font-family: var(--mono); font-size: 0.92rem; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.brand b { color: var(--orange); font-weight: 700; }
nav.main { display: flex; gap: 20px; margin-left: auto; }
nav.main a { text-decoration: none; color: var(--muted); font-family: var(--mono); font-size: 0.78rem; text-transform: lowercase; letter-spacing: 0.03em; }
nav.main a:hover { color: var(--ink); }
.lang-switch { display: flex; gap: 2px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; border-radius: 999px; padding: 4px 10px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lang-switch button.active { background: var(--ink); color: #fff; }

/* pill buttons — airbnb */
.btn {
  display: inline-block; text-decoration: none; border-radius: 999px; cursor: pointer; white-space: nowrap;
  padding: 13px 28px; font-weight: 700; font-size: 0.98rem; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(34, 34, 34, 0.14); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: linear-gradient(90deg, var(--rausch), var(--rausch-dark)); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-nav { padding: 8px 18px; font-size: 0.84rem; }
.btn-big { font-size: 1.1rem; padding: 17px 44px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 26ch; margin-bottom: 18px; }
.hero-sub { max-width: 60ch; color: var(--muted); font-size: 1.1rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 12px; }
.hero .cta-note { margin-bottom: 44px; }

/* investment benefit tiles — te spec cards with orange headline numbers */
.hero-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.benefit {
  display: block; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--orange);
  border-radius: 14px; padding: 16px 18px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.benefit:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(34, 34, 34, 0.1); }
.benefit b { display: block; font-family: var(--mono); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--orange); margin-bottom: 4px; }
.benefit span { font-family: var(--mono); font-size: 0.7rem; text-transform: lowercase; letter-spacing: 0.04em; color: var(--muted); line-height: 1.5; display: block; }

/* airbnb photo mosaic */
.mosaic { position: relative; }
.gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px; gap: 8px;
  border-radius: 18px; overflow: hidden;
}
.g-item { display: block; background: var(--panel); }
.g-item:first-child { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(n+6) { display: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.3s ease; }
.g-item:hover img { transform: scale(1.03); filter: brightness(1.04); }
.g-showall {
  position: absolute; right: 16px; bottom: 16px;
  font-family: var(--mono); font-size: 0.76rem; font-weight: 600; text-transform: lowercase;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  border-radius: 8px; padding: 7px 14px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.g-showall:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(34, 34, 34, 0.18); }
.gallery-src { margin-top: 12px; }

/* spec strip — te style */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hard); border-bottom: 1px solid var(--line);
  margin-top: 36px;
}
.stats-5 { grid-template-columns: repeat(5, 1fr); }
.stat { padding: 18px 18px 16px 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 18px; }
.stat b { display: block; font-family: var(--mono); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.02em; }
.stat span { font-family: var(--mono); font-size: 0.68rem; text-transform: lowercase; letter-spacing: 0.05em; color: var(--muted); }

/* ---------- apartment facts — spec sheet ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: start; }
.facts { border-top: 1px solid var(--hard); margin-top: 26px; }
.facts div { display: flex; justify-content: space-between; gap: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--mono); font-size: 0.76rem; text-transform: lowercase; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
.facts dd { text-align: right; font-weight: 600; font-size: 0.95rem; max-width: 34ch; }

/* green-frame card — airbnb card, te numbered list */
.gf-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.gf-card h3 { margin-bottom: 16px; font-size: 1.1rem; }
.gf-card ul { list-style: none; counter-reset: gf; }
.gf-card li { counter-increment: gf; padding: 7px 0 7px 38px; position: relative; font-size: 0.93rem; border-bottom: 1px solid var(--line); }
.gf-card li:last-child { border-bottom: 0; }
.gf-card li::before {
  content: counter(gf, decimal-leading-zero); position: absolute; left: 0; top: 9px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--orange);
}

/* ---------- plan — technical drawing ---------- */
.plan-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: 0 14px 44px rgba(34, 34, 34, 0.06); }
.plan-card svg { width: 100%; height: auto; font-family: var(--mono); }
.legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 18px; font-family: var(--mono); font-size: 0.74rem; text-transform: lowercase; letter-spacing: 0.03em; color: var(--muted); }
.legend em { font-style: normal; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.chip { width: 22px; height: 10px; border-radius: 2px; display: inline-block; }
.chip.part { background: var(--green); }
.chip.win { background: #eef2f5; border: 2px solid #6b8fa8; }

/* ---------- amenities — airbnb list rows ---------- */
.amenities { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 48px; margin-top: 34px; border-top: 1px solid var(--hard); }
.amenity {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  font-weight: 500; font-size: 0.97rem;
}
.amenity svg { width: 28px; height: 28px; flex: none; stroke: var(--ink); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(17, 17, 17, 0.94); padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.lightbox button {
  position: absolute; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 1.5rem; line-height: 1; cursor: pointer;
  font-family: var(--mono);
}
.lightbox button:hover { background: rgba(255, 255, 255, 0.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- location ---------- */
.map-frame { border: 1px solid var(--line); width: 100%; height: 380px; border-radius: 18px; filter: saturate(0.7) contrast(1.02); }
.loc-list { list-style: none; margin: 22px 0 28px; }
.loc-list li { padding: 8px 0 8px 26px; position: relative; font-size: 0.96rem; }
.loc-list li::before { content: '+'; position: absolute; left: 2px; font-family: var(--mono); color: var(--orange); font-weight: 700; }

/* ---------- price — spec table ---------- */
.price-table { width: 100%; border-collapse: collapse; margin: 30px 0 10px; border-top: 2px solid var(--hard); }
.price-table th, .price-table td { padding: 14px 4px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; text-transform: lowercase; letter-spacing: 0.05em; color: var(--muted); }
.price-table tr:last-child td { font-weight: 700; }
.price-table tr:last-child td:last-child { color: var(--orange); }
.price-table td:last-child { font-family: var(--mono); font-weight: 600; white-space: nowrap; text-align: right; }

/* ---------- mortgage calculator ---------- */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; margin-top: 36px; box-shadow: 0 14px 44px rgba(34, 34, 34, 0.06);
}
.calc h3 { font-size: 1.08rem; margin-bottom: 8px; }
.calc-lead { color: var(--muted); font-size: 0.95rem; max-width: 70ch; margin-bottom: 22px; }
.calc-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: start; }
.calc-rows { border-top: 1px solid var(--hard); }
.calc-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.calc-row span { font-family: var(--mono); font-size: 0.76rem; text-transform: lowercase; letter-spacing: 0.04em; color: var(--muted); }
.calc-row b { font-family: var(--mono); font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.term-wrap { display: inline-flex; align-items: center; gap: 10px; }
.term-switch { display: inline-flex; gap: 2px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 3px; }
.term-switch button {
  border: 0; background: transparent; border-radius: 999px; padding: 4px 12px;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600; color: var(--muted); cursor: pointer;
}
.term-switch button.active { background: var(--ink); color: #fff; }
.term-unit { font-style: normal; font-family: var(--mono); font-size: 0.74rem; text-transform: lowercase; color: var(--muted); }
.calc-result { background: var(--panel); border-radius: 14px; padding: 24px 26px; }
.calc-label { display: block; font-family: var(--mono); font-size: 0.74rem; text-transform: lowercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.calc-result > b { display: block; font-family: var(--mono); font-weight: 700; font-size: 2.4rem; letter-spacing: -0.02em; color: var(--orange); line-height: 1.15; }
.calc-sub { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; }
.calc-sub em { font-style: normal; font-family: var(--mono); font-weight: 600; font-size: 0.9rem; }
.calc-sub i { font-style: normal; font-family: var(--mono); font-size: 0.7rem; text-transform: lowercase; color: var(--muted); }
.calc > .small { margin-top: 18px; }

/* ---------- market charts ---------- */
.chart-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; margin-top: 30px; box-shadow: 0 14px 44px rgba(34, 34, 34, 0.06);
}
.chart-card h3 { font-size: 1.08rem; margin-bottom: 18px; }
.chart-card svg { width: 100%; height: auto; font-family: var(--mono); }
#chart-price, #chart-rev { overflow-x: auto; }
#chart-price svg, #chart-rev svg { min-width: 620px; }
.chart-card .small { margin-top: 14px; max-width: 92ch; }
.rev-stats { margin: 0 0 24px; }

/* ---------- mortgage — airbnb cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 36px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(34, 34, 34, 0.09); }
.card h3 { margin-bottom: 14px; font-size: 1.08rem; }
.card ul { list-style: none; }
.card li { padding: 7px 0 7px 22px; position: relative; font-size: 0.92rem; color: #444; }
.card li::before { content: '·'; position: absolute; left: 4px; font-family: var(--mono); color: var(--orange); font-weight: 700; font-size: 1.2rem; line-height: 1.4; }

/* ---------- CTA ---------- */
.cta { text-align: center; border-top: 1px solid var(--line); }
.cta .kicker { justify-content: center; }
.cta h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.cta p { max-width: 60ch; margin: 16px auto 32px; color: var(--muted); font-size: 1.05rem; }
.cta .sub { display: block; margin-top: 18px; font-family: var(--mono); font-size: 0.76rem; text-transform: lowercase; color: var(--muted); }

footer { padding: 30px 0 44px; font-family: var(--mono); font-size: 0.7rem; text-transform: lowercase; letter-spacing: 0.02em; color: var(--muted); border-top: 1px solid var(--line); }
footer p { margin-bottom: 6px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }

@media (max-width: 880px) {
  nav.main { display: none; }
  .split { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .facts dd { max-width: 24ch; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .g-item:nth-child(n+4) { display: none; }
  .stats, .stats-5 { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .amenities { grid-template-columns: 1fr; }
  .hero-benefits { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; gap: 22px; }
  .calc-result > b { font-size: 2rem; }
}

@media (max-width: 540px) {
  header.site .bar { gap: 8px; flex-wrap: wrap; justify-content: space-between; padding: 10px 16px; }
  .brand { font-size: 0.82rem; }
  .lang-switch { order: 3; }
  .btn-nav { padding: 7px 14px; font-size: 0.8rem; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .g-item:first-child { grid-column: auto; grid-row: auto; }
  .g-item:nth-child(n+2) { display: none; }
  .g-item img { aspect-ratio: 4 / 3; }
}
