/* Одна страница ЖК: Clean Modern для BASE, Premium Architecture для PRO.
   Общие сценарии и компоненты; область действия не затрагивает выдачу и посёлки. */
body[data-property-presentation] {
  --presentation-width: 1320px;
  --presentation-gutter: 32px;
  background: var(--panel);
}
body[data-property-presentation] main.wrap {
  width: 100%; max-width: none; padding: 24px 0 64px;
}
body[data-property-presentation] .complex { display: block; width: 100%; min-width: 0; }
body[data-property-presentation] .detail-crumbs,
body[data-property-presentation] .complex > .detail-hero.property-base-hero,
body[data-property-presentation] .complex > .detail-nav,
body[data-property-presentation] .complex > .property-facts,
body[data-property-presentation] .complex > .detail-body,
body[data-property-presentation] .complex > .source,
body[data-property-presentation] .detail-related {
  width: calc(100% - var(--presentation-gutter) * 2);
  max-width: var(--presentation-width); margin-inline: auto;
}
body[data-property-presentation] .detail-crumbs { display: flex; padding: 0 0 24px; font-size: 12px; }
body[data-property-presentation] .detail-crumbs :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
body[data-property-presentation] .complex :is(.pro-story-all, [data-lots-reset], #lots-toggle-groups) { min-height: 44px; }
body[data-property-presentation] #apartment-list { scroll-margin-top: calc(var(--site-header-height, 56px) + 80px); }
body[data-property-presentation] .complex .detail-body {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 28px; align-items: start; margin-top: 48px;
}
/* Страница без правой колонки (посёлок): контент занимает весь контейнер,
   а не 936 px с пустым местом под несуществующую боковую панель. */
body[data-property-presentation] .complex .detail-body:not(:has(> .detail-sidebar)) {
  grid-template-columns: minmax(0, 1fr) !important;
}
body[data-property-presentation] .complex .detail-body > .detail-content {
  grid-column: 1; grid-row: 1; width: 100%; min-width: 0;
}
body[data-property-presentation] .complex .detail-body > .detail-sidebar {
  grid-column: 2; grid-row: 1; width: 100%; min-width: 0;
}
body[data-property-presentation] .detail-sidebar {
  /* Колонка сетки без своей прокрутки: раскрытое «Коротко о ЖК» идёт обычным
     потоком, а липнет только карточка цены (см. ниже). */
  position: static;
  align-self: stretch;
  max-height: none;
  overflow: visible; padding: 0;
}
body[data-property-presentation] .detail-content > section {
  margin: 0 0 24px; padding: 0 0 24px; min-width: 0;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: transparent; scroll-margin-top: calc(var(--site-header-height, 56px) + 80px);
}
body[data-property-presentation] .detail-content h2 {
  margin: 0 0 24px; font-size: 32px; line-height: 1.2; font-weight: 650;
   text-wrap: balance;
}
body[data-property-presentation] .detail-content h3 { font-size: 20px; line-height: 1.4; }
body[data-property-presentation] .detail-content p { font-size: 15px; line-height: 1.65; }
body[data-property-presentation] .detail-content .eyebrow { margin-bottom: 8px; font-size: 12px; letter-spacing: 0; }
body[data-property-presentation] .detail-content #overview > div { max-width: 74ch; }
body[data-property-presentation] .detail-sidebar > section {
  margin: 0 0 16px; padding: 24px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--panel);
}
body[data-property-presentation] .detail-sidebar .property-contact-price { display: block; margin-bottom: 24px; }
body[data-property-presentation] .sales-contact-heading h2 { font-size: 24px; line-height: 1.3; }
body[data-property-presentation] .complex .detail-nav {
  position: sticky; top: var(--site-header-height, 56px); z-index: 25;
  display: block; margin-block: 0;
  padding: 4px max(var(--presentation-gutter), calc((100% - var(--presentation-width)) / 2));
  width: 100%; max-width: none; box-sizing: border-box;
  min-height: 52px; background: transparent; border: 0;
  border-radius: 0; box-shadow: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}
/* Прокручивается только список ссылок: подложка `.detail-nav.is-stuck` остаётся
   непрозрачной на всю ширину, поэтому сквозь полосу не просвечивают фото. */
body[data-property-presentation] .complex .detail-nav-list {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
}
body[data-property-presentation] .complex .detail-nav-list::-webkit-scrollbar { display: none; }
/* В статике — плоская строка без подложки: волосяная линия по ширине контейнера
   заменяет полноширинную плашку с тенью, которая «разрезала» страницу. */
body[data-property-presentation] .complex .detail-nav::after {
  content: ""; position: absolute; inset: auto max(var(--presentation-gutter), calc((100% - var(--presentation-width)) / 2)) 0;
  height: 1px; background: var(--line); pointer-events: none;
}
/* Прилипло к шапке — только тогда появляется матовая подложка и мягкая тень. */
body[data-property-presentation] .complex .detail-nav.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
body[data-property-presentation] .complex .detail-nav.is-stuck::after {
  inset-inline: 0;
  opacity: 1;
}
body[data-property-presentation] .complex .detail-nav a {
  flex: none; min-height: 44px; padding: 0 12px;
  justify-content: center; border: 0; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 13px; line-height: 20px;
  white-space: nowrap; background: transparent;
  transition: background var(--motion-short) var(--ease-out), color var(--motion-short) var(--ease-out);
}
body[data-property-presentation] .complex .detail-nav a:first-child { padding-left: 12px; }
body[data-property-presentation] .complex .detail-nav a:hover { color: var(--accent-hover); background: var(--accent-soft); }
body[data-property-presentation] .complex .detail-nav a[aria-current] { color: var(--panel); background: var(--accent); border: 0; }
body[data-property-presentation] .complex .detail-nav a:focus-visible { outline-offset: -3px; }
body[data-property-presentation] .complex .property-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(144px, 1fr)); gap: 24px;
  margin-block: 32px 0; padding: 0 0 32px; border-bottom: 1px solid var(--line);
}
body[data-property-presentation] .complex .property-facts > div { min-width: 0; }
body[data-property-presentation] .complex .property-facts > .property-fact-deadline { grid-column: span 2; }
body[data-property-presentation] .complex .property-facts dt { font-size: 12px; line-height: 20px; color: var(--muted); }
body[data-property-presentation] .complex .property-facts dd { margin: 8px 0 0; font-size: 18px; line-height: 26px; font-weight: 550; }
body[data-property-presentation] .complex-highlights,
body[data-property-presentation] .detail-content #characteristics .complex-highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-property-presentation] .complex-highlights > div { min-height: 96px; padding-top: 16px; padding-bottom: 16px; }
body[data-property-presentation] .room-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
body[data-property-presentation] .room-summary-link { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 20px 16px; }
body[data-property-presentation] .room-summary-price { margin-block: 8px; font-size: 24px; line-height: 1.3; }
body[data-property-presentation] .room-summary-link:hover { border-color: var(--accent); box-shadow: none; }
body[data-property-presentation] .lot { border-radius: 0; padding-block: 24px; }
body[data-property-presentation] .lot-price b { font-size: 20px; }
body[data-property-presentation] .map-single { height: 440px; border-radius: 6px; }
body[data-property-presentation] .source-buildings { max-width: 100%; overflow-x: auto; }
body[data-property-presentation] .detail-content .dev-card { border: 0; padding: 0; background: transparent; }
body[data-property-presentation] .detail-content .dev-name { font-size: 24px; font-weight: 600; }
body[data-property-presentation] .detail-content .documents-list > li { border-radius: 6px; }
body[data-property-presentation] .complex > .source { margin-block: 32px 0; }

/* Общий оффер: актуальные данные и прежние точки входа в заявки.
   Плотность важна: карточка задаёт высоту первого экрана, а цена, кнопки,
   телефон и застройщик должны уместиться в один взгляд. */
