:root {
  --red: #c8102e;
  --red-dark: #9b0a22;
  --red-soft: #f5e6e8;
  --red-rgb: 200, 16, 46;
  --ink: #14171c;
  --ink-soft: #2c333d;
  --ink-darkest: #0e1115;
  --muted: #5b6470;
  --line: #e6e8ec;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --field-bg: #f6f8fa;
  --field-border: #d3dde3;
  --field-label: #6f8a9c;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(20, 23, 28, 0.06);
  --shadow-lg: 0 12px 40px rgba(20, 23, 28, 0.12);
  --container: 1240px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 0;
  top: -100px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 6px 0;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; }

/* Focus-visible */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible { outline-offset: 4px; }

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2,
.hero h1, .apt-info h1, .legal h1,
.eyebrow, .section-eyebrow, .section-head .eyebrow {
  font-family: 'Unbounded', 'Onest', sans-serif;
}
h1, h2, h3, h4, .hero h1, .apt-info h1, .legal h1 { letter-spacing: -0.02em; overflow-wrap: break-word; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
button { font: inherit; cursor: pointer; border: none; background: none; }

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

/* ───── Top bar ───── */
.topbar {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  background: #fff;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  gap: 24px;
}
.topbar a:hover { color: var(--red); }
.topbar .top-links a { margin-right: 18px; }
.topbar .top-contact { display: flex; gap: 18px; align-items: center; }

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  height: 78px;
  gap: 32px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
footer .logo img { filter: brightness(0) invert(1); }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--red);
  transition: width .25s ease;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.phone {
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
}

/* ───── Buttons ───── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .2px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--red-rgb), .22);
}
.btn-primary:hover {
  background: var(--red-dark);
  color: #fff;
  box-shadow: 0 8px 22px rgba(var(--red-rgb), .32);
}
.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); padding: 10px 16px; }
.btn-ghost:hover { color: var(--red); }

/* ───── Hero ───── */
.hero {
  position: relative;
  min-height: clamp(440px, 70vh, 640px);
  background:
    linear-gradient(180deg, rgba(20,23,28,.35) 0%, rgba(20,23,28,.68) 100%),
    url('images/building.jpg') center/cover no-repeat;
  color: #fff;
  display: flex;
  align-items: flex-end;
  padding: 72px 0;
}
.hero .container { width: 100%; }
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(28px, 6vw, 60px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 900px;
  margin-bottom: 18px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero .lead {
  font-size: clamp(16px, 2.4vw, 19px);
  max-width: 640px;
  opacity: .92;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-on-dark {
  border-color: rgba(255, 255, 255, .7);
  color: #fff;
  background: transparent;
}
.btn-on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
@media (max-width: 560px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 140px; }
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero-meta div span {
  display: block;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .7;
  margin-bottom: 4px;
}
.hero-meta div strong {
  font-size: 22px;
  font-weight: 700;
}

/* ───── Sections ───── */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 48px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.5px;
  max-width: 720px;
}
.section-head p {
  color: var(--muted);
  max-width: 380px;
}

/* ───── Stats strip ───── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; }
.stat strong {
  display: block;
  font-size: 38px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.stat span {
  color: var(--muted);
  font-size: 14px;
}

/* ───── Feature grid ───── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: box-shadow .25s ease, border-color .25s ease;
}
.feature:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-lg);
}
.feature .icon {
  width: 48px; height: 48px;
  background: var(--red-soft);
  color: var(--red);
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-size: 22px;
  font-weight: 700;
}
.feature h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 600;
}
.feature p { color: var(--muted); font-size: 14.5px; }

/* ───── Gallery ───── */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 12px;
}
.gallery .item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: var(--bg-soft);
}
.gallery .item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery .item:hover img { transform: scale(1.05); }
.gallery .item.tall { grid-row: span 2; }
.gallery .item.wide { grid-column: span 2; }

