/* ============================
   DESIGN SYSTEM — CSS TOKENS
   ============================ */
:root {
  --navy:        #0D1B2A;
  --navy-light:  #162436;
  --ivory:       #F5F0E8;
  --ivory-dark:  #EDE8DF;
  --gold:        #C9A84C;
  --gold-light:  #E2C97E;
  --white:       #FFFFFF;
  --gray-100:    #F8F8F6;
  --gray-300:    #D1CCBF;
  --gray-500:    #8A8578;
  --gray-700:    #4A4640;
  --text-dark:   #1A1612;
  --green:       #2D7A4F;
  --red:         #C0392B;
  --blue:        #1E5FA8;
  --shadow-sm:   0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:   0 8px 24px rgba(13,27,42,0.12);
  --shadow-lg:   0 16px 48px rgba(13,27,42,0.18);
  --radius:      12px;
  --transition:  0.25s ease;
}

/* ============================
   RESET & BASE
   ============================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  color: var(--text-dark);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', serif; }
h1 { font-size: 64px; font-weight: 600; line-height: 1.1; }
h2 { font-size: 42px; font-weight: 600; line-height: 1.2; }
h3 { font-size: 24px; font-weight: 600; line-height: 1.3; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.body-text {
  font-family: 'Manrope', sans-serif;
  font-size: 15px; font-weight: 400; line-height: 1.6;
}

/* ============================
   HEADER
   ============================ */
#site-header {
  position: fixed; top: 0; left: 0; width: 100%; height: 72px;
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; z-index: 1000;
}
.logo { display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700; color: var(--gold); line-height: 1;
}
.logo__sub {
  display: block; font-family: 'Manrope', sans-serif;
  font-size: 10px; font-weight: 500;
  color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; flex-wrap: wrap; }
.main-nav a {
  color: rgba(255,255,255,0.75);
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  letter-spacing: 0.03em; padding: 6px 0;
  border-bottom: 2px solid transparent; transition: all var(--transition);
  margin-left: 28px; cursor: pointer; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-bottom-color: var(--gold); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px; transition: all var(--transition);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  #site-header {
    padding: 0 24px; flex-wrap: wrap; height: auto;
    min-height: 72px; align-items: flex-start;
    padding-top: 16px; padding-bottom: 16px;
  }
  .logo { margin-top: 4px; }
  .hamburger { display: flex; }
  .main-nav {
    display: none; width: 100%; background: var(--navy-light);
    flex-direction: column; gap: 4px; padding: 16px 24px;
    margin: 16px -24px -16px;
  }
  .main-nav a {
    margin-left: 0; padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    border-top: none; font-size: 14px; width: 100%;
  }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav a.active, .main-nav a:hover { border-bottom-color: rgba(255,255,255,0.1); color: var(--gold); }
  #site-header.nav-open .main-nav { display: flex; }
}

/* ============================
   MAIN CONTENT
   ============================ */
#site-main { padding-top: 72px; min-height: calc(100vh - 72px); }
@media (max-width: 768px) { #site-main { padding-top: 72px; } }

/* ============================
   HOME HERO
   ============================ */
.hero {
  position: relative; background: var(--navy); color: var(--white);
  overflow: hidden; min-height: calc(100vh - 72px);
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.08) 0%, transparent 70%),
    linear-gradient(135deg, var(--navy) 0%, #0a1520 100%);
}
.hero__grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero__content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 80px 40px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; width: 100%;
}
.hero__eyebrow {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: flex; align-items: center; gap: 12px;
}
.hero__eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
}
.hero__title { color: var(--white); margin-bottom: 24px; }
.hero__title span { color: var(--gold); }
.hero__desc {
  font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7;
  margin-bottom: 40px; max-width: 480px;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; padding: 14px 32px; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 56px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,0.1);
}
.hero__stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px; font-weight: 700; color: var(--gold); line-height: 1;
}
.hero__stat-label {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em; margin-top: 6px;
}
.hero__visual { display: flex; flex-direction: column; gap: 16px; }
.hero__card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius); padding: 20px 24px;
  backdrop-filter: blur(12px); transition: transform var(--transition);
}
.hero__card:hover { transform: translateX(-4px); }
.hero__card-tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 8px;
}
.hero__card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--white); margin-bottom: 6px;
}
.hero__card-meta { font-size: 13px; color: rgba(255,255,255,0.55); display: flex; gap: 20px; flex-wrap: wrap; }
.hero__card-price {
  font-family: 'Manrope', sans-serif; font-size: 18px;
  font-weight: 700; color: var(--gold-light); margin-top: 12px;
}
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; gap: 48px; }
  h1 { font-size: 48px; }
}
@media (max-width: 640px) {
  .hero__content { padding: 48px 24px; }
  h1 { font-size: 38px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hero__stat-value { font-size: 28px; }
}

/* ============================
   HOME PAGE SECTIONS
   ============================ */
.advantages { background: var(--navy); padding: 80px 0; }
.advantages__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.advantages__header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px; font-weight: 600; color: var(--white); line-height: 1.15;
}
.advantages__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px;
  background: rgba(255,255,255,0.06); border-radius: 16px; overflow: hidden;
}
.advantages__item {
  padding: 40px 32px; background: var(--navy-light);
  position: relative; overflow: hidden; transition: background var(--transition);
}
.advantages__item:hover { background: rgba(201,168,76,0.08); }
.advantages__icon { width: 56px; height: 56px; color: var(--gold); margin-bottom: 20px; }
.advantages__icon svg { width: 100%; height: 100%; }
.advantages__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600; color: var(--white); margin-bottom: 12px;
}
.advantages__text { font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; }
.advantages__num {
  position: absolute; bottom: 20px; right: 24px;
  font-family: 'Cormorant Garamond', serif; font-size: 64px; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1; user-select: none;
}
@media (max-width: 900px) { .advantages__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .advantages__grid { grid-template-columns: 1fr; } .advantages__inner { padding: 0 20px; } }