body[data-property-presentation] .property-hero-offer {
  display: flex; flex-direction: column; gap: 16px; height: 100%; min-width: 0;
  padding: 24px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--panel); color: var(--ink);
  /* Белая подложка на 2px закрывает тёмные «уши» фото в закруглённых углах. */
  box-shadow: 0 0 0 2px var(--panel);
}
body[data-property-presentation] .property-hero-offer p { margin: 0; }
body[data-property-presentation] .property-offer-label { font-size: 14px; line-height: 22px; }
body[data-property-presentation] .property-hero-offer .property-offer-price {
  margin-top: 8px; font-size: 32px; line-height: 1.2; font-weight: 650; overflow-wrap: anywhere;
}
body[data-property-presentation] .property-hero-offer .property-offer-missing { margin-top: 8px; font-size: 24px; line-height: 1.35; font-weight: 550; }
body[data-property-presentation] .property-hero-offer .property-offer-note { margin-top: 8px; font-size: 14px; line-height: 22px; color: var(--muted); }
body[data-property-presentation] .property-hero-offer .property-offer-checked { margin-top: 6px; font-size: 12px; line-height: 18px; color: var(--muted); }
body[data-property-presentation] .property-hero-offer .property-offer-range { margin-top: 0; font-size: 13px; line-height: 16px; color: var(--muted); font-variant-numeric: tabular-nums; }
body[data-property-presentation] .property-offer-actions { display: flex; flex-direction: column; gap: 8px; }
body[data-property-presentation] .property-offer-actions > .primary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 12px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 550; line-height: 24px; white-space: normal; text-align: center;
  background: var(--accent); color: var(--panel); box-shadow: none;
}
body[data-property-presentation] .property-offer-contact { display: flex; align-items: center; min-height: 44px; font-size: 14px; }
body[data-property-presentation="architecture"] .property-offer-contact {
  justify-content: center; padding: 12px; border: 1px solid var(--accent);
  border-radius: 8px; background: var(--panel); color: var(--accent);
  font-size: 14px; line-height: 20px; font-weight: 500; text-align: center;
  transition: background-color 160ms ease;
}
body[data-property-presentation="architecture"] .property-offer-contact:hover { background: var(--accent-soft); }
/* Карточка hero не тянется на всю высоту ряда: иначе под кнопками остаётся
   пустая полоса (застройщик в PRO скрыт). */
body[data-property-presentation="architecture"] .pro-offer .property-hero-offer { height: auto; }
body[data-property-presentation] .property-offer-phone { display: block; margin: 0; }
/* «Показать телефон» — вторичная кнопка карточки цены: тот же размер, что у
   основной, но светлая. Номер и QR раскрываются на месте. */
body[data-property-presentation] .property-offer-phone .detail-phone-reveal.property-offer-contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent);
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  transition: background-color 160ms ease;
}
body[data-property-presentation] .property-offer-phone .detail-phone-reveal.property-offer-contact:hover { background: var(--accent-soft); }
/* Нет лотов и нет формы заявки: телефон — единственное действие карточки, значит
   он же и главная кнопка. Отдельная «Связаться с отделом продаж» рядом была
   дублем того же предложения. */
body[data-property-presentation] .property-offer-phone--primary .detail-phone-reveal.property-offer-contact {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--panel);
  font-weight: 550;
}
body[data-property-presentation] .property-offer-phone--primary .detail-phone-reveal.property-offer-contact:hover,
body[data-property-presentation] .property-offer-phone--primary .detail-phone-reveal.property-offer-contact:focus-visible {
  background: var(--accent-hover);
  color: var(--panel);
}
body[data-property-presentation] .property-offer-phone .detail-phone-reveal.property-offer-contact .icon { width: 18px; height: 18px; }
body[data-page-type="complex"] .property-offer-developer { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; overflow-wrap: anywhere; }
body[data-page-type="complex"] .property-offer-developer > span { color: var(--muted); font-size: 12px; }
body[data-page-type="complex"] .property-offer-developer > a { font-size: 14px; line-height: 22px; font-weight: 550; text-decoration: underline; text-underline-offset: 3px; }

/* Clean Modern: название над мозаикой, оффер в самостоятельной колонке.
   Это единственная карточка цены в первом экране; сайдбарная копия показывается
   только после того, как hero ушёл наверх (см. `detail-cta-visibility.js`). */
body[data-property-presentation] .complex .detail-hero.property-base-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px; align-items: stretch; margin-block: 0 24px;
}
body[data-property-presentation] .complex .property-heading { grid-column: 1 / -1; grid-row: 1; }
body[data-property-presentation] .complex .property-kicker { margin-bottom: 12px; gap: 16px; }
body[data-property-presentation] .complex .property-status { background: transparent; padding: 0 0 0 16px; border-left: 1px solid var(--line); border-radius: 0; }
body[data-property-presentation] .property-title-line h1 { font-size: 48px; line-height: 1.15; }
body[data-property-presentation] .complex .property-address { margin-top: 16px; }
body[data-property-presentation] .complex .property-base-content { grid-column: 1; grid-row: 2; display: grid; gap: 12px; align-content: start; }
body[data-property-presentation] .complex .property-base-media { width: 100%; aspect-ratio: 2 / 1; height: auto; }
body[data-property-presentation] .complex .property-mosaic { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 8px; }
body[data-property-presentation] .complex .property-main-photo,
body[data-property-presentation] .complex .property-mosaic-thumb,
body[data-property-presentation] .complex .property-hero-map { border-radius: 6px; }
body[data-property-presentation] .complex .property-photo-bottom { inset: auto 16px 16px; flex-wrap: wrap; }
body[data-property-presentation] .complex .property-location-link { margin: 0; }
body[data-property-presentation] .complex .property-sales-slot { grid-column: 2; grid-row: 2; align-self: stretch; margin: 0; }
body[data-property-presentation] .complex .property-base-hero--no-media { grid-template-columns: minmax(0, 1fr) 400px; }
body[data-property-presentation] .complex .property-base-hero--no-media .property-heading { grid-column: 1; grid-row: 1; align-self: center; }
body[data-property-presentation] .complex .property-base-hero--no-media .property-base-content:empty { display: none; }
body[data-property-presentation] .complex .property-base-hero--no-media .property-sales-slot { grid-row: 1; }