/* ───── Apartment list / cards ───── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .photo {
  aspect-ratio: 16 / 11;
  background: var(--bg-soft);
  overflow: hidden;
}
.card .photo img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 22px 24px 26px; }
.card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.card h3 { font-size: 19px; margin-bottom: 8px; font-weight: 600; }
.card .meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.card .price { font-size: 22px; font-weight: 700; color: var(--ink); }

/* ───── Two-col layout ───── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.text-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 980px;
}
.section-divider {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .text-cols { grid-template-columns: 1fr; gap: 24px; }
  .section-divider { margin-top: 40px; padding-top: 32px; }
}
.split h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 18px; line-height: 1.15; }
.split p { color: var(--muted); margin-bottom: 14px; }

/* ───── List with red checks ───── */
.checklist { list-style: none; margin: 18px 0; }
.checklist li {
  position: relative;
  padding: 8px 0 8px 32px;
  border-bottom: 1px solid var(--line);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px;
  background: var(--red);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 16px no-repeat;
}

/* ───── Apartment detail page ───── */
.apt-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  padding: 56px 0;
  align-items: center;
}
.slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.slider-stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--ink-darkest);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slider-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.slider-stage img.active { opacity: 1; }
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  cursor: pointer;
  transition: background .2s, transform .2s;
  z-index: 2;
}
.slider-arrow:hover { background: var(--red); color: #fff; transform: translateY(-50%) scale(1.06); }
.slider-arrow.prev { left: 16px; }
.slider-arrow.next { right: 16px; }
.slider-counter {
  position: absolute;
  bottom: 16px; right: 16px;
  background: rgba(20,23,28,.72);
  color: #fff;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  z-index: 2;
}
.slider-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.slider-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-soft);
  transition: border-color .2s, transform .2s;
}
.slider-thumbs button:hover { transform: translateY(-2px); }
.slider-thumbs button.active { border-color: var(--red); }
.slider-thumbs img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.apt-info .price-block {
  border-top: 3px solid var(--red);
  background: #fff;
  padding: 30px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  margin-top: 24px;
}
.apt-info h1 {
  font-size: clamp(24px, 4.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 700;
  margin-bottom: 12px;
  overflow-wrap: break-word;
  hyphens: auto;
}
.apt-info .badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.apt-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 24px 0;
}
.apt-specs div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.apt-specs span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.apt-specs strong { font-size: 18px; font-weight: 600; }

.plan-section {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.plan-section .plan-img {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ───── Horizontal photo carousel ───── */
.h-carousel { position: relative; }
.h-carousel-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  scrollbar-width: none;
}
.h-carousel-track::-webkit-scrollbar { display: none; }
.h-carousel-track figure {
  flex: 0 0 auto;
  width: clamp(280px, 42vw, 560px);
  scroll-snap-align: start;
  margin: 0;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
}
.h-carousel-track figure:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.h-carousel-track img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}
.h-carousel-track figure:hover img { transform: scale(1.04); }
.h-carousel-track figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px 22px 18px;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 17, 21, 0.78) 70%);
  color: #fff;
  font-size: 14px;
  letter-spacing: .2px;
}
.h-carousel-track figcaption strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
}
.h-carousel-track figcaption span {
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: .8;
}
.h-carousel-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.h-carousel-progress {
  flex: 1;
  height: 3px;
  background: var(--line);
  margin-right: 24px;
  border-radius: 2px;
  overflow: hidden;
}
.h-carousel-progress-bar {
  height: 100%;
  background: var(--red);
  width: 20%;
  transition: width .3s ease;
}
.h-carousel-buttons { display: flex; gap: 10px; }
.h-carousel-buttons button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  transition: all .2s;
}
.h-carousel-buttons button:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.h-carousel-buttons button:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
  background: #fff;
  color: var(--ink);
}

