/* ========== Дизайн-система: один стиль на весь сайт ========== */
:root {
  --bg: #f5f5f4;
  --bg-card: #fff;
  --text: #1a1a1a;
  --text-muted: #5c5c5c;
  --border: #e0e0de;
  --gold: #8b6914;
  --gold-light: #a67c00;
  --gold-bright: #c9a227;
  --gold-glow: rgba(139, 105, 20, .12);
  --dark: #1a1a1a;
  --radius: 6px;
  --radius-lg: 12px;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --space: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
}

/* Базовые стили для всех страниц */
body {
  margin: 0;
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Шапка и навигация — единый стиль на всех страницах.
   В навигации: один пункт «Объекты» (href="/objects.html"), «Продать / сдать», Услуги (dropdown), Контакты.
   Поиск: placeholder="Объекты…", label для поля — «Объекты». */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav a {
  color: var(--text-muted);
  transition: color .2s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--gold); }
.header .cta {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background .2s var(--ease);
}
.header .cta:hover { background: var(--gold); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark);
  border-radius: 1px;
}
.nav-overlay {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--dark);
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  visibility: hidden;
  pointer-events: none;
}
.nav-overlay[data-open="true"] {
  display: flex !important;
  visibility: visible;
  pointer-events: auto;
}
.nav-overlay .nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: 100%;
  max-width: 20rem;
}
.nav-overlay .nav-mobile a {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
  color: #fff;
  transition: color .2s;
  text-align: center;
}
.nav-overlay .nav-mobile a:hover { color: var(--gold-bright); }
.nav-overlay .cta-mobile {
  margin-top: 1.5rem;
  padding: 0.875rem 1.5rem;
  background: var(--gold);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
}

/* Футер — единый стиль */
footer {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  padding: var(--space-xl) clamp(1rem, 4vw, 2rem);
  font-size: 0.9rem;
  margin-top: var(--space-xl);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}
