*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #C5A880;            /* золото/шампань — акценты, кнопки, линии */
  --gold-light: #E8D9C2;
  --gold-dark: #9C8562;
  --black: #000000;           /* строгий черный — hero bg */
  --dark: #141414;           /* section bg (lighten from #0A0A0A for contrast) */
  --dark-card: #1C1C1C;      /* cards (lighten for contrast vs text) */
  --dark-border: rgba(197, 168, 128, 0.15);
  --text: #FAFAFA;
  --fa: #FAFAFA; /* white accent alias */            /* мягкий белый — текстовые блоки */
  --text-muted: #5A5A5A;     /* второстепенный (lighten vs dark bg for readability) */
  --emerald: #0C3B2E;         /* интерактив / VIP / hover */
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ======================= HEADER ======================= */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 0 32px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: var(--transition);
}
header.scrolled {
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 16px 32px;
  height: 70px;
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
.logo span { color: var(--gold); }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-link {
  color: var(--text);
  text-decoration: none;
  font-family: 'Montserrat', 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: var(--transition);
}
.nav-link:hover { color: var(--gold); }

/* ======================= HERO ======================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  object-fit: cover;
  z-index: -2;
  opacity: 0;
  transition: opacity 1.5s ease;
}
.hero-video.loaded { opacity: 1; }

/* ===== Scroll-triggered fade-in animation (JS IntersectionObserver toggles .visible) ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.3s ease-out, transform 1.3s ease-out, color .2s;
}
/* stagger sequenced fade-in */
.fade-in:nth-child(2n){transition-delay:.06s}
.fade-in:nth-child(3n){transition-delay:.12s}
.fade-in:nth-child(4n){transition-delay:.18s}
.fade-in:nth-child(5n){transition-delay:.24s}
.fade-in:nth-child(6n){transition-delay:.3s}
.fade-in.visible {
  opacity: 1;
  transform: none;
}
/* Graceful fallback: if JS fails / never loads (stale immutable cache, proxy, network),
   keep all .fade-in content visible rather than leaving a blank page. */
.no-js .fade-in { opacity: 1; transform: none; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.44) 100%);
  z-index: -1;
}
.hero-content {
  text-align: center;
  max-width: 1100px;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  background: linear-gradient(180deg, #FFF 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 36px;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ======================= HERO SPEC GRID ======================= */
.hero-specs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 32px;
  width: 100%;
}
.hero-specs .spec-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(197,168,128,.25);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  backdrop-filter: blur(4px);
  transition: var(--transition);
}
.hero-specs .spec-card:hover {
  border-color: var(--gold);
  background: rgba(12,59,46,.18);
  box-shadow: 0 8px 28px rgba(12,59,46,.35);
}
.hero-specs .spec-card .icon-svg { width: 18px; height: 18px; stroke: var(--gold); }
.hero-specs .spec-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text);
}

/* Premium card hover */
.feature-card, .villa-card { background: var(--dark-card); border: 1px solid rgba(197,168,128,.12); border-radius: 14px; transition: var(--transition); }
.feature-card:hover, .villa-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px) scale(1.035);
  box-shadow: 0 10px 28px rgba(12,59,46,.32);
}

/* Premium button hover (gold on hover) */
.btn-primary:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* Premium table */
table th { color: var(--gold); border-bottom: 1px solid rgba(197,168,128,.15); }
table td { border-bottom: 1px solid rgba(197,168,128,.08); }

@media (max-width: 768px) {
  .hero-specs { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 24px; }
}
.hero .price-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: var(--black);
  font-size: 1rem;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 30px;
  margin-bottom: 32px;
  letter-spacing: 0.1em;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--black);
  border: none;
  padding: 16px 36px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--dark-border);
  color: var(--text);
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  margin-left: 16px;
  backdrop-filter: blur(10px);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 48px;
  border: 1px solid var(--text-muted);
  border-radius: 12px;
  opacity: 0.4;
}
.scroll-indicator::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--text-muted);
  border-radius: 2px;
  animation: scroll 2.5s ease-in-out infinite;
}
@keyframes scroll {
  0% { top: 6px; opacity: 1; }
  100% { top: 34px; opacity: 0; }
}

/* ======================= SECTIONS ======================= */
.section {
  padding: 70px 32px;
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .section { padding: 48px 20px; }
}
.section.compact { padding: 60px 32px; }

.section-title {
  text-align: center;
  margin-bottom: 32px;
}
.section-title .kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title h2 {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.section-title .subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ======================= FEATURES ======================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 20px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.035);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(12,59,46,.25);
}
.feature-card .icon-svg {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.1);
  font-size: 24px;
}
.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.feature-card .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gold);
}