.complexes { background: var(--ivory); padding: 80px 0; }
.complexes__inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.complexes__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.complexes__all-link {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--navy); text-decoration: none;
  border-bottom: 1px solid var(--navy); padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap; margin-left: 16px; flex-shrink: 0;
}
.complexes__all-link:hover { color: var(--gold); border-color: var(--gold); }
.complexes__scroll {
  display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--ivory-dark);
}
.complex-card {
  min-width: 220px; background: var(--white); border-radius: 12px; padding: 20px;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-top-color var(--transition);
  border-top: 3px solid transparent; flex-shrink: 0;
}
.complex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--gold); }
.complex-card__avatar {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700;
  color: var(--white); margin-bottom: 12px;
}
.complex-card__name { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.complex-card__dev { font-family: 'Manrope', sans-serif; font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.complex-card__count { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--gold); }
.complex-card__rating {
  display: flex; align-items: center; gap: 6px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ivory-dark);
}
.complex-card__stars { color: var(--gold); font-size: 12px; }
.complex-card__score { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--navy); }
@media (max-width: 560px) { .complexes__inner { padding: 0 20px; } .complexes__header { flex-direction: column; align-items: flex-start; gap: 12px; } }

.home-grid-wrap { background: var(--ivory); padding: 0 0 64px; }
.home-grid-wrap .grid-container { padding-top: 0; }

.seo-block { background: var(--white); padding: 80px 0; border-top: 1px solid var(--ivory-dark); }
.seo-block__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 380px 1fr; gap: 80px; align-items: start;
}
.seo-block__title {
  font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 600;
  color: var(--navy); line-height: 1.15; margin-bottom: 24px;
}
.seo-block__divider { width: 48px; height: 3px; background: var(--gold); margin-bottom: 24px; }
.seo-block__lead { font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 500; color: var(--gray-700); line-height: 1.7; }
.seo-block__col--text p { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--gray-700); line-height: 1.8; margin-bottom: 20px; }
.seo-block__col--text p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .seo-block__inner { grid-template-columns: 1fr; gap: 40px; } .seo-block__title { font-size: 32px; } }
@media (max-width: 560px) { .seo-block__inner { padding: 0 20px; } .advantages__header .section-title { font-size: 36px; } }

/* ============================
   LISTING SECTION (apartment pages)
   ============================ */
.listing-section { background: var(--ivory); min-height: calc(100vh - 72px); }

/* ============================
   SHARED HERO (listing pages)
   ============================ */
