/* ==========================================================================
   ЖК «Гранд Парк» — дизайн-система
   Светлый минимализм, глубокий зелёный акцент, крупная типографика.
   ========================================================================== */

/* --- 1. Переменные ----------------------------------------------------- */
:root {
  /* цвета */
  --bg: #ffffff;
  --bg-soft: #f6f5f1;
  --bg-sand: #efece4;
  --ink: #1a1a18;
  --ink-soft: #6d6d66;
  --ink-faint: #9a9a92;
  --line: #e5e2da;
  --line-strong: #d4d0c5;
  --accent: #2f4a3a;
  --accent-deep: #233829;
  --accent-soft: #e9efe9;
  --gold: #b99a5b;
  --ok: #2f6b3a;
  --ok-bg: #eef6ef;
  --warn: #8a6a1f;
  --warn-bg: #fbf5e6;

  /* типографика */
  --font: "Inter", "Helvetica Neue", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  --font-display: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* сетка */
  --maxw: 1240px;
  --gutter: 28px;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;

  /* движение */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  /* тени */
  --shadow-sm: 0 2px 8px rgba(26, 26, 24, .05);
  --shadow: 0 12px 32px rgba(26, 26, 24, .08);
  --shadow-lg: 0 28px 60px rgba(26, 26, 24, .12);
}

