:root {
  --navy: #071733;
  --navy-2: #0b2554;
  --blue: #1d4ed8;
  --sky: #60a5fa;
  --gold: #f6c35f;
  --bg: #eef5ff;
  --card: rgba(255, 255, 255, 0.9);
  --ink: #09111f;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.12);
  --shadow: 0 24px 70px rgba(7, 23, 51, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(96, 165, 250, 0.36), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(246, 195, 95, 0.22), transparent 24rem),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 48%, #e7f0ff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
body.lightbox-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 18px clamp(16px, 4vw, 56px) 48px;
  background: linear-gradient(135deg, rgba(7, 23, 51, 0.98), rgba(11, 37, 84, 0.94));
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto -9rem -11rem auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.22);
  filter: blur(10px);
}
.nav, .hero-grid, .stats, .section { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 38px;
}
.brand {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.language-switch {
  display: flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}
.lang-btn {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}
.lang-btn.active { color: var(--navy); background: #fff; }
.nav-cta {
  padding: 11px 15px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: #fff;
  background: rgba(96, 165, 250, 0.18);
  font-size: 0.86rem;
  font-weight: 900;
}
.eyebrow.dark {
  color: var(--navy);
  border-color: rgba(29, 78, 216, 0.16);
  background: rgba(29, 78, 216, 0.08);
}
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; letter-spacing: -0.045em; line-height: 0.98; }
h1 { max-width: 780px; margin-bottom: 22px; font-size: clamp(2.8rem, 8vw, 6.2rem); }
h2 { margin-bottom: 15px; font-size: clamp(2.05rem, 6vw, 4.1rem); }
h3 { margin-bottom: 12px; font-size: 1.18rem; }
.hero-copy p, .section-head p, .contact-copy p { color: rgba(255, 255, 255, 0.76); font-size: clamp(1rem, 2.3vw, 1.18rem); line-height: 1.7; }
.section-head p { color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: wait; opacity: 0.7; transform: none; }
.primary { color: var(--navy); background: linear-gradient(135deg, #fff, var(--gold)); box-shadow: 0 16px 34px rgba(246, 195, 95, 0.24); }
.ghost { color: #fff; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(255, 255, 255, 0.09); }

.hero-card {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 10px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  background: transparent;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.hero-card img { aspect-ratio: 4 / 3; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  color: #fff;
  background: rgba(7, 23, 51, 0.72);
  text-align: left;
  backdrop-filter: blur(16px);
}
.hero-badge strong { font-size: 1.45rem; }
.hero-badge small { color: rgba(255, 255, 255, 0.76); font-weight: 700; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: -26px;
  position: relative;
  z-index: 3;
}
.stats article, .info-card, .lead-form {
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: 0 18px 54px rgba(7, 23, 51, 0.09);
  backdrop-filter: blur(18px);
}
.stats article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
}
.stats span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(29, 78, 216, 0.08);
  font-size: 1.55rem;
}
.stats strong { display: block; margin-bottom: 5px; font-size: 1.08rem; }
.stats p, .info-card p, .info-card li { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

.section { padding: 52px 0 0; }
.section-head { display: flex; align-items: end; justify-content: center; gap: 24px; margin-bottom: 16px; text-align: center; }
.section-head.compact { display: block; max-width: 820px; margin-inline: auto; text-align: center; }
.section-head.compact h2 { text-align: center; }
.details-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.info-card { padding: 22px; border-radius: 28px; }
.info-card h3 { color: var(--navy); }
.info-card ul { display: grid; gap: 10px; margin: 0; padding-left: 18px; }
.address-card { grid-column: span 2; }
.price-card { color: #fff; background: linear-gradient(145deg, var(--navy), var(--navy-2)); }
.price-card h3, .price-card p { color: #fff; }
.price-card p { opacity: 0.9; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-links a, .phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  font-weight: 900;
}

.gallery-group {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.58);
}
.gallery-group h3 { margin-bottom: 16px; color: var(--navy); font-size: 1.45rem; }
.gallery-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #cbd5e1;
  box-shadow: 0 18px 44px rgba(7, 23, 51, 0.12);
  cursor: zoom-in;
  text-align: left;
}
.gallery-item img { height: 100%; min-height: 210px; object-fit: cover; transition: transform 420ms ease; }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 23, 51, 0.72);
  font-size: 0.92rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 20px;
}
.contact-copy {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 30px;
  border-radius: 34px;
  color: #fff;
  background: linear-gradient(145deg, rgba(7, 23, 51, 0.94), rgba(11, 37, 84, 0.96)), url("Rasmlar/balkon.png") center / cover;
  box-shadow: var(--shadow);
}
.contact-copy h2 { font-size: clamp(2rem, 3.2vw, 3.65rem); }
.phone-link { margin-top: 18px; background: linear-gradient(135deg, #fff, var(--gold)); color: var(--navy); }
.lead-form { display: grid; gap: 18px; padding: clamp(20px, 4vw, 34px); border-radius: 34px; }
.lead-form label, .lead-form fieldset { display: grid; gap: 9px; }
.lead-form span, .lead-form legend { font-weight: 900; }
.lead-form input[type="text"], .lead-form input[type="tel"] {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  outline: 0;
}
.lead-form input:focus { border-color: rgba(29, 78, 216, 0.72); box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.12); }
.lead-form fieldset { margin: 0; padding: 0; border: 0; }
.choice { display: flex !important; align-items: center; gap: 10px !important; min-height: 58px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255, 255, 255, 0.68); cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--blue); }
.submit {
  width: 100%;
  min-height: 58px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy-2));
  box-shadow: 0 16px 34px rgba(29, 78, 216, 0.24);
}
.form-status { min-height: 24px; margin: 0; color: var(--muted); font-weight: 800; line-height: 1.5; }
.form-status.success { color: #047857; }
.form-status.error { color: #b91c1c; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(2, 8, 23, 0.88);
  cursor: zoom-out;
}
.lightbox.active { display: grid; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 82vh; object-fit: contain; border-radius: 20px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42); }
.lightbox p { margin: 14px 0 0; color: #fff; font-weight: 900; text-align: center; }
.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 23, 51, 0.7);
  box-shadow: 0 18px 42px rgba(7, 23, 51, 0.28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.back-to-top::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: translateY(4px) rotate(45deg);
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover { box-shadow: 0 22px 52px rgba(7, 23, 51, 0.36); }
.footer { display: grid; gap: 8px; padding: 10px 16px 24px; color: var(--muted); text-align: center; }
.footer p { margin-bottom: 0; }
.footer a { color: inherit; font-weight: inherit; }

@media (min-width: 981px) {
  .complex-gallery .gallery-row,
  .home-gallery .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .hero-grid, .contact-section { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-row { grid-template-columns: repeat(2, 1fr); }
  .contact-copy { position: static; }
}
@media (max-width: 640px) {
  .hero { padding-inline: 14px; }
  .nav { align-items: flex-start; }
  .nav-actions { align-items: flex-end; flex-direction: column; }
  .nav-cta { display: none; }
  .hero-actions .button { width: 100%; }
  .stats, .details-grid { grid-template-columns: 1fr; }
  .gallery-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .address-card { grid-column: auto; }
  .section { padding-top: 42px; }
  .section-head { display: block; }
  .gallery-group { padding: 12px; border-radius: 24px; }
  .gallery-item, .gallery-item img { min-height: 150px; }
  .hero-card, .contact-copy, .lead-form { border-radius: 26px; }
  .back-to-top { right: 16px; bottom: 16px; width: 50px; height: 50px; }
}
