:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --line: #dde3ef;
  --text: #0f1f3b;
  --muted: #64718a;
  --brand: #0a2a60;
  --brand-soft: #1f4286;
  --gold: #b9924f;
  --green: #2f9f63;
  --yellow: #d8a83a;
  --red: #c94f4f;
  --shadow: 0 14px 34px rgba(14, 34, 72, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #fff;
}
.container { width: min(1200px, 92vw); margin: 0 auto; }

.utility-bar {
  background: #10274f;
  color: #d4dded;
  font-size: 13px;
}
.utility-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.utility-inner p { margin: 0; }
.utility-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.utility-actions a,
.call-link {
  color: #dbe5f8;
  text-decoration: none;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}
.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.brand {
  font-size: 31px;
  line-height: 1;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}
.main-nav {
  display: flex;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: #334b72;
  font-weight: 600;
}
.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: inline-flex;
  border: 1px solid #d7dfed;
  border-radius: 11px;
  padding: 4px;
  background: #fff;
}
.lang-btn {
  border: 0;
  background: transparent;
  color: #445d84;
  font-weight: 700;
  border-radius: 8px;
  padding: 7px 10px;
  cursor: pointer;
}
.lang-btn.active {
  background: #e9eef8;
  color: var(--brand);
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.btn-primary { color: #fff; background: linear-gradient(128deg, var(--brand), var(--brand-soft)); }
.btn-light { color: var(--brand); border: 1px solid #ccd8ec; background: #fff; }
.block { width: 100%; }

.hero {
  position: relative;
  overflow: hidden;
  background-image: url("assets/images/baq-orda-hero-main.jpg");
  background-size: cover;
  background-position: center;
}

.options {
  padding-top: 30px;
  padding-bottom: 14px;
  background: #f5f7fb;
}
.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 14px;
}
.top-links a {
  color: #6a7790;
  text-decoration: none;
  font-weight: 700;
}
.options-shell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.options-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e1e7f2;
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.options-head h2 {
  margin: 0;
  color: #1a2750;
  font-size: 46px;
}
.options-phone {
  font-size: 32px;
  font-weight: 800;
  color: #1d2c54;
}
.options-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  gap: 18px;
}
.promo-stack {
  display: grid;
  gap: 12px;
}
.promo-card {
  min-height: 130px;
  border-radius: 14px;
  padding: 14px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: linear-gradient(130deg, #243861, #3a5688);
}
.promo-card h4 {
  margin: 0;
  max-width: 220px;
  font-size: 28px;
  line-height: 1.1;
}
.promo-card button {
  border: 0;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  cursor: pointer;
}
.options-grid h4 {
  margin: 0 0 10px;
  color: #202f58;
  font-size: 30px;
}
.options-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.options-list li {
  color: #3b4f74;
  font-weight: 600;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(8, 25, 56, 0.74), rgba(8, 25, 56, 0.34) 45%, rgba(8, 25, 56, 0.58)),
    linear-gradient(180deg, rgba(7, 20, 42, 0.28), rgba(7, 20, 42, 0.38));
}
.hero-content {
  position: relative;
  padding: 76px 0 64px;
}
.hero-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f3d7a2;
  font-weight: 800;
}
.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(34px, 5.2vw, 60px);
  max-width: 820px;
  line-height: 1.08;
  color: #fff;
}
.hero p {
  max-width: 780px;
  color: #dbe6f8;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.focus-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #193763;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(215, 225, 239, 0.9);
  border-radius: 12px;
  padding: 12px;
}
.focus-card span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  background: var(--brand);
}
.hero-metrics {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.hero-metrics article {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  padding: 14px;
}
.hero-metrics strong { display: block; font-size: 28px; color: var(--brand); }
.hero-metrics span { color: var(--muted); font-size: 14px; }

.visuals {
  background: linear-gradient(180deg, #f4f7fc, #ffffff);
}
.visuals-grid {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.visual-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 280px;
  box-shadow: var(--shadow);
}
.visual-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visual-wide {
  grid-column: 1 / -1;
  min-height: 340px;
}
.visual-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px;
  background: linear-gradient(180deg, transparent, rgba(8, 24, 52, 0.85));
}
.visual-caption h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 2.2vw, 24px);
}

.section { padding: 70px 0; }
.section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); color: var(--brand); }
.section-head p { margin: 8px 0 0; color: var(--muted); }