/* ===== VILLA PHOTO-CARDS ===== */
.villa-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.villa-media img { width: 100%; height: 220px; object-fit: cover; display: block; }
.villa-media .floor-plan-thumb { display: block; width: 100%; height: 80px; object-fit: contain; margin-top: 10px; padding: 6px 4px; background: #faf6f0; border-top: 1px solid rgba(197,168,128,.18); }
.villa-info { padding: 18px; flex: 1; }
.villa-info h3 { font-size: 1.22rem; margin-bottom: 8px; color: var(--text); font-family: 'Bodoni Moda', serif; }
.villa-specs { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.price-badge {
  align-self: flex-start;
  margin: 16px 18px 18px;
  padding: 7px 18px;
  background: rgba(12, 59, 46, 0.08);
  border: 1px solid var(--gold);
  border-radius: 24px;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
.subtitle-inner { max-width: 810px; }
@media (max-width: 768px) { .villa-grid { grid-template-columns: 1fr 1fr; } }

/* ======================= GALLERY ======================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3));
}
.gallery-item.big {
  grid-column: span 7;
  grid-row: span 2;
  aspect-ratio: 1/1;
  max-height: 600px;
}
.gallery-item.small {
  grid-column: span 5;
  aspect-ratio: 16/10;
}
.gallery-item.wide {
  grid-column: span 12;
  aspect-ratio: 21/9;
}

/* ======================= LOCATION ======================= */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}
.location-item {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.location-item .dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 4px;
}
.location-item .info {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: baseline;
}
.location-item .name { font-weight: 500; }
.location-item .time { color: var(--text-muted); font-size: 0.9rem; }
.map-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  overflow: hidden;
  height: 500px;
  margin-top: 20px;
}

/* ======================= PRICING ======================= */
.pricing {
  background: var(--dark);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid var(--dark-border);
}
.table-wrap { overflow-x: auto; margin-top: 30px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table-wrap th,
  .table-wrap td { padding: 10px 12px; text-align: center; border-bottom: 1px solid var(--dark-border); }
.table-wrap th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.table-wrap td { color: var(--text); }
.table-wrap tr:hover td { background: rgba(255,255,255,0.02); }
.total-price {
  text-align: center;
  margin-top: 40px;
  padding: 34px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 12px;
  color: var(--black);
}
.total-price .amount { font-size: 2.5rem; font-weight: 700; line-height: 1; }
.total-price .label { font-size: 1.1rem; }

/* ======================= CONTACT ======================= */
.contact-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 40px;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-method { display: flex; gap: 16px; margin-bottom: 24px; }
.contact-method .icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 22px;
}
.contact-method .info h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-method .info p { color: var(--text-muted); font-size: 0.9rem; }
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}
.social-links a:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--black);
  border: 1px solid var(--dark-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* ======================= FOOTER ======================= */
footer {
  background: linear-gradient(135deg, var(--emerald), var(--black));
  border-top: 1px solid var(--dark-border);
  padding: 50px 32px 30px;
}
footer .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
footer .logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}
footer .nav { display: flex; gap: 20px; }
footer .nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}
footer .nav a:hover { color: var(--gold-light); }
footer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}
footer .branding { color: var(--gold); font-weight: 600; }

/* ======================= LANGUAGE ======================= */
/* ===== i18n language toggle (attr AND class selectors) ===== */
[lang-en], [lang-ru], .lang-en, .lang-ru { display: inline; }
html.lang-ru [lang-en], html.lang-ru .lang-en { display: none !important; }
html.lang-en [lang-ru], html.lang-en .lang-ru { display: none !important; }

/* ===== Custom line-art SVG icons (stroke 1px, gold/emerald) ===== */
.icon-svg { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--gold); fill: none; stroke-width: 1; vertical-align: middle; }
.icon-circle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(12,59,46,0.08); border: 1px solid rgba(197,168,128,0.3); stroke: var(--gold); fill: none; stroke-width: 1; flex-shrink: 0; }
.icon-circle svg { width: 20px; height: 20px; }

img { max-width: 100%; height: auto; display: block; }

/* ===== Audit: replaces index.html inline styles ===== */
.investment-section, .faq-section { background: var(--dark); border-radius: 16px; }
.payment-table { font-size: 0.88rem; }
.centered { text-align: center; }
.mg-top-8 { margin-top: 8px; }
.mg-top-30 { margin-top: 30px; }
.mg-top-40 { margin-top: 40px; }
.contact-method a { color: var(--gold); text-decoration: none; font-weight: 500; }
.full-width { width: 100%; }
.mg-top-16 { margin-top: 16px; }
.mg-top-32 { margin-top: 32px; }
.villa-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.map-iframe { border: 0; border-radius: 16px; }
.sprite { display: none; }

