:root {
  --bg: #f7f4ef;
  --panel: #ffffff;
  --panel-2: #f0ece6;
  --text: #171318;
  --muted: #69616a;
  --line: rgba(23, 19, 24, 0.12);
  --magenta: #f02aa7;
  --red: #ef3b37;
  --yellow: #ffd14b;
  --cyan: #74d8ef;
  --blue: #5374ff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(26, 20, 30, 0.14);
  --container: min(1160px, calc(100% - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(240, 42, 167, 0.08), transparent 28%),
    radial-gradient(circle at 85% 8%, rgba(116, 216, 239, 0.18), transparent 28%),
    var(--bg);
  font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: var(--container);
  margin: 16px auto 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 5, 7, 0.76);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 7, 0.88);
  border-color: rgba(240, 42, 167, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.brand span {
  font-size: 22px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.nav a {
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--text);
}

.header-phone,
.btn,
.contact-link,
.mobile-cta {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
}

.header-phone {
  padding: 0 18px;
  color: #080509;
  background: var(--yellow);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 118px 0 32px;
  color: #f7f5f2;
  overflow: hidden;
}

.hero-bg,
.hero-shade,
.final-bg {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.5) 45%, rgba(0, 0, 0, 0.15)),
    linear-gradient(0deg, var(--bg) 0%, rgba(0, 0, 0, 0.05) 34%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18% -8% auto auto;
  width: 78%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--magenta), var(--cyan), transparent);
  transform: rotate(-10deg);
  opacity: 0.8;
}

.hero-grid,
.hero-benefits {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--magenta);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 760px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions,
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  border: 0;
  min-width: 190px;
  padding: 0 24px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.contact-link:hover,
.gallery-item:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--yellow), var(--magenta));
  box-shadow: 0 18px 42px rgba(240, 42, 167, 0.26);
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(12, 12, 16, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span,
.spec-card span,
.form-note {
  color: var(--muted);
  font-size: 14px;
}

.hero-panel strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-benefits span {
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.36);
  color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

.section-head p:not(.section-kicker),
.map-copy p,
.final-inner > div > p {
  color: var(--muted);
  font-size: 18px;
}

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

.gallery-item {
  position: relative;
  min-height: 180px;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--panel);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.gallery-item:nth-child(1),
.gallery-item:nth-child(8) {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 372px;
}

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

.gallery-item:hover img {
  transform: scale(1.055);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.32));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.spec-grid,
.district-grid,
.docs-grid {
  display: grid;
  gap: 12px;
}

.spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spec-card,
.district-card,
.doc-card,
.about-copy,
.lead-form,
.map-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 60px rgba(26, 20, 30, 0.08);
}

.spec-card {
  padding: 22px;
}

.spec-card strong {
  display: block;
  margin-top: 6px;
  font-size: 25px;
}

.about-copy {
  padding: 32px;
  color: #302a31;
  font-size: 18px;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.district-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.district-card,
.doc-card {
  padding: 22px;
}

.district-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #050505;
  background: linear-gradient(135deg, var(--yellow), var(--cyan));
  font-weight: 900;
}

.district-card strong,
.doc-card strong {
  display: block;
  font-size: 18px;
}

.district-card span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.map-section {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.map-copy {
  padding: 34px;
}

.map-frame {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(26, 20, 30, 0.08);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 440px;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.plan-section.is-hidden {
  display: none;
}

.plan-card {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  cursor: zoom-in;
}

.plan-card img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
}

.docs-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.doc-card {
  position: relative;
  min-height: 112px;
  overflow: hidden;
}

.doc-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(var(--magenta), var(--yellow));
}

.final-section {
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}

.final-bg {
  background:
    linear-gradient(118deg, rgba(240, 42, 167, 0.11), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(116, 216, 239, 0.24), transparent 28%),
    linear-gradient(180deg, #ffffff, #f7f4ef);
  opacity: 1;
}

.final-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 36px;
  align-items: center;
}

.final-inner h2 {
  max-width: 650px;
}

.contact-link {
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid rgba(23, 19, 24, 0.14);
  background: rgba(255, 255, 255, 0.74);
  transition: transform 0.2s ease, background 0.2s ease;
}

.lead-form {
  padding: 26px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.lead-form label {
  display: block;
  margin-bottom: 16px;
}

.lead-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 14px;
}

.lead-form input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid rgba(23, 19, 24, 0.16);
  border-radius: var(--radius);
  outline: 0;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lead-form input:focus {
  border-color: var(--magenta);
  box-shadow: 0 0 0 4px rgba(240, 42, 167, 0.15);
}

.realtor-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: center;
  margin: 2px 0 18px;
  padding: 14px;
  border: 1px solid rgba(23, 19, 24, 0.12);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(240, 42, 167, 0.08), rgba(116, 216, 239, 0.1));
}

.realtor-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid #fff;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, 0.95) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.9) 0 29%, transparent 30%),
    linear-gradient(135deg, var(--magenta), var(--cyan));
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 32px rgba(26, 20, 30, 0.14);
}

.realtor-card strong,
.realtor-card a {
  display: block;
}

.realtor-card strong {
  margin-top: 3px;
  font-size: 17px;
}

.realtor-card a {
  margin-top: 2px;
  color: var(--magenta);
  font-weight: 800;
}

.lead-form .btn {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  margin: 14px 0 0;
}

.lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(1120px, 92vw);
  max-height: 82vh;
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: var(--shadow);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  font-size: 32px;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translateY(-50%);
  font-size: 42px;
}

.lightbox-prev {
  left: 22px;
}

.lightbox-next {
  right: 22px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.8);
}

.mobile-cta {
  position: fixed;
  z-index: 60;
  left: 14px;
  right: 14px;
  bottom: 14px;
  color: #050505;
  background: linear-gradient(135deg, var(--yellow), var(--magenta));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  transform: translateY(90px);
  transition: transform 0.28s ease;
}

.mobile-cta.is-visible {
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  :root {
    --container: min(100% - 28px, 760px);
  }

  .site-header {
    margin-top: 10px;
  }

  .nav,
  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
  }

  .hero-grid,
  .about-layout,
  .map-section,
  .final-inner {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-panel div {
    border-bottom: 0;
    border-right: 1px solid var(--line);
  }

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

  .gallery,
  .district-grid,
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    width: calc(100% - 20px);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-bottom: 24px;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.74) 76%, var(--bg)),
      linear-gradient(90deg, rgba(0, 0, 0, 0.26), transparent);
  }

  .hero-bg::before {
    width: 420px;
    height: 420px;
    right: -180px;
    top: 120px;
  }

  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 32px;
  }

  .hero-actions,
  .contact-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .hero-panel,
  .spec-grid,
  .gallery,
  .district-grid,
  .docs-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-panel div:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .gallery-item,
  .gallery-item:nth-child(1),
  .gallery-item:nth-child(8) {
    min-height: 250px;
  }

  .about-copy,
  .map-copy,
  .lead-form {
    padding: 22px;
  }

  .map-frame,
  .map-frame iframe {
    min-height: 340px;
  }

  .final-section {
    padding: 70px 0;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-counter {
    bottom: 84px;
  }
}
