/* ═══════════════════════════════════════
   VARIABLES
════════════════════════════════════════ */
:root {
  --c-ink:       #0E0E0E;
  --c-ink-70:    rgba(14,14,14,0.7);
  --c-bg:        #F8F6F2;
  --c-surface:   #FFFFFF;
  --c-accent:    #C8A96E;
  --c-accent-dk: #A8894E;
  --c-muted:     #8A8680;
  --c-border:    #E5E0D8;
  --c-hero-ov:   rgba(8,8,8,0.48);

  --f-serif: Georgia, 'Times New Roman', serif;
  --f-sans:  system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.375rem;
  --text-2xl:  1.75rem;
  --text-3xl:  2.25rem;
  --text-4xl:  3rem;
  --text-5xl:  clamp(2.8rem, 5.5vw, 5rem);
  --text-hero: clamp(4rem, 12vw, 9.5rem);

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: clamp(4rem, 8vw, 8rem);

  --container: min(100% - 3rem, 1320px);
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --header-h: 72px;
}

/* ═══════════════════════════════════════
   RESET & BASE
════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: var(--c-ink);
}

body {
  font-family: var(--f-sans);
  background: var(--c-ink);
  color: var(--c-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

main {
  background: var(--c-bg);
}

img, video, svg { display: block; max-width: 100%; }
.lazy-picture {
  display: block;
  width: 100%;
  height: 100%;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
ul, ol { list-style: none; }
address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
}

.legal-page {
  background: var(--c-bg);
}
.legal {
  width: min(100% - 2rem, 840px);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 5rem) 0;
}
.legal__back {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--c-muted);
  font-size: var(--text-sm);
}
.legal__back:hover { color: var(--c-ink); }
.legal h1,
.legal h2 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.1;
}
.legal h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 2rem;
}
.legal h2 {
  font-size: var(--text-2xl);
  margin: 2rem 0 0.75rem;
}
.legal p {
  color: var(--c-ink-70);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal a {
  color: var(--c-accent-dk);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
════════════════════════════════════════ */
.section-label {
  display: block;
  font-family: var(--f-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.section-label--inv { color: rgba(255,255,255,0.5); }

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-title {
  font-family: var(--f-serif);
  font-size: var(--text-5xl);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-ink);
}
.section-title em {
  font-style: italic;
  color: var(--c-accent);
}
.section-title--inv { color: #fff; }
.section-title--inv em { color: var(--c-accent); }

/* ═══════════════════════════════════════
   LAYOUT
════════════════════════════════════════ */
.container { width: var(--container); margin-inline: auto; }

.section {
  padding-block: var(--sp-2xl);
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}

/* ═══════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--r-sm);
  transition:
    box-shadow 0.22s var(--ease-out),
    opacity 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--c-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,169,110,0.35);
}
.btn--ghost {
  border: 1.5px solid rgba(255,255,255,0.55);
  color: #fff;
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}
.btn--outline-dark {
  border: 1.5px solid var(--c-ink);
  color: var(--c-ink);
}
.btn--outline-dark:hover {
  background: var(--c-ink);
  color: #fff;
}
.btn--sm { padding: 0.55rem 1.1rem; font-size: var(--text-xs); }
.btn--full { width: 100%; justify-content: center; }
.btn--arrow { gap: 0.75rem; }
.btn svg { flex-shrink: 0; transition: transform 0.22s var(--ease-out); }
.btn--arrow:hover svg { transform: translate(3px,-3px); }

/* ═══════════════════════════════════════
   HEADER
════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.header.scrolled {
  background: rgba(248,246,242,0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--c-border);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 100%;
  width: var(--container);
  margin-inline: auto;
}
.header__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  margin-right: auto;
}
.logo-word {
  font-family: var(--f-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #fff;
  transition: color 0.35s;
}
.header.scrolled .logo-word { color: var(--c-ink); }
.logo-sub {
  font-family: var(--f-sans);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.35s;
}
.header.scrolled .logo-sub { color: var(--c-muted); }

.header__nav {
  display: flex;
  gap: 2rem;
}
.header__nav a {
  font-size: var(--text-sm);
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.header__nav a:hover { color: #fff; }
.header.scrolled .header__nav a { color: var(--c-ink-70); }
.header.scrolled .header__nav a:hover { color: var(--c-ink); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header__phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.header__phone:hover { color: #fff; }
.header.scrolled .header__phone { color: var(--c-ink-70); }
.header.scrolled .header__phone:hover { color: var(--c-ink); }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
}
.header__burger span {
  display: block;
  height: 1.5px;
  background: #fff;
  transition:
    background-color 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  transform-origin: center;
}
.header.scrolled .header__burger span { background: var(--c-ink); }
.header__burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.header__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.header__burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header__mobile {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 1.5rem var(--sp-md);
  display: none;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  transform: translateY(-8px);
  opacity: 0;
  transition:
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
}
.header__mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.header__mobile nav {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.header__mobile nav a {
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--c-ink);
  padding-block: 0.25rem;
  border-bottom: 1px solid var(--c-border);
}
.mobile-phone {
  font-size: var(--text-xl);
  font-family: var(--f-serif);
  font-weight: 500;
  color: var(--c-ink);
}

/* ═══════════════════════════════════════
   HERO
════════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  background: var(--c-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero__media {
  position: absolute;
  inset: 0;
  background: url('../assets/img/hero-desktop/slide-1.jpg') center / cover no-repeat;
  background:
    image-set(
      url('../assets/img/hero-desktop/slide-1.avif') type('image/avif'),
      url('../assets/img/hero-desktop/slide-1.webp') type('image/webp'),
      url('../assets/img/hero-desktop/slide-1.jpg') type('image/jpeg')
    )
    center / cover no-repeat;
}
.hero__mobile-slider {
  display: block;
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero__mobile-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-mobile-fade 10.8s linear infinite both;
}
.hero__mobile-slide:nth-child(2) { animation-delay: -7.2s; }
.hero__mobile-slide:nth-child(3) { animation-delay: -3.6s; }
.hero__mobile-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: hero-mobile-zoom 10.8s linear infinite both;
  transform-origin: center;
}
.hero__mobile-slide:nth-child(2) img { animation-delay: -7.2s; }
.hero__mobile-slide:nth-child(3) img { animation-delay: -3.6s; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse at center,
      rgba(8,8,8,0.05) 0%,
      rgba(8,8,8,0.2) 58%,
      rgba(8,8,8,0.41) 100%
    ),
    /* Тёмная «крышка» сверху — растворяет линию этажей в небе */
    linear-gradient(
      to bottom,
      rgba(8,8,8,0.63) 0%,
      rgba(8,8,8,0.41) 24%,
      rgba(8,8,8,0.15) 46%
    ),
    /* Основной нижний градиент для читаемости текста */
    linear-gradient(
      to bottom,
      rgba(8,8,8,0.08) 0%,
      rgba(8,8,8,0.32) 58%,
      rgba(8,8,8,0.59) 100%
    ),
    rgba(8,8,8,0.13);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: var(--container);
  margin-inline: auto;
  padding-bottom: clamp(2.5rem, 5vw, 5rem);
  padding-top: var(--header-h);
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
}
.hero__top {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-top: 2rem;
}
.hero__badge, .hero__completion {
  font-family: var(--f-sans);
  font-size: var(--text-xs);
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.hero__badge::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-left: 1.5rem;
  vertical-align: middle;
}
.hero__headline-wrap {
  align-self: end;
  padding-bottom: 1.5rem;
}
.hero__eyebrow {
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.hero__headline {
  font-family: var(--f-serif);
  font-size: var(--text-hero);
  font-weight: 300;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: #fff;
}
.hero__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero__descriptor {
  font-family: var(--f-sans);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  max-width: 220px;
}
.hero__cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}
.hero__price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: #fff;
}
.hero__price-from {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.65;
}
.hero__price-val {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
}
/* ═══════════════════════════════════════
   TICKER
════════════════════════════════════════ */
.ticker {
  background: var(--c-ink);
  overflow: hidden;
  padding-block: 1.1rem;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: var(--container);
  margin-inline: auto;
  flex-wrap: wrap;
}
.ticker__item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.t-num {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--c-accent);
}
.t-label {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
}
.ticker__sep {
  color: rgba(255,255,255,0.2);
  font-size: var(--text-sm);
}