.footer .logo { color: #fff; }
.footer nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer a {
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.footer a:hover { color: var(--gold-bright); }

/* Внутренние страницы: контент с ровными отступами */
main:has(.page-title) {
  padding: clamp(4rem, 10vw, 6rem) clamp(1.25rem, 4vw, 2rem) var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
}
main .page-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
main .breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
main .breadcrumb a {
  color: var(--gold);
  font-weight: 500;
}
main .breadcrumb a:hover { text-decoration: underline; }

/* Каталог объектов: одна страница «Купить / Снять / Продать» */
main:has(.catalog-intent-tabs) { max-width: 1280px; }
.catalog-intent-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.intent-tab {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.intent-tab:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.intent-tab.active {
  border-color: var(--gold);
  background: rgba(139, 105, 20, .08);
  color: var(--gold);
}
.intent-tab:last-of-type { margin-left: auto; }
.page-desc { color: var(--text-muted); font-size: 1rem; margin-bottom: 2rem; line-height: 1.5; }

/* Компактный каталог: заголовок + сортировка в одну строку */
.catalog-header-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.page-title--compact { margin-bottom: 0.2rem; font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
.page-desc--compact { margin-bottom: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.4; }
.catalog-sort--inline { margin-bottom: 0; flex-shrink: 0; }
.catalog-sort--inline select { min-width: 140px; }

/* Тулбар: поиск + быстрые фильтры в одной компактной полосе */
.catalog-toolbar { margin-bottom: 1rem; padding: 0.85rem 1rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.catalog-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.search-block--compact { flex: 1; min-width: 180px; margin-bottom: 0; padding: 0; background: none; border: none; border-radius: 0; }
.search-block__input { width: 100%; padding: 0.5rem 0.75rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; background: var(--bg); }
.search-block__input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-glow); }
.search-block--compact label { margin-bottom: 0; }
.quick-filters--inline { margin-bottom: 0; flex-wrap: wrap; }
.quick-filters__label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-right: 0.35rem; }
.quick-chip { display: inline-block; padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.8rem; font-weight: 500; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.quick-chip:hover { border-color: var(--gold); color: var(--gold); }
.quick-chip.active { border-color: var(--gold); background: rgba(139, 105, 20, .08); color: var(--gold); }

.search-block { margin-bottom: 2rem; padding: 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.search-block label { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 0.5rem; }
.search-block .search-row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.search-block input[type="search"] { flex: 1; min-width: 200px; padding: 0.85rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
.search-block input[type="search"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-block .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; }
.quick-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; align-items: center; }
.quick-filters span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-right: 0.25rem; }
.catalog-sort { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.catalog-sort label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.catalog-sort select { padding: 0.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.9rem; font-family: inherit; background: var(--bg-card); }
.catalog-sort select:focus { outline: none; border-color: var(--gold); }

/* Детальные фильтры: сворачиваемый блок */
.filters-details { margin-bottom: 1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); overflow: hidden; }
.filters-details__summary { padding: 0.6rem 1rem; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.5rem; transition: color .2s, background .2s; }
.filters-details__summary::-webkit-details-marker { display: none; }
.filters-details__summary::before { content: ''; display: inline-block; width: 0.5rem; height: 0.5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 0.25rem; transition: transform .2s; }
.filters-details[open] .filters-details__summary::before { transform: rotate(-135deg); }
.filters-details__summary:hover { color: var(--gold); }
.filters-details .filters-block { padding: 0 1rem 1rem; border: none; margin-bottom: 0; background: transparent; }
.filters-details .filters-block .filter-row { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: flex-end; margin-bottom: 0.75rem; }
.filters-details .filters-block .filter-row:last-child { margin-bottom: 0; }
.filters-details .filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filters-details .filter-group label { font-size: 0.7rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); }
.filters-details .filter-group select, .filters-details .filter-group input[type="number"] { padding: 0.45rem 0.65rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; font-family: inherit; background: var(--bg-card); }
.filters-details .filter-group input[type="number"] { max-width: 5rem; }
.filters-details .filter-group select:focus, .filters-details .filter-group input:focus { outline: none; border-color: var(--gold); }
.filters-details .filter-buttons { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.filters-details .filter-buttons button { padding: 0.4rem 0.7rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-family: inherit; transition: border-color .2s, color .2s; }
.filters-details .filter-buttons button:hover { border-color: var(--gold); color: var(--gold); }
.filters-details .filter-buttons button.active { border-color: var(--gold); background: rgba(139, 105, 20, .08); color: var(--gold); }
.filters-details .filter-buttons .btn-reset { margin-left: 0.35rem; font-size: 0.75rem; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: inherit; }
.filters-details .filter-buttons .btn-reset:hover { color: var(--gold); }
.filters-details .filter-price-row { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.filters-details .filter-price-row span { font-size: 0.8rem; color: var(--text-muted); }

.filters-block { margin-bottom: 2rem; padding: 1.25rem 1.5rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.filters-block .filter-row { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: flex-end; margin-bottom: 1rem; }
.filters-block .filter-row:last-child { margin-bottom: 0; }
.filter-group { display: flex; flex-direction: column; gap: 0.35rem; }
.filter-group label { font-size: 0.75rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); }
.filter-group select, .filter-group input[type="number"] { padding: 0.6rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); font-size: 0.95rem; font-family: inherit; background: var(--bg-card); }
.filter-group input[type="number"] { max-width: 100px; }
.filter-group select:focus, .filter-group input:focus { outline: none; border-color: var(--gold); }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.filter-buttons button { padding: 0.5rem 1rem; border-radius: var(--radius); font-size: 0.85rem; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-muted); font-family: inherit; transition: border-color .2s, color .2s; }
.filter-buttons button:hover { border-color: var(--gold); color: var(--gold); }
.filter-buttons button.active { border-color: var(--gold); background: rgba(139, 105, 20, .08); color: var(--gold); }
.filter-buttons .btn-reset { margin-left: 0.5rem; font-size: 0.8rem; color: var(--text-muted); cursor: pointer; background: none; border: none; font-family: inherit; }
.filter-buttons .btn-reset:hover { color: var(--gold); }
.filter-price-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.filter-price-row span { font-size: 0.85rem; color: var(--text-muted); }

.catalog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.catalog-map-btn { font-size: 0.875rem; color: var(--gold); cursor: pointer; background: none; border: none; font-family: inherit; padding: 0; text-decoration: underline; }
.catalog-map-btn:hover { text-decoration: none; }
.catalog-count { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.catalog-empty { text-align: center; padding: 3rem 2rem; color: var(--text-muted); font-size: 1.05rem; }
.catalog-map-wrap { margin-bottom: 1rem; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: #e8eaed; height: 360px; }
.catalog-map-wrap div { width: 100%; height: 100%; }
@media (max-width: 768px) {
  .filters-block .filter-row { flex-direction: column; align-items: stretch; }
  .filter-group select, .filter-group input[type="number"] { max-width: none; }
  .catalog-toolbar-row { flex-direction: column; align-items: stretch; }
  .search-block--compact { min-width: 0; }
  .filters-details .filter-group input[type="number"] { max-width: none; }
}

@media (max-width: 768px) {
  .nav:not(.nav-mobile), .header .cta:not(.cta-mobile) { display: none; }
  .menu-toggle { display: flex; }
  .header { padding: 0.875rem 1.25rem; }
}

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  z-index: 101;
  width: 0%;
  transition: width .12s ease-out;
  box-shadow: 0 0 12px rgba(139, 105, 20, .35);
}
.has-top-strip .scroll-progress { top: 2.5rem; }

/* Секции главной страницы */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) clamp(1.25rem, 4vw, 2rem);
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section-header p,
.section-intro {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.objects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
@media (max-width: 1024px) { .objects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .objects-grid { grid-template-columns: 1fr; } }

/* ========== Главная: объекты в одну строку (карусель), не вылазят вниз ========== */
.page-home .section.objects .selector-block { display: none; }
.page-home .section.objects .section-header { margin-bottom: 1rem; }
.page-home .section.objects .section-intro { margin-bottom: 1rem; }
.page-home .section.objects .quick-price { margin-bottom: 1.25rem; }
.page-home .section.objects .objects-row-wrap {
  margin-left: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}
.page-home .section.objects .objects-row-wrap::-webkit-scrollbar { height: 6px; }
.page-home .section.objects .objects-row-wrap::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.page-home .section.objects .objects-row-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.page-home .section.objects .objects-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  grid-template-columns: unset;
  padding-right: 1rem;
}
.page-home .section.objects .object-card {
  flex: 0 0 auto;
  min-width: min(300px, 85vw);
  max-width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.page-home .section.objects .object-card .img-wrap { height: 200px; }
.page-home .section.objects .object-card .info { padding: 1rem 1.1rem 1.2rem; }
.page-home .section.objects .object-card h3 { font-size: 1.05rem; -webkit-line-clamp: 2; }
.page-home .section.objects .object-card .card-specs { padding-top: 0.5rem; margin-top: 0.5rem; font-size: 0.75rem; }
.page-home .section.objects .objects-row-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.page-home .section.objects .objects-row-hint::before { content: ''; width: 20px; height: 2px; background: var(--border); }
.page-home .section.objects .objects-row-hint::after { content: '→'; color: var(--gold); font-weight: 600; }
.page-home .section.objects .objects-cta { margin-top: 1.75rem; }
.page-home .section.objects .objects-strip { margin-bottom: 2.5rem; }
.page-home .section.objects .objects-strip:last-of-type { margin-bottom: 0; }
.page-home .section.objects .objects-strip-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; letter-spacing: -.02em; }
.page-home .section.objects .objects-strip-cta { margin-top: 0.75rem; font-size: 0.9rem; }
.page-home .section.objects .objects-strip-cta a { color: var(--gold); font-weight: 600; }
.page-home .section.objects .objects-strip-cta a:hover { text-decoration: underline; }
.page-home .section.objects .objects-grid .skeleton-card { min-width: min(300px, 85vw); flex: 0 0 auto; }
.page-home .section.objects .objects-grid .skeleton-card .skeleton-img { height: 200px; }
/* Появление секций при скролле */
.reveal-block {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-block.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Каскадное появление карточек в блоке «Объекты» на главной */
.section.objects .objects-grid .object-card {
  opacity: 0;
  transform: translateY(24px);
}
.section.objects.revealed .objects-grid .object-card {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
/* На главной блок «Объекты» и карточки всегда видимы (не ждём скролла) */
.page-home .section.objects {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.page-home .section.objects .objects-grid .object-card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}
.page-home .section.objects.revealed .objects-grid .object-card {
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
}
/* Блок контактов (Бесплатная консультация) — без анимации, показывать сразу, чтобы не лагало */
.page-home .contact-block,
.page-home #contacts.reveal-block,
.page-home #contacts .contact-block {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.section.objects.revealed .objects-grid .object-card:nth-child(1) { transition-delay: 0.08s; }
.section.objects.revealed .objects-grid .object-card:nth-child(2) { transition-delay: 0.16s; }
.section.objects.revealed .objects-grid .object-card:nth-child(3) { transition-delay: 0.24s; }
.section.objects.revealed .objects-grid .object-card:nth-child(4) { transition-delay: 0.32s; }
.section.objects.revealed .objects-grid .object-card:nth-child(5) { transition-delay: 0.4s; }
.section.objects.revealed .objects-grid .object-card:nth-child(6) { transition-delay: 0.48s; }
.section.objects.revealed .objects-grid .object-card:nth-child(n+7) { transition-delay: 0.56s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-block { opacity: 1; transform: none; transition: none; }
  .reveal-block.revealed { opacity: 1; transform: none; }
  .section.objects .objects-grid .object-card { opacity: 1; transform: none; }
  .section.objects.revealed .objects-grid .object-card { transition: none; transition-delay: 0s; }
  .hero-scroll-hint { animation: none; opacity: 1; }
  .hero-scroll-hint-icon::before { animation: none; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 clamp(1.25rem, 4vw, 2rem); }
.hero-inner { max-width: 1200px; margin: 0 auto; width: 100%; }
.object-card .img-wrap { height: 280px; position: relative; background: #1a1a1a; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.object-card .img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.object-card:hover .img-wrap img { transform: scale(1.03); }
.object-card .img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.65) 0%, transparent 45%); pointer-events: none; }
.object-card .img-wrap .card-type-badge { position: absolute; top: 0.875rem; left: 0.875rem; z-index: 2; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; background: var(--gold); padding: 0.4rem 0.75rem; border-radius: 4px; }
.object-card .img-wrap .fav-btn { position: absolute; top: 0.875rem; right: 0.875rem; z-index: 3; width: 2.25rem; height: 2.25rem; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--text-muted); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s, color .2s, box-shadow .2s; box-shadow: 0 1px 4px rgba(0,0,0,.2); outline: none; }
.object-card .img-wrap .fav-btn:hover { background: #fff; color: var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.object-card .img-wrap .fav-btn:focus-visible { box-shadow: 0 0 0 2px var(--gold); }
.object-card .img-wrap .fav-btn.active { color: var(--gold); background: #fff; }
.object-card .img-wrap .price-tag { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.object-card .img-wrap .img-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; color: rgba(255,255,255,.5); font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase; z-index: 1; }
.object-card .img-wrap .img-placeholder::before { content: ''; width: 48px; height: 48px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.4)' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/24px no-repeat; }
.object-card .meta { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; font-weight: 600; line-height: 1.3; }
.object-card h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 0.5rem; }
.object-card .card-district { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.25rem; margin-bottom: 0.5rem; }
.object-card .card-specs { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; }
.object-card .card-spec-item:not(:last-child)::after { content: '\00a0·\00a0'; color: inherit; font-weight: 400; }
.object-card .card-spec-sep { color: var(--text-muted); user-select: none; }
.object-card .card-more { display: inline-block; margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; color: var(--gold); transition: color .2s; }
.object-card .card-more::after { content: ' →'; }
.object-card:hover .card-more { color: var(--gold-light); }

/* Верхняя полоса — спокойная, без лишнего декора */
.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--dark);
  color: rgba(255,255,255,.9);
  padding: 0.6rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.top-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}
.top-strip span { display: inline-flex; align-items: center; }
.top-strip span:not(:last-of-type)::after {
  content: '·';
  margin-left: 1.5rem;
  color: rgba(255,255,255,.4);
}
.top-strip a {
  margin-left: auto;
  padding: 0.4rem 1rem;
  border-radius: var(--radius);
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: background .2s, opacity .2s;
}
.top-strip a:hover { background: var(--gold-light); opacity: 1; }
.has-top-strip .header { top: 2.5rem; }
.has-top-strip .hero-inner { padding-top: 7rem; }
.has-top-strip .scroll-progress { top: 2.5rem; }
@media (max-width: 768px) {
  .top-strip { padding: 0.5rem 0.875rem; font-size: 0.75rem; }
  .top-strip-inner { gap: 0.5rem 1rem; }
  .top-strip a { margin-left: 0; }
}

/* Hero — выразительный первый экран: градиент, блобы, крупная типографика */
.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  background-image:
    radial-gradient(ellipse 120% 80% at 70% 20%, rgba(139, 105, 20, .12) 0%, transparent 50%),
    radial-gradient(ellipse 100% 60% at 20% 80%, rgba(139, 105, 20, .06) 0%, transparent 45%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  pointer-events: none;
}
.hero-blob-1 {
  width: min(90vw, 520px);
  height: min(90vw, 520px);
  background: var(--gold);
  top: -15%;
  right: -10%;
  animation: hero-blob-float 18s ease-in-out infinite;
}
.hero-blob-2 {
  width: min(70vw, 380px);
  height: min(70vw, 380px);
  background: var(--gold-bright);
  bottom: -10%;
  left: -5%;
  opacity: .2;
  animation: hero-blob-float 22s ease-in-out infinite reverse;
}
.hero-blob-3 {
  width: min(50vw, 280px);
  height: min(50vw, 280px);
  background: var(--gold-light);
  top: 50%;
  left: 40%;
  opacity: .12;
  animation: hero-blob-float 15s ease-in-out infinite 2s;
}
@keyframes hero-blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.03); }
  66% { transform: translate(-2%, 2%) scale(0.98); }
}
.hero-inner {
  padding: 7rem 0 5.5rem;
  position: relative;
  z-index: 1;
}
.hero-line {
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.75rem;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-bright) 100%);
  opacity: 0;
  animation: hero-line-in .6s var(--ease-out) .2s forwards;
}
@keyframes hero-line-in {
  from { opacity: 0; transform: scaleX(0); transform-origin: left; }
  to { opacity: 1; transform: scaleX(1); }
}
.hero-badge {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  font-weight: 600;
  opacity: 0;
  animation: hero-fade-up .5s var(--ease-out) .35s forwards;
}
.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.75rem, 6.5vw, 4.75rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 680px;
  margin-bottom: 1.5rem;
  color: #fff;
  opacity: 0;
  animation: hero-fade-up .55s var(--ease-out) .45s forwards;
}
.hero h1 span {
  color: var(--gold-bright);
  font-style: italic;
  position: relative;
}
.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 2.25rem;
  color: rgba(255,255,255,.85);
  font-weight: 400;
  opacity: 0;
  animation: hero-fade-up .5s var(--ease-out) .6s forwards;
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-trust {
  font-size: 0.9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  opacity: 0;
  animation: hero-fade-up .5s var(--ease-out) .75s forwards;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
}
.hero-trust span:not(:last-child)::after {
  display: none;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: hero-fade-up .5s var(--ease-out) .9s forwards;
}
.hero-buttons .btn-primary {
  min-width: 200px;
  padding: 1.1rem 2rem;
  font-size: 1rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .25s, box-shadow .25s;
}
.hero-buttons .btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 28px rgba(139, 105, 20, .35);
}
.hero-buttons .btn-outline {
  padding: 1.1rem 2rem;
  font-size: 1rem;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  font-weight: 600;
  transition: border-color .25s, color .25s, background .25s;
}
.hero-buttons .btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  background: rgba(139, 105, 20, .08);
}