.selector { background: var(--bg); }
.selector-layout {
  display: block;
  margin-top: 24px;
}
.selection-main {
  display: grid;
  gap: 14px;
}
.apartments-filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
}
.apartments-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.apartments-filter-head h3 {
  margin: 0;
  font-size: clamp(28px, 3.5vw, 50px);
  color: #1d2750;
}
.filters-reset {
  border: 0;
  background: transparent;
  color: #1d2750;
  font-weight: 700;
  cursor: pointer;
}
.apartments-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}
.apartments-filter-grid label {
  display: grid;
  gap: 8px;
}
.apartments-filter-grid span,
.chip-filters span {
  font-size: 16px;
  font-weight: 700;
  color: #253c66;
}
.apartments-filter-grid select,
.apartments-filter-grid input {
  border: 1px solid #d5dfed;
  border-radius: 12px;
  min-height: 52px;
  padding: 11px 14px;
  background: #f7f8fd;
  font-size: 18px;
  font-weight: 600;
}
.range-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.chip-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.chip-group {
  margin-top: 8px;
  border: 1px solid #d5dfed;
  border-radius: 20px;
  background: #f1f3fa;
  padding: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  border: 0;
  background: transparent;
  color: #20263b;
  border-radius: 14px;
  min-height: 42px;
  min-width: 56px;
  padding: 0 14px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.chip.active {
  background: #23284f;
  color: #fff;
}
.filters-card,
.step-panels,
.price-card,
.chars-card,
.calculator-card,
.lead-card,
.extra-card,
.modal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.filters-card {
  padding: 14px;
  align-self: start;
  position: sticky;
  top: 88px;
}
.filters-card h3 { margin: 0 0 12px; }
.filters-card label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  color: #324968;
}
.filters-card select,
.filters-card input[type="range"] {
  width: 100%;
  margin-top: 7px;
}
.filters-card select {
  border: 1px solid #cdd8eb;
  border-radius: 9px;
  padding: 10px;
  background: #fff;
}

.steps-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}
.step-pill {
  border: 1px solid #cfd9ea;
  background: #fff;
  padding: 11px;
  border-radius: 10px;
  font-weight: 700;
  color: #597094;
  cursor: pointer;
}
.step-pill.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(125deg, var(--brand), #183a76);
}