.hero--page {
  position: relative; height: 480px; display: flex; align-items: center; overflow: hidden;
}
.hero--page .hero__bg {
  position: absolute; inset: 0;
  background: var(--navy);
  background-image:
    repeating-linear-gradient(-45deg, transparent, transparent 40px, rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px),
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255,255,255,0.02) 40px, rgba(255,255,255,0.02) 41px);
}
.hero--page .hero__content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 0 40px; width: 100%; display: block;
}
.hero__label {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); opacity: 0.9; margin-bottom: 16px;
}
.hero--page .hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px; font-weight: 600; color: var(--white); line-height: 1.05; margin-bottom: 20px;
}
.hero__sub { font-family: 'Manrope', sans-serif; font-size: 16px; color: rgba(255,255,255,0.65); max-width: 520px; margin-bottom: 36px; }
.hero--page .hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.btn--gold {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 14px 32px; border-radius: 6px; background: var(--gold); color: var(--navy);
  border: none; cursor: pointer; transition: background var(--transition);
  text-decoration: none; display: inline-block;
}
.btn--gold:hover { background: var(--gold-light); }
.btn--outline {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  padding: 14px 32px; border-radius: 6px; background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4); cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
  text-decoration: none; display: inline-block;
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.hero--page .hero__stats { display: flex; gap: 48px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero--page .hero__stat-num { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--gold); display: block; }
.hero--page .hero__stat-label { font-family: 'Manrope', sans-serif; font-size: 12px; color: rgba(255,255,255,0.5); display: block; margin-top: 4px; }
@media (max-width: 768px) {
  .hero--page { height: auto; padding: 64px 0 48px; }
  .hero--page .hero__content { padding: 0 24px; }
  .hero--page .hero__title { font-size: 48px; }
  .hero--page .hero__stats { gap: 28px; flex-wrap: wrap; }
}

/* ============================
   FILTER BAR
   ============================ */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--ivory-dark);
  box-shadow: 0 2px 8px rgba(13,27,42,0.06); position: sticky; top: 72px; z-index: 90;
}
.filter-bar__inner {
  max-width: 1280px; margin: 0 auto; padding: 16px 40px;
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-label {
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500);
}
.filter-select {
  height: 40px; padding: 0 12px; border: 1.5px solid var(--gray-300); border-radius: 6px;
  background: var(--white); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--gray-700); cursor: pointer; min-width: 180px; transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8578' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 32px;
}
.filter-select:focus { outline: none; border-color: var(--gold); }
.filter-range { display: flex; align-items: center; gap: 8px; }
.filter-input {
  height: 40px; width: 110px; padding: 0 12px; border: 1.5px solid var(--gray-300); border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--gray-700); background: var(--white); transition: border-color var(--transition);
}
.filter-input:focus { outline: none; border-color: var(--gold); }
.filter-range__sep { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--gray-500); }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill {
  height: 40px; padding: 0 16px; border: 1.5px solid var(--gray-300); border-radius: 20px;
  background: var(--white); font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  color: var(--gray-700); cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.filter-pill:hover { border-color: var(--navy); color: var(--navy); }
.filter-pill[data-active="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-group--actions { display: flex; flex-direction: row; gap: 8px; align-items: flex-end; margin-left: auto; }
.filter-btn-apply {
  height: 40px; padding: 0 24px; background: var(--gold); color: var(--navy); border: none;
  border-radius: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.03em; cursor: pointer; transition: background var(--transition); white-space: nowrap;
}
.filter-btn-apply:hover { background: var(--gold-light); }
.filter-btn-reset {
  height: 40px; padding: 0 16px; background: transparent; color: var(--gray-500);
  border: 1.5px solid var(--gray-300); border-radius: 6px;
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all var(--transition); white-space: nowrap;
}
.filter-btn-reset:hover { color: var(--red); border-color: var(--red); }
/* Filter toggle button — visible only on mobile */
.filter-bar__toggle {
  display: none;
  width: 100%; height: 44px;
  background: var(--white); border: none; border-bottom: 1px solid var(--ivory-dark);
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--navy);
  cursor: pointer; padding: 0 20px;
  align-items: center; justify-content: space-between;
  transition: background var(--transition);
}
.filter-bar__toggle:hover { background: var(--gray-100); }
.filter-bar__toggle-icon {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition);
}
.filter-bar__toggle-icon svg { transition: transform var(--transition); }
.filter-bar[data-open="true"] .filter-bar__toggle-icon svg { transform: rotate(180deg); }