/* ═══════════════════════════════════════
   ADVANTAGES — BENTO GRID
════════════════════════════════════════ */
.advantages { background: var(--c-surface); }

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.bento__card {
  background: var(--c-surface);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.bento__card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.bento__card:hover { background: var(--c-bg); }
.bento__card:hover::after { transform: scaleX(1); }

.bento__card--wide { grid-column: span 2; }
.bento__card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  min-height: 0;
  padding: 1.75rem 2.5rem;
}
.bento__card--full .bento__card-full-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.bento__card--full .bento__card-full-left h3 {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: 0.25rem;
}
.bento__card--full .bento__card-full-left p {
  font-size: var(--text-sm);
  color: var(--c-muted);
}
.bento__card--full .bento__card-full-left .bento__icon {
  flex-shrink: 0;
}
.bento__card-full-right {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.bento__full-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
}
.bento__full-detail {
  font-size: var(--text-sm);
  color: var(--c-muted);
  white-space: nowrap;
}
.bento__card--accent {
  background: var(--c-ink);
  color: #fff;
}
.bento__card--accent:hover { background: #1a1a1a; }
.bento__card--accent h3 { color: rgba(255,255,255,0.7); font-size: var(--text-base); }
.bento__card--accent p { color: rgba(255,255,255,0.45); font-size: var(--text-xs); }
.bento__card--accent::after { background: var(--c-accent); }

.bento__icon {
  width: 40px;
  height: 40px;
  color: var(--c-accent);
}
.bento__icon svg { width: 100%; height: 100%; }
.bento__big-num {
  font-family: var(--f-serif);
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--c-accent);
}
.bento__card h3 {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.2;
}
.bento__card p {
  font-size: var(--text-sm);
  color: var(--c-muted);
  line-height: 1.55;
}

