.lots-page { --lot-header-height: 72px; margin: 0; background: #080808; }
html[data-theme="light"] .lots-page { background: #f5f2ed; color: #25211c; }
.lots-page #scroll-root { padding-top: var(--lot-header-height); }
.lots-page :is(#catalogue-results, #catalogue-consultation, #property-plan) {
  scroll-margin-top: var(--lot-header-height);
}
.lots {
  --lots-accent: #84251c;
  color: #f5f2ed;
  background: #080808;
}
html[data-theme="light"] .lots { color: #25211c; background: #f5f2ed; }
.lot-header {
  position: sticky;
  z-index: 90;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--lot-header-height);
  gap: 12px;
  padding: 8px clamp(16px, 4vw, 65px);
  color: #fff;
  background: #080808;
}
.lots-page:has(> #scroll-root) > .lot-header { position: fixed; }
.lot-header a { color: inherit; }
.lot-header-home { font-size: clamp(16px, 1.8vw, 24px); font-weight: 550; white-space: nowrap; }
.lot-header-catalogue { font-size: 15px; font-weight: 550; letter-spacing: .05em; }
.lot-wordmark { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.lot-wordmark span, .lot-wordmark small { display: block; }
.lot-wordmark span { font-size: 24px; font-weight: 600; letter-spacing: .015em; }
.lot-wordmark small { font-size: 11px; letter-spacing: .035em; }
.lot-saved { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.lot-saved > :not(.lot-contact), .lot-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.lot-saved svg, .lot-actions svg { width: 22px; height: 22px; }
.lot-saved .theme-toggle svg { width: 18px; }
.lot-moon { fill: currentColor; }
.lot-sun { display: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.lot-saved .theme-toggle[aria-pressed="true"] .lot-moon { display: none; }
.lot-saved .theme-toggle[aria-pressed="true"] .lot-sun { display: block; }
.lot-saved .theme-toggle:hover { color: #e2c79a; }
.lot-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 4px 5px 4px 16px;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid #a54234;
  border-radius: 999px;
  background: #84251c;
}
.lot-header .lot-contact:hover { background: #9b3429; color: #fff; }
.lot-contact svg { padding: 8px; width: 34px; height: 34px; border-radius: 50%; background: #f5f2ed; color: #84251c; }
.lots .catalogue-moscow { height: clamp(395px, 56svh, 640px); }
.lots .catalogue-moscow > img { object-position: center 78%; }
.lots .catalogue-moscow::after {
  background: linear-gradient(180deg, #08080882, transparent 58%, transparent 73%, #080808 100%);
}
html[data-theme="light"] .lots .catalogue-moscow::after {
  background: linear-gradient(180deg, #f5f2ed54, transparent 42%, transparent 76%, #f5f2ed 100%);
}
.all-projects.lots[data-wide-catalogue] .catalogue-moscow .catalogue-hero-copy {
  padding-top: clamp(20px, 4svh, 54px);
}
html[data-theme="light"] .lots .catalogue-moscow h1,
html[data-theme="light"] .lots .catalogue-moscow-note { color: #25211c; text-shadow: none; }
.lots .catalogue-moscow h1 span { font-weight: 500; }
.lots .catalogue-moscow-note { width: fit-content; border-width: 1px; }
.lot-shell, .lots:not(:has(.catalogue-moscow)) {
  width: min(94%, 1500px);
  margin-inline: auto;
}
.lots:not(:has(.catalogue-moscow)) { padding-top: 18px; }
.lot-shell { padding: 12px 0 48px; }
.catalogue-modes {
  display: grid;
  grid-template-columns: 1fr 1.25fr .7fr;
  gap: 8px;
  margin-block: 4px 20px;
}
.catalogue-modes a {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 7px 8px;
  color: inherit;
  border: 1px solid #978574;
  font-size: clamp(14px, 1.35vw, 18px);
  text-align: center;
  line-height: 1.18;
}
.catalogue-modes a[aria-current] { color: #fff; background: #84251c; border-color: #84251c; }
.all-projects > .catalogue-modes { width: var(--catalogue-width, 94%); margin-inline: auto; }
.lot-filter-title { font: 400 clamp(26px, 2.6vw, 42px)/1.12 var(--title-font); margin: 0 0 12px; }
.lot-filters {
  --filter-accent: #e2c79a;
  --filter-ink: #f5f2ed;
  --filter-muted: #c5b7a8;
  --filter-field: #1b1815;
  --filter-surface: #151311;
  --filter-line: #665a4e;
  --filter-hover: #312921;
  display: block;
  padding: 0 0 14px;
  border-bottom: 1px solid #91847570;
}
html[data-theme="light"] .lot-filters {
  --filter-accent: #84251c;
  --filter-ink: #25211c;
  --filter-muted: #60584d;
  --filter-field: #fffdf8;
  --filter-surface: #f5f2ed;
  --filter-line: #c7bba9;
  --filter-hover: #eee5d7;
}
.lot-quick, .lot-primary {
  display: grid;
  gap: 10px 14px;
}
.lot-primary { grid-template-columns: 1.55fr 1.55fr 1fr 1.05fr 1fr; align-items: center; margin-block: 12px; }
.lot-quick { grid-template-columns: minmax(0,1.55fr) repeat(4,minmax(0,1fr)) minmax(128px,.85fr); align-items: end; }
.lot-filters :is(.lot-primary, .lot-quick) label, .lot-search {
  display: grid; gap: 5px; font-size: 14px; min-width: 0; color: var(--filter-ink);
}
.lot-filters :is(.lot-primary, .lot-quick) select, .lot-filters .catalogue-search-trigger {
  width: 100%; min-height: 44px; padding: 5px 9px; font: inherit;
  border: 1px solid var(--filter-line); color: var(--filter-ink); background: var(--filter-field);
}
.lot-filters .catalogue-search-trigger:hover { background: var(--filter-hover); }
.lot-filters #catalogue-suggestions [data-search-close] { color: #f5f2ed; background: #171412; }
.lot-filters #catalogue-suggestions .catalogue-search-choices button { width: auto; }
.lots .lot-filters .catalogue-range { grid-column: auto; margin: 0; padding: 0; border: 0; min-width: 0; }
.lot-floor {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px;
  min-width: 0; margin: 0; padding: 0; border: 0; color: var(--filter-ink); font-size: 14px;
}
.lot-floor legend { padding: 0; }
.lot-floor input {
  width: 100%; min-width: 0; height: 44px; padding: 5px 6px; border: 1px solid var(--filter-line);
  background: var(--filter-field); color: var(--filter-ink); font: inherit;
}
.lot-filters .range-track::before { background: linear-gradient(to right,#aaa 0 var(--range-low),#84251c var(--range-low) var(--range-high),#aaa var(--range-high)); }
.lot-filters .range-track input::-webkit-slider-thumb { background: #84251c; }
.lot-filters .range-track input::-moz-range-thumb { background: #84251c; }
.lot-filter-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 12px 24px; margin-top: 20px;
}
.lot-mode {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 465px); padding: 3px;
  background: var(--filter-field); border: 1px solid var(--filter-line); border-radius: 8px;
}
.lot-mode::before {
  content: ""; position: absolute; inset: 3px auto 3px 3px; z-index: -1;
  width: calc(50% - 3px); border-radius: 5px; background: #84251c;
  transition: transform 230ms cubic-bezier(.25,.7,.25,1);
}
.lot-mode[data-mode="0"]::before { transform: translateX(100%); }
.lot-filters .lot-mode button {
  min-height: 46px; padding: 6px 8px; border: 0; border-radius: 5px;
  font: inherit; font-size: clamp(15px, 1.3vw, 18px); font-weight: 500; line-height: 1.2;
  color: var(--filter-ink); background: transparent; cursor: pointer;
}
.lot-mode button[aria-pressed="true"] { color: #fff; }
.lot-mode button[aria-pressed="false"]:hover { text-decoration: underline; text-underline-offset: 4px; }
.lot-discount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 5px; color: #e2c79a; font-size: 16px; }
html[data-theme="light"] .lot-discount { color: #84251c; }
.lot-discount del { color: var(--quiet, inherit); white-space: nowrap; text-decoration-thickness: 1.5px; }
.lot-conditional { margin: 3px 0; color: var(--quiet, inherit); font-size: 14px; }
.lot-filters .filter-actions, .lot-result, .lots .pagination {
  display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap;
}
.lot-filters .filter-actions { margin: 0; }
.lot-filters .filter-actions :is(button, a) {
  min-height: 46px;
  font: 400 1rem/1.25 "Golos Text", Arial, sans-serif;
}
.lot-filters .filter-actions button {
  padding: 8px 16px; border: 1px solid transparent; border-radius: 6px;
  background: var(--filter-ink); color: var(--filter-surface); cursor: pointer;
}
.lot-filters .filter-actions button:hover { border-color: var(--filter-ink); background: var(--filter-hover); color: var(--filter-ink); }
.lot-filters .filter-actions a {
  display: inline-grid; place-items: center; color: var(--filter-ink);
  text-decoration: underline; text-underline-offset: 4px;
}
.lot-result { justify-content: space-between; padding: 14px 0; }
.lot-result p { margin: 0; }
.lot-result .snapshot { font-size: 13px; }
html[data-theme="light"] .lots :is(.lot-result .result-count, .pagination a) { color: #84251c; }
.lot-list { gap: 24px; }
.lots .lot-card { border: 1px solid #91847570; border-radius: 12px; overflow: clip; }
html[data-theme="light"] .lots .lot-card {
  --atlas-ink: #25211c;
  --quiet: #60584d;
  --soft: #60584d;
  --divider: #d7cbb9;
  background: #fffdf8;
  color: #25211c;
}
.lots .plan-heading h2 { margin: 0 0 13px; font: 400 clamp(24px, 2.4vw, 40px)/1.12 var(--title-font); overflow-wrap: anywhere; }
.lots .plan-heading:has(.lot-developer) h2 { margin-bottom: 4px; }
.lot-developer { margin: 0 0 14px; color: var(--quiet, inherit); font-size: clamp(16px, 1.3vw, 20px); }
.lots .plan-facts { grid-template-columns: 1.15fr 1fr 1fr .75fr; }
.lots .plan-facts > div { min-width: 0; overflow-wrap: anywhere; text-align: left; }
.lots .plan-facts dd { font-size: clamp(14px, 1.2vw, 19px); }
.lots .plan-location { font-size: 15px; }
.lots .plan-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lots .plan-actions .action {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 7px 12px;
  border: 1px solid currentColor; border-radius: 999px; font-size: 14px; line-height: 1.2;
}
.lots .plan-actions .action svg { width: 16px; height: 16px; }
.lots .plan-actions .lot-open,
html[data-theme="light"] .lots .plan-actions .lot-open { color: #fff; background: #84251c; border-color: #84251c; }
.lots .plan-enlarge-icon { background: #080808; color: #e2c79a; }
.lots .lot-actions {
  position: absolute; z-index: 1; top: 10px; right: 10px; display: flex; gap: 5px;
}
.lots .lot-actions button { background: #080808; color: #e2c79a; border: 1px solid #e2c79a64; }
.lots .lot-actions button[aria-pressed="true"] { background: #84251c; color: #fff; }
.lot-price-terms, .lot-date { font-size: 13px; }
.lot-price-terms { margin-bottom: 10px; }
.lot-price-terms summary { cursor: pointer; }
.lot-price-terms p { white-space: pre-line; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .lot-price-terms::details-content {
      interpolate-size: allow-keywords; overflow: clip; block-size: 0; opacity: 0;
      transition: block-size 230ms ease, opacity 190ms ease, content-visibility 230ms allow-discrete;
    }
    .lot-price-terms[open]::details-content { block-size: auto; opacity: 1; }
  }
}
@media (prefers-reduced-motion: reduce) { .lot-mode::before { transition: none; } }
.lots .pagination a { padding: 10px; }
.lot-empty, .lots .pagination { padding-block: 14px; }
.lots :is(a, button, summary):focus-visible, .lot-header :is(a, button):focus-visible {
  outline: 2px solid #b35b37; outline-offset: 2px;
}
.lot-save-status:not(:empty) {
  position: fixed; bottom: 12px; right: 12px; max-width: min(320px, 90vw); z-index: 6;
  padding: 10px 14px; border-radius: 8px; background: #191511; color: #f5f2ed;
}
@media (min-width: 1001px) { .lot-header-home { display: none; } }
@media (max-width: 1000px) { .lot-wordmark, .lot-header-catalogue { display: none; } }
@media (max-width: 650px) {
  .lots-page { --lot-header-height: 60px; }
  .lot-header { padding-inline: 10px; gap: 4px; }
  .lot-saved { gap: 0; }
  .lot-saved > :not(.lot-contact) { min-width: 38px; }
  .lot-contact { font-size: 13px; padding: 5px 9px; min-height: 40px; }
  .lot-contact svg { display: none; }
  .lots .catalogue-moscow { height: clamp(320px, 49svh, 420px); }
  .all-projects.lots[data-wide-catalogue] .catalogue-moscow .catalogue-hero-copy { padding-top: 27px; padding-bottom: 15px; }
  .lots .catalogue-moscow h1 span { letter-spacing: .095em; }
  .lot-shell { width: calc(100% - 28px); }
  .lot-quick, .lot-primary { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
  .lot-search, .lot-floor { grid-column: 1 / -1; }
  .lot-filters .lot-mode { width: 100%; }
  .lots .lot-filters .range-values output { font-size: 11px; }
  .lots .plan-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lots .lot-actions { right: 6px; top: 6px; }
  .lots .lot-actions button, .lots .plan-enlarge-icon { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .catalogue-modes { gap: 5px; margin-bottom: 14px; }
  .catalogue-modes a { padding-inline: 4px; }
}