@media (max-width: 768px) {
  .filter-bar__toggle { display: flex; }
  /* collapsed by default on mobile */
  .filter-bar__inner {
    padding: 0 16px;
    gap: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .filter-bar[data-open="true"] .filter-bar__inner {
    max-height: 600px;
    padding: 14px 16px 16px;
  }
  .filter-group--sort, .filter-group--price, .filter-group--area,
  .filter-group--pills { width: 100%; }
  .filter-group--pills .filter-pills { flex-wrap: wrap; }
  .filter-select { min-width: unset; width: 100%; }
  .filter-input { width: calc(50% - 20px); }
  .filter-group--actions { margin-left: 0; width: 100%; flex-direction: row; }
  .filter-btn-apply, .filter-btn-reset { flex: 1; }
}

/* ============================
   GRID CONTAINER + HEADER
   ============================ */
.grid-container { max-width: 1280px; margin: 0 auto; padding: 0 40px 80px; }
.grid-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding-top: 8px; }
.results-count { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--gray-500); letter-spacing: 0.03em; }
.listings-grid { display: flex; flex-direction: column; gap: 16px; }
.no-results { text-align: center; padding: 64px 24px; color: var(--gray-500); font-size: 15px; }
.no-results button {
  margin-top: 16px; background: var(--gold); color: var(--navy); border: none;
  padding: 10px 24px; border-radius: 8px; font-family: 'Manrope', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer;
}

/* ============================
   CARD COMPONENT  (horizontal list style)
   ============================ */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--ivory-dark);
  display: grid;
  grid-template-columns: 380px 1fr 200px;
  min-height: 240px;
  animation: cardFadeIn 0.35s ease both;
  transition: box-shadow var(--transition), border-color var(--transition);
  overflow: hidden;
}
.card:hover { box-shadow: var(--shadow-md); border-color: var(--gray-300); }
.card:focus { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- LEFT: media (plan + gallery) --- */
.card__media {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 1fr auto;
  border-right: 1px solid var(--ivory-dark);
}

/* Plan wrap */
.card__plan-wrap {
  position: relative;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px;
  grid-row: 1 / 3;
  border-right: 1px solid var(--ivory-dark);
  overflow: hidden;
}
.card__plan-img {
  width: 100%; height: 148px; object-fit: contain;
}
.card__plan-placeholder {
  width: 100%; height: 148px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ivory-dark); border-radius: 6px;
}
.card__plan-dims {
  font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--gray-500);
}
.card__plan-stats {
  display: flex; gap: 12px; margin-top: 10px; width: 100%;
}
.card__plan-stat {
  flex: 1; text-align: center; background: var(--white);
  border: 1px solid var(--ivory-dark); border-radius: 6px; padding: 6px 4px;
}
.card__plan-stat-label {
  display: block; font-family: 'Manrope', sans-serif;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 2px;
}
.card__plan-stat strong {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--navy);
}

/* Gallery */
.card__gallery {
  display: flex; flex-direction: column;
}
.card__gallery-main {
  flex: 1; overflow: hidden;
}
.card__main-photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.card__main-photo--empty {
  background: var(--ivory-dark); height: 100%;
}
.card__gallery:hover .card__main-photo { transform: scale(1.04); }
.card__gallery-thumb {
  display: grid; grid-template-columns: 1fr 1fr; height: 64px; gap: 2px;
  border-top: 1px solid var(--ivory-dark);
}
.card__thumb-img {
  width: 100%; height: 64px; object-fit: cover; cursor: pointer;
}
.card__thumb-img--empty { background: var(--ivory-dark); }
.card__gallery-more {
  display: flex; align-items: center; justify-content: center;
  background: rgba(13,27,42,0.65); color: var(--white);
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  cursor: pointer; letter-spacing: 0.03em;
  transition: background var(--transition);
}
.card__gallery-more:hover { background: var(--navy); }