/* ═══════════════════════════════════════
   ABOUT
════════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.about__text { display: flex; flex-direction: column; gap: 1.5rem; }
.about__lead {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  line-height: 1.4;
  font-weight: 400;
  color: var(--c-ink);
}
.about__body { font-size: var(--text-base); color: var(--c-muted); line-height: 1.7; }
.about__visual { display: flex; flex-direction: column; gap: 1.5rem; }
.about__img-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 260px 120px;
  gap: 0.75rem;
}
.about__img--main { grid-row: span 2; }
.about__img { border-radius: var(--r-md); overflow: hidden; }
.about__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.about__img:hover img { transform: scale(1.035); }

.about__stats {
  display: flex;
  gap: 2rem;
  padding-top: 0.5rem;
}
.about__stat { display: flex; flex-direction: column; }
.stat-n {
  font-family: var(--f-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
}
.stat-l {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.3rem;
}

/* ═══════════════════════════════════════
   LOCATION
════════════════════════════════════════ */
.location__body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 4rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.location__map {
  min-height: 480px;
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

/* iframe wrap fills the cell */
.map-wrap {
  width: 100%;
  height: 100%;
  min-height: 480px;
  position: relative;
  background:
    radial-gradient(circle at 58% 50%, rgba(200,169,110,0.24), transparent 24%),
    linear-gradient(135deg, #ebe4d7 0%, #d8d0c1 100%);
}

.map-frame {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: 0;
  opacity: 0;
  pointer-events: none;
  /* Subtle sepia filter so map palette matches our warm cream tone */
  filter: saturate(0.85) brightness(1.02);
  transition: opacity 0.3s var(--ease-out), filter 0.4s;
}
.map-wrap--loaded .map-frame {
  opacity: 1;
}
.map-wrap--active .map-frame {
  pointer-events: auto;
}
.map-frame:hover { filter: saturate(1) brightness(1); }

.map-placeholder {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ebe4d7;
  transition: opacity 0.25s var(--ease-out);
}
.map-wrap--loaded .map-placeholder {
  opacity: 0;
  pointer-events: none;
}
.map-placeholder__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(1.02);
  transform: scale(1.01);
  transform-origin: center;
}

/* Floating address badge */
.map-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(14,14,14,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-md);
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.map-badge__label {
  font-family: var(--f-serif);
  font-size: 1rem;
  font-weight: 500;
  color: var(--c-accent);
  letter-spacing: 0.04em;
}
.map-badge__addr {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.02em;
}
.map-interaction-hint {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  z-index: 2;
  max-width: min(320px, calc(100% - 2.5rem));
  padding: 0.65rem 0.9rem;
  border-radius: var(--r-md);
  background: rgba(14,14,14,0.82);
  color: #fff;
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: opacity 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.map-interaction-hint:hover {
  transform: translateY(-1px);
  background: rgba(14,14,14,0.9);
}
.map-wrap--active .map-interaction-hint {
  opacity: 0;
  pointer-events: none;
}
.location__info {
  background: var(--c-surface);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  justify-content: center;
}
.location__address h3 {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
}
.location__address p { color: var(--c-muted); font-size: var(--text-sm); }
.location__dists { display: flex; flex-direction: column; gap: 0.9rem; }
.location__dist {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: var(--text-sm);
}
.location__dist div:last-child {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.location__dist strong { font-weight: 500; }
.location__dist span { color: var(--c-muted); font-size: var(--text-xs); }
.dist-ico {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--c-muted);
}
.dist-ico--metro {
  background: #E8443A;
  color: #fff;
}

/* ═══════════════════════════════════════
   GALLERY
════════════════════════════════════════ */
.gallery__strip {
  display: flex;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 4rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
}
.gallery__strip::-webkit-scrollbar { display: none; }

@media (min-width: 1025px) {
  .gallery__strip {
    width: max-content;
    max-width: calc(100% - 3rem);
    margin-inline: auto;
  }
}

@media (min-width: 1500px) {
  .gallery__strip {
    justify-content: center;
    justify-content: safe center;
  }
}

.gallery__item {
  position: relative;
  flex: 0 0 280px;
  height: 380px;
  border-radius: var(--r-md);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: pointer;
}
.gallery__item--tall { flex: 0 0 300px; height: 460px; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery__item:hover img { transform: scale(1.04); }
.gallery__cap {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ═══════════════════════════════════════
   CATALOG
════════════════════════════════════════ */
.catalog { background: var(--c-bg); }
.catalog__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.catalog__all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.catalog__all:hover { color: var(--c-ink); }
.catalog__all svg { transition: transform 0.2s; }
.catalog__all:hover svg { transform: translate(3px,-3px); }

.catalog__filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.f-btn {
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1.5px solid var(--c-border);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-muted);
  background: var(--c-surface);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.f-btn:hover, .f-btn--on {
  border-color: var(--c-ink);
  color: var(--c-ink);
  background: var(--c-ink);
  color: #fff;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.apt-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.apt-card:hover {
  box-shadow: 0 16px 48px rgba(14,14,14,0.1);
  transform: translateY(-4px);
}
.apt-card__img {
  position: relative;
  background: var(--c-bg);
  height: 220px;
  overflow: hidden;
}
.apt-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.apt-slider__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s var(--ease-out);
}
.apt-slider__track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #F1EDE6;
}
.apt-slider__track .lazy-picture {
  flex: 0 0 100%;
}
.apt-slider__track img[src*="-plan."] {
  object-fit: contain;
  padding: 1rem;
}
.apt-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14,14,14,0.72);
  color: #fff;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.apt-slider:hover .apt-slider__btn,
.apt-slider__btn:focus-visible {
  opacity: 1;
}
.apt-slider__btn:hover { background: rgba(14,14,14,0.92); }
.apt-slider__btn--prev { left: 0.75rem; }
.apt-slider__btn--next { right: 0.75rem; }
.apt-slider__btn::before {
  content: '';
  width: 9px;
  height: 9px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
}
.apt-slider__btn--prev::before { transform: translateX(2px) rotate(-45deg); }
.apt-slider__btn--next::before { transform: translateX(-2px) rotate(135deg); }
.apt-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
}
.apt-slider__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  transition: width 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.apt-slider__dot--active {
  width: 18px;
  border-radius: 999px;
  background: #fff;
}
.apt-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 4;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--c-ink);
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
}
.apt-badge--hot { background: var(--c-accent); }