/* ───── Lightbox ───── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox .close {
  position: absolute;
  top: 24px; right: 28px;
  background: transparent;
  color: #fff;
  font-size: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  transition: all .2s;
}
.lightbox .close:hover { background: var(--red); border-color: var(--red); }
.lightbox .nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  font-size: 24px;
  transition: all .2s;
}
.lightbox .nav-btn:hover { background: var(--red); border-color: var(--red); }
.lightbox .nav-btn.prev { left: 28px; }
.lightbox .nav-btn.next { right: 28px; }

/* ───── CTA banner ───── */
.cta-banner {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
}
.cta-banner h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.15;
}
.cta-banner p { opacity: .9; max-width: 460px; }
.cta-banner .btn {
  background: #fff;
  color: var(--red);
  white-space: nowrap;
}
.cta-banner .btn:hover { background: var(--ink); color: #fff; }

/* ───── Inline contact form ───── */
.contact-form-section {
  background: linear-gradient(135deg, #14171c 0%, #1f242c 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.contact-form-section::before {
  content: '';
  position: absolute;
  right: -200px; top: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--red-rgb), .25) 0%, transparent 70%);
  pointer-events: none;
}
.contact-form-section::after {
  content: '';
  position: absolute;
  left: -150px; bottom: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(var(--red-rgb), .12) 0%, transparent 70%);
  pointer-events: none;
}
.contact-form-section .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.contact-form-section .info span.eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.contact-form-section h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 18px;
}
.contact-form-section .info p {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.75);
  margin-bottom: 28px;
  max-width: 480px;
}
.contact-form-section .info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.contact-form-section .info-row:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-form-section .info-row .ic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(var(--red-rgb), .2);
  color: var(--red);
  display: grid; place-items: center;
  flex: 0 0 36px;
  font-weight: 700;
}
.contact-form-section .info-row a { color: #fff; font-weight: 600; }
.contact-form-section .info-row a:hover { color: var(--red); }

.contact-form {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 40px 40px 36px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}
.contact-form h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -.2px;
}
.contact-form .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
}
.contact-form .field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}
.contact-form .field input,
.contact-form .field textarea {
  font: inherit;
  width: 100%;
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1.5px solid var(--field-border);
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.contact-form .field input {
  height: 58px;
  padding: 24px 20px 8px;
}
.contact-form .field textarea {
  padding: 26px 20px 12px;
  min-height: 110px;
  resize: vertical;
}
.contact-form .field input:focus,
.contact-form .field textarea:focus {
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--red-rgb), .12);
}
.contact-form .field label {
  position: absolute;
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
  font-size: 1rem;
  font-weight: 400;
  color: var(--field-label);
  pointer-events: none;
  transition: top .15s ease, font-size .15s ease, font-weight .15s ease, transform .15s ease, color .15s ease;
}
.contact-form .field textarea ~ label {
  top: 22px;
  transform: none;
}
.contact-form .field input:focus ~ label,
.contact-form .field input:not(:placeholder-shown) ~ label,
.contact-form .field textarea:focus ~ label,
.contact-form .field textarea:not(:placeholder-shown) ~ label {
  top: 10px;
  transform: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--field-label);
}
.contact-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-form .row-2 .field { margin-bottom: 0; }
.contact-form .submit-row {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.contact-form .btn { flex: 1; min-width: 200px; padding: 15px 28px; }
.contact-form .privacy {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  flex: 1;
  min-width: 220px;
}
.contact-form .privacy a { color: var(--red); }
.contact-form .privacy a:hover { color: var(--red-dark); }
.contact-form .success {
  display: none;
  padding: 16px 18px;
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, .35);
  color: #1e7e34;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-top: 14px;
}
.contact-form.sent .success { display: block; }
.contact-form.sent form { display: none; }
.contact-form .form-error {
  margin-top: 14px;
  padding: 14px 16px;
  background: var(--red-soft);
  border: 1px solid var(--red);
  color: var(--red-dark);
  border-radius: var(--radius);
  font-size: 14px;
}
.contact-form .form-error[hidden] { display: none; }
.contact-form button[type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }

