:root {
  --navy: #1a2744;
  --navy-deep: #10182c;
  --ink: #16181d;
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --white: #fbfaf6;
  --lime: #c9d63a;
  --lime-2: #a8b52a;
  --muted: #5e6358;
  --line: rgba(26, 39, 68, 0.12);
  --sold: #b42318;
  --free: #2f7d32;
  --shadow: 0 18px 50px rgba(16, 24, 44, 0.14);
  --radius: 18px;
  --header-h: 76px;
  --max: 1180px;
  --font: "Figtree", system-ui, sans-serif;
  --display: "Syne", "Figtree", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  color: var(--lime-2);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1em;
}

.lede {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 62ch;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1280px, calc(100% - 32px));
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(16, 24, 44, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: #fff;
  line-height: 1;
}

.logo strong {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo strong b {
  font-weight: 800;
  background: var(--lime);
  color: var(--navy-deep);
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 3px 6px 2px;
  border-radius: 4px;
  line-height: 1;
}

.logo .addr {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
  margin-top: 4px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  overflow: hidden;
}

.lang a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
}

.lang a.is-active {
  background: var(--lime);
  color: var(--navy-deep);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
}

.burger span,
.burger span::before,
.burger span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  margin: auto;
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  color: #fff;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 28%;
  transform: scale(1.04);
  filter: saturate(0.92) contrast(1.05);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 44, 0.5) 0%, rgba(16, 24, 44, 0.2) 36%, rgba(16, 24, 44, 0.88) 100%),
    linear-gradient(90deg, rgba(16, 24, 44, 0.58), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 0 88px;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(4.2rem, 12vw, 9.5rem);
  letter-spacing: -0.06em;
  margin: 12px 0 18px;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-copy {
  max-width: 38rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.86);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

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

.btn-lime {
  background: var(--lime);
  color: var(--navy-deep);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-navy {
  background: var(--navy);
  color: #fff;
}

.hero-meta {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-meta div {
  padding: 22px 18px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.hero-meta div:last-child {
  border-right: 0;
}

.hero-meta strong {
  display: block;
  font-family: var(--display);
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.hero-meta span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Sections */
section[id] {
  scroll-margin-top: 88px;
}

section.block {
  padding: 110px 0 80px;
}

#projekts {
  padding-top: 90px;
}

section.block.tight {
  padding-top: 80px;
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 0.8fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .copy {
  order: 2;
}

.media-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
  min-height: 360px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.media-card figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(16, 24, 44, 0.78);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 999px;
}

.specs {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.specs article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
}

.specs h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.specs p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Location */
.location-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

.media-stack {
  display: grid;
  gap: 16px;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 200px 160px;
  gap: 12px;
}

.photo-mosaic a {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #ccc;
}

.photo-mosaic a:first-child {
  grid-row: 1 / 3;
}

.photo-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-mosaic a:hover img {
  transform: scale(1.05);
}

.map-panel {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.map-panel iframe,
.map-panel .osm {
  width: 100%;
  height: 280px;
  border: 0;
  filter: grayscale(0.2) contrast(1.05);
}

.map-panel .map-legacy {
  display: flex;
  gap: 18px;
  padding: 18px 20px 20px;
  align-items: center;
}

.map-panel .map-legacy img {
  width: 150px;
  height: auto;
  border-radius: 10px;
}

.map-panel p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.credits {
  margin-top: 14px;
  font-size: 11px;
  color: #8a8e84;
}

/* Floors */
.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.floor-tabs button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font: 700 13px/1 var(--font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.floor-tabs button.is-active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.floor-panel {
  display: none;
}

.floor-panel.is-active {
  display: block;
}

.units {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0 28px;
}

.unit {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.unit-plan {
  background: #0f1524;
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 16px;
  cursor: zoom-in;
}

.unit-plan img {
  max-height: 260px;
  width: auto;
  max-width: 100%;
}

.unit-body {
  padding: 18px 20px 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
}

.unit-body h3 {
  font-size: 1.2rem;
}

.unit-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.badge-free { background: var(--free); }
.badge-sold { background: var(--sold); }

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

.gallery a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: #d7d2c6;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery a:hover img {
  transform: scale(1.06);
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 70ch;
}

/* Rent */
.rent-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
}

.rent-points {
  display: grid;
  gap: 12px;
}

.rent-points li {
  list-style: none;
  background: var(--white);
  border-radius: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
}

.rent-points {
  margin: 0;
  padding: 0;
}

.rent-points strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 4px;
}

/* Contact */
.contact {
  background: var(--navy-deep);
  color: #fff;
  padding: 100px 0 80px;
}

.contact h2 {
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact a {
  color: var(--lime);
  text-decoration: none;
}

.contact dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px 16px;
  margin: 28px 0 0;
}

.contact dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  padding-top: 4px;
}

.contact dd {
  margin: 0;
  font-size: 1.15rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px;
}

/* Footer */
.site-footer {
  background: #0c1220;
  color: rgba(255, 255, 255, 0.62);
  padding: 22px 0;
  font-size: 13px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-credit a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 214, 58, 0.7);
}

.footer-credit a:hover {
  color: var(--lime);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 22, 0.94);
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}

.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.7s ease forwards;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .burger { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: rgba(16, 24, 44, 0.96);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    display: none;
  }
  .site-header.menu-open .nav { display: flex; }
  .nav a { padding: 14px 12px; }
  .hero-meta {
    grid-template-columns: 1fr 1fr;
    transform: none;
    margin-top: -40px;
    position: relative;
    z-index: 2;
  }
  .hero-meta div:nth-child(1),
  .hero-meta div:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }
  .hero-meta div:nth-child(2) { border-right: 0; }
  .section-head,
  .split,
  .split.reverse,
  .location-grid,
  .units,
  .rent-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .copy { order: 0; }
  .photo-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px 160px;
  }
  .gallery { grid-template-columns: 1fr 1fr; }
  .hero-content { padding-bottom: 56px; }
  .contact dl { grid-template-columns: 1fr; gap: 2px 0; }
  .contact dt { padding-top: 12px; }
}

.map-ext {
  display: inline-block;
  margin: 0 20px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

@media print {
  .site-header,
  .lightbox,
  .burger {
    display: none !important;
  }
  .hero {
    min-height: 70vh;
    break-after: page;
  }
  body {
    background: #fff;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 28px); }
  .hero h1 { font-size: 4.2rem; }
  .gallery { grid-template-columns: 1fr; }
  .photo-mosaic { grid-template-columns: 1fr; grid-template-rows: none; }
  .photo-mosaic a:first-child { grid-row: auto; height: 220px; }
  .site-footer .wrap { flex-direction: column; align-items: flex-start; }
}
