@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@400;500;600;700&display=swap');

:root {
  --navy: #06131e;
  --navy-deep: #030b12;
  --panel: #0b1d2b;
  --panel-raised: #10283a;
  --text: #f6f8fa;
  --muted: #9aaab6;
  --cyan: #11e3eb;
  --orange: #ff5a1f;
  --orange-light: #ff783f;
  --line: rgba(17, 227, 235, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--navy);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 86px;
  padding: 20px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--text);
  background: rgba(3, 11, 18, .72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; width: max-content; }
.brand-logo {
  display: block;
  width: clamp(150px, 14vw, 200px);
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
.brand-name {
  color: var(--text);
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 21px;
  font-weight: 600;
  text-transform: uppercase;
}
.nav { display: flex; gap: 32px; font-family: "Oswald", Arial Narrow, sans-serif; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nav a { opacity: .72; transition: color .2s ease, opacity .2s ease; }
.nav a:hover { color: var(--cyan); opacity: 1; }
.header-cta {
  justify-self: end;
  padding: 10px 14px;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hero {
  position: relative;
  min-height: min(880px, 100vh);
  overflow: hidden;
  color: var(--text);
  background: var(--navy-deep);
  padding: 170px clamp(20px, 6vw, 96px) 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr);
  align-items: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(3, 11, 18, .98) 0%, rgba(6, 19, 30, .94) 48%, rgba(8, 28, 43, .72) 100%),
    repeating-linear-gradient(90deg, transparent 0 94px, rgba(17, 227, 235, .035) 94px 95px);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  left: -180px;
  bottom: -170px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  opacity: .5;
}
.hero-copy { position: relative; z-index: 2; max-width: 840px; }
.eyebrow {
  margin: 0 0 22px;
  color: var(--orange);
  font-family: "Oswald", Arial Narrow, sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: clamp(62px, 8.5vw, 126px);
  line-height: .88;
  letter-spacing: -.035em;
  font-weight: 700;
  text-transform: uppercase;
}
.hero h1 em { color: var(--cyan); font-style: normal; font-weight: 700; }
.hero-text {
  max-width: 580px;
  margin: 35px 0 30px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.6;
}
.primary-button {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding: 16px 20px;
  color: #fff;
  background: var(--orange);
  border: 1px solid var(--orange);
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: var(--orange-light); }
.primary-button span { font-size: 20px; }
.hero-visual {
  position: relative;
  width: min(43vw, 610px);
  aspect-ratio: 584 / 422;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--cyan);
  box-shadow: 18px 18px 0 rgba(255, 90, 31, .82), 0 0 50px rgba(17, 227, 235, .08);
}
.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(3, 11, 18, .18);
}
.hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