.apt-card__info { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.apt-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apt-type {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.apt-floor { font-size: var(--text-xs); color: var(--c-muted); }
.apt-card__info h3 {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 500;
}
.apt-params { display: flex; gap: 1rem; font-size: var(--text-xs); color: var(--c-muted); }
.apt-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.25rem;
}
.apt-price {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--c-ink);
}
.apt-card--featured { grid-row: span 1; border-color: var(--c-accent); }
.apt-card--cta {
  background: linear-gradient(135deg, var(--c-ink) 0%, #1e1e1e 100%);
  border-color: transparent;
  color: #fff;
}
.apt-card__cta {
  padding: 2.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}
.apt-card__cta h3 {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  color: #fff;
}
.apt-card__cta p { font-size: var(--text-sm); color: rgba(255,255,255,0.55); line-height: 1.6; }
.apt-card--cta .btn--primary { align-self: flex-start; }

/* ═══════════════════════════════════════
   MORTGAGE CALCULATOR
════════════════════════════════════════ */
.mortgage { background: var(--c-surface); }
.mortgage__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.mortgage__text { display: flex; flex-direction: column; gap: 1.5rem; }
.mortgage__text > p { color: var(--c-muted); line-height: 1.7; }
.bank-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.bank-logo {
  padding: 0.4rem 0.9rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--c-muted);
}

.calc {
  background: var(--c-bg);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.calc__field { display: flex; flex-direction: column; gap: 0.6rem; }
.calc__label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.calc__label-row label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--c-ink);
}
.calc__val {
  font-family: var(--f-serif);
  font-size: var(--text-lg);
  color: var(--c-accent);
  white-space: nowrap;
}
.calc__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 3px;
  background: var(--c-border);
  border-radius: 100px;
  outline: none;
}
.calc__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(200,169,110,0.2);
  transition: box-shadow 0.2s;
}
.calc__range::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 7px rgba(200,169,110,0.25);
}
.calc__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: var(--c-accent);
  cursor: pointer;
}
.calc__range-limits {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--c-muted);
}
.calc__result {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border: 1px solid var(--c-border);
}
.calc__main-result {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.calc__result-label { font-size: var(--text-sm); color: var(--c-muted); }
.calc__result-value {
  font-family: var(--f-serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  color: var(--c-ink);
  line-height: 1;
}
.calc__sub-results { display: flex; gap: 2rem; flex-wrap: wrap; }
.calc__sub-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.calc__sub-item span:first-child { font-size: var(--text-xs); color: var(--c-muted); }
.calc__sub-item span:last-child { font-size: var(--text-sm); font-weight: 500; }

/* ═══════════════════════════════════════
   PROGRESS TIMELINE
════════════════════════════════════════ */
.progress { background: var(--c-bg); }
.timeline {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--c-border);
}
.tl-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  position: relative;
}
.tl-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--c-border);
  background: var(--c-bg);
  margin-top: 2px;
  flex-shrink: 0;
  transition:
    background-color 0.3s,
    border-color 0.3s,
    transform 0.3s;
  position: relative;
  z-index: 1;
}
.tl-item--done .tl-dot {
  border-color: var(--c-accent);
  background: var(--c-accent);
}
.tl-item--active .tl-dot {
  border-color: var(--c-accent);
  background: var(--c-surface);
  box-shadow: 0 0 0 5px rgba(200,169,110,0.2);
}
.tl-body { display: flex; flex-direction: column; gap: 0.4rem; }
.tl-date {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.tl-item--active .tl-date { color: var(--c-accent); }
.tl-body h3 {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 500;
}
.tl-item--active .tl-body h3 { color: var(--c-accent); }
.tl-body p { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; }
.tl-progress { margin-top: 0.75rem; }
.tl-progress__bar {
  height: 4px;
  background: var(--c-border);
  border-radius: 100px;
  overflow: hidden;
  max-width: 300px;
}
.tl-progress__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--c-accent-dk), var(--c-accent));
  border-radius: 100px;
  transition: width 1.2s var(--ease-out);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}
.tl-progress__fill span {
  font-size: 9px;
  color: #fff;
  font-weight: 600;
}
.progress__cta { margin-top: 1rem; }