@media (max-width: 960px) {
  .contact-form-section { padding: 64px 0; }
  .contact-form-section .container { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 30px 24px 28px; }
  .contact-form .row-2 { grid-template-columns: 1fr; }
}

/* ───── Footer ───── */
footer {
  background: var(--ink-darkest);
  color: #b3b8c1;
  padding: 64px 0 28px;
  font-size: 14px;
}
footer .grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
footer .grid.grid-2 {
  grid-template-columns: 2fr 1fr;
  gap: 80px;
  align-items: start;
}
footer .footer-logo img {
  height: 64px;
  filter: brightness(0) invert(1);
}
footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 600;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a:hover { color: var(--red); }
footer .logo { color: #fff; margin-bottom: 14px; }
footer .logo small { color: #6b7280; }
footer p { line-height: 1.6; }
footer .bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: #6b7280;
}

/* ───── Feature blocks (long landing) ───── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.feature-block:first-of-type { border-top: none; padding-top: 0; }
.feature-block.reverse > div:first-child { order: 2; }
.feature-block .num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.feature-block h3 {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.3px;
  margin-bottom: 16px;
}
.feature-block p {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.feature-block > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.feature-block > img.wide { aspect-ratio: 16 / 9; }
.feature-block .tab-collage { aspect-ratio: 4 / 3; }
@media (max-width: 960px) {
  .feature-block { grid-template-columns: 1fr; gap: 24px; padding: 40px 0; }
  .feature-block.reverse > div:first-child { order: 0; }
}

/* ───── Video block ───── */
.video-block {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--ink-darkest);
  max-width: 1080px;
  margin: 0 auto;
}
.video-block iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ───── Tabs ───── */
.tabs { display: block; }
.tabs-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar { display: none; }
.tabs-nav button {
  padding: 16px 22px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color .2s, border-color .2s;
  margin-bottom: -1px;
}
.tabs-nav button:hover { color: var(--ink); }
.tabs-nav button.active {
  color: var(--red);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tab-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.tab-content > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* ───── Mini slider (inside feature blocks) ───── */
.mini-slider { position: relative; }
.mini-slider-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-darkest);
  box-shadow: var(--shadow);
}
.mini-slider-stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.mini-slider-stage img.active { opacity: 1; }
.mini-slider .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  color: var(--ink);
  font-size: 20px;
  font-weight: 600;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: background .2s, transform .2s;
  z-index: 2;
}
.mini-slider .arrow:hover { background: var(--red); color: #fff; }
.mini-slider .arrow.prev { left: 14px; }
.mini-slider .arrow.next { right: 14px; }
.mini-slider .dots {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}
.mini-slider .dots button {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background .2s, width .2s;
}
.mini-slider .dots button::after {
  content: '';
  position: absolute;
  inset: -18px -10px;
}
.mini-slider .dots button.active {
  background: var(--red);
  width: 24px;
  border-radius: 4px;
}
.tab-content h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -.3px;
}
.tab-content p { color: var(--muted); font-size: 16px; line-height: 1.65; margin-bottom: 14px; }

@media (max-width: 960px) {
  .tab-content { grid-template-columns: 1fr; gap: 24px; }
}

/* ───── Infrastructure list ───── */
.infra {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.infra-col {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow .2s, border-color .2s;
}
.infra-col:hover { box-shadow: var(--shadow); border-color: var(--red); }
.infra-col h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
  font-weight: 700;
}
.infra-col ul { list-style: none; padding: 0; }
.infra-col li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
}
.infra-col li:last-child { border-bottom: none; }
@media (max-width: 960px) {
  .infra { grid-template-columns: 1fr; }
}