.catalog {
  padding: 110px clamp(20px, 6vw, 96px) 130px;
  background:
    radial-gradient(circle at 100% 20%, rgba(17, 227, 235, .07), transparent 25%),
    var(--navy);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.section-heading h2, .about h2 {
  max-width: 840px;
  margin: 0;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: clamp(50px, 6vw, 84px);
  line-height: .98;
  letter-spacing: -.025em;
  font-weight: 700;
  text-transform: uppercase;
}
.catalog-count { margin: 0 0 7px; color: var(--cyan); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 15px; text-transform: uppercase; white-space: nowrap; }
.filters { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 36px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 10px 17px;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.filter:hover, .filter.is-active { color: var(--navy-deep); background: var(--cyan); border-color: var(--cyan); }
.search { width: min(300px, 100%); display: flex; align-items: center; border-bottom: 1px solid var(--cyan); }
.search input { width: 100%; padding: 10px 0; color: var(--text); border: 0; outline: 0; background: transparent; }
.search input::placeholder { color: var(--muted); }
.search span:last-child { color: var(--cyan); font-size: 24px; transform: rotate(-15deg); }
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 30px); }
.property-card { min-width: 0; background: var(--panel); border: 1px solid rgba(255, 255, 255, .09); }
.property-card:not(.skeleton) { cursor: pointer; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.property-card:not(.skeleton):hover { transform: translateY(-6px); border-color: var(--cyan); box-shadow: 0 20px 45px rgba(0, 0, 0, .35); }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #102332; }
.card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s ease; }
.property-card:hover .card-image img { transform: scale(1.035); }
.card-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 10px;
  color: var(--navy-deep);
  background: var(--cyan);
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.card-body { padding: 23px 22px 25px; }
.card-price { margin: 0 0 12px; color: var(--orange); font-family: "Oswald", Arial Narrow, sans-serif; font-size: clamp(30px, 2.7vw, 40px); font-weight: 700; line-height: 1; }
.card-title { margin: 0; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.45; }
.card-address { min-height: 42px; margin: 7px 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.card-facts { display: flex; gap: 14px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--cyan); font-size: 12px; }
.card-facts span:not(:last-child)::after { content: "·"; margin-left: 14px; color: var(--orange); }
.skeleton { height: 510px; background: linear-gradient(100deg, #0a1b28 20%, #112b3c 40%, #0a1b28 60%); background-size: 220% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position-x: -220%; } }
.empty-state { padding: 70px 20px; text-align: center; border: 1px solid var(--line); background: var(--panel); }
.empty-state button { color: var(--cyan); border: 0; border-bottom: 1px solid; background: transparent; cursor: pointer; }

.about {
  position: relative;
  margin: 0 clamp(20px, 4vw, 64px) 70px;
  padding: clamp(50px, 8vw, 110px);
  display: grid;
  grid-template-columns: 80px 1.3fr .7fr;
  gap: clamp(25px, 5vw, 85px);
  align-items: start;
  color: var(--text);
  background: var(--panel-raised);
  border: 1px solid var(--cyan);
  box-shadow: 14px 14px 0 rgba(255, 90, 31, .7);
}
.about-number { width: 44px; height: 44px; display: grid; place-items: center; color: var(--orange); border: 1px solid var(--orange); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 13px; font-weight: 600; }
.about h2 { color: var(--cyan); font-size: clamp(44px, 5.2vw, 74px); }
.about > p { margin: 42px 0 0; color: var(--muted); line-height: 1.8; font-size: 15px; }

.site-footer {
  padding: 52px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: end;
  gap: 30px;
  background: var(--navy-deep);
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.site-footer p { margin: 8px 0 0; color: var(--muted); }
.footer-contacts { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-style: normal; }
.footer-contacts a { width: max-content; color: var(--orange); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 20px; font-weight: 600; border-bottom: 1px solid var(--orange); }
.footer-top { padding-bottom: 3px; color: var(--cyan); border-bottom: 1px solid var(--cyan); text-transform: uppercase; }
.footer-update { grid-column: 3; justify-self: end; }

.property-dialog {
  width: min(980px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  padding: 0;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--cyan);
}
.property-dialog::backdrop { background: rgba(1, 6, 10, .88); backdrop-filter: blur(6px); }
.dialog-close { position: fixed; z-index: 5; right: max(calc((100vw - 950px) / 2 + 18px), 30px); top: 30px; width: 42px; height: 42px; color: var(--navy-deep); border: 0; background: var(--cyan); cursor: pointer; font-size: 26px; }
.dialog-gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: min(55vh, 520px); overflow: hidden; background: #102332; }
.dialog-gallery img { width: 100%; height: 100%; object-fit: cover; }
.dialog-gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 3px; min-width: 0; }
.dialog-body { padding: clamp(28px, 5vw, 60px); }
.dialog-body .eyebrow { color: var(--cyan); margin-bottom: 14px; }
.dialog-body h3 { margin: 0 0 10px; color: var(--orange); font-family: "Oswald", Arial Narrow, sans-serif; font-size: clamp(44px, 6vw, 70px); font-weight: 700; line-height: 1; }
.dialog-address { color: var(--text); font-weight: 600; }
.dialog-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0; }
.dialog-facts span { padding: 10px 14px; color: var(--cyan); border: 1px solid var(--line); font-size: 12px; }
.dialog-description { max-width: 760px; color: #c2cdd4; line-height: 1.8; white-space: pre-line; }
.dialog-agent { margin-top: 38px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--text); background: var(--navy-deep); border: 1px solid var(--line); }
.dialog-agent div { display: flex; flex-direction: column; gap: 6px; }
.dialog-agent span { color: var(--cyan); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.dialog-agent strong { font-family: "Oswald", Arial Narrow, sans-serif; font-size: 25px; font-weight: 600; text-transform: uppercase; }
.dialog-agent a { padding: 14px 18px; color: #fff; background: var(--orange); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 14px; font-weight: 600; text-transform: uppercase; white-space: nowrap; }
.dialog-agent a:hover { background: var(--orange-light); }

@media (max-width: 940px) {
  .site-header { grid-template-columns: 1fr auto; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 850px; padding-top: 150px; align-items: start; }
  .hero-copy { z-index: 3; }
  .hero-visual { position: absolute; right: 24px; bottom: 6%; width: 52vw; opacity: .78; box-shadow: 12px 12px 0 rgba(255, 90, 31, .78); }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 60px 1fr; }
  .about > p { grid-column: 2; margin-top: 0; }
}

@media (max-width: 620px) {
  .site-header { min-height: 72px; padding: 16px 18px; }
  .brand-logo { width: 145px; max-height: 36px; }
  .brand-name { font-size: 18px; }
  .header-cta { display: none; }
  .hero { min-height: 930px; padding: 125px 20px 50px; }
  .hero h1 { font-size: clamp(58px, 18vw, 80px); }
  .hero-text { max-width: 94%; font-size: 15px; }
  .hero-visual { right: 16px; bottom: 36px; width: calc(100vw - 32px); opacity: 1; box-shadow: 8px 8px 0 rgba(255, 90, 31, .82); }
  .catalog { padding: 80px 16px 90px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 51px; }
  .catalog-count { margin-top: 18px; }
  .filters { flex-direction: column; }
  .search { width: 100%; }
  .property-grid { grid-template-columns: 1fr; }
  .skeleton { height: 460px; }
  .about { margin: 0 8px 58px 0; padding: 55px 22px; grid-template-columns: 1fr; box-shadow: 8px 8px 0 rgba(255, 90, 31, .7); }
  .about-number { display: none; }
  .about > p { grid-column: 1; }
  .site-footer { grid-template-columns: 1fr auto; align-items: start; }
  .footer-contacts { grid-column: 1 / -1; grid-row: 2; margin-top: 12px; }
  .footer-top { grid-column: 2; grid-row: 1; }
  .footer-update { grid-column: 1 / -1; justify-self: start; margin-top: 18px !important; }
  .dialog-gallery { height: 42vh; grid-template-columns: 1fr; }
  .dialog-gallery-side { display: none; }
  .dialog-close { right: 24px; top: 24px; }
  .dialog-agent { align-items: stretch; flex-direction: column; }
  .dialog-agent a { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