/* Подсказка «листайте вниз» в hero */
.hero {
  position: relative;
}
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,.75);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .25s;
  animation: hero-scroll-hint-fade 1s var(--ease-out) 1.2s forwards;
  opacity: 0;
}
.hero-scroll-hint:hover { color: rgba(255,255,255,.95); }
.hero-scroll-hint-icon {
  width: 24px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 12px;
  position: relative;
}
.hero-scroll-hint-icon::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: currentColor;
  border-radius: 2px;
  animation: hero-scroll-bounce 2s ease-in-out infinite;
}
@keyframes hero-scroll-hint-fade {
  to { opacity: 1; }
}
@keyframes hero-scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.6; transform: translateX(-50%) translateY(8px); }
}

/* Секции — заголовки сильнее */
.section-label {
  font-size: 0.82rem;
  letter-spacing: .26em;
  margin-bottom: 0.9rem;
  color: var(--gold);
  font-weight: 700;
}
.section-label::before {
  width: 36px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(154, 123, 79, .25);
}
/* Секция «Объекты» на главной — как в макете: серый лейбл, крупный заголовок */
.section.objects .section-label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.section.objects .section-label::before {
  display: none;
}
.section-header h2 {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  letter-spacing: -.045em;
  margin-bottom: 1rem;
  font-weight: 700;
}
.section-intro {
  font-size: 1.08rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 600px;
  margin-top: -0.5rem;
  margin-bottom: 2rem;
}