/* Badges */
.card__badge {
  position: absolute; top: 38px; left: 10px; padding: 3px 9px; border-radius: 20px;
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.04em; z-index: 2;
}
.card__badge--hit    { background: var(--gold);  color: var(--navy); }
.card__badge--akciya { background: var(--red);   color: var(--white); }
.card__badge--last   { background: #E07820;      color: var(--white); }
.card__status-label {
  position: absolute; top: 10px; left: 10px; padding: 3px 8px; border-radius: 4px;
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600; z-index: 2;
}
.card__status-label--built    { background: rgba(45,122,79,0.9);  color: var(--white); }
.card__status-label--building { background: rgba(201,168,76,0.9); color: var(--navy); }
.card__status-label--booking  { background: rgba(30,95,168,0.9);  color: var(--white); }

/* --- CENTER: info --- */
.card__info {
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
}
.card__info-top { display: flex; flex-direction: column; gap: 6px; }
.card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.25;
  cursor: pointer; transition: color var(--transition);
}
.card__title:hover { color: var(--blue); }
.card__section-row {
  font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--gray-700); font-weight: 500;
}
.card__promo-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.card__promo-tag {
  padding: 3px 10px; border-radius: 4px;
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  background: rgba(30,95,168,0.1); color: var(--blue);
  border: 1px solid rgba(30,95,168,0.2);
}
.card__promo-tag:first-child {
  background: rgba(45,122,79,0.1); color: var(--green);
  border-color: rgba(45,122,79,0.2);
}
.card__meta { display: flex; flex-direction: column; gap: 4px; }
.card__complex-link {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600;
  color: var(--blue); transition: color var(--transition);
}
.card__complex-link:hover { color: var(--navy); text-decoration: underline; }
.card__meta-row {
  display: flex; align-items: center; gap: 5px;
  font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--gray-500);
}
.card__meta-row svg { flex-shrink: 0; color: var(--gray-500); }
.card__price-block { display: flex; flex-direction: column; gap: 2px; }
.card__price-main {
  display: flex; align-items: baseline; gap: 8px;
}
.card__price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700; color: var(--navy); line-height: 1;
}
.card__discount {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: var(--red); color: var(--white);
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
}
.card__price-old {
  font-family: 'Manrope', sans-serif; font-size: 13px;
  color: var(--gray-500); text-decoration: line-through;
}
.card__price-per-m {
  font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--gray-500);
}
.card__description {
  font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--gray-700);
  line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}

/* --- RIGHT: aside (developer + actions) --- */
.card__aside {
  border-left: 1px solid var(--ivory-dark);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.card__aside-actions {
  display: flex; justify-content: flex-end; gap: 6px;
}
.card__action-btn {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--gray-100); border: 1px solid var(--ivory-dark);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-500);
  transition: all var(--transition);
}
.card__action-btn:hover { background: var(--ivory-dark); color: var(--navy); }
.card__developer {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px; background: var(--gray-100); border-radius: 8px;
  border: 1px solid var(--ivory-dark);
}
.card__developer-logo-wrap { margin-bottom: 4px; }
.card__developer-logo-placeholder {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--navy); color: var(--gold);
  font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.card__developer-logo-img {
  width: 40px; height: 40px; border-radius: 8px;
  object-fit: cover; display: block; flex-shrink: 0;
}
.card__developer-label {
  font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500);
}
.card__developer-name {
  font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700; color: var(--navy);
}
.card__phone-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; background: var(--blue); color: var(--white);
  border-radius: 6px; font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600;
  text-decoration: none; transition: background var(--transition);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px;
}
.card__phone-btn:hover { background: var(--navy); }
.card__phone-btn svg { flex-shrink: 0; }
.card__detail-btn {
  height: 38px; background: var(--gold); color: var(--navy); border: none;
  border-radius: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 700;
  cursor: pointer; transition: background var(--transition); letter-spacing: 0.02em;
}
.card__detail-btn:hover { background: var(--gold-light); }
.card__posted {
  font-family: 'Manrope', sans-serif; font-size: 10px; color: var(--gray-500);
  text-align: right; margin-top: auto;
}

/* --- Responsive --- */
@media (max-width: 1100px) {
  .card { grid-template-columns: 300px 1fr 180px; }
  .card__media { grid-template-columns: 150px 1fr; }
}
@media (max-width: 860px) {
  /* Stack card vertically: media top, info middle, aside bottom */
  .card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }

  /* Media: horizontal strip — plan on left, photo on right */
  .card__media {
    grid-template-columns: 140px 1fr;
    height: 160px;
    border-right: none;
    border-bottom: 1px solid var(--ivory-dark);
  }
  .card__plan-wrap {
    grid-row: auto;
    border-right: 1px solid var(--ivory-dark);
    padding: 10px;
  }
  .card__plan-img { height: 100px; }
  .card__plan-placeholder { height: 100px; }
  .card__plan-stats { display: none; }
  .card__gallery-thumb { display: none; }

  /* Info: normal padding */
  .card__info { padding: 14px 16px; gap: 8px; }
  .card__title { font-size: 17px; }
  .card__description { -webkit-line-clamp: 2; }

  /* Aside: clean vertical column, no border-left */
  .card__aside {
    border-left: none;
    border-top: 1px solid var(--ivory-dark);
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 8px;
    align-items: center;
  }
  /* developer block spans full width */
  .card__developer {
    grid-column: 1 / 3;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
  }
  .card__developer-logo-wrap { margin-bottom: 0; flex-shrink: 0; }
  .card__developer-logo-placeholder { width: 34px; height: 34px; font-size: 15px; }
  .card__developer-logo-img { width: 34px; height: 34px; }
  /* aside-actions top right */
  .card__aside-actions {
    grid-column: 1 / 3;
    justify-content: flex-end;
    order: -1;
  }
  /* phone and detail side by side */
  .card__phone-btn { width: 100%; }
  .card__detail-btn { width: 100%; }
  .card__posted { display: none; }
}

