@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;
  --void-yellow: #ffe500;
  --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-controls { display: flex; flex-direction: column; gap: 12px; }
.filter-row { display: flex; align-items: center; gap: 14px; }
.filter-label {
  width: 54px;
  flex: 0 0 54px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.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-track { width: 100%; height: 100%; display: flex; overflow: hidden; }
.card-image-track img { width: 100%; height: 100%; display: block; flex: 0 0 100%; object-fit: cover; transition: transform .6s ease; }
.card-image-track img:not(:first-child) { display: none; }
.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-photo-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: none;
  padding: 6px 9px;
  color: #fff;
  background: rgba(3, 11, 18, .78);
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  pointer-events: none;
}
.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; }
.pagination { margin-top: 48px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pagination[hidden] { display: none; }
.page-button {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  font-family: "Oswald", Arial Narrow, sans-serif;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}
.page-button:hover { color: var(--navy-deep); background: var(--cyan); border-color: var(--cyan); }
.page-button.is-active { color: #fff; background: var(--orange); border-color: var(--orange); }
.page-button:disabled { color: #536674; border-color: rgba(83, 102, 116, .35); cursor: default; background: transparent; }
.page-ellipsis { width: 28px; color: var(--muted); text-align: center; }

.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; }

.promo-banner {
  margin: clamp(32px, 4vw, 64px);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 12px 12px 0 rgba(255, 90, 31, .7);
}
.promo-banner a { display: block; }
.promo-banner img { display: block; width: 100%; height: auto; }

.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-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.footer-logo-crop { width: clamp(150px, 14vw, 200px); height: 28px; overflow: hidden; }
.footer-logo { display: block; width: 100%; height: auto; }
.footer-company { max-width: 280px; margin: 0 !important; color: var(--text) !important; font-weight: 600; line-height: 1.5; }
.footer-inn { margin: -4px 0 0 !important; letter-spacing: .04em; }
.footer-contacts { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-style: normal; }
.footer-contacts span { line-height: 1.55; }
.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-privacy { grid-column: 3; justify-self: end; padding-bottom: 2px; color: var(--muted); border-bottom: 1px dashed rgba(154, 170, 182, .45); cursor: default; }
.footer-credit {
  grid-column: 1 / -1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: rgba(246, 248, 250, .64);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.footer-credit-plus {
  color: var(--void-yellow);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  transition: transform .2s ease;
}
.footer-credit strong { color: var(--text); font-weight: 600; }
.footer-credit:hover { color: var(--text); }
.footer-credit:hover .footer-credit-plus { transform: rotate(90deg); }
.footer-credit:focus-visible { outline: 2px solid var(--void-yellow); outline-offset: 6px; }

.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-shell { position: relative; overflow: hidden; background: #02090f; }
.dialog-gallery {
  display: flex;
  height: min(72vh, 680px);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dialog-gallery::-webkit-scrollbar { display: none; }
.dialog-slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #02090f;
  border: 0;
  cursor: e-resize;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.dialog-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 52px;
  height: 52px;
  color: var(--navy-deep);
  background: var(--cyan);
  border: 0;
  cursor: pointer;
  font-size: 25px;
  transform: translateY(-50%);
  transition: background .2s ease, transform .2s ease;
}
.gallery-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.gallery-nav-previous { left: 18px; }
.gallery-nav-next { right: 18px; }
.dialog-photo-count { position: absolute; z-index: 4; right: 18px; bottom: 18px; padding: 9px 12px; color: #fff; background: rgba(1, 12, 20, .82); font-family: "Oswald", Arial Narrow, sans-serif; font-size: 12px; letter-spacing: .08em; pointer-events: none; }
.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); }
  .promo-banner { margin: 24px 16px 48px; box-shadow: 7px 7px 0 rgba(255, 90, 31, .7); }
  .catalog { padding: 80px 16px 90px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 51px; }
  .catalog-count { margin-top: 18px; }
  .filters { flex-direction: column; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .filter-label { width: auto; flex-basis: auto; }
  .search { width: 100%; }
  .property-grid { grid-template-columns: 1fr; }
  .card-image-track {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .card-image-track::-webkit-scrollbar { display: none; }
  .card-image-track img,
  .card-image-track img:not(:first-child) { display: block; scroll-snap-align: start; scroll-snap-stop: always; }
  .card-image.has-gallery .card-photo-count { display: block; }
  .property-card:hover .card-image img { transform: none; }
  .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-logo-crop { width: 145px; height: 23px; }
  .footer-privacy { grid-column: 1 / -1; justify-self: start; margin-top: 18px; }
  .footer-credit { justify-self: start; margin-top: 4px; }
  .dialog-gallery { height: min(58vh, 520px); }
  .gallery-nav { width: 44px; height: 44px; font-size: 21px; }
  .gallery-nav-previous { left: 10px; }
  .gallery-nav-next { right: 10px; }
  .dialog-photo-count { right: 14px; bottom: 14px; }
  .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; }
}