/* Полоса цифр (strip) — тёмная, 4 колонки с золотыми разделителями */
.strip {
  background: var(--dark);
  color: rgba(255,255,255,.9);
  padding: var(--space-lg) clamp(1.25rem, 4vw, 2rem);
  border-top: 1px solid rgba(255,255,255,.06);
}
.strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.strip-item {
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(201, 162, 39, .35);
}
.strip-item:last-child { border-right: none; }
.strip-item strong {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.35rem;
}
.strip-item span {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.7);
  letter-spacing: 0.02em;
}
@media (max-width: 768px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .strip-item { border-right: none; padding: 1.25rem 0.75rem; }
  .strip-item:nth-child(odd) { border-right: 1px solid rgba(201, 162, 39, .35); }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid rgba(201, 162, 39, .35); }
  .strip-item strong { font-size: 1.5rem; }
}
@media (max-width: 480px) {
  .strip-inner { grid-template-columns: 1fr; }
  .strip-item { border-right: none; border-bottom: 1px solid rgba(201, 162, 39, .25); padding: 1rem; }
  .strip-item:last-child { border-bottom: none; }
  .strip-item:nth-child(odd) { border-right: none; }
  .strip-item:nth-child(-n+2) { border-bottom: 1px solid rgba(201, 162, 39, .25); }
}