@media (max-width: 768px) {
  .grid-container { padding: 0 12px 40px; }
  h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .card__media { grid-template-columns: 110px 1fr; height: 140px; }
  .card__plan-img { height: 80px; }
  .card__plan-placeholder { height: 80px; }
  .card__price { font-size: 22px; }
}

/* ============================
   FOOTER
   ============================ */
.footer { background: var(--navy); }
.footer__top { padding: 72px 0 56px; }
.footer__inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 56px;
}
.footer__logo-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 700; color: var(--gold); display: block; }
.footer__logo-sub { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); display: block; margin-top: 2px; }
.footer__tagline { font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-top: 20px; margin-bottom: 24px; max-width: 280px; }
.footer__contacts { display: flex; flex-direction: column; gap: 10px; }
.footer__contact-link { display: flex; align-items: center; gap: 10px; font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.75); text-decoration: none; transition: color var(--transition); }
.footer__contact-link:hover { color: var(--gold); }
.footer__contact-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.footer__address-text { display: flex; align-items: flex-start; gap: 10px; font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,0.5); }
.footer__address-text svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.footer__socials { display: flex; gap: 10px; margin-top: 24px; }
.footer__social { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); text-decoration: none; }
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover { background: var(--gold); color: var(--navy); transform: translateY(-2px); }
.footer__col-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--white); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer__nav { display: flex; flex-direction: column; gap: 10px; }
.footer__nav-link { font-family: 'Manrope', sans-serif; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; padding: 2px 0; transition: all 0.2s ease; }
.footer__nav-link:hover { color: var(--gold); padding-left: 6px; }
.footer__hours { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.footer__hours-row { display: flex; justify-content: space-between; align-items: center; }
.footer__hours-day { font-family: 'Manrope', sans-serif; font-size: 12px; color: rgba(255,255,255,0.45); }
.footer__hours-time { font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: var(--white); }
.footer__hours-time--closed { color: rgba(255,255,255,0.3); }
.footer__callback-title { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 10px; }
.footer__callback-form { display: flex; }
.footer__callback-input { flex: 1; height: 44px; padding: 0 14px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-right: none; border-radius: 6px 0 0 6px; font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--white); transition: border-color var(--transition); }
.footer__callback-input::placeholder { color: rgba(255,255,255,0.3); }
.footer__callback-input:focus { outline: none; border-color: var(--gold); }
.footer__callback-btn { width: 44px; height: 44px; background: var(--gold); color: var(--navy); border: none; border-radius: 0 6px 6px 0; font-size: 18px; font-weight: 700; cursor: pointer; transition: background var(--transition); }
.footer__callback-btn:hover { background: var(--gold-light); }
.footer__callback-note { font-family: 'Manrope', sans-serif; font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 8px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer__bottom-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer__copyright { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.45); }
.footer__disclaimer { font-family: 'Manrope', sans-serif; font-size: 11px; color: rgba(255,255,255,0.25); max-width: 480px; text-align: center; }
.footer__bottom-badges { display: flex; gap: 8px; }
.footer__badge { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 4px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); color: rgba(255,255,255,0.4); }
@media (max-width: 1100px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; gap: 40px; padding: 0 24px; } .footer__bottom-inner { padding: 0 24px; } .footer__disclaimer { text-align: left; } }

/* ============================
   LOADER
   ============================ */
.loader { position: fixed; inset: 0; z-index: 9999; background: var(--navy); display: flex; align-items: center; justify-content: center; transition: opacity 0.4s ease, visibility 0.4s ease; }
.loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__logo { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 700; color: var(--gold); text-align: center; margin-bottom: 32px; }
.loader__bar { width: 200px; height: 2px; background: rgba(255,255,255,0.1); border-radius: 2px; overflow: hidden; }
.loader__bar-fill { height: 100%; background: var(--gold); border-radius: 2px; animation: loadBar 0.8s ease forwards; }
@keyframes loadBar { from { width: 0%; } to { width: 100%; } }
.loader__text { font-family: 'Manrope', sans-serif; font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; margin-top: 16px; letter-spacing: 0.06em; }