/* --- 2. Сброс ---------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

/* --- 3. Утилиты -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--sand { background: var(--bg-sand); }
.section--dark { background: var(--accent); color: #eef2ee; }

.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;
}

.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 999;
  background: var(--accent); color: #fff;
  padding: 12px 20px; border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* --- 4. Типографика ---------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.section--dark .eyebrow { color: #b9cdb9; }

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.028em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -.02em;
}

h3, .h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.01em;
}

h4 { font-size: 16px; font-weight: 600; }

.lead {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.62;
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--dark .lead { color: #c4d2c4; }

.muted { color: var(--ink-soft); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.section-head .lead { margin-top: 18px; }
.section-head__aside { flex-shrink: 0; }

/* --- 5. Кнопки --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .3s var(--ease), background .3s var(--ease),
              color .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

/* иконки внутри кнопок — строго фиксированный размер */
.btn > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 74, 58, .28);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  color: #fff;
}
.btn--outline-light:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn--sm { padding: 11px 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

.btn__icon { width: 16px; height: 16px; flex-shrink: 0; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: 14px; }
.link-arrow svg { width: 15px; height: 15px; }

/* --- 6. Хедер ---------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 20px rgba(26, 26, 24, .05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 78px;
}

.logo { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.logo__name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.1;
}
.logo__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  line-height: 1.1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  transition: color .2s, background .2s;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: var(--bg-soft);
}

.nav__right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

.nav__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s;
}
.nav__phone svg { width: 15px; height: 15px; color: var(--accent); }
.nav__phone:hover { color: var(--accent); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.burger span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: background .2s;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

/* мобильное меню */
.mobile-menu {
  position: fixed;
  inset: 78px 0 0;
  z-index: 99;
  background: var(--bg);
  padding: 32px var(--gutter) 48px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a.mobile-menu__link {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 19px;
  font-weight: 500;
}
.mobile-menu__foot { margin-top: 32px; display: grid; gap: 14px; }

/* --- 7. Hero ----------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  padding: 140px 0 118px;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1.0); }
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 22, 18, .58) 0%, rgba(16, 22, 18, .18) 34%, rgba(16, 22, 18, .84) 100%),
    linear-gradient(90deg, rgba(16, 22, 18, .5) 0%, rgba(16, 22, 18, 0) 62%);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #d3e0d4;
  margin-bottom: 24px;
}
.hero__eyebrow::before {
  content: "";
  width: 30px; height: 1px;
  background: currentColor;
  opacity: .6;
}

.hero h1 { color: #fff; text-shadow: 0 2px 40px rgba(0, 0, 0, .22); max-width: 15ch; }
.hero h1 em {
  font-style: normal;
  color: #dbe7db;
  display: block;
}

.hero__lead {
  margin-top: 26px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: #e2eae2;
  max-width: 54ch;
  text-shadow: 0 1px 20px rgba(0, 0, 0, .3);
}

.hero__cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 38px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 56px;
  padding: 30px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .24);
}
.hero__stat .num {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.hero__stat .lbl {
  margin-top: 6px;
  font-size: 13.5px;
  color: #cfdccf;
  line-height: 1.35;
}
.hero__stat .note {
  margin-top: 3px;
  font-size: 12px;
  color: #a9bda9;
  line-height: 1.35;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c3d2c3;
}
.hero__scroll svg { width: 14px; height: 14px; animation: bounce 2s infinite; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* --- 8. Быстрый поиск квартиры ---------------------------------------- */
.quickpick {
  position: relative;
  z-index: 5;
  margin-top: -52px;
}
.quickpick__card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 22px;
  align-items: end;
}
.quickpick__field { display: flex; flex-direction: column; gap: 7px; }
.quickpick__field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.quickpick__field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 13px 38px 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff url("data:image/svg+xml;charset=utf-8,%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' fill='none' stroke='%236d6d66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s;
}
.quickpick__field select:hover { border-color: var(--line-strong); }
.quickpick__field select:focus { border-color: var(--accent); outline: none; }

/* --- 9. Карточки домов ------------------------------------------------- */
.houses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.house-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.house-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.house-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-sand);
}
.house-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.house-card:hover .house-card__media img { transform: scale(1.055); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  white-space: nowrap;
}
.badge--ok { background: var(--ok-bg); border-color: #cfe3d3; color: var(--ok); }
.badge--build { background: var(--warn-bg); border-color: #f0e2c0; color: var(--warn); }
.badge--glass {
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.house-card__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }

.house-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.house-card__num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
}
.house-card__addr {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.3;
  margin-top: 2px;
}
.house-card__meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}
.house-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip-spec {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink-soft);
}
.house-card__foot {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 18px;
}
.house-card__price .lbl {
  font-size: 11.5px;
  color: var(--ink-faint);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.house-card__price .val {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: 2px;
}
.house-card__go {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
  flex-shrink: 0;
}
.house-card__go svg { width: 15px; height: 15px; }
.house-card:hover .house-card__go {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: rotate(-45deg);
}

/* --- 10. О проекте / особенности --------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 8px;
}
.feature {
  background: #fff;
  padding: 36px 32px;
  transition: background .3s;
}
.feature:hover { background: var(--bg-soft); }
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 12px; }
.feature ul { display: grid; gap: 8px; margin-top: 4px; }
.feature li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.feature li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .45;
}

/* --- 11. Локация ------------------------------------------------------- */
.loc-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 60px;
  align-items: start;
}
.loc-list { margin-top: 32px; border-top: 1px solid var(--line); }
.loc-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.loc-list .t { font-size: 15.5px; font-weight: 500; }
.loc-list .d { font-size: 14px; color: var(--ink-soft); }
.loc-list .n {
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  text-align: right;
}