/* CTA под объектами — сильнее: как полноценные кнопки */
.objects-cta {
  margin-top: 2.5rem !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  padding-top: 2rem;
  border-top: 2px solid rgba(0,0,0,.06);
}
.objects-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  background: rgba(154, 123, 79, .1);
  border: 2px solid rgba(154, 123, 79, .35);
  color: var(--gold);
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.objects-cta a:hover {
  background: rgba(154, 123, 79, .18);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(154, 123, 79, .2);
}
.objects-cta a::after {
  content: '→';
  font-weight: 700;
}

/* Секция «Избранное» скрыта по запросу */
.favorites-section { display: none !important; }

/* Блок контактов — премиальная «табличка»: акцент на номер и один сильный CTA */
#contact-wa { display: none !important; }
.contact-phone-copy { display: none !important; }
.contact-block {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: linear-gradient(165deg, #1a1a1a 0%, #0f0f0f 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .25);
  box-shadow: 0 24px 64px rgba(0,0,0,.4), 0 0 0 1px rgba(255,255,255,.04) inset, 0 0 80px rgba(139, 105, 20, .08);
}
.contact-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 20%, var(--gold-bright) 50%, var(--gold) 80%, transparent 100%);
  opacity: .95;
}
.contact-block::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% -20%, rgba(139, 105, 20, .18) 0%, transparent 55%);
  pointer-events: none;
}
.contact-block .contact-tagline {
  position: relative;
  z-index: 1;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 0.6rem;
  font-weight: 700;
}
.contact-block h2 {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #fff;
  letter-spacing: -0.02em;
}
.contact-block #contact-subtitle {
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
  color: rgba(255,255,255,.8);
  margin-bottom: 0.25rem;
}
.contact-block .contact-detail {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.5rem;
}
.contact-block .links {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}
.contact-block .links a[id="contact-phone"] {
  flex: 1 1 100%;
  display: block;
  max-width: 320px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  border: 2px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius-lg);
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.contact-block .links a[id="contact-phone"]:hover {
  border-color: var(--gold);
  background: rgba(139, 105, 20, .15);
  box-shadow: 0 0 0 1px rgba(201, 162, 39, .2);
}
.contact-block .btn,
.contact-block #contact-phone-btn {
  position: relative;
  z-index: 1;
  display: inline-block;
  width: 100%;
  max-width: 320px;
  padding: 1.25rem 2rem;
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius-lg);
  transition: background .25s, box-shadow .25s, transform .2s;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}
.contact-block .btn:hover,
.contact-block #contact-phone-btn:hover {
  background: var(--gold-light);
  box-shadow: 0 14px 40px rgba(139, 105, 20, .45);
  transform: translateY(-3px);
}
.contact-block .links a:not([id="contact-phone"]),
.contact-block .contact-phone-copy {
  padding: 0.6rem 1.1rem;
  min-height: 44px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.9);
  transition: border-color .2s, background .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-block .links a:not([id="contact-phone"]):hover,
.contact-block .contact-phone-copy:hover {
  border-color: var(--gold);
  background: rgba(139, 105, 20, .12);
}

/* Карточки объектов — выразительные, с деталями */
.objects {
  background: var(--bg);
  padding: var(--space-xl) clamp(1.25rem, 4vw, 2rem);
}
.objects-grid {
  gap: 1.75rem;
}
.object-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
}
.object-card:hover {
  border-color: rgba(139, 105, 20, .4);
  box-shadow: 0 12px 32px rgba(0,0,0,.08);
}
.object-card .info {
  padding: 1.35rem 1.35rem 1.5rem;
  background: var(--bg-card);
  border-top: none;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.object-card .card-more {
  margin-top: auto;
  padding-top: 0.5rem;
}
.object-card .card-type-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gold);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
}