/* ═══════════════════════════════════════
   PROMO
════════════════════════════════════════ */
.promo { background: var(--c-surface); }
.promo__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
.promo-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14,14,14,0.08);
}
.promo-card--gold {
  background: linear-gradient(135deg, var(--c-ink) 0%, #1a1a1a 100%);
  border-color: rgba(200,169,110,0.3);
  color: #fff;
}
.promo-card--gold .promo-card__deadline { color: var(--c-accent); border-color: rgba(200,169,110,0.3); }
.promo-card--gold h3 { color: #fff; }
.promo-card--gold p { color: rgba(255,255,255,0.6); }
.promo-card--gold .promo-card__economy { color: var(--c-accent); }

/* Кнопка на тёмной карточке — белая рамка, скрыта по умолчанию */
.promo-card--gold .btn--outline-dark {
  border-color: rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.75);
  background: transparent;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease-out),
              transform 0.35s var(--ease-out),
              background 0.2s,
              border-color 0.2s,
              color 0.2s;
}
/* Появляется при наведении на весь блок */
.promo-card--gold:hover .btn--outline-dark {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
/* Hover на самой кнопке */
.promo-card--gold .btn--outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.8);
}
.promo-card__deadline {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  border: 1px solid var(--c-accent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
}
.promo-card h3 {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  line-height: 1.2;
}
.promo-card p { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; flex: 1; }
.promo-card__economy {
  font-family: var(--f-serif);
  font-size: var(--text-lg);
  color: var(--c-ink);
  font-weight: 500;
}

/* ═══════════════════════════════════════
   DEVELOPER
════════════════════════════════════════ */
.developer { background: var(--c-bg); }
.developer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 7rem);
  align-items: center;
}
.developer__text { display: flex; flex-direction: column; gap: 1.5rem; }
.developer__lead {
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  line-height: 1.4;
}
.developer__text > p:last-of-type { color: var(--c-muted); line-height: 1.7; }
.developer__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.dev-stat {
  background: var(--c-surface);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}
.dev-stat:hover { background: var(--c-bg); }
.dev-n {
  font-family: var(--f-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--c-accent);
  line-height: 1;
}
.dev-l {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}

/* ═══════════════════════════════════════
   REVIEWS
════════════════════════════════════════ */
.reviews { background: var(--c-surface); }
.reviews__wrap { overflow: hidden; margin-top: clamp(2rem, 4vw, 3.5rem); }
.reviews__track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}
.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.review-stars {
  font-size: var(--text-lg);
  color: var(--c-accent);
  letter-spacing: 0.1em;
}
.review-card blockquote p {
  font-family: var(--f-serif);
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--c-ink);
  font-style: italic;
}
.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: auto;
}
.review-card footer strong { font-size: var(--text-sm); font-weight: 500; }
.review-card footer span { font-size: var(--text-xs); color: var(--c-muted); }
.reviews__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}
.reviews__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-ink);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.reviews__btn:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.reviews__counter { font-size: var(--text-sm); color: var(--c-muted); }