.loc-map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-sand);
  box-shadow: var(--shadow);
}
.loc-map img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.loc-map__tag {
  position: absolute;
  left: 16px; bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.loc-map__tag svg { width: 14px; height: 14px; color: var(--accent); }

/* --- 12. Каталог квартир ----------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.filter { display: flex; flex-direction: column; gap: 7px; min-width: 150px; flex: 1; }
.filter label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.filter select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  padding: 11px 34px 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml;charset=utf-8,%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' fill='none' stroke='%236d6d66' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .2s;
}
.filter select:focus { border-color: var(--accent); outline: none; }

.filters__reset {
  background: transparent;
  border: none;
  padding: 11px 4px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
  white-space: nowrap;
}
.filters__reset:hover { color: var(--ink); }

.result-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.result-bar__count { font-size: 14.5px; color: var(--ink-soft); }
.result-bar__count b { color: var(--ink); font-weight: 600; }

.apt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.apt-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.apt-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.apt-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.apt-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .6s var(--ease);
}
.apt-card:hover .apt-card__media img { transform: scale(1.04); }
.apt-card__status {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
}
.apt-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}
.apt-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.apt-card__meta {
  font-size: 13px;
  color: var(--ink-soft);
}
.apt-card__price {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  margin-top: 10px;
}
.apt-card__m2 {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 2px;
}
.apt-card__actions {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.empty-state h3 { margin-bottom: 10px; color: var(--ink); }

/* --- 13. Страница дома ------------------------------------------------- */
.house-hero {
  position: relative;
  padding: 130px 0 0;
  color: #fff;
  overflow: hidden;
}
.house-hero__media { position: absolute; inset: 0; z-index: 0; }
.house-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.house-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16, 22, 18, .55) 0%, rgba(16, 22, 18, .35) 45%, rgba(16, 22, 18, .88) 100%);
}
.house-hero__inner { position: relative; z-index: 2; padding-bottom: 56px; }
.house-hero h1 { color: #fff; font-size: clamp(30px, 4vw, 52px); }
.house-hero__sub { margin-top: 14px; color: #dbe5db; font-size: 17px; max-width: 56ch; }
.house-hero__badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: #fff;
  padding: 22px 24px;
}
.spec__label {
  font-size: 11.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.spec__value { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  padding: 22px 0;
  flex-wrap: wrap;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs .sep { color: var(--line-strong); }

/* --- 13.5. Таблица квартир --------------------------------------------- */
.apt-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14.5px;
}
.apt-table thead th {
  text-align: left;
  padding: 15px 20px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.apt-table tbody td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.apt-table tbody tr:last-child td { border-bottom: none; }
.apt-table tbody tr { transition: background .2s; }
.apt-table tbody tr:hover { background: var(--bg-soft); }
.apt-table tbody td b { color: var(--ink); font-weight: 600; }
.apt-table .price { color: var(--ink); font-weight: 600; white-space: nowrap; }

.thumb-cell { width: 74px; padding: 8px 10px !important; }
.apt-thumb {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg-soft);
  padding: 3px;
  cursor: zoom-in;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.apt-thumb:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-sm);
}

/* планировки на странице дома */
.gallery-grid__item[data-plan] { cursor: zoom-in; }
.gallery-grid__item[data-plan] img { object-fit: contain; background: #fff; padding: 10px; }

@media (max-width: 680px) {
  .apt-table { font-size: 13px; }
  .apt-table thead th, .apt-table tbody td { padding: 12px 14px; }
  .apt-thumb { width: 42px; height: 42px; }
  .thumb-cell { width: 58px; }
}

/* --- 14. Галерея ------------------------------------------------------- */
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--line-strong); }
.chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-grid__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-soft);
}
.gallery-grid__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.gallery-grid__item:hover img { transform: scale(1.06); }
.gallery-grid__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid__item:nth-child(6) { grid-column: span 2; }
.gallery-grid__item:nth-child(11) { grid-column: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(14, 18, 15, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: 24px; right: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, .12); }
.lightbox__nav svg { width: 18px; height: 18px; }
.lightbox__prev { left: 24px; }
.lightbox__next { right: 24px; }

/* --- 15. Ипотечный калькулятор ----------------------------------------- */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
  align-items: start;
}
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}
.calc-field { margin-bottom: 26px; }
.calc-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.calc-field label { font-size: 14px; color: var(--ink-soft); }
.calc-field output {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
}
.calc-range {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
  cursor: pointer;
}
.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(47, 74, 58, .35);
  cursor: pointer;
  transition: transform .2s;
}
.calc-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.calc-range::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(47, 74, 58, .35);
  cursor: pointer;
}