/* Шапка — одна панель, без лишнего */
.header {
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.logo {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.header .cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
}
.header .cta:hover {
  background: var(--gold);
}

/* Футер */
footer {
  padding: 3rem 2rem;
  border-top: 1px solid rgba(201, 169, 98, .15);
}
footer::before {
  width: 200px;
  height: 3px;
  opacity: .8;
}
.footer-inner {
  gap: 2rem;
}
.footer .logo {
  font-size: 1.35rem;
  font-weight: 700;
}
.footer nav a {
  font-size: 0.95rem;
  transition: color .2s, transform .2s;
}
.footer a:hover {
  transform: translateX(2px);
}

/* Плавающая кнопка — заметнее */
.float-call a {
  font-size: 1.05rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  min-height: 56px;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 36px rgba(154, 123, 79, .5);
}

/* Scroll progress — толще, с лёгким свечением */
.scroll-progress {
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  box-shadow: 0 0 12px rgba(154, 123, 79, .35);
}

/* Общие кнопки */
.btn {
  border-radius: var(--radius);
  font-weight: 600;
  letter-spacing: .04em;
}
.btn-primary {
  box-shadow: 0 4px 20px rgba(154, 123, 79, .3);
}

/* Каталог и внутренние страницы */
.page-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: -0.25rem;
  margin-bottom: 1.5rem;
  max-width: 560px;
}
.page-title {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 1.75rem;
}
.breadcrumb {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.breadcrumb a:hover {
  text-decoration: none;
  color: var(--gold-light);
}
.about-content p,
.about-content .about-cta {
  font-size: 1.08rem;
  line-height: 1.8;
}
.about-cta {
  padding: 1.1rem 2.25rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(154, 123, 79, .25);
}
.about-cta:hover {
  box-shadow: 0 8px 32px rgba(154, 123, 79, .35);
}

/* О компании — блок «Наши принципы» */
.about-principles {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 2px solid rgba(0,0,0,.06);
}
.about-principles-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  letter-spacing: -.02em;
}
.about-principles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.about-principle {
  padding: 1.75rem 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .25s;
}
.about-principle:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.06), 0 0 0 1px rgba(154, 123, 79, .12);
  border-color: rgba(154, 123, 79, .2);
}
.about-principle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(154, 123, 79, .3);
}
.about-principle h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.about-principle p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 1024px) {
  .about-principles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .about-principles-grid { grid-template-columns: 1fr; }
  .about-principles { margin-top: 2.5rem; padding-top: 2rem; }
}

@media (max-width: 768px) {
  .hero-inner { padding: 6rem 0 4rem; }
  .hero-blob-1 { width: 280px; height: 280px; top: -20%; right: -30%; }
  .hero-blob-2 { width: 220px; height: 220px; bottom: -15%; left: -20%; }
  .hero-blob-3 { width: 160px; height: 160px; top: 60%; left: 30%; }
  .hero-trust { flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .hero-trust span { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
  .section-intro { font-size: 1rem; margin-bottom: 1.5rem; }
  .objects-cta { flex-direction: column; }
  .objects-cta a { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-blob,
  .hero-line,
  .hero-badge,
  .hero h1,
  .hero-subtitle,
  .hero-trust,
  .hero-buttons { animation: none; opacity: 1; }
  .hero-line { transform: none; }
}

/* ——— Кнопка «Наверх» ——— */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(154, 123, 79, .4);
  background: rgba(255,255,255,.95);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
  z-index: 88;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s, transform .2s var(--ease);
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: var(--gold);
  color: #fff;
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(154, 123, 79, .35);
}
.back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
@media (max-width: 768px) {
  .back-to-top { bottom: 5rem; right: 1rem; width: 44px; height: 44px; font-size: 1.1rem; }
}

/* ——— Блок «Заказать звонок» в футере ——— */
.callback-block {
  width: 100%;
  max-width: 360px;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.callback-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  margin-bottom: 0.75rem;
}
.callback-block label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 0.35rem;
}
.callback-block input {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 6px;
  background: rgba(0,0,0,.2);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}
.callback-block input::placeholder {
  color: rgba(255,255,255,.5);
}
.callback-block input.form-field-error {
  border-color: #e57373;
  box-shadow: 0 0 0 2px rgba(229, 115, 115, .3);
}
.callback-block button[type="submit"] {
  padding: 0.65rem 1.25rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0a0c0f;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.callback-block button[type="submit"]:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(154, 123, 79, .4);
}
.callback-block .callback-msg {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: none;
}
.callback-block .callback-msg.success { color: #81c784; display: block; }
.callback-block .callback-msg.error { color: #e57373; display: block; }

/* Быстрый подбор по цене (главная) — подпись + округлые кнопки */
.quick-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}
.quick-price span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 0.15rem;
}
.quick-price a {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color .2s, color .2s, background .2s;
}
.quick-price a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(139, 105, 20, .06);
}

/* Состояние загрузки сетки объектов */
.objects-grid-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 1rem;
}
.objects-grid-loading::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  margin-left: 0.5rem;
  border: 2px solid var(--gold);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Ошибка валидации в формах */
.form-field-error,
input.form-field-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 2px rgba(211, 47, 47, .2) !important;
}

/* Похожие объекты (страница объекта) */
.similar-objects {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.similar-objects-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.similar-objects-grid.objects-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.similar-objects-grid .object-card {
  min-height: 0;
}
@media (max-width: 768px) {
  .similar-objects-grid.objects-grid { grid-template-columns: 1fr; }
}

/* ——— Скелетоны загрузки карточек ——— */
.skeleton-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.skeleton-card .skeleton-img {
  height: 272px;
  background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
}
.skeleton-card .skeleton-body {
  padding: 1.5rem;
}
.skeleton-card .skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,0,0,.06) 25%, rgba(0,0,0,.1) 50%, rgba(0,0,0,.06) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  margin-bottom: 0.75rem;
}
.skeleton-card .skeleton-line:first-of-type { width: 40%; }
.skeleton-card .skeleton-line:nth-of-type(2) { width: 90%; }
.skeleton-card .skeleton-line:nth-of-type(3) { width: 70%; }
@keyframes skeletonShimmer {
  to { background-position: 200% 0; }
}