/* ======================= PRELOADER ======================= */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}
.preloader.fade-out { opacity: 0; pointer-events: none; }
.preloader .spinner {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
  animation: pulse 1.5s infinite;
}
.preloader .spinner::after {
  content: '';
  position: absolute;
  top: -4px; right: -4px;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

/* ======================= ANIMATIONS ======================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.3s ease-out, transform 1.3s ease-out, color .2s;
}
/* stagger sequenced fade-in */
.fade-in:nth-child(2n){transition-delay:.06s}
.fade-in:nth-child(3n){transition-delay:.12s}
.fade-in:nth-child(4n){transition-delay:.18s}
.fade-in:nth-child(5n){transition-delay:.24s}
.fade-in:nth-child(6n){transition-delay:.3s}
.fade-in.visible { opacity: 1; transform: translateY(0); }

  /* Language switcher (slider) */
  .lang-switch {
    position: fixed;
    top: 22px; right: 22px;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
  }
  .lang-toggle { opacity: 0; position: absolute; pointer-events: none; }
  .lang-track {
    position: relative;
    display: block;
    width: 46px; height: 26px;
    background: rgba(197, 168, 128, .20);
    border: 1px solid var(--dark-border);
    border-radius: 26px;
    cursor: pointer;
    transition: background .32s ease;
    flex-shrink: 0;
  }
  .lang-thumb {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px;
    background: var(--gold);
    border-radius: 50%;
    transition: transform .35s cubic-bezier(.25,.46,.45,.94), background .3s;
  }
  .lang-toggle:checked + .lang-track { background: var(--emerald); }
  .lang-toggle:checked + .lang-track .lang-thumb { transform: translateX(22px); background: var(--fa); }
  .lang-labels { display: flex; gap: 6px; align-items: center; font-size: .76rem; font-weight: 600; }
  .lang-labels .lang-on  { color: var(--text); }
  .lang-labels .lang-off { color: var(--text-muted); }
  .lang-toggle:checked ~ .lang-labels .lang-on  { color: var(--text-muted); }
  .lang-toggle:checked ~ .lang-labels .lang-off { color: var(--text); }
.lang-switch button.active {
  background: rgba(212, 175, 55, 0.1);
  font-weight: 600;
}

/* ======================= STICKY CTA ======================= */
.sticky-cta {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  display: none;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--black);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}
.sticky-cta.visible { display: inline-flex; }
.sticky-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.5);
}

/* ======================= BACK TO TOP ======================= */
.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 998;
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  color: var(--text);
  transition: var(--transition);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
}
.back-top.visible {
  display: flex;
  opacity: 1;
  visibility: visible;
}
.back-top:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

/* ======================= LIGHTBOX ======================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.5);
}
.lightbox .close {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 2rem;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  padding: 8px;
}
.lightbox .close:hover { color: var(--gold); }
.lightbox .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 16px;
}
.lightbox .nav.prev { left: 24px; }
.lightbox .nav.next { right: 24px; }
.lightbox .nav button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--dark-border);
  color: var(--text);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox .nav button:hover {
  background: var(--gold);
  color: var(--black);
}
.lightbox-counter {
  position: absolute;
  bottom: 32px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ======================= FAQ ======================= */