/* ============================
   BACK TO TOP
   ============================ */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px; z-index: 500;
  width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white);
  border: 2px solid rgba(201,168,76,0.4); cursor: pointer; display: flex;
  align-items: center; justify-content: center; opacity: 0; transform: translateY(16px);
  transition: all var(--transition); box-shadow: var(--shadow-md);
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.back-to-top svg { width: 20px; height: 20px; }

/* ============================
   COOKIE BANNER
   ============================ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; z-index: 800; max-width: 420px;
  background: var(--white); border-radius: 12px; padding: 20px 24px;
  box-shadow: var(--shadow-lg); border-left: 4px solid var(--gold);
  display: none; flex-direction: column; gap: 14px; animation: slideInLeft 0.4s ease;
}
.cookie-banner.is-visible { display: flex; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
.cookie-banner__text { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--gray-700); line-height: 1.6; }
.cookie-banner__text a { color: var(--navy); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; }
.cookie-banner__btn--accept { flex: 1; height: 36px; background: var(--navy); color: var(--white); border: none; border-radius: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--transition), color var(--transition); }
.cookie-banner__btn--accept:hover { background: var(--gold); color: var(--navy); }
.cookie-banner__btn--decline { height: 36px; padding: 0 16px; background: transparent; color: var(--gray-500); border: 1px solid var(--gray-300); border-radius: 6px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 500; cursor: pointer; }

/* ============================
   APARTMENT DETAIL MODAL
   ============================ */
@keyframes overlayFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }

.modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(13,27,42,0.75); backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 24px; animation: overlayFadeIn 0.2s ease; }
.modal-overlay.is-open { display: flex; }
.modal { background: var(--white); border-radius: 16px; width: 100%; max-width: 960px; max-height: 90vh; overflow-y: auto; display: grid; grid-template-columns: 380px 1fr; position: relative; animation: modalSlideUp 0.3s ease; box-shadow: 0 32px 80px rgba(13,27,42,0.4); }
.modal__close { position: absolute; top: 20px; right: 20px; z-index: 10; width: 40px; height: 40px; border-radius: 50%; background: var(--ivory); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--gray-700); transition: all var(--transition); }
.modal__close:hover { background: var(--navy); color: var(--white); transform: rotate(90deg); }
.modal__close svg { width: 18px; height: 18px; }
.modal__left { background: var(--navy); border-radius: 16px 0 0 16px; padding: 0 0 32px 0; display: flex; flex-direction: column; }
.modal__image { height: 240px; border-radius: 16px 0 0 0; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.modal__image-icon { position: relative; z-index: 1; }
.modal__image-icon svg { width: 64px; height: 64px; }
.modal__badges { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.modal__key-stats { padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.modal__key-stat { display: flex; flex-direction: column; gap: 3px; }
.modal__key-stat-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.modal__key-stat-value { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--white); }
.modal__developer-card { margin: 0 28px; padding: 16px; background: rgba(255,255,255,0.06); border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.modal__dev-label { font-family: 'Manrope', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); margin-bottom: 6px; }
.modal__dev-name { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--white); }
.modal__dev-rating { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.modal__dev-stars { color: var(--gold); font-size: 14px; }
.modal__dev-rating-num { font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; color: var(--gold); }
.modal__right { padding: 40px 40px 32px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; }
.modal__complex-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 8px; }
.modal__title { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 8px; }
.modal__address { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--gray-500); display: flex; align-items: center; gap: 6px; }
.modal__price-main { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 700; color: var(--navy); line-height: 1; }
.modal__price-sub { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.modal__section-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ivory-dark); }
.modal__description p { font-family: 'Manrope', sans-serif; font-size: 14px; color: var(--gray-700); line-height: 1.7; }
.modal__features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.modal__feature-item { display: flex; align-items: center; gap: 8px; font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--gray-700); padding: 8px 12px; background: var(--gray-100); border-radius: 6px; }
.modal__feature-item::before { content: "✓"; color: var(--green); font-weight: 700; flex-shrink: 0; }
.modal__finance-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.modal__finance-item { padding: 14px 16px; border: 1.5px solid var(--ivory-dark); border-radius: 8px; }
.modal__finance-item.is-active { border-color: var(--green); background: rgba(45,122,79,0.04); }
.modal__finance-item.is-inactive { opacity: 0.45; }
.modal__finance-label { font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-500); margin-bottom: 4px; }
.modal__finance-value { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; color: var(--navy); }
.modal__actions { display: flex; gap: 12px; padding-top: 8px; }
.modal__btn-primary { flex: 1; height: 52px; background: var(--navy); color: var(--white); border: none; border-radius: 8px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: background var(--transition), color var(--transition); }
.modal__btn-primary:hover { background: var(--gold); color: var(--navy); }
.modal__btn-secondary { height: 52px; padding: 0 24px; background: transparent; color: var(--navy); border: 1.5px solid var(--navy); border-radius: 8px; font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.modal__btn-secondary:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 768px) {
  .modal { grid-template-columns: 1fr; max-height: 95vh; }
  .modal__left { border-radius: 16px 16px 0 0; }
  .modal__image { border-radius: 16px 16px 0 0; }
  .modal__right { padding: 24px 24px 28px; }
  .modal__price-main { font-size: 32px; }
  .modal__features-grid { grid-template-columns: 1fr; }
  .modal__finance-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================
   CONSULTATION MODAL
   ============================ */
.consult-overlay { position: fixed; inset: 0; background: rgba(13,27,42,0.7); backdrop-filter: blur(4px); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.consult-overlay.open { opacity: 1; pointer-events: all; }
.consult-modal { background: var(--white); border-radius: var(--radius); padding: 40px; max-width: 480px; width: 100%; box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform var(--transition); }
.consult-overlay.open .consult-modal { transform: translateY(0); }
.consult-modal__title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.consult-modal__sub { font-size: 14px; color: var(--gray-500); margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-700); }
.form-group input, .form-group textarea { font-family: 'Manrope', sans-serif; font-size: 14px; padding: 12px 16px; border: 1.5px solid var(--gray-300); border-radius: 8px; outline: none; transition: border-color var(--transition); color: var(--text-dark); background: var(--gray-100); }
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 80px; }
.consult-modal__actions { display: flex; gap: 12px; margin-top: 8px; }
.btn-cancel { background: var(--gray-100); color: var(--gray-700); border: none; padding: 12px 24px; border-radius: var(--radius); font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); }
.btn-cancel:hover { background: var(--gray-300); }
.btn-submit { background: var(--gold); color: var(--navy); border: none; padding: 12px 28px; border-radius: var(--radius); font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); flex: 1; }
.btn-submit:hover { background: var(--gold-light); }