/* ——— Cookie-бар ——— */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.5rem;
  background: linear-gradient(180deg, #0d1014 0%, #0a0c0f 100%);
  color: rgba(255,255,255,.9);
  font-size: 0.9rem;
  z-index: 999;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  border-top: 1px solid rgba(201,169,98,.2);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(0.33, 1, 0.68, 1);
}
.cookie-bar.visible {
  transform: translateY(0);
}
.cookie-bar p { margin: 0; }
.cookie-bar .cookie-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #0a0c0f;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.cookie-bar .cookie-btn:hover { opacity: .95; }

/* ——— Подбор по параметрам (главная) ——— белая карточка, золотая кнопка */
.selector-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}
.selector-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.selector-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.25rem;
}
.selector-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}
.selector-form select {
  padding: 0.65rem 2rem 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  min-width: 140px;
  background: #fff;
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235c5c5c' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}
.selector-form button {
  padding: 0.7rem 1.75rem;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
}
.selector-form button:hover {
  background: var(--gold-light);
  box-shadow: 0 4px 14px rgba(139, 105, 20, .25);
}

/* ——— Липкий CTA (страница объекта) ——— */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.85rem 1.5rem;
  background: rgba(10,12,15,.97);
  border-top: 2px solid rgba(201,169,98,.3);
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transform: translateY(100%);
  transition: transform .3s var(--ease);
}
.sticky-cta.visible {
  transform: translateY(0);
}
.sticky-cta a {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--gold) 0%, #b08d5c 100%);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
}
.sticky-cta a:hover { opacity: .95; }
@media (min-width: 769px) {
  .sticky-cta { padding-left: 2rem; padding-right: 2rem; }
}

/* ——— Мини-ипотека на странице объекта ——— */
.object-mortgage {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(154,123,79,.08) 0%, rgba(201,169,98,.06) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(154,123,79,.2);
}
.object-mortgage h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.object-mortgage-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 0.75rem;
}
.object-mortgage-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.object-mortgage-row input, .object-mortgage-row select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.9rem;
  width: 100%;
  max-width: 120px;
}
.object-mortgage-result {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
}
.object-mortgage-result span { font-weight: 400; color: var(--text-muted); font-size: 0.9rem; }
.object-mortgage-cta { margin-top: 1rem; font-size: 0.9rem; }
.object-mortgage-cta a { color: var(--gold); font-weight: 600; }
.object-mortgage-cta a:hover { color: var(--gold-light); text-decoration: underline; }