/* Premium Architecture: цельная обложка и название в нижней части кадра. */
body[data-property-presentation="architecture"] main.wrap { padding-top: 0; }
body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: end;
  grid-template-rows: minmax(64px, 1fr) auto; gap: 32px;
  min-height: 600px; width: 100%; margin: 0; padding: 40px max(32px, calc((100% - 1320px) / 2));
  border: 0; border-radius: 0; overflow: hidden; background: var(--ink);
}
body[data-property-presentation="architecture"] .pro-hero-media { position: absolute; inset: 0; grid-area: auto; width: 100%; height: 100%; aspect-ratio: auto; }
body[data-property-presentation="architecture"] .pro-hero-image-link { position: absolute; inset: 0; display: block; }
body[data-property-presentation="architecture"] .pro-hero-image { width: 100%; height: 100%; object-fit: cover; }
body[data-property-presentation="architecture"] .pro-hero-shade { pointer-events: none; background: linear-gradient(180deg, #182333b3 0%, transparent 40%, #182333b8 100%); }
body[data-property-presentation="architecture"] .pro-hero-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; inset: 24px max(32px, calc((100% - 1320px) / 2)) auto; align-items: start; }
body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs { display: flex; grid-column: 1 / -1; grid-row: 1; width: 100%; max-width: none; margin: 0; padding: 0; gap: 8px; color: var(--panel); font-size: 12px; line-height: 20px; text-shadow: 0 1px 3px var(--ink); }
body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs :is(a, span) { color: inherit; }
/* На тёмной обложке светлая плашка ховера выглядела случайным белым пятном. */
body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs a:hover,
body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs a:focus-visible {
  color: var(--panel);
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
body[data-property-presentation="architecture"] .pro-hero-top > :is(.pro-badges, .pro-badges-spacer) { grid-column: 1; grid-row: 2; }
body[data-property-presentation="architecture"] .pro-hero-top > .pro-hero-tools { grid-column: 2; grid-row: 2; }
body[data-property-presentation="architecture"] .pro-hero-top > .pro-hero-mark { position: static; grid-column: 1 / -1; grid-row: 3; width: fit-content; margin: 0; }
body[data-property-presentation="architecture"] .pro-hero-mark { display: inline-flex; inset: auto auto auto max(32px, calc((100% - 1320px) / 2)); top: 80px; padding: 4px 8px; border-radius: 4px; background: var(--ink); backdrop-filter: none; }
body[data-property-presentation="architecture"] .pro-hero-title { position: relative; inset: auto; align-self: end; z-index: 2; grid-column: 1; grid-row: 2; min-width: 0; padding: 0; color: var(--panel); }
body[data-property-presentation="architecture"] .pro-hero-title h1 { max-width: 20ch; margin: 16px 0; font-size: clamp(40px, 4.5vw, 64px); line-height: 1.08; color: var(--panel); }
body[data-property-presentation="architecture"] .pro-hero-kicker { display: flex; flex-wrap: wrap; gap: 16px; margin: 0; font-size: 13px; line-height: 20px; letter-spacing: 0; text-transform: none; }
body[data-property-presentation="architecture"] .pro-hero-kicker > span + span { padding-left: 16px; border-left: 1px solid currentColor; }
body[data-property-presentation="architecture"] .pro-hero-address { margin: 0; font-size: 15px; line-height: 24px; font-weight: 400; }
body[data-property-presentation="architecture"] .pro-hero-address :is(a, span),
body[data-property-presentation="architecture"] .pro-hero-title .nearest-metro :is(a, .nearest-metro-station, .nearest-metro-name, .nearest-metro-distance) { color: inherit; }
body[data-property-presentation="architecture"] .pro-hero-title .nearest-metro { margin-top: 12px; }
body[data-property-presentation="architecture"] .pro-offer { position: relative; z-index: 2; grid-column: 2; grid-row: 2; display: block; min-width: 0; padding: 0; }
body[data-property-presentation="architecture"] .property-hero-offer { border-color: var(--panel); }
body[data-property-presentation="architecture"] .pro-hero-tools { gap: 8px; }
body[data-property-presentation="architecture"] .pro-hero-gallery { display: inline-flex; justify-content: center; gap: 8px; width: auto; height: 44px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--panel); color: var(--ink); backdrop-filter: none; }
body[data-property-presentation="architecture"] .pro-hero-gallery span { display: inline; }
body[data-property-presentation] .complex .property-title-line .favorite-toggle,
body[data-property-presentation] .complex .property-title-line .property-compare-toggle,
body[data-property-presentation="architecture"] .pro-hero-tools .favorite-toggle,
body[data-property-presentation="architecture"] .pro-hero-tools .property-compare-toggle {
  position: static; flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--ink);
}
body[data-property-presentation] .complex .property-title-tools { display: flex; align-items: center; gap: 8px; flex: none; }
body[data-property-presentation] .property-title-line .favorite-toggle[aria-pressed="true"],
body[data-property-presentation] .property-title-line .property-compare-toggle[aria-pressed="true"],
body[data-property-presentation="architecture"] .pro-hero-tools .favorite-toggle[aria-pressed="true"],
body[data-property-presentation="architecture"] .pro-hero-tools .property-compare-toggle[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
body[data-property-presentation] .complex .property-title-line .property-compare-toggle .icon,
body[data-property-presentation="architecture"] .pro-hero-tools .property-compare-toggle .icon { width: 20px; height: 20px; }
body[data-property-presentation="architecture"] .pro-hero-tools .favorite-toggle .icon { color: inherit; }
body[data-property-presentation="architecture"] .pro-hero-tools .property-compare-toggle { background: var(--panel); border-color: transparent; }
body[data-property-presentation="architecture"] .pro-badges { gap: 8px; min-width: 0; max-width: 100%; }
body[data-property-presentation="architecture"] .pro-badge { min-height: 0; padding: 0; border: 0; border-radius: 6px; background: transparent; backdrop-filter: none; }
body[data-property-presentation="architecture"] .property-promo {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%;
  padding: 10px 12px; border: 0; border-radius: 6px; background: var(--panel); color: var(--ink);
  font-size: 12px; line-height: 20px; text-align: left; cursor: pointer;
}
body[data-property-presentation="architecture"] .property-promo-label { overflow-wrap: anywhere; }
body[data-property-presentation="architecture"] .pro-badge--custom .property-promo { background: var(--ink); color: var(--panel); }
body[data-property-presentation="architecture"] .pro-badge .icon { width: 20px; height: 20px; flex: none; color: inherit; }
body[data-property-presentation="architecture"] .pro-story-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
body[data-property-presentation="architecture"] .pro-story-head h2 { font-size: 32px; }
body[data-property-presentation="architecture"] .pro-story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
body[data-property-presentation="architecture"] .pro-story-item { margin: 0; padding: 0; }
body[data-property-presentation="architecture"] .pro-story-item:first-child { grid-column: 1 / -1; }
body[data-property-presentation="architecture"] .pro-story-link,
body[data-property-presentation="architecture"] .pro-story-item:first-child .pro-story-link { display: block; aspect-ratio: 16 / 10; border-radius: 6px; }
body[data-property-presentation="architecture"] .pro-story-item:first-child .pro-story-link { aspect-ratio: 2 / 1; }
body[data-property-presentation="architecture"] .pro-story-item:not(:first-child) { padding-top: 0; }
body[data-property-presentation="architecture"] .pro-story-item figcaption { margin-top: 12px; font-size: 13px; line-height: 20px; color: var(--muted); }
body[data-property-presentation="architecture"] .pro-story-dates { display: none; }
body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero--no-photo { min-height: 0; grid-template-rows: auto auto; background: var(--panel); border-bottom: 1px solid var(--line); }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-media { display: none; }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-top { position: static; grid-column: 1 / -1; grid-row: 1; }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-top > .detail-crumbs { color: var(--muted); text-shadow: none; }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-title,
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-title h1 { color: var(--ink); padding: 0; }
body[data-property-presentation="architecture"] .pro-hero--no-photo :is(.pro-hero-kicker, .pro-hero-address) { color: var(--muted); }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-address .icon { color: inherit; }
body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-offer { grid-column: 2; grid-row: 2; padding: 0; }
body[data-property-presentation="architecture"] .pro-hero--no-photo .property-hero-offer { border-color: var(--line); }
body[data-property-presentation] :is(a, button, select, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body[data-property-presentation] .property-hero-offer :is(a, button):focus-visible,
body[data-property-presentation="architecture"] .pro-hero-tools :is(a, button):focus-visible,
body[data-property-presentation="architecture"] .pro-hero--no-photo :is(a, button):focus-visible { outline-color: var(--accent); }
body[data-property-presentation] :is(button, .primary) { transition: transform 150ms ease-out, background-color 150ms ease-out; }
body[data-property-presentation] :is(button, .primary):active { transform: scale(.98); }

@media (max-width: 1079px) {
  /* Две колонки перестают помещаться: контакты уходят под контент целиком,
     без внутренней прокрутки, чтобы раскрытое «Коротко о ЖК» читалось полностью. */
  body[data-property-presentation] .complex .detail-body { gap: 24px; grid-template-columns: minmax(0, 1fr) !important; }
  body[data-property-presentation] .complex .detail-body > .detail-content,
  body[data-property-presentation] .complex .detail-body > .detail-sidebar { grid-column: 1 !important; grid-row: auto !important; }
  body[data-property-presentation] .complex .detail-hero.property-base-hero { grid-template-columns: minmax(0, 1fr) 280px; }
  body[data-property-presentation] .property-hero-offer { padding: 24px; }
  body[data-property-presentation] .complex .property-base-media { aspect-ratio: 4 / 3; }
  body[data-property-presentation] .room-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero { grid-template-columns: minmax(0, 1fr) 280px; }
  body[data-property-presentation="architecture"] .pro-hero { --pro-offer-column: 280px; }
}
@media (max-width: 900px) {
  body[data-property-presentation] { --presentation-gutter: 24px; }
  body[data-property-presentation] .complex .detail-body { grid-template-columns: minmax(0, 1fr) !important; }
  body[data-property-presentation] .complex .detail-body > .detail-content,
  body[data-property-presentation] .complex .detail-body > .detail-sidebar { grid-column: 1 !important; grid-row: auto !important; }
  body[data-property-presentation] .detail-sidebar { position: static; max-height: none; overflow: visible; }
  body[data-property-presentation] .complex .detail-hero.property-base-hero { display: grid; grid-template-columns: minmax(0, 1fr) 260px; }
  body[data-property-presentation] .complex .property-base-content { display: grid; }
  body[data-property-presentation] .complex .property-base-media { order: 0; aspect-ratio: 1; }
  body[data-property-presentation] .property-title-line h1 { font-size: 40px; }
  body[data-property-presentation] .complex .property-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body[data-property-presentation] .complex .property-facts > .property-fact-deadline { grid-column: span 2; grid-row: auto; }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero { grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; padding-inline: 24px; }
  body[data-property-presentation="architecture"] .pro-hero { --pro-offer-column: 260px; }
  body[data-property-presentation="architecture"] .pro-hero-top { inset-inline: 24px; }
}
@media (max-width: 600px) {
  body[data-property-presentation] { --presentation-gutter: 20px; }
  body[data-property-presentation] main.wrap { padding-top: 0; }
  body[data-property-presentation] .detail-crumbs { display: none; }
  body[data-property-presentation] .complex .detail-hero.property-base-hero { display: flex; flex-direction: column; gap: 24px; width: 100%; margin: 0 0 24px; }
  body[data-property-presentation] .complex .property-base-content { display: contents; }
  body[data-property-presentation] .complex .property-base-media,
  body[data-property-presentation] .complex .property-mosaic { display: block; order: -1; width: 100%; aspect-ratio: 3 / 2; border-radius: 0; }
  body[data-property-presentation] .complex .property-main-photo { border-radius: 0; }
  body[data-property-presentation] .complex .property-mosaic-side { display: none; }
  body[data-property-presentation] .complex .property-heading,
  body[data-property-presentation] .complex .property-sales-slot { width: calc(100% - 40px); margin-inline: auto; }
  body[data-property-presentation] .property-title-line h1 { font-size: 32px; line-height: 1.15; }
  body[data-property-presentation] .complex .property-kicker { font-size: 12px; gap: 12px; }
  body[data-property-presentation] .complex .property-address { margin-top: 12px; }
  body[data-property-presentation] .complex .property-location-link { margin-inline: 20px; width: fit-content; }
  body[data-property-presentation] .property-hero-offer { padding: 24px; gap: 20px; }
  body[data-property-presentation] .property-hero-offer .property-offer-price { font-size: 28px; }
  body[data-property-presentation] .complex .detail-nav-list { min-height: 52px; gap: 4px; }
  body[data-property-presentation] .complex .detail-nav a { min-height: 44px; padding: 0 10px; font-size: 13px; }
  body[data-property-presentation] .complex .property-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; padding-bottom: 24px; }
  body[data-property-presentation] .complex .property-facts > .property-fact-deadline { grid-column: span 2; }
  body[data-property-presentation] .complex .property-facts dd { margin-top: 4px; font-size: 16px; line-height: 24px; }
  body[data-property-presentation] .complex .detail-body { gap: 24px; margin-top: 32px; }
  body[data-property-presentation] .detail-content > section { padding: 0 0 16px; margin-bottom: 16px; }
  body[data-property-presentation] .detail-content h2 { font-size: 28px; line-height: 1.2; }
  body[data-property-presentation] .detail-content h3 { font-size: 20px; }
  body[data-property-presentation] .complex-highlights,
  body[data-property-presentation] .detail-content #characteristics .complex-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-property-presentation] .room-summary { grid-template-columns: minmax(0, 1fr); }
  body[data-property-presentation] .room-summary-link { padding: 16px; }
  body[data-property-presentation] .room-summary-price { font-size: 20px; margin: 0; }
  body[data-property-presentation] .map-single { height: 360px; }
  body[data-property-presentation] .detail-sidebar > section { padding: 24px; border-radius: 6px; }
  body[data-property-presentation] .detail-mobile-actions > :is(a, button) { min-height: 44px; border-radius: 6px; }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(144px, 1fr) auto auto; gap: 24px; min-height: 0; width: 100%; margin: 0; padding: 80px 20px 24px; border-radius: 0; }
  body[data-property-presentation="architecture"] .pro-hero-media { position: absolute; grid-area: auto; aspect-ratio: auto; height: 100%; }
  body[data-property-presentation="architecture"] .pro-hero-image-link { bottom: 160px; }
  body[data-property-presentation="architecture"] .pro-hero-shade { background: linear-gradient(180deg, #182333b3 0%, transparent 25%, var(--ink) 80%); }
  body[data-property-presentation="architecture"] .pro-hero-title { grid-column: 1; grid-row: 2; padding: 0; }
  body[data-property-presentation="architecture"] .pro-hero-title h1 { margin-block: 12px; font-size: 40px; line-height: 1.1; }
  body[data-property-presentation="architecture"] .pro-hero-address { font-size: 14px; line-height: 22px; }
  body[data-property-presentation="architecture"] .pro-hero-top { inset: 16px 20px auto; }
  body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs { flex-wrap: wrap; row-gap: 0; overflow: visible; white-space: normal; }
  body[data-property-presentation="architecture"] .pro-hero-top > .detail-crumbs > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
  body[data-property-presentation="architecture"] .pro-hero-mark { top: 72px; left: 20px; }
  body[data-property-presentation="architecture"] .pro-offer { grid-column: 1; grid-row: 3; display: block; padding: 0; }
  body[data-property-presentation="architecture"] .pro-hero-gallery { padding: 8px; }
  body[data-property-presentation="architecture"] .pro-hero-gallery span { display: none; }
  body[data-property-presentation="architecture"] .pro-story-grid { display: block; }
  body[data-property-presentation="architecture"] .pro-story-item { display: none; }
  body[data-property-presentation="architecture"] .pro-story-item.is-current { display: block; padding: 0; }
  body[data-property-presentation="architecture"] .pro-story-link,
  body[data-property-presentation="architecture"] .pro-story-item:first-child .pro-story-link { aspect-ratio: 4 / 3; }
  body[data-property-presentation="architecture"] .pro-story-switch { display: flex; }
  body[data-property-presentation="architecture"] .pro-story-head h2 { font-size: 28px; }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero--no-photo { padding-top: 24px; grid-template-rows: auto auto auto; }
  body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-media { position: relative; grid-column: 1; grid-row: 1; }
  body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-top { position: static; }
  body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-offer { grid-column: 1; grid-row: 3; }
}
@media (prefers-reduced-motion: reduce) {
  body[data-property-presentation] :is(button, .primary) { transition: none; }
  body[data-property-presentation] :is(button, .primary):active { transform: none; }
}


/* Типографическая иерархия карточки ЖК. Базовые стили выше сложились исторически:
   заголовок и h2 спорили по размеру, а характеристики квартир терялись рядом
   с ценой. Здесь одна шкала для первого экрана, секций, списка квартир и
   вторичных подписей; область действия — только ЖК, посёлки не затрагиваются. */
body[data-page-type="complex"][data-detail-design] .detail-crumbs { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .detail-content .eyebrow { margin-bottom: 8px; font-size: var(--font-caption); line-height: 18px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .property-title-line h1 { font-size: var(--font-page-title); line-height: 1.15; font-weight: 700; }
body[data-page-type="complex"][data-detail-design][data-property-presentation] .pro-hero-title h1 { max-width: 22ch; font-size: 36px; line-height: 1.15; font-weight: 700; }
body[data-page-type="complex"][data-detail-design] .detail-content h2 { margin-bottom: 16px; font-size: var(--font-section); line-height: 29px; font-weight: 600; text-wrap: balance; }
body[data-page-type="complex"][data-detail-design] .detail-content h3 { font-size: 18px; line-height: 26px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .detail-content p { font-size: var(--font-reading); line-height: 24px; }
body[data-page-type="complex"][data-detail-design] .detail-content .description { max-width: 76ch; }
body[data-page-type="complex"][data-detail-design] .detail-content .description p { line-height: 25px; }
body[data-page-type="complex"][data-detail-design] .complex .property-facts dt,
body[data-page-type="complex"][data-detail-design] .complex-highlights dt { font-size: var(--font-secondary); line-height: 20px; font-weight: 500; }
body[data-page-type="complex"][data-detail-design] .complex .property-facts dd { margin-top: 6px; font-size: 17px; line-height: 24px; font-weight: 550;  }
body[data-page-type="complex"][data-detail-design] .complex-highlights dd { font-size: 16px; line-height: 24px; font-weight: 500; }
body[data-page-type="complex"][data-detail-design] .complex-highlights small { font-size: var(--font-caption); line-height: 18px; }
body[data-page-type="complex"][data-detail-design] :is(.complex-highlights-note, .photo-section-note, .layouts-note, .lots-note, .complex-source-content > .muted, .sales-note) { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .complex .property-kicker,
body[data-page-type="complex"][data-detail-design] .complex .property-developer { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .detail-status { font-size: var(--font-secondary); line-height: 18px; font-weight: 550; }
body[data-page-type="complex"][data-detail-design] .price-note { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .detail-phone-reveal { color: var(--accent-hover); }
body[data-page-type="complex"][data-detail-design] :is(.map-open-fullscreen, .map-buildings-reset, .map-nearby-toggle) { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .layout-no-image > span { font-size: var(--font-caption); line-height: 18px; }

body[data-page-type="complex"][data-detail-design] .room-summary-name { font-size: 16px; line-height: 22px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .room-summary-price { font-size: 20px; line-height: 26px; font-weight: 650;  }
body[data-page-type="complex"][data-detail-design] .room-summary-area { font-size: 14px; line-height: 20px; font-weight: 500; }
body[data-page-type="complex"][data-detail-design] :is(.room-summary-count, .room-summary-note, .room-summary-confirmed) { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .room-summary-explanation { font-size: var(--font-secondary); line-height: 20px; }

body[data-page-type="complex"][data-detail-design] .lot-main { gap: 6px 18px; font-size: var(--font-body); line-height: 22px; }
body[data-page-type="complex"][data-detail-design] .lot-main > span { font-size: 14px; line-height: 20px; font-weight: 500; }
body[data-page-type="complex"][data-detail-design] .lot-main .lot-rooms { color: var(--ink); font-size: 16px; line-height: 22px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .lot-main .lot-area { color: var(--ink); font-size: 16px; line-height: 22px; font-weight: 500;  }
body[data-page-type="complex"][data-detail-design] .lot-price {  }
body[data-page-type="complex"][data-detail-design] .lot-price b { font-size: var(--font-card-price); line-height: 26px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .lot-price > span { font-size: var(--font-secondary); line-height: 18px; }
body[data-page-type="complex"][data-detail-design] .lot-price .lot-inventory { font-size: var(--font-caption); line-height: 18px; }
body[data-page-type="complex"][data-detail-design] .lot-plan span,
body[data-page-type="complex"][data-detail-design] .lots-note { font-size: var(--font-caption); line-height: 18px; }
body[data-page-type="complex"][data-detail-design] .lot-plan span { color: var(--muted); }

body[data-page-type="complex"][data-detail-design] .dev-name { font-size: 22px; line-height: 28px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .dev-facts { font-size: var(--font-body); line-height: 22px; }
body[data-page-type="complex"][data-detail-design] .dev-facts dt { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .dev-facts dd { font-size: var(--font-body); line-height: 22px; font-weight: 500; }

body[data-page-type="complex"][data-detail-design] .pro-hero-kicker,
body[data-page-type="complex"][data-detail-design] .pro-offer-label,
body[data-page-type="complex"][data-detail-design] .pro-offer-checked { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .pro-story-head h2 { font-size: var(--font-section); line-height: 30px; font-weight: 600; }
body[data-page-type="complex"][data-detail-design] .pro-story-item figcaption { font-size: var(--font-secondary); line-height: 20px; }

body[data-page-type="complex"][data-detail-design] .sales-checked,
body[data-page-type="complex"][data-detail-design] .sales-note,
body[data-page-type="complex"][data-detail-design] .price-history-method { font-size: var(--font-secondary); line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .price-chart-axis { font-size: var(--font-secondary);  }
body[data-page-type="complex"][data-detail-design] .price-history-readout { font-size: var(--font-body); line-height: 22px;  }
body[data-page-type="complex"][data-detail-design] .price-history-table table { font-size: var(--font-secondary); line-height: 20px; }

@media (max-width: 1023px) {
  body[data-page-type="complex"][data-detail-design] .property-title-line h1 { font-size: 30px; line-height: 38px; }
  body[data-page-type="complex"][data-detail-design][data-property-presentation] .pro-hero-title h1 { font-size: 32px; line-height: 38px; }
  body[data-page-type="complex"][data-detail-design] .detail-content h2 { font-size: 21px; line-height: 28px; }
}
@media (max-width: 700px) {
  body[data-page-type="complex"][data-detail-design] .property-title-line h1 { font-size: 28px; line-height: 34px; }
  body[data-page-type="complex"][data-detail-design][data-property-presentation] .pro-hero-title h1 { font-size: 30px; line-height: 36px; }
  body[data-page-type="complex"][data-detail-design] .detail-content h2 { font-size: 20px; line-height: 26px; margin-bottom: 14px; }
  body[data-page-type="complex"][data-detail-design] .detail-content h3 { font-size: 17px; line-height: 24px; }
  body[data-page-type="complex"][data-detail-design] .detail-content p { font-size: 15px; line-height: 23px; }
  body[data-page-type="complex"][data-detail-design] .lot-main .lot-rooms,
  body[data-page-type="complex"][data-detail-design] .lot-main .lot-area { font-size: 15px; line-height: 21px; }
  body[data-page-type="complex"][data-detail-design] .lot-price b { font-size: var(--font-card-price); line-height: 24px; }
  body[data-page-type="complex"][data-detail-design] .room-summary-price { font-size: 18px; line-height: 24px; }
}


/* Подбор квартир: композиция из референса Move.ru, собранная на токенах проекта. */
body[data-page-type="complex"][data-detail-design] .lots-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 16px;
}
body[data-page-type="complex"][data-detail-design] .lots-head h2,
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics > .complex-section-head h2 {
  margin: 0;
  font-size: 20px;
  line-height: 26px;
  font-weight: 600;
}
body[data-page-type="complex"][data-detail-design] .lots-head .lots-count {
  color: var(--muted);
  font-size: var(--font-secondary);
  line-height: 20px;
  font-weight: 400;
  white-space: nowrap;
}
body[data-page-type="complex"][data-detail-design] .apartment-controls {
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body[data-page-type="complex"][data-detail-design] .apartment-filters {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  container-type: inline-size;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr);
  align-items: end;
  gap: 12px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid .field { min-width: 0; }
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid label {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 16px;
  font-weight: 500;
}
body[data-page-type="complex"][data-detail-design] .apartment-range { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
body[data-page-type="complex"][data-detail-design] .apartment-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid input,
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--field-radius);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 20px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid input:hover,
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid select:hover { border-color: var(--field-border-hover); }
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid input:focus-visible,
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-actions .text-button {
  min-height: 44px;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 18px;
}
body[data-page-type="complex"][data-detail-design] .apartment-filter-actions .text-button:hover { color: var(--accent-hover); }
body[data-page-type="complex"][data-detail-design] .apartment-filter-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
}
body[data-page-type="complex"][data-detail-design] .lot-groups-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 30px;
  margin: 6px 0;
}
body[data-page-type="complex"][data-detail-design] .lot-groups-label {
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
body[data-page-type="complex"][data-detail-design] .lots-toggle {
  min-height: 30px;
  padding: 0;
  color: var(--accent);
  font-size: 13px;
  line-height: 18px;
  white-space: nowrap;
}
body[data-page-type="complex"][data-detail-design] .lots-toggle:hover { color: var(--accent-hover); }
body[data-page-type="complex"][data-detail-design] .lots-toggle:disabled { color: var(--muted); cursor: default; }

body[data-page-type="complex"][data-detail-design] .lot-groups {
  border-top: 1px solid var(--line);
  background: var(--panel);
}
body[data-page-type="complex"][data-detail-design] .lot-group {
  border-bottom: 1px solid var(--line);
}
body[data-page-type="complex"][data-detail-design] .lot-group[hidden] { display: none; }
body[data-page-type="complex"][data-detail-design] .lot-group-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, .9fr) 20px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color var(--motion-short) var(--ease-out);
}
body[data-page-type="complex"][data-detail-design] .lot-group-summary:hover { background: var(--surface-hover); }
body[data-page-type="complex"][data-detail-design] .lot-group-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
body[data-page-type="complex"][data-detail-design] .lot-group-title {
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
  font-weight: 650;
}
body[data-page-type="complex"][data-detail-design] .lot-group-count {
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}
body[data-page-type="complex"][data-detail-design] .lot-group-minimum {
  color: var(--ink);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
body[data-page-type="complex"][data-detail-design] .lot-group-area {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
}
body[data-page-type="complex"][data-detail-design] .lot-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: transform var(--motion-short) var(--ease-out);
}
body[data-page-type="complex"][data-detail-design] .lot-group-chevron .icon { width: 20px; height: 20px; }
body[data-page-type="complex"][data-detail-design] .lot-group.is-open .lot-group-chevron { transform: rotate(180deg); }
body[data-page-type="complex"][data-detail-design] .lot-group-list {
  padding: 1px 9px 10px 18px;
  background: var(--panel);
}
body[data-page-type="complex"][data-detail-design] .lot-group-list[hidden] { display: none; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot:hover { background: transparent; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-summary { display: contents; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-main { min-width: 0; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-title {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-title .lot-rooms,
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-title .lot-area {
  color: inherit;
  font: inherit;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price {
  min-width: 0;
  color: var(--ink);
  text-align: right;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price b {
  display: block;
  font-size: var(--font-card-price);
  line-height: 1.25;
  font-weight: 650;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price-meta,
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-inventory {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 17px;
  font-weight: 400;
}
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-plan[hidden] { display: none; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot--with-plan { grid-template-columns: 120px minmax(0, 1fr) auto; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-plan img { display: block; width: 120px; height: auto; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-plan > span { color: var(--muted); font-size: 10px; line-height: 14px; }
body[data-page-type="complex"][data-detail-design] .lot-group-list .lot--last { border-bottom: 0; }
body[data-page-type="complex"][data-detail-design] #apartments .section-empty {
  padding: 24px 16px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

/* Характеристики объекта: полноценная сетка карточек из референса. */
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics > .complex-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics > .complex-section-head h2 { margin: 0; }
body[data-page-type="complex"][data-detail-design] .complex-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 10px;
  border: 1px solid var(--line);
  /* Метка статуса — rounded.sm по DESIGN.md, как .badge; капсула выбивалась из системы. */
  border-radius: var(--radius-sm, 4px);
  background: var(--accent-soft);
  /* accent-hover вместо accent: на accent-soft это 5:1 вместо 4,2:1 (DESIGN.md, .badge). */
  color: var(--accent-hover);
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights {
  display: grid;
  /* Шесть дорожек по две на карточку: так последний ряд можно заполнить —
     одна карточка на всю строку, две по половине. */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 12px;
  margin: 0;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: start;
  align-items: start;
  gap: 2px 14px;
  min-height: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: none;
  grid-column: span 2;
  grid-row: auto;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights .icon {
  grid-column: 1;
  grid-row: 1;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  color: var(--accent);
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights dt {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 22px;
  font-weight: 400;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights dd {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  /* Пропорциональные цифры: табличные шире на 18 % и делали плитку растянутой. */
  font-variant-numeric: normal;
  letter-spacing: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}
body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 16px;
  font-weight: 400;
}

@media (min-width: 1041px) {
  /* Последний ряд заполняем целиком: одна карточка — на всю строку, две — по
     половине. Пустых слотов в сетке не остаётся. */
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:last-child:first-child,
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:nth-last-child(2):nth-child(3n + 1),
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:nth-last-child(2):nth-child(3n + 1) + div { grid-column: span 3; }
}

@container (max-width: 720px) {
  body[data-page-type="complex"][data-detail-design] .apartment-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 390px) {
  body[data-page-type="complex"][data-detail-design] .apartment-filter-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1040px) {
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:nth-child(n) { grid-column: auto; }
  /* Нечётное число карточек: последняя занимает обе колонки, ряда-обрывка нет. */
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body[data-page-type="complex"][data-detail-design] .apartment-filters { padding: 12px; }
  body[data-page-type="complex"][data-detail-design] .lot-groups-tools { margin-top: 10px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-title { font-size: 13px; line-height: 19px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list { padding: 0 4px 8px 12px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list .lot { gap: 8px; padding: 9px 0; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-title { font-size: 12px; line-height: 17px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price b { font-size: 16px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list .lot-price small { font-size: 10px; line-height: 14px; }
}
@media (max-width: 480px) {
  /* Две колонки и на телефоне: блок характеристик вдвое короче, значения
     по-прежнему читаются — уменьшаем только поля и иконку. */
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights > div { padding: 12px; gap: 2px 8px; grid-template-columns: 20px minmax(0, 1fr); }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights .icon { width: 20px; height: 20px; }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights dt { font-size: 12px; line-height: 18px; }
  body[data-page-type="complex"][data-detail-design] .detail-content #characteristics .complex-highlights dd { font-size: 15px; line-height: 21px; }
}
body[data-page-type="complex"][data-detail-design] .detail-body { margin-top: 24px; }
body[data-page-type="complex"][data-detail-design] .detail-content > section,
body[data-page-type="complex"][data-detail-design] #apartment-list,
body[data-page-type="complex"][data-detail-design] #sales-contacts {
  scroll-margin-top: calc(var(--site-header-height, 65px) + var(--detail-nav-height, 53px) + 24px);
}
body[data-page-type="complex"][data-detail-design] .sales-contact-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
body[data-page-type="complex"][data-detail-design] .sales-contact-heading h2 a { color: inherit; }
body[data-page-type="complex"][data-detail-design] .sales-contact-heading h2 a:hover { color: var(--accent-hover); }
body[data-page-type="complex"][data-detail-design] .sales-contact-caption { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .sales-contacts .detail-phone-contact { display: block; margin: 24px 0 0; }
body[data-page-type="complex"][data-detail-design] .sales-contacts .detail-phone-reveal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  box-sizing: border-box;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--panel);
  background: var(--accent);
  font-size: 15px;
  line-height: 24px;
  font-weight: 600;
  transition: background var(--motion-short) var(--ease-out);
}
body[data-page-type="complex"][data-detail-design] .sales-contacts .detail-phone-reveal:hover { background: var(--accent-hover); }
body[data-page-type="complex"][data-detail-design] .apartment-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
body[data-page-type="complex"][data-detail-design] .apartment-filter-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field-border); border-radius: var(--radius-md); color: var(--ink); background: var(--panel); font: inherit; font-size: 13px; cursor: pointer; }
body[data-page-type="complex"][data-detail-design] #lots-filter-count { padding: 0 4px; border-radius: var(--radius-sm); color: var(--accent-hover); background: var(--accent-soft); font-size: 12px; }
body[data-page-type="complex"][data-detail-design] .apartment-sort { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
body[data-page-type="complex"][data-detail-design] .apartment-sort select { min-width: 0; max-width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--field-border); border-radius: var(--field-radius); color: var(--ink); background: var(--panel); font: inherit; }
body[data-page-type="complex"][data-detail-design] .apartment-filter-apply { display: none; min-height: 48px; border-radius: var(--radius-md); }
body[data-page-type="complex"][data-detail-design] .apartment-filter-apply:disabled { color: var(--muted); background: var(--line); cursor: default; }
body[data-page-type="complex"][data-detail-design] .apartment-filter-grid input[aria-invalid="true"] { border-color: var(--danger); }
body[data-page-type="complex"][data-detail-design] .apartment-filter-error { margin: 12px 0 0; color: var(--danger); font-size: 13px; line-height: 20px; }
body[data-page-type="complex"][data-detail-design] .apartment-conditions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
body[data-page-type="complex"][data-detail-design] .apartment-condition { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: var(--bg); font: inherit; font-size: 12px; cursor: pointer; }
body[data-page-type="complex"][data-detail-design] .apartment-condition:hover { border-color: var(--field-border-hover); }
body[data-page-type="complex"][data-detail-design] .apartment-condition svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
body[data-page-type="complex"][data-detail-design] .lot-group-columns { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1.2fr) minmax(0, .9fr) 20px; gap: 12px; padding: 12px 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  body[data-page-type="complex"][data-detail-design] .apartment-toolbar { flex-wrap: wrap; gap: 12px; }
  body[data-page-type="complex"][data-detail-design] .apartment-filter-toggle { display: inline-flex; }
  body[data-page-type="complex"][data-detail-design] .apartment-sort { margin-left: auto; max-width: calc(100% - 128px); }
  body[data-page-type="complex"][data-detail-design] .apartment-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body[data-page-type="complex"][data-detail-design] .apartment-sort select { font-size: 12px; }
  body[data-page-type="complex"][data-detail-design] .apartment-filter-status { order: 3; width: 100%; }
  body[data-page-type="complex"][data-detail-design] .apartment-filter-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-page-type="complex"][data-detail-design] .apartment-filter-actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; }
  body[data-page-type="complex"][data-detail-design] .apartment-filter-apply { display: flex; justify-content: center; }
  body[data-page-type="complex"][data-detail-design] .lot-group-columns { display: none; }
  body[data-page-type="complex"][data-detail-design] .lot-groups { border-top: 0; background: transparent; }
  body[data-page-type="complex"][data-detail-design] .lot-group { margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
  body[data-page-type="complex"][data-detail-design] .lot-group-summary { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 2px 10px; min-height: 80px; padding: 14px 16px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-title { grid-column: 1; grid-row: 1; }
  body[data-page-type="complex"][data-detail-design] .lot-group-minimum { grid-column: 2; grid-row: 1; font-size: 14px; text-align: right; }
  body[data-page-type="complex"][data-detail-design] .lot-group-area { grid-column: 1; grid-row: 2; }
  body[data-page-type="complex"][data-detail-design] .lot-group-count { grid-column: 2; grid-row: 2; text-align: right; }
  body[data-page-type="complex"][data-detail-design] .lot-group-chevron { grid-column: 3; grid-row: 1 / 3; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list { padding-inline: 16px; }
  body[data-page-type="complex"][data-detail-design] .lot-group-list .lot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page-type="complex"][data-detail-design] .complex .detail-nav a,
  body[data-page-type="complex"][data-detail-design] .lot-group-summary,
  body[data-page-type="complex"][data-detail-design] .lot-group-chevron,
  body[data-page-type="complex"][data-detail-design] .sales-contacts .detail-phone-reveal { transition: none; }
}
body[data-page-type="complex"][data-detail-design] .detail-sidebar {
  --sidebar-card-radius: 14px;
  position: static;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: none;
  overflow: visible;
}
body[data-page-type="complex"][data-detail-design] .detail-sidebar > section {
  margin: 0;
  padding: 20px;
  border-radius: var(--sidebar-card-radius);
}
body[data-page-type="complex"][data-detail-design] .detail-sidebar > .detail-summary { overflow: visible; }
body[data-page-type="complex"] .detail-sidebar > .sidebar-sticky-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
}
body[data-page-type="complex"] .sidebar-sticky-card > .property-hero-offer--embedded {
  height: auto;
  min-height: 0;
  gap: 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  margin: 0;
}
body[data-page-type="complex"] .sidebar-sticky-card > * + * {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
body[data-page-type="complex"] .sidebar-sticky-office h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
body[data-page-type="complex"] .sidebar-sticky-office dl { display: grid; gap: 8px; margin: 0; }
body[data-page-type="complex"] .sidebar-sticky-office .icon { width: 16px; height: 16px; color: var(--muted); }
body[data-page-type="complex"] .sidebar-sticky-office dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}
body[data-page-type="complex"] .sidebar-sticky-office dd {
  margin: 0 0 0 24px;
  font-size: 13px;
  line-height: 18px;
  overflow-wrap: anywhere;
}
@media (min-width: 1080px) {
  body[data-page-type="complex"] .detail-sidebar > .sidebar-sticky-card {
    --sidebar-sticky-top: calc(var(--site-header-height, 65px) + var(--detail-nav-height, 53px) + 16px);
    position: sticky;
    top: var(--sidebar-sticky-top);
    max-height: calc(100dvh - var(--sidebar-sticky-top) - 16px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  body[data-page-type="complex"] .sidebar-sticky-card.is-behind-hero:not(:target, :focus-within) { display: none; }
}
@media (width < 1080px) {
  body[data-page-type="complex"] .sidebar-sticky-card > :is(.property-hero-offer--embedded, .sidebar-sticky-actions),
  body[data-page-type="complex"] .detail-sidebar > .sidebar-sticky-card:not(:has(.sidebar-sticky-office, .sales-contact-actions)) {
    display: none;
  }
  body[data-page-type="complex"] .sidebar-sticky-card > .sidebar-sticky-office,
  body[data-page-type="complex"] .sidebar-sticky-card:not(:has(.sidebar-sticky-office)) > .sales-contact-actions {
    border-top: 0;
    padding-top: 0;
  }
}
/* «Данные для графика»: тонкий шеврон вместо системного треугольника. */
body[data-page-type="complex"] .price-history-table summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
body[data-page-type="complex"] .price-history-table summary::-webkit-details-marker { display: none; }
body[data-page-type="complex"] .price-history-table summary::marker { content: ""; }
body[data-page-type="complex"] .price-history-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform var(--motion-short, 160ms) var(--ease-out, ease);
}
body[data-page-type="complex"] .price-history-table[open] .price-history-chevron { transform: rotate(180deg); }

/* Одноколоночная раскладка: сайдбар перестаёт быть липким и идёт обычным
   потоком под контентом, без внутренней прокрутки. Цену на телефоне показывает
   карточка первого экрана и нижняя липкая панель. */
@media (max-width: 1079px) {
  body[data-page-type="complex"][data-detail-design] .detail-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}
/* Полоса разделов прокручивается по горизонтали: затухание у края списка
   показывает, что справа есть ещё пункты, и снимается, когда список докрутили
   до конца. Маска живёт на списке ссылок, а не на контейнере с белой
   подложкой: иначе полоса «просвечивала» фото и бейджи по краям. */
body[data-page-type="complex"] .detail-nav.is-scrollable-right .detail-nav-list {
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
body[data-page-type="complex"] .detail-nav.is-scrollable-left.is-scrollable-right .detail-nav-list {
  mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
body[data-page-type="complex"] .detail-nav.is-scrollable-left:not(.is-scrollable-right) .detail-nav-list {
  mask-image: linear-gradient(to right, transparent, #000 40px);
}

/* «Коротко о ЖК»: тонкий шеврон вместо системного треугольника, пять строк
   без внутренней прокрутки и компактные «Сравнить» / «В избранное». */
body[data-page-type="complex"] .detail-summary summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  cursor: pointer;
  list-style: none;
}
body[data-page-type="complex"] .detail-summary summary::-webkit-details-marker { display: none; }
body[data-page-type="complex"] .detail-summary summary::marker { content: ""; }
body[data-page-type="complex"] .detail-summary-chevron {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transition: transform var(--motion-short, 160ms) var(--ease-out, ease);
}
body[data-page-type="complex"] .detail-summary details[open] .detail-summary-chevron { transform: rotate(180deg); }
body[data-page-type="complex"] .detail-summary dl { display: grid; gap: 8px; margin: 12px 0 0; }
body[data-page-type="complex"] .detail-summary dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
body[data-page-type="complex"] .detail-summary dt { flex: none; color: var(--muted); font-size: 13px; line-height: 20px; }
body[data-page-type="complex"] .detail-summary dd { margin: 0; min-width: 0; font-size: 13px; line-height: 20px; text-align: right; overflow-wrap: anywhere; }
body[data-page-type="complex"] .sidebar-sticky-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body[data-page-type="complex"] .sidebar-sticky-actions > :is(.compare-toggle, .favorite-toggle) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 6px);
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}
body[data-page-type="complex"] .sidebar-sticky-actions > :is(.compare-toggle, .favorite-toggle) .icon { width: 16px; height: 16px; }
body[data-page-type="complex"] .sidebar-sticky-actions > :is(.compare-toggle, .favorite-toggle)[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

/* Застройщик: карточка во всю ширину колонки; имя сверху, реквизиты — строками
   «ключ — значение». Сетка auto-fit сжимала длинное юрлицо и URL в колонки по
   100 px, текст ломался в 4–5 строк. */
body[data-property-presentation] .detail-content .dev-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md, 6px);
  background: var(--panel);
}
body[data-property-presentation] .detail-content .dev-name { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
body[data-property-presentation] .detail-content .dev-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin: 0;
}
body[data-property-presentation] .detail-content .dev-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: baseline;
  min-width: 0;
  padding: 0;
}
body[data-property-presentation] .detail-content .dev-facts dt { margin: 0; color: var(--muted); font-size: 12px; line-height: 18px; }
body[data-property-presentation] .detail-content .dev-facts dd { margin: 0; font-size: 14px; line-height: 20px; overflow-wrap: break-word; hyphens: none; }
/* Ссылка «Все ЖК …» идёт отдельной строкой под сеткой карточек застройщика:
   без отступа она прилипала к их нижней рамке. */
body[data-page-type="complex"] .developer-projects > a {
  display: inline-block;
  margin-top: 16px;
}
@media (max-width: 767px) {
  /* На телефоне пара «ключ — значение» встаёт друг под друга: колонка меток
     шириной 170 px съедала бы половину экрана. */
  body[data-property-presentation] .detail-content .dev-facts > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

/* Продажи: метрики строкой, под ними бублик и легенда рядом — без пустых
   полей по краям, которые давала колонка 9fr под три числа. */
body[data-property-presentation] .sales-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
body[data-property-presentation] .sales-body .sales-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 12px 24px;
  margin: 0;
}
body[data-property-presentation] .sales-body .sales-metric { padding: 0; border: 0; gap: 0 8px; }
body[data-property-presentation] .sales-body .sales-metric strong { font-size: 26px; line-height: 32px; }
body[data-property-presentation] .sales-body .sales-metric-label { margin-top: 2px; font-size: 12px; line-height: 18px; }
body[data-property-presentation] .sales-body .sales-chart {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  align-items: center;
  gap: 20px 28px;
}
body[data-property-presentation] .sales-body .sales-donut { width: 100%; max-width: 168px; height: auto; }
body[data-property-presentation] .sales-body .sales-legend { margin: 0; }
body[data-property-presentation] .sales-body .sales-chart:not(:has(.sales-legend li)) { grid-template-columns: 168px; }

@media (max-width: 900px) {
  body[data-property-presentation] .detail-content .dev-card { grid-template-columns: minmax(0, 1fr); }
  body[data-property-presentation] .sales-body .sales-chart { grid-template-columns: 150px minmax(0, 1fr); }
  body[data-property-presentation] .sales-body .sales-donut { max-width: 150px; }
}
@media (max-width: 560px) {
  body[data-property-presentation] .sales-body .sales-chart { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  body[data-property-presentation] .sales-body .sales-legend { width: 100%; }
}

/* «Отдел продаж»: мелкий лейбл сверху, крупно — застройщик. Раньше рядом
   с названием стояла подпись «Отдел продаж «Тест Строй»» — тавтология. */
body[data-page-type="complex"] .sales-contact-label {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0;
}
body[data-page-type="complex"] .sales-contact-heading h2 { margin: 0; }
body[data-page-type="complex"] .sales-contact-details { margin-top: 12px; }

/* Липкая панель телефона: цена слева, звонок и квартиры справа. */
body[data-page-type="complex"] .detail-mobile-actions { gap: 8px; }
/* В скрытом состоянии панели не должно быть ни в раскладке, ни в слое
   отрисовки: иначе из-под кромки экрана торчит верхняя кромка кнопки. */
body[data-page-type="complex"] .detail-mobile-actions[hidden] {
  display: none;
  visibility: hidden;
  pointer-events: none;
}
body[data-page-type="complex"] .detail-mobile-actions-price {
  flex: 0 1 auto;
  align-self: center;
  margin: 0;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 16px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body[data-page-type="complex"] .detail-mobile-actions > .detail-mobile-actions-link,
body[data-page-type="complex"] .detail-mobile-actions > .compare-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 48px;
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
body[data-page-type="complex"] .detail-mobile-actions > :is(.detail-mobile-actions-link, .compare-toggle) .icon { width: 20px; height: 20px; }
body[data-page-type="complex"] .detail-mobile-actions > .compare-toggle[aria-pressed="true"],
body[data-page-type="complex"] .detail-mobile-actions > .favorite-toggle[aria-pressed="true"] { color: var(--accent); }
body[data-page-type="complex"] .detail-mobile-actions > .detail-mobile-actions-primary { gap: 6px; }
body[data-page-type="complex"] .detail-mobile-actions > .detail-mobile-actions-primary .icon { width: 18px; height: 18px; }
body[data-page-type="complex"][data-detail-design] .map-building-copy > span { font-size: 12px; line-height: 17px; }
/* «Наверх» не перекрывает панель: у кнопки уже есть переменная отступа. */
body.has-detail-mobile-actions { --back-to-top-offset: calc(var(--detail-mobile-actions-height, 68px) + 12px); }

/* ---------- видео-hero ПРО: пауза, крошки, метка ---------- */
/* Кнопка паузы — заметный круг в стиле верхних «Фото» и «♡»: полупрозрачный
   тёмный фон с размытием, белая иконка. Стоит внутри контентного контейнера
   hero строго слева от колонки с карточкой цены: на 1280–2560 px карточка и
   кнопка не пересекаются. */
body[data-property-presentation="architecture"] .pro-hero-video-toggle {
  right: calc(max(32px, (100% - 1320px) / 2) + var(--pro-offer-column, 320px) + 16px);
  bottom: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.62);
  backdrop-filter: blur(8px);
  color: #fff;
  opacity: 1;
}
body[data-property-presentation="architecture"] .pro-hero-video-toggle .icon { width: 16px; height: 16px; }
body[data-property-presentation="architecture"] .pro-hero-video-toggle:hover,
body[data-property-presentation="architecture"] .pro-hero-video-toggle:focus-visible { background: rgba(16, 24, 40, 0.8); opacity: 1; }
/* Верхний градиент чуть плотнее: хлебные крошки читаются и на светлом небе. */
body[data-property-presentation="architecture"] .pro-hero-shade {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.88) 0%, rgba(16, 24, 40, 0.32) 26%, rgba(16, 24, 40, 0) 46%),
    linear-gradient(0deg, rgba(16, 24, 40, 0.8) 0%, rgba(16, 24, 40, 0.42) 32%, rgba(16, 24, 40, 0) 58%);
}
/* «ИИ-визуализация» — компактная тёмная плашка под бейджами: текст читается на
   любом кадре видео и не сливается с бейджем срока сдачи. */
body[data-property-presentation="architecture"] .pro-hero-mark {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 8px 0 0;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.58);
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-shadow: none;
  backdrop-filter: blur(6px);
}

/* На телефоне навигация и заголовок занимают свои ряды поверх кадра.
   Длинный текст увеличивает кадр, а кнопки остаются доступны. */
@media (max-width: 767px) {
  body[data-property-presentation="architecture"] .pro-hero { --pro-offer-column: 0px; }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(40px, 1fr) auto auto;
    gap: 0;
    min-height: 0;
    padding: 0;
    border-radius: 0 0 12px 12px;
    background: var(--panel);
  }
  body[data-property-presentation="architecture"] .pro-hero-media {
    position: relative;
    inset: auto;
    grid-row: 1 / 4;
    grid-column: 1;
    width: 100%;
    height: auto;
    min-height: clamp(240px, 66vw, 280px);
    align-self: stretch;
    aspect-ratio: auto;
    overflow: hidden;
  }
  body[data-property-presentation="architecture"] .pro-hero-top {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    padding: 12px 16px 0;
    gap: 8px;
  }
  body[data-property-presentation="architecture"] .pro-hero-title {
    position: relative;
    inset: auto;
    grid-row: 3;
    grid-column: 1;
    align-self: end;
    z-index: 3;
    padding: 0 16px 16px;
    color: var(--panel);
  }
  body[data-property-presentation="architecture"] .pro-hero-title h1 { margin: 0 0 6px; font-size: 26px; line-height: 30px; }
  body[data-property-presentation="architecture"] .pro-hero-address { margin: 0; font-size: 13px; line-height: 19px; }
  body[data-property-presentation="architecture"] .pro-offer {
    position: relative;
    grid-row: 4;
    grid-column: 1;
    padding: 16px;
    background: var(--panel);
  }
  body[data-property-presentation="architecture"] .pro-offer .property-hero-offer { box-shadow: none; height: auto; }
  body[data-property-presentation="architecture"] .pro-hero-mark { margin-top: 6px; }
  body[data-property-presentation="architecture"] .complex.complex--pro .pro-hero--no-photo { grid-template-rows: auto auto auto; }
  body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-hero-title { grid-row: 2; padding: 12px 16px 0; }
  body[data-property-presentation="architecture"] .pro-hero--no-photo .pro-offer { grid-area: 3 / 1; padding: 16px; }
}

/* Телефон в первом экране. На телефоне номер отдаётся сразу ссылкой `tel:`:
   второй тап на раскрытие стоил части звонков, а QR на смартфоне бесполезен.
   На десктопе кнопка открывает общее модальное окно телефона. */
body[data-property-presentation] .property-offer-phone .property-offer-call { display: none; }

@media (max-width: 700px) {
  body[data-property-presentation] .property-offer-phone .property-offer-call {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 550;
    text-decoration: none;
  }
  body[data-property-presentation] .property-offer-phone .property-offer-call:hover,
  body[data-property-presentation] .property-offer-phone .property-offer-call:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); }
  body[data-property-presentation] .property-offer-phone .property-offer-call .icon { width: 18px; height: 18px; }

  /* На телефоне главное действие — звонок. «Выбрать квартиру» остаётся
     навигацией, но вторичной: две сплошные синие кнопки рядом спорили между
     собой, и палец не понимал, какая из них главная. */
  body[data-property-presentation] .property-offer-actions > .primary {
    min-height: 48px;
    border: 1px solid var(--accent);
    background: var(--panel);
    color: var(--accent-hover);
  }
  body[data-property-presentation] .property-offer-actions > .primary:hover,
  body[data-property-presentation] .property-offer-actions > .primary:focus-visible {
    border-color: var(--accent-hover);
    background: var(--accent-soft);
    color: var(--accent-hover);
  }
}


/* Постер вместо видео: картинка держит первый экран, ролик подставляется позже. */
body[data-property-presentation] .hero-video-poster[hidden] { display: none; }