/* ═══════════════════════════════════════
   FAQ
════════════════════════════════════════ */
.faq { background: var(--c-bg); }
.faq__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.faq__heading { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 100px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { border-bottom: 1px solid var(--c-border); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--f-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  text-align: left;
  color: var(--c-ink);
  transition: color 0.2s;
}
.faq__q:hover { color: var(--c-accent); }
.faq__q[aria-expanded="true"] { color: var(--c-accent); }
.faq__arr { flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.faq__q[aria-expanded="true"] .faq__arr { transform: rotate(180deg); }
.faq__a {
  padding-bottom: 1.5rem;
}
.faq__a p { font-size: var(--text-base); color: var(--c-muted); line-height: 1.7; }
.faq__a[hidden] { display: none; }

/* ═══════════════════════════════════════
   QUIZ SECTION
════════════════════════════════════════ */
.quiz-section {
  background: linear-gradient(135deg, #0E0E0E 0%, #1a1814 100%);
}
.quiz-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
.quiz-section__text { display: flex; flex-direction: column; gap: 1.5rem; }
.quiz-section__sub { color: rgba(255,255,255,0.5); font-size: var(--text-base); line-height: 1.6; }

.quiz-widget {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 2.5rem;
}
.quiz-steps { min-height: 240px; }
.quiz-step { display: none; flex-direction: column; gap: 1.5rem; }
.quiz-step--on { display: flex; }
.quiz-step__q {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  font-weight: 400;
}
.quiz-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.quiz-opt {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--c-ink);
  text-align: left;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
  background: var(--c-bg);
}
.quiz-opt:hover {
  border-color: var(--c-accent);
  background: rgba(200,169,110,0.06);
}
.quiz-opt.selected {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: #fff;
}

.quiz-form { display: flex; flex-direction: column; gap: 1rem; }
.quiz-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.quiz-form__field label { font-size: var(--text-sm); font-weight: 500; }
.quiz-form__field input, .modal-form input {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  background: var(--c-bg);
  transition: border-color 0.2s;
  color: var(--c-ink);
}
.quiz-form__field input:focus, .modal-form input:focus {
  border-color: var(--c-accent);
  outline: none;
}
.quiz-form__privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: var(--text-xs);
  color: var(--c-muted);
  cursor: pointer;
}
.quiz-form__privacy a { color: var(--c-accent); text-decoration: underline; }
.quiz-form__privacy input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.quiz-step--success { justify-content: center; align-items: center; min-height: 240px; }
.quiz-success-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.quiz-success-inner h3 {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
}
.quiz-success-inner p { color: var(--c-muted); font-size: var(--text-sm); }

.quiz-progress {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.quiz-progress__bar {
  height: 3px;
  background: var(--c-border);
  border-radius: 100px;
  overflow: hidden;
}
.quiz-progress__fill {
  width: 25%;
  height: 100%;
  background: var(--c-accent);
  border-radius: 100px;
  transition: width 0.4s var(--ease-out);
}
#qptext { font-size: var(--text-xs); color: var(--c-muted); }

/* ═══════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.site-footer {
  background: var(--c-ink);
  color: rgba(255,255,255,0.65);
  padding-top: clamp(3.5rem, 7vw, 6rem);
  padding-bottom: max(2.5rem, calc(2.5rem + env(safe-area-inset-bottom)));
}
.footer__top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand { display: flex; flex-direction: column; gap: 0.5rem; }
.logo-word--light { color: #fff; }
.logo-sub--light { color: rgba(255,255,255,0.4); }
.footer__tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.35); margin-top: 0.5rem; }

.footer__nav { display: flex; gap: 3rem; }
.footer__nav-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__nav-ttl {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.25rem;
}
.footer__nav a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer__nav a:hover { color: #fff; }
.footer__muted-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.28);
  cursor: default;
}

.footer__contact-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__phone {
  font-family: var(--f-serif);
  font-size: var(--text-2xl);
  color: #fff;
  transition: color 0.2s;
}
.footer__phone:hover { color: var(--c-accent); }
.footer__hours { font-size: var(--text-xs); color: rgba(255,255,255,0.4); }
.footer__addr { font-size: var(--text-sm); color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer__social { display: flex; gap: 0.75rem; margin-top: 0.25rem; }
.footer__soc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition:
    background-color 0.2s,
    border-color 0.2s,
    color 0.2s;
}
.footer__soc:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.3);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.footer__bottom p { font-size: var(--text-xs); color: rgba(255,255,255,0.3); max-width: 70ch; }
.footer__bottom a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  text-decoration: underline;
  white-space: nowrap;
}
.footer__bottom a:hover { color: rgba(255,255,255,0.65); }

/* ═══════════════════════════════════════
   FLOATING UI
════════════════════════════════════════ */
.back-top {
  position: fixed;
  bottom: 2rem;
  right: 5rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition:
    background-color 0.3s var(--ease-out),
    opacity 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(8px);
}
.back-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}
.back-top:hover {
  background: var(--c-accent);
  transform: translateY(-2px);
}
.back-top[hidden] { display: flex; }

.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.chat-widget__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(200,169,110,0.45);
  transition:
    box-shadow 0.3s var(--ease-out),
    transform 0.3s var(--ease-out);
  position: relative;
}
.chat-widget__btn:hover { transform: scale(1.08); }
.chat-close { display: none; }
.chat-widget__btn.open .chat-close { display: block; }
.chat-widget__btn.open svg:not(.chat-close) { display: none; }