.calc-result {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 34px;
  position: sticky;
  top: 100px;
}
.calc-result__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #b3c8b3;
}
.calc-result__sum {
  font-size: clamp(30px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -.025em;
  margin-top: 8px;
  line-height: 1.1;
}
.calc-result__rows {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 20px;
  display: grid;
  gap: 12px;
}
.calc-result__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  color: #d3e0d3;
}
.calc-result__row b { color: #fff; font-weight: 600; }
.calc-result .btn { margin-top: 26px; }

/* --- 16. Форма / контакты --------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-list { display: grid; gap: 0; margin-top: 30px; border-top: 1px solid var(--line); }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row__icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-row__icon svg { width: 18px; height: 18px; }
.contact-row__label {
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.contact-row__value { font-size: 16px; font-weight: 500; }
.contact-row__value a:hover { color: var(--accent); }

/* --- 17. CTA-баннер ---------------------------------------------------- */
.cta-banner {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--accent);
  color: #fff;
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.cta-banner__bg {
  position: absolute; inset: 0;
  opacity: .22;
  z-index: 0;
}
.cta-banner__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: #fff; max-width: 20ch; }
.cta-banner p { margin-top: 14px; color: #c9d8c9; max-width: 46ch; }
.cta-banner__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- 18. Новости ------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.news-card__date {
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.news-card h3 { margin: 12px 0 10px; }
.news-card p { font-size: 14.5px; color: var(--ink-soft); }

/* --- 19. Документы ----------------------------------------------------- */
.doc-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.doc-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: #fff;
  transition: background .2s;
}
.doc-row:hover { background: var(--bg-soft); }
.doc-row__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.doc-row__icon svg { width: 17px; height: 17px; }
.doc-row__title { font-size: 15px; font-weight: 500; flex: 1; }
.doc-row__type {
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 5px 11px;
  border-radius: 6px;
  white-space: nowrap;
}
.doc-row__dl {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

/* --- 20. Футер --------------------------------------------------------- */
.site-footer {
  background: var(--accent);
  color: #dce7dc;
  padding: 76px 0 34px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
}
.footer-brand .logo__name { color: #fff; }
.footer-brand .logo__sub { color: #9fb3a3; }
.footer-brand p {
  margin-top: 20px;
  font-size: 14px;
  color: #a9bdab;
  line-height: 1.7;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: #b8c9ba;
  transition: color .2s;
}
.footer-col a:hover { color: #fff; }
.footer-contacts { font-size: 14px; line-height: 1.9; color: #b8c9ba; }
.footer-contacts a { color: #fff; font-weight: 500; }
.footer-contacts a:hover { text-decoration: underline; }

.footer-bottom {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #8fa593;
}
.footer-bottom a:hover { color: #fff; }

/* --- 21. Анимация появления -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

/* --- 22. Адаптив ------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --gutter: 24px; }
  .section { padding: 84px 0; }
  .houses-grid { grid-template-columns: repeat(2, 1fr); }
  .apt-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-result { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .quickpick__card { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid__item:nth-child(6),
  .gallery-grid__item:nth-child(11) { grid-column: span 1; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__right .btn { display: none; }
  .burger { display: flex; }
  .nav { gap: 12px; height: 72px; }
  .nav__right { gap: 10px; min-width: 0; }
  .nav__phone { font-size: 13.5px; gap: 6px; }
  .nav__phone span { white-space: nowrap; }
  .logo__name { font-size: 17px; }
  .logo__sub { font-size: 9px; letter-spacing: .1em; }
  .mobile-menu { inset: 72px 0 0; }
  .hero { min-height: auto; padding: 110px 0 104px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; padding-top: 24px; }
  .hero__stat:last-child { grid-column: span 2; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .cta-banner { grid-template-columns: 1fr; padding: 44px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .news-grid { grid-template-columns: 1fr; }
  .quickpick { margin-top: -32px; }
  .quickpick__card { grid-template-columns: 1fr; padding: 22px; }
  .doc-row__type { display: none; }
  .filters { padding: 18px; }
  .filter { min-width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 460px) {
  .nav__phone span { display: none; }
  .nav__phone {
    width: 44px;
    height: 44px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
  }
  .nav__phone svg { width: 17px; height: 17px; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .section { padding: 64px 0; }
  .section--tight { padding: 48px 0; }
  .houses-grid, .apt-grid, .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-grid__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .btn { padding: 15px 24px; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .calc-card, .calc-result { padding: 24px; }
  .cta-banner { padding: 36px 24px; }
  .cta-banner__actions { width: 100%; }
  .cta-banner__actions .btn { width: 100%; }
  .loc-list li { flex-direction: column; align-items: flex-start; gap: 4px; }
  .loc-list .n { text-align: left; }
  .lightbox { padding: 16px; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
  .house-hero { padding-top: 100px; }
}