/* ——— Кнопки поделиться (TG, WA) ——— */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.share-buttons a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}
.share-buttons a:hover { opacity: .9; }
.share-buttons .share-tg { background: #0088cc; color: #fff; }
.share-buttons .share-wa { background: #25d366; color: #fff; }
.share-buttons .share-vk { background: #0077ff; color: #fff; }

/* ——— Тосты ——— */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-msg {
  padding: 0.75rem 1.25rem;
  background: rgba(10,12,15,.95);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  white-space: nowrap;
  transition: opacity .3s, transform .3s;
}
.toast-msg-hide {
  opacity: 0;
  transform: translateY(8px);
}

/* Блок «Вы смотрели» */
.recently-viewed-section {
  padding: clamp(3rem, 6vw, 5rem) 2rem;
  background: linear-gradient(180deg, #fafbfc 0%, #f5f6f8 100%);
  border-top: 1px solid var(--border);
}
.recently-viewed-section.empty { display: none; }
.recently-viewed-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}
/* «Вы смотрели» — в линейку, как полоски объектов */
.recently-viewed-section .objects-row-wrap {
  margin-left: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  margin-right: calc(-1 * clamp(1.25rem, 4vw, 2rem));
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) var(--border);
}
.recently-viewed-section .objects-row-wrap::-webkit-scrollbar { height: 6px; }
.recently-viewed-section .objects-row-wrap::-webkit-scrollbar-track { background: var(--border); border-radius: 3px; }
.recently-viewed-section .objects-row-wrap::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.recently-viewed-section .objects-grid {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 1.25rem;
  grid-template-columns: unset;
  padding-right: 1rem;
}
.recently-viewed-section .object-card {
  flex: 0 0 auto;
  min-width: min(300px, 85vw);
  max-width: 320px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.recently-viewed-section .object-card .img-wrap { height: 200px; }
.recently-viewed-section .object-card .info { padding: 1rem 1.1rem 1.2rem; }
.recently-viewed-section .object-card h3 { font-size: 1.05rem; -webkit-line-clamp: 2; }
.recently-viewed-section .objects-row-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}
.recently-viewed-section .objects-row-hint::before { content: ''; width: 20px; height: 2px; background: var(--border); }
.recently-viewed-section .objects-row-hint::after { content: '→'; color: var(--gold); font-weight: 600; }

/* Форма «Задать вопрос по объекту» */
.object-question-block {
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(0,0,0,.03);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.object-question-block h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
}
.object-question-block label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 0.35rem; }
.object-question-block input, .object-question-block textarea {
  width: 100%; padding: 0.6rem 0.85rem; border: 1px solid var(--border); border-radius: 6px; font-size: 0.95rem; margin-bottom: 0.75rem; box-sizing: border-box; font-family: inherit;
}
.object-question-block textarea { min-height: 80px; resize: vertical; }
.object-question-block button[type="submit"] {
  padding: 0.65rem 1.25rem; background: linear-gradient(135deg, var(--gold) 0%, #b08d5c 100%); color: #fff; border: none; border-radius: 6px; font-weight: 600; cursor: pointer;
}

/* Кнопка «Копировать» и WhatsApp в контактах */
.contact-block .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.contact-phone-copy {
  padding: 0.5rem 1rem;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  color: #fff;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.contact-phone-copy:hover { border-color: var(--gold-light); background: rgba(255,255,255,.08); }
.contact-block .links a[id="contact-wa"] {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

/* FAQ аккордеон */
.faq-q {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 2.5rem;
}
.faq-q::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  font-weight: 300;
  transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { display: none; }
.faq-item.open .faq-a { display: block; }

/* Лайтбокс — полноэкранное фото объекта */
.object-page-image--clickable { cursor: pointer; }
.object-page-image--clickable:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: pointer;
}
.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.lightbox-close:hover { background: var(--gold); color: #fff; }

/* Быстрый просмотр в каталоге — модальное окно */
.quick-view-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.quick-view-modal.open {
  opacity: 1;
  visibility: visible;
}
.quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);
  cursor: pointer;
}
.quick-view-panel {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  border: 1px solid var(--border);
}
.quick-view-panel .img-wrap {
  position: relative;
  height: 260px;
  background: linear-gradient(160deg, #1a1d22 0%, #0f1114 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-view-panel .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.quick-view-panel .info { padding: 1.5rem; }
.quick-view-panel .price-tag { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); margin-bottom: 0.75rem; }
.quick-view-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; margin-bottom: 0.75rem; }
.quick-view-panel .card-specs { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.quick-view-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.quick-view-actions .btn { padding: 0.85rem 1.5rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; display: inline-block; transition: transform .2s, box-shadow .2s; }
.quick-view-actions .btn-primary { background: linear-gradient(135deg, var(--gold) 0%, #b08d5c 100%); color: #fff; border: none; }
.quick-view-actions .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(154,123,79,.35); }
.quick-view-actions .btn-ghost { background: transparent; border: 2px solid var(--border); color: var(--text-muted); }
.quick-view-actions .btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.quick-view-btn { position: absolute; bottom: 1rem; left: 1rem; right: 1rem; z-index: 2; padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600; background: rgba(0,0,0,.6); color: #fff; border: none; border-radius: var(--radius); cursor: pointer; opacity: 0; transition: opacity .2s; }
.object-card:hover .quick-view-btn { opacity: 1; }
@media (max-width: 768px) { .quick-view-btn { opacity: 1; } }

/* Ссылка «Перейти к содержимому» — видна при фокусе */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: left .2s, box-shadow .2s;
}
.skip-link:focus {
  left: 1rem;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
}

/* ========== Выравнивание и отступы ========== */
.contact-block .links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
}
.contact-phone-copy {
  font-family: inherit;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.06);
  color: #fff;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, background .2s;
}
.contact-phone-copy:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 98, .15);
}

/* Основной контент: ровные отступы */
main {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}
#main .section {
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

/* О компании: воздух и иерархия */
.about-content {
  max-width: 42rem;
}
.about-content p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-content p:last-of-type {
  margin-bottom: 2rem;
}
.page-title {
  margin-bottom: 2rem;
}
.breadcrumb {
  margin-bottom: 1.25rem;
}

/* Футер: ровная линия по центру */
.footer-inner {
  align-items: center;
  text-align: left;
}
@media (max-width: 768px) {
  .footer-inner {
    text-align: center;
    align-items: center;
  }
}

/* Карточки объектов: одинаковая высота блока с текстом */
.objects-grid {
  align-items: stretch;
}
.object-card {
  display: flex;
  flex-direction: column;
}
.object-card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.object-card .card-more {
  margin-top: auto;
  padding-top: 1rem;
}
/* Карточка покупки: основная ссылка + ссылка «Рассчитать ипотеку» */
.object-card .object-card-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.object-card .card-calc-link {
  display: block;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  transition: color .2s;
}
.object-card .card-calc-link:hover {
  color: var(--gold-light);
}

/* Секции: единый ритм отступов */
.section-header {
  margin-bottom: 2rem;
}
.section-header h2 {
  margin-bottom: 0.75rem;
}
.section-header p,
.section-intro {
  margin-bottom: 0;
}

/* Форма заказа звонка в футере: ровные поля */
.callback-block label {
  margin-bottom: 0.5rem;
}
.callback-block input {
  margin-bottom: 1rem;
}
.callback-block button[type="submit"] {
  margin-top: 0.25rem;
}

/* Печать: скрыть навигацию, кнопки, cookie, липкий CTA */
@media print {
  .back-to-top,
  .sticky-cta,
  .cookie-bar,
  .nav-overlay,
  .object-page-share,
  #object-print-btn,
  .share-buttons,
  #object-question-section,
  .top-strip,
  .scroll-progress,
  .lightbox,
  .quick-view-modal { display: none !important; }
  .header { border-bottom: 1px solid #ccc; }
  main { padding-top: 1rem; }
  a[href^="tel:"], a[href^="mailto:"] { text-decoration: none; color: inherit; }
}

/* Уважение к настройке «Уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  .strip-item strong { transition: none; }
  .toast-msg, .toast-msg-hide { animation: none; transition: none; }
  .skip-link { transition: none; }
  .back-to-top { transition: none; }
  .faq-q::after { transition: none; }
}