.chat-menu {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  box-shadow: 0 8px 32px rgba(14,14,14,0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
  animation: fade-up 0.25s var(--ease-out);
  border: 1px solid var(--c-border);
}
.chat-menu[hidden] { display: none; }
.chat-menu__ttl {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.25rem;
}
.chat-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  color: var(--c-ink);
  transition: background 0.15s;
}
.chat-option:hover { background: var(--c-bg); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal-bg {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14,14,14,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fade-in 0.25s var(--ease-out);
}
.modal-bg[hidden] { display: none; }
.modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: slide-up 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.modal--quiz { max-width: 480px; }
.modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--c-muted);
  transition:
    background-color 0.2s,
    color 0.2s;
}
.modal__close:hover { background: var(--c-bg); color: var(--c-ink); }
.modal h2 {
  font-family: var(--f-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
}
.modal > p { font-size: var(--text-sm); color: var(--c-muted); line-height: 1.6; }
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-form__field { display: flex; flex-direction: column; gap: 0.4rem; }
.modal-form__field label { font-size: var(--text-sm); font-weight: 500; }
.modal-form__priv { font-size: var(--text-xs); color: var(--c-muted); text-align: center; }
.modal-form__priv a { color: var(--c-accent); }
.form-success {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.form-success__title {
  font-family: var(--f-serif);
  font-size: 1.5rem;
}
.form-success__text {
  color: var(--c-muted);
  font-size: 0.9rem;
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ═══════════════════════════════════════
   DESKTOP COMPACT HEIGHT (common laptops)
════════════════════════════════════════ */
@media (min-width: 1025px) and (max-height: 1100px) {
  .section {
    padding-block: clamp(2.5rem, 5vh, 4rem);
  }

  .section-header {
    margin-bottom: clamp(1.5rem, 3vh, 2.25rem);
  }

  .bento {
    grid-auto-rows: 150px;
  }
  .bento__card {
    padding: 1.35rem 1.25rem;
    gap: 0.55rem;
  }
  .bento__card--full {
    padding: 1.25rem 1.5rem;
    gap: 1.5rem;
  }
  .bento__icon {
    width: 34px;
    height: 34px;
  }
  .bento__big-num {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  .location__body,
  .gallery__strip,
  .timeline,
  .promo__grid,
  .reviews__wrap {
    margin-top: clamp(1.25rem, 3vh, 2rem);
  }
  .location__map,
  .map-wrap,
  .map-frame {
    min-height: 320px;
  }
  .location__info {
    padding: 1.35rem;
    gap: 0.95rem;
  }
  .location__dists {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.85rem;
  }
  .location__dist {
    align-items: flex-start;
    gap: 0.6rem;
  }
  .dist-ico {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }

  .gallery__item {
    flex-basis: 240px;
    height: 300px;
  }
  .gallery__item--tall {
    flex-basis: 260px;
    height: 360px;
  }

  .catalog {
    padding-block: var(--sp-2xl);
  }

  .mortgage__grid {
    gap: clamp(2rem, 4vw, 4rem);
  }
  .mortgage__text,
  .calc {
    gap: 1rem;
  }
  .calc {
    padding: 1.75rem;
  }
  .calc__result {
    padding: 1.1rem;
  }
  .calc__result-value {
    font-size: var(--text-3xl);
  }

  .timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
  .timeline::before {
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .tl-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding-bottom: 0;
  }
  .tl-body {
    gap: 0.3rem;
  }
  .tl-body h3 {
    font-size: var(--text-lg);
  }
  .progress__cta {
    margin-top: 1.5rem;
  }

  .promo-card,
  .review-card {
    padding: 1.5rem;
  }
  .reviews__nav {
    margin-top: 1.25rem;
  }
}

/* ═══════════════════════════════════════
   RESPONSIVE — TABLET (≤1024px)
════════════════════════════════════════ */
@media (max-width: 1024px) {
  .header__nav { display: none; }
  .header__actions .btn--primary { display: none; }
  .header__burger { display: flex; }

  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .bento__card--wide { grid-column: span 2; }
  .bento__card--full {
    grid-column: 1 / -1;
    flex-direction: row;
    padding: 1.5rem 2rem;
  }

  .about__grid { grid-template-columns: 1fr; gap: 3rem; }
  .about__img-grid { grid-template-columns: 3fr 2fr; height: 400px; }

  .location__body { grid-template-columns: 1fr; }
  .location__map { min-height: 320px; }
  .map-wrap { min-height: 320px; }
  .map-frame { min-height: 320px; }

  .catalog__grid { grid-template-columns: repeat(2, 1fr); }

  .mortgage__grid { grid-template-columns: 1fr; gap: 3rem; }

  .developer__grid { grid-template-columns: 1fr; gap: 3rem; }
  .developer__stats { grid-template-columns: repeat(3, 1fr); }

  .faq__grid { grid-template-columns: 1fr; }
  .faq__heading { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1.5rem; }

  .quiz-section__inner { grid-template-columns: 1fr; gap: 3rem; }

  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .promo__grid { grid-template-columns: 1fr 1fr; }
  .promo__grid article:last-child { grid-column: span 2; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — MOBILE (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {
  :root { --container: min(100% - 2rem, 600px); }

  .header__phone { display: none; }

  .section-title { font-size: clamp(2rem, 8vw, 3rem); }

  .hero {
    height: 100vh;
    min-height: 100vh;
    height: 100svh;
    min-height: 100svh;
  }
  .hero__media {
    background-image: url('../assets/img/hero-mobile/slide-1.jpg');
    background-image:
      image-set(
        url('../assets/img/hero-mobile/slide-1.avif') type('image/avif'),
        url('../assets/img/hero-mobile/slide-1.webp') type('image/webp'),
        url('../assets/img/hero-mobile/slide-1.jpg') type('image/jpeg')
      );
  }
  @supports (height: 100lvh) {
    .hero {
      height: 100lvh;
      min-height: 100lvh;
    }
  }
  .hero__content {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .hero__bottom { flex-direction: column; align-items: flex-start; }
  .hero__cta-group { align-items: flex-start; }
  .hero__headline { font-size: clamp(3.5rem, 18vw, 6rem); }

  .ticker__track { gap: 1.5rem; }

  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }

  .about__img-grid { grid-template-columns: 1fr; height: 280px; }
  .about__img--sub { display: none; }
  .about__stats { gap: 1.5rem; }

  .catalog__grid { grid-template-columns: 1fr; }
  .apt-card--cta { display: none; }

  .gallery__item { flex: 0 0 240px; height: 320px; }
  .gallery__item--tall { flex: 0 0 240px; height: 360px; }

  .review-card { flex: 0 0 calc(100% - 0px); }

  .promo__grid { grid-template-columns: 1fr; }
  .promo__grid article:last-child { grid-column: span 1; }

  .developer__stats { grid-template-columns: repeat(2, 1fr); }

  .quiz-opts { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__nav { flex-direction: column; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; }

  .back-top { right: 5rem; bottom: 1.5rem; }
  .chat-widget { bottom: 1.5rem; right: 1.5rem; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — SMALL (≤480px)
════════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --container: min(100% - 1.5rem, 100%); }

  .header__phone { display: none; }

  .hero__content {
    padding-bottom: max(1.25rem, env(safe-area-inset-bottom));
  }

  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__card--wide, .bento__card--full { grid-column: span 1; }
  .bento__card { min-height: 160px; }
  .bento__card--full {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.75rem;
  }
  .bento__card-full-right { justify-content: flex-start; }
  .bento__full-detail { white-space: normal; }

  .calc { padding: 1.5rem; }
  .calc__result-value { font-size: var(--text-3xl); }
  .calc__sub-results { flex-direction: column; gap: 0.75rem; }

  .ticker__track { gap: 1.25rem; }
  .t-num { font-size: var(--text-lg); }
}

/* ═══════════════════════════════════════
   STEP 5 — ANIMATIONS & POLISH
════════════════════════════════════════ */

/* ── Hero entrance ─────────────────── */
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hero-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hero-mobile-fade {
  0%, 27.777% { opacity: 1; }
  33.333%, 94.444% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes hero-mobile-zoom {
  0%, 94.444%, 100% { transform: scale(1); }
  33.333% { transform: scale(1.055); }
}

.hero__top {
  animation: hero-fade-in 1s var(--ease-out) 0.2s both;
}
.hero__eyebrow {
  animation: hero-fade-up 0.9s var(--ease-out) 0.4s both;
}
.hero__headline {
  animation: hero-fade-up 1.1s var(--ease-out) 0.55s both;
}
.hero__descriptor {
  animation: hero-fade-up 0.9s var(--ease-out) 0.75s both;
}
.hero__cta-group {
  animation: hero-fade-up 0.9s var(--ease-out) 0.9s both;
}
/* ── Ticker marquee ────────────────── */
.ticker { overflow: hidden; }
.ticker__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: ticker-scroll 28s linear infinite;
}
.ticker__track:hover { animation-play-state: paused; }

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* duplicate items injected by JS for seamless loop */

/* ── Bento cards stagger ───────────── */
.bento__card:nth-child(1)  { transition-delay: 0s; }
.bento__card:nth-child(2)  { transition-delay: 0.06s; }
.bento__card:nth-child(3)  { transition-delay: 0.12s; }
.bento__card:nth-child(4)  { transition-delay: 0.18s; }
.bento__card:nth-child(5)  { transition-delay: 0.24s; }
.bento__card:nth-child(6)  { transition-delay: 0.30s; }
.bento__card:nth-child(7)  { transition-delay: 0.36s; }
.bento__card:nth-child(8)  { transition-delay: 0.42s; }

/* ── Stat counter ──────────────────── */
.dev-n, .stat-n, .t-num {
  display: inline-block;
  transition: transform 0.4s var(--spring);
}
.dev-stat:hover .dev-n {
  transform: scale(1.08);
}
.about__stat:hover .stat-n {
  transform: scale(1.08);
}

/* ── Quiz step slide transition ────── */
@keyframes quiz-slide-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.quiz-step--on {
  animation: quiz-slide-in 0.35s var(--ease-out);
}

/* ── Promo card border glow ────────── */
.promo-card {
  position: relative;
  overflow: hidden;
}
.promo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--c-accent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.promo-card:hover::before { opacity: 0.07; }

/* ── FAQ item hover accent line ─────── */
.faq__item {
  position: relative;
  transition: padding-left 0.3s var(--ease-out);
}
.faq__item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s var(--ease-out);
}
.faq__item:has(.faq__q[aria-expanded="true"])::before {
  transform: scaleY(1);
}
.faq__item:has(.faq__q[aria-expanded="true"]) {
  padding-left: 1rem;
}

/* ── Review card hover lift ─────────── */
.review-card {
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(14,14,14,0.09);
}

/* ── Timeline line grow ─────────────── */
.timeline::before {
  background: linear-gradient(
    to bottom,
    var(--c-accent) 0%,
    var(--c-border) 60%
  );
}

/* ── Back-to-top pulse ──────────────── */
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
  50%       { box-shadow: 0 4px 24px rgba(200,169,110,0.4); }
}
.back-top:not([hidden]) {
  animation: btn-pulse 3s ease-in-out infinite;
}
.back-top:hover { animation: none; }

/* ── Chat widget entrance ───────────── */
.chat-widget__btn {
  animation: hero-fade-up 0.6s var(--ease-out) 2s both;
}

/* ── Section label underline ────────── */
.section-label {
  position: relative;
  display: inline-block;
}
.section-label::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-accent);
  transition: width 0.6s var(--ease-out);
}
.section:hover .section-label::after { width: 100%; }

/* ── Magnetic button layer ──────────── */
.btn--primary {
  position: relative;
  overflow: hidden;
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.btn--primary:hover::after { opacity: 1; }

/* ── Location distance items ────────── */
.location__dist {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: padding-left 0.25s var(--ease-out);
}
.location__dist:hover { padding-left: 0.5rem; }
.location__dist:last-child { border-bottom: none; }

/* ── Gallery item caption slide ─────── */
.gallery__cap {
  transform: translateY(4px);
  opacity: 0.7;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.gallery__item:hover .gallery__cap {
  transform: translateY(0);
  opacity: 1;
}

/* ── Scrollbar styling ──────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

/* ── Focus ring refinement ──────────── */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Prefers-reduced-motion ─────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__mobile-slide,
  .hero__mobile-slide img {
    animation: none;
    transform: none;
  }
  .hero__mobile-slide { opacity: 0; }
  .hero__mobile-slide:first-child { opacity: 1; }
  .hero__overlay { background: rgba(8,8,8,0.72); }
  .ticker__track { animation: none; }
  html { scroll-behavior: auto; }
}