/* ============================
   MORTGAGE CALCULATOR
   ============================ */
.calculator {
  background: var(--white);
  border-bottom: 1px solid var(--ivory-dark);
  padding: 40px 0;
}
.calculator__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}
.calculator__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: default;
}
.calculator__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}
.calculator__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ivory);
  border: 1.5px solid var(--ivory-dark);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.calculator__toggle:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.calculator__toggle svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}
.calculator__toggle.is-open svg {
  transform: rotate(180deg);
}
.calculator__body {
  display: none;
  padding-top: 32px;
}
.calculator__body.is-open {
  display: block;
}
.calculator__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
/* Range inputs */
.calc-field { margin-bottom: 24px; }
.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 10px;
}
.calc-value-display {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.calc-range {
  width: 100%;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--ivory-dark);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--navy);
  border: 3px solid var(--white);
  box-shadow: 0 2px 8px rgba(13,27,42,0.25);
  cursor: pointer;
  transition: transform var(--transition);
}
.calc-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--gold);
}
.calc-range-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 6px;
}
/* Program pills */
.calc-programs { margin-top: 8px; }
.calc-programs-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.calc-programs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.calc-program-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.calc-program-pill:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: rgba(201,168,76,0.08);
}
.calc-program-pill.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
/* Results panel */
.calculator__results {
  background: var(--navy);
  border-radius: 16px;
  padding: 36px;
}
.calc-result-main {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.calc-result-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.calc-result-payment {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.calc-result-sub {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 8px;
}
.calc-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.calc-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.calc-breakdown-label {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
}
.calc-breakdown-value {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.calc-breakdown-value--accent { color: var(--gold); }
/* Donut chart */
.calc-chart-wrap { margin-bottom: 24px; }
.calc-chart-label {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.calc-donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}
.calc-donut {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.calc-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.calc-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}
.calc-legend-item strong {
  margin-left: auto;
  color: var(--white);
  font-weight: 700;
}
.calc-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* Apply button */
.calc-apply-btn {
  width: 100%;
  height: 52px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.calc-apply-btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}
@media (max-width: 900px) {
  .calculator__grid { grid-template-columns: 1fr; gap: 32px; }
  .calculator__inner { padding: 0 20px; }
}

/* ============================
   MISC UTILS
   ============================ */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--gold); }