.faq-item {
  border-bottom: 1px solid var(--dark-border);
  padding: 20px 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--dark-border);
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 4px 0;
}
.faq-question:hover .faq-icon {
  color: var(--gold);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.faq-item.active .faq-answer {
  max-height: 500px;
  margin-top: 16px;
}
.faq-icon {
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* ======================= NAV ACTIVE ======================= */
.nav-link.active {
  color: var(--gold);
  position: relative;
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ======================= SECTION KICKER ======================= */
.kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: block;
}
.kicker.gold { color: var(--gold); }

/* Hamburger (desktop hidden, mobile-only) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px; height: 28px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}
.menu-toggle span {
  display: block;
  width: 100%; height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: opacity .3s;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(42deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-42deg) translate(5px, -5px); }

/* ======================= MOBILE ======================= */
@media (max-width: 768px) {
  .section { padding: 60px 24px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.big { grid-column: span 1; grid-row: span 1; aspect-ratio: 16/9; }
  .gallery-item.small { grid-column: span 1; aspect-ratio: 16/10; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 21/9; }
  .location-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 80px; }

  /* Mobile hamburger navigation */
  .menu-toggle { display: flex; }
  #nav-links {
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--black);
    flex-direction: column; gap: 0;
    padding: 14px 32px; border-top: 1px solid var(--dark-border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    display: none;
  }
  #nav-links.open { display: flex; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--dark-border); }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }

  /* Responsive images + touch targets */
  img { max-width: 100%; height: auto; }
  .sticky-cta { bottom: 16px; right: 16px; font-size: 0.85rem; padding: 12px 24px; }
  .back-top { bottom: 16px; right: 16px; width: 44px; height: 44px; }

  .hero h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .btn-primary, .btn-outline { margin-bottom: 12px; display: inline-flex; }
  .lang-switch { display: flex; gap: 4px; top: 16px; right: 12px; padding: 5px 8px; }
  footer .top, footer .bottom { flex-direction: column; text-align: center; gap: 16px; }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item.big { grid-column: span 1; aspect-ratio: 21/9; }
  .gallery-item.small { grid-column: span 1; aspect-ratio: 16/10; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 21/9; }
}

/* ======================= SCROLLBAR ======================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
/* ===== EMERALD / SALES ACCENTS ===== */
.btn-primary:hover { background: var(--emerald) !important; border-color: var(--emerald) !important; color: var(--text) !important; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(12, 59, 46, .36); }
.spec-card:hover { border-color: var(--emerald) !important; }
.villa-card:hover { border-color: var(--emerald) !important; }
.kicker { color: var(--emerald); font-weight: 600; }

/* floor plan + modal (Apella Estate) */
.floor-plan-thumb{cursor:pointer;transition:transform .35s ease,filter .35s ease}
.floor-plan-thumb:hover{transform:scale(1.07);filter:saturate(1.12)}
.plan-modal{position:fixed;inset:0;z-index:2000;background:rgba(7,7,7,.92);backdrop-filter:blur(5px);display:none;place-items:center}
.plan-modal.active{display:grid}
.plan-modal-content{max-width:90vw;max-height:90vh}
.plan-modal-img{max-width:100%;max-height:82vh;border:1px solid var(--border);border-radius:8px}
.plan-close{position:absolute;top:-44px;right:0;background:transparent;border:0;color:var(--muted-foreground);font-size:26px;cursor:pointer}


/* Apella Estate — emerald #0C3B2E luxury accents (added) */
.spec-card{border-color:#0C3B2E}
.floor-plan-thumb{border:2px solid #C5A880;display:inline-block;transition:border-color .35s ease,transform .35s ease,filter .35s ease}
.floor-plan-thumb:hover{border-color:#0C3B2E;transform:scale(1.07);filter:saturate(1.18)}
.plan-modal{border:1px solid #0C3B2E}
.section-title{border-bottom:2px solid #0C3B2E;padding-bottom:.5rem}
.badge-emerald{background:#0C3B2E;color:#fff}

/* Apella Estate — Hero CTA + emerald accent */
.hero-title{font-family:"Cormorant Garamond",serif;margin:0;font-size:2.25rem;line-height:1.1;font-weight:400}
.hero-title .lang-ru,.hero-title[lang-ru]{color:#fff}
.hero-cta-block{margin-top:18px;text-align:center}
.hero-subtitle{margin:10px auto 0 auto;text-align:center;font-size:1.02rem;color:#e8e4db;font-weight:300;max-width:780px;line-height:1.4}
.hero-cta{display:inline-block;margin-top:18px;background:#0C3B2E;color:#fff;border:2px solid #C5A880;padding:12px 28px;border-radius:8px;font-weight:600;text-decoration:none;font-family:"Montserrat",sans-serif;transition:all .35s ease;transform:translateZ(0)}
.hero-cta:hover{background:#C5A880;color:#0C3B2E;transform:translateY(-3px) scale(1.04);box-shadow:0 8px 24px rgba(12,59,46,.45)}
.hero-cta:focus{outline:2px solid #C5A880;outline-offset:2px}

/* floor-plan zoom + hero form + cookie */
.floor-plan-thumb{min-height:130px;border:2px solid #C5A880;border-radius:6px;object-fit:contain;background:rgba(181,168,128,.06);transition:transform .4s ease,border-color .4s ease,filter .4s ease;cursor:pointer}
.floor-plan-thumb:hover{transform:scale(1.08);border-color:#0C3B2E;filter:saturate(1.24)}
.hero-form{display:flex;gap:8px;justify-content:center;margin-top:16px;flex-wrap:wrap;max-width:560px;margin-left:auto;margin-right:auto}
.hero-form input{padding:9px 12px;border:1px solid #C5A880;border-radius:4px;background:rgba(181,168,128,.08);color:#fff;font-size:.86rem;outline:none}
.hero-form input::placeholder{color:#e8e4db}
.hero-form-btn{background:#0C3B2E;color:#fff;border:1px solid #C5A880;padding:9px 16px;border-radius:4px;font-weight:600;cursor:pointer;font-family:"Montserrat",sans-serif;transition:all .3s}
.hero-form-btn:hover{background:#C5A880;color:#0C3B2E}
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:rgba(7,7,7,.94);color:#e8e4db;padding:10px 16px;text-align:center;font-size:.8rem;z-index:1500;border-top:1px solid #C5A880}
.cookie-banner a{color:#C5A880;text-decoration:underline;cursor:pointer}