/* ───── Legal pages ───── */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 0 96px; }
.legal h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.1; letter-spacing: -.5px; margin-bottom: 8px; }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.legal h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 14px;
  padding-left: 16px;
  border-left: 3px solid var(--red);
  line-height: 1.3;
}
.legal h3 { font-size: 17px; font-weight: 600; margin: 22px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; }
.legal li::marker { color: var(--red); }
.legal a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--red-dark); }
.legal .toc {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
  border: 1px solid var(--line);
}
.legal .toc h4 {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.legal .toc ol { margin: 0; counter-reset: toc; list-style: none; padding: 0; }
.legal .toc li {
  counter-increment: toc;
  padding: 6px 0;
  font-size: 14.5px;
  margin-bottom: 0;
}
.legal .toc li::before {
  content: counter(toc) ". ";
  color: var(--red);
  font-weight: 600;
}
.legal .toc a { text-decoration: none; }
.legal .contacts {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  padding: 22px 26px;
  border-radius: var(--radius);
  margin-top: 32px;
}
.legal .contacts strong { display: block; margin-bottom: 6px; }
.legal .download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--red);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none !important;
  font-weight: 600;
  font-size: 14.5px;
  margin: 18px 0 6px;
  transition: background .2s, transform .2s;
}
.legal .download:hover { background: var(--red-dark); color: #fff !important; }
.legal .download::before {
  content: '↓';
  font-size: 18px;
  font-weight: 700;
}

/* ───── Breadcrumbs ───── */
.crumbs {
  font-size: 13px;
  color: var(--muted);
  padding: 20px 0;
}
.crumbs a:hover { color: var(--red); }
.crumbs span { margin: 0 8px; opacity: .5; }

/* ───── Responsive ───── */
@media (max-width: 960px) {
  .nav { display: none; }
  .topbar { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .features, .cards, .photo-grid { grid-template-columns: 1fr 1fr; }
  .split, .plan-section, .apt-hero { grid-template-columns: 1fr; gap: 32px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery .item.wide { grid-column: span 2; }
  .gallery .item.tall { grid-row: auto; }
  .hero { min-height: 480px; padding: 56px 0; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cta-banner .container { flex-direction: column; text-align: center; }
  footer .grid, footer .grid.grid-2 { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .features, .cards, .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .span-2 { grid-column: span 1; }
  .apt-specs { grid-template-columns: 1fr; }
  footer .grid { grid-template-columns: 1fr; }
  .hero-meta { gap: 24px; }
}
@media (max-width: 480px) {
  .site-header .container { gap: 14px; }
  .site-header .phone { display: none; }
  .header-cta { gap: 10px; }
  .header-cta .btn { padding: 12px 18px; }
  footer .bottom { flex-direction: column; }
}

/* ───── Inline SVG icons in contact info ───── */
.info-row .ic svg { width: 16px; height: 16px; display: block; }

/* ───── About text helper (replaces inline #2c333d) ───── */
.about-text { font-size: 16.5px; line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; }
.about-text + .about-text { margin-top: 0; }
.section-eyebrow {
  display: inline-block;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

/* ───── Dark mode ───── */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1f3f6;
    --ink-soft: #c2c8d2;
    --muted: #8b94a3;
    --line: #2a2f38;
    --bg: #14171c;
    --bg-soft: #1a1e25;
    --red-soft: rgba(var(--red-rgb), .18);
    --field-bg: #1a1e25;
    --field-border: #2a2f38;
    --field-label: #8b94a3;
  }
  .feature, .infra-col, .legal .contacts { background: var(--bg-soft); }
  .contact-form { background: var(--bg-soft); }
  .contact-form .field input:focus,
  .contact-form .field textarea:focus { background: #20252e; }
  .contact-form .success {
    background: rgba(40, 167, 69, .12);
    color: #5fdc7c;
  }
  .mini-slider .arrow { background: rgba(20, 23, 28, .85); color: #fff; }
  .skip-link { background: var(--red); }
}