.step-panels { padding: 16px; }
.step-panel { display: none; }
.step-panel.active { display: block; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.project-card {
  border: 1px solid #d8e1ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.project-photo {
  height: 150px;
  background-size: cover;
  background-position: center;
}
.project-body { padding: 12px; }
.project-body h4 { margin: 0 0 8px; font-size: 18px; }
.meta { margin: 4px 0; color: #516581; font-size: 14px; }

.iso-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.building {
  min-height: 168px;
  border: 1px solid #d5dfed;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #fff, #f7faff);
  cursor: pointer;
  position: relative;
}
.building::before {
  content: "";
  position: absolute;
  left: 16%;
  top: 14%;
  width: 68%;
  height: 52%;
  border-radius: 7px;
  background: linear-gradient(160deg, #eaf0f9, #dbe4f2);
}
.building.selected { outline: 2px solid var(--brand); }
.building h4 { position: relative; margin: 0 0 8px; }
.status-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d3deec;
  border-radius: 30px;
  padding: 5px 9px;
  background: #fff;
}
.legend-row { display: flex; gap: 16px; margin-top: 14px; font-size: 14px; color: #4f6380; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.dot.available, .dot.green { background: var(--green); }
.dot.limited, .dot.yellow { background: var(--yellow); }
.dot.sold, .dot.red { background: var(--red); }

.floor-list {
  display: grid;
  gap: 8px;
  background: #fff;
  border: 1px solid #d7e0ee;
  border-radius: 12px;
  padding: 10px;
}
.floor-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #e4ebf5;
  border-radius: 9px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
}
.floor-row.active { outline: 2px solid var(--brand); }
.bar { height: 8px; border-radius: 10px; }
.bar.available { background: rgba(47,159,99,.24); }
.bar.reserved { background: rgba(216,168,58,.24); }
.bar.sold { background: rgba(201,79,79,.24); }

.apartment-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 12px;
}
.plan-card {
  position: relative;
  border: 1px solid #d8e2f0;
  border-radius: 12px;
  padding: 8px;
  background: #fff;
}
#planSvg { width: 100%; height: auto; }
.plan-outline { fill: #f7f9fd; stroke: #d9e2f0; stroke-width: 2; }
.unit { cursor: pointer; stroke: #fff; stroke-width: 2; }
.unit.selected { stroke: #0f2753; stroke-width: 4; }
.tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  background: #0f2f66;
  color: #fff;
  border-radius: 8px;
  font-size: 12px;
  padding: 8px;
}
.media-tabs,
.icon-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tab,
.icon-actions button {
  border: 1px solid #d4deed;
  border-radius: 8px;
  background: #fff;
  padding: 9px 11px;
  cursor: pointer;
  font-weight: 600;
}
.tab.active { color: var(--brand); border-color: #b5c6e3; }
.apartment-right { display: grid; gap: 10px; }
.price-card,
.chars-card { padding: 14px; }
.price-card p { margin: 0; color: var(--muted); }
.price-card strong {
  margin: 4px 0 10px;
  display: block;
  font-size: 40px;
  color: var(--brand);
  line-height: 1;
}
.price-card ul,
.chars-card ul {
  margin: 0 0 10px;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}
.price-card li,
.chars-card li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
}
.mini-map {
  margin-top: 10px;
  border: 1px solid #d8e1ef;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  color: var(--brand);
  font-weight: 700;
  background: linear-gradient(45deg, rgba(10,42,96,0.06), rgba(185,146,79,0.09));
}

.guarantee {
  background: #f7f9fd;
}
.guarantee-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.guarantee-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.guarantee-grid li {
  border: 1px solid #d6dfed;
  border-radius: 11px;
  padding: 12px;
  background: #fff;
}
.guarantee-grid b { display: block; margin-bottom: 4px; color: #17396f; }
.guarantee-grid span { color: #60718d; }

.calculator-card,
.lead-card,
.extra-card { padding: 14px; }
.calculator-card label { display: block; margin-bottom: 12px; }
.calculator-card input[type="range"] { width: 100%; margin-top: 8px; }
.monthly-box {
  border: 1px solid #d6e0ef;
  border-radius: 10px;
  padding: 12px;
  background: #f8fbff;
}
.monthly-box p { margin: 0; color: var(--muted); }
.monthly-box strong { font-size: 34px; color: var(--brand); }

.lead-grid,
.extras-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.lead-card input {
  width: 100%;
  border: 1px solid #d3ddec;
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 9px;
}
.lead-card select {
  width: 100%;
  border: 1px solid #d3ddec;
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 9px;
  background: #fff;
}
.lead-card-main p {
  margin-top: 0;
  color: var(--muted);
}
.optional-section {
  display: none;
}
.optional-section.show {
  display: block;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.gallery-grid img {
  height: 80px;
  width: 100%;
  border-radius: 9px;
  object-fit: cover;
}
.extra-card blockquote {
  margin: 0 0 8px;
  color: #344d72;
  font-weight: 600;
}

.floating-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  text-decoration: none;
  background: linear-gradient(135deg, #25d366, #10b851);
  color: #fff;
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(37,211,102,.32);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  animation: waPulse 2.2s infinite;
  transition: transform .25s ease, box-shadow .25s ease;
}
.floating-wa::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.45);
  animation: waRing 2.2s infinite;
}
.floating-wa:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 32px rgba(37,211,102,.45);
}
.wa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,.7);
  animation: waOnline 1.5s infinite;
}
.wa-icon {
  font-size: 18px;
  line-height: 1;
  animation: waBounce 1.4s infinite;
}
.wa-text {
  letter-spacing: .02em;
}

@keyframes waPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
@keyframes waRing {
  0% { opacity: .55; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}
@keyframes waOnline {
  0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
  70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(9, 18, 34, 0.52);
  padding: 16px;
}
.modal.open { display: flex; }
.modal-card {
  width: min(480px, 96vw);
  padding: 16px;
  position: relative;
}
.modal-card p { color: var(--muted); }
.modal-card input {
  width: 100%;
  border: 1px solid #d1dced;
  border-radius: 10px;
  padding: 11px;
  margin-bottom: 10px;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1120px) {
  .options-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .options-head h2 { font-size: 36px; }
  .options-grid h4 { font-size: 24px; }
  .promo-card h4 { font-size: 22px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .iso-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .apartments-filter-grid,
  .chip-filters { grid-template-columns: 1fr; }
  .selector-layout,
  .apartment-layout,
  .extras-grid,
  .guarantee-grid { grid-template-columns: 1fr; }
  .lead-grid { grid-template-columns: 1fr; }
  .visuals-grid { grid-template-columns: 1fr; }
  .filters-card { position: static; }
}

@media (max-width: 760px) {
  .top-links { gap: 12px; }
  .options-grid { grid-template-columns: 1fr; }
  .options-head h2 { font-size: 30px; }
  .options-phone { font-size: 26px; }
  .utility-actions,
  .main-nav,
  .header .btn { display: none; }
  .lang-switch { margin-left: auto; }
  .steps-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid,
  .iso-grid,
  .focus-grid,
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-content { padding: 56px 0 44px; }
  .hero p { font-size: 16px; }
  .price-card strong { font-size: 32px; }
}
