/* Public-only bridge to the approved HTML-first design assets. */
.public-mode {
  --public-content-max: 1280px;
  --public-footer-pad: 32px;
  --public-header-pad: 32px;
}

/* Cabinet MVP extends the approved dashboard/auth vocabulary. */
.design-cabinet-page .auth-panel,
.design-cabinet-page .panel {
  min-width: 0;
}

.design-cabinet-page .role-grid {
  grid-template-columns: 1fr;
}

.design-cabinet-page .role-card {
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.design-cabinet-page .role-card h3,
.design-cabinet-page .role-card p {
  margin: 0;
}

.design-cabinet-page .role-card p {
  margin-top: 4px;
}

.design-cabinet-page .cabinet-back,
.design-cabinet-page .cabinet-auth-switch {
  margin-bottom: 18px;
}

.cabinet-auth-form,
.cabinet-profile-form,
.cabinet-editor .form-grid,
[data-developer-company] {
  max-width: 680px;
}

.cabinet-field {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.cabinet-field input {
  width: 100%;
  min-height: 48px;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  font: inherit;
  font-weight: 500;
}

.cabinet-field input:focus {
  border-color: var(--primary);
  outline: 2px solid rgba(8, 101, 245, .12);
}

.cabinet-field input:disabled {
  color: var(--muted);
  background: #f6f8fa;
}

body.public-mode a.project-card-photo {
  display: block;
  min-height: 178px;
  background-position: center;
  background-size: cover;
}

.cabinet-form-error,
.cabinet-form-status,
.cabinet-notice {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #cfe0ff;
  border-radius: var(--radius);
  color: #1f4f91;
  background: var(--primary-soft);
}

.cabinet-form-error {
  border-color: #f0c7c7;
  color: #9b2c2c;
  background: #fff5f5;
}

.cabinet-auth-note {
  margin-top: 18px;
}

.cabinet-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.cabinet-favorite-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.cabinet-favorite-tabs::-webkit-scrollbar {
  display: none;
}

.cabinet-favorite-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.cabinet-favorite-tabs button.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.design-cabinet-page .row-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.design-cabinet-page .thumb {
  width: 72px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f2f4f7 center/cover no-repeat;
}

@media (max-width: 760px) {
  .mobile-screen .design-cabinet-page .dash-side {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
  }

  .design-cabinet-page .auth-layout {
    grid-template-columns: 1fr;
  }

  .design-cabinet-page .auth-preview {
    display: none;
  }

  .design-cabinet-page .auth-panel {
    padding: 0;
  }

  .design-cabinet-page .role-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .design-cabinet-page .role-card > b {
    grid-column: 2;
  }

  .cabinet-form-actions > button {
    width: 100%;
  }
}

/* Developer passport follows the approved image-first profile composition. */
body.public-mode .market-developer-page .breadcrumb {
  margin-bottom: 12px;
}
body.public-mode .developer-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: stretch;
}
body.public-mode .developer-profile-cover {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f6f8;
}
body.public-mode .developer-profile-cover > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}
body.public-mode .developer-profile-cover.is-empty {
  display: grid;
  place-items: center;
}
body.public-mode .developer-profile-logo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 154px;
  height: 64px;
  padding: 8px 12px;
  box-sizing: border-box;
  overflow: hidden;
  border: 1px solid #dce3e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(26, 48, 62, .12);
}
body.public-mode .developer-profile-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.public-mode .developer-profile-logo.is-fallback {
  display: none;
}
body.public-mode .developer-profile-passport {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
body.public-mode .developer-profile-passport .market-eyebrow {
  margin: 0 0 14px;
  color: #08367f;
}
body.public-mode .developer-profile-passport h1 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: var(--text-32);
  line-height: 1.16;
}
body.public-mode .developer-legal-name,
body.public-mode .developer-profile-meta {
  color: var(--muted);
}
body.public-mode .developer-profile-meta {
  margin: 20px 0 0;
}
body.public-mode .developer-contact-button {
  margin-top: 14px;
}
body.public-mode .developer-profile-site {
  margin-top: 20px;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
body.public-mode .developer-profile-site:hover {
  text-decoration: underline;
}
body.public-mode .developer-correction-link {
  margin-top: auto;
  padding: 24px 0 0;
}

@media (max-width: 760px) {
  body.public-mode .developer-profile-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  body.public-mode .developer-profile-cover,
  body.public-mode .developer-profile-cover > img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
  body.public-mode .developer-profile-passport {
    padding: 16px;
  }
  body.public-mode .developer-profile-passport h1 {
    font-size: var(--text-24);
  }
  body.public-mode .developer-correction-link {
    margin-top: 4px;
    padding-top: 16px;
  }
}
:root:has(body.public-mode) {
  overflow-x: hidden;
}
.public-mode .main > .site-header:not(:has(.topbar)),
.public-mode .site-header .topbar,
body.public-mode:has(#view > .market-catalog-page) .site-header .topbar,
body.public-mode:has(#view > .page-skeleton-catalog) .site-header .topbar {
  width: min(100%, var(--public-content-max));
  max-width: var(--public-content-max);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--public-header-pad);
  padding-left: var(--public-header-pad);
  box-sizing: border-box;
}
body.public-mode .main > .site-header {
  align-items: center;
}
body.public-mode .main > .site-header .site-brand {
  align-self: center;
  line-height: 0;
}
body.public-mode .main > .site-header .site-brand-logo {
  display: block;
  width: 88px;
  height: auto;
}
body.public-mode .main > .site-header .top-nav,
body.public-mode .main > .site-header .top-nav > span,
body.public-mode .main > .site-header .site-actions {
  align-items: center;
}
body.public-mode .main > .site-header .top-nav {
  margin-left: 12px;
}
body.public-mode .main > .site-header .top-nav > span {
  display: inline-flex;
  min-height: 32px;
}
.public-mode .main > .site-footer {
  width: min(100%, var(--public-content-max));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--public-footer-pad);
  padding-left: var(--public-footer-pad);
  box-sizing: border-box;
}
.public-mode .main > .site-footer > .footer-grid,
.public-mode .site-footer-inner,
body.public-mode:has(#view > .market-catalog-page) .site-footer-inner,
body.public-mode:has(#view > .page-skeleton-catalog) .site-footer-inner {
  width: min(100%, var(--public-content-max));
  max-width: var(--public-content-max);
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 700px) {
  .public-mode {
    --public-footer-pad: 16px;
    --public-header-pad: 16px;
  }
  .public-mode .main > .site-header {
    width: 100%;
  }
  body.public-mode .main > .site-header .site-brand-logo {
    width: 82px;
  }
  body.public-mode.mobile-screen .design-home-page .hero-search {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: none;
    margin-top: 24px;
    box-sizing: border-box;
  }
  body.public-mode.mobile-screen .design-home-page .home-hero {
    display: block;
    min-height: 0;
    padding: 32px 16px 16px;
  }
  body.public-mode.mobile-screen .site-header .desktop-only,
  body.public-mode.mobile-screen .site-header .text-btn.locale {
    display: none;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles article {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 72px;
    padding: 10px 4px;
    text-align: center;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles span {
    width: 42px;
    height: 42px;
    border: 0;
    background: transparent;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles .ui-icon {
    width: 32px;
    height: 32px;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles b {
    font-size: 10px;
    line-height: 14px;
  }
  body.public-mode.mobile-screen .design-home-page .category-tiles p {
    display: none;
  }
  body.public-mode.mobile-screen .design-home-page .section h3 {
    font-size: 20px;
    line-height: 28px;
  }
  body.public-mode .design-home-page .hero-copy p {
    display: -webkit-box;
    width: min(100%, 320px);
    max-width: 320px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

.public-mode .market-home-hero {
  background-image:
    linear-gradient(120deg, rgba(21, 38, 66, .94), rgba(36, 69, 122, .84)),
    url('/public-design-assets/home-hero.jpg');
  background-position: center;
  background-size: cover;
}

/* Exact public hero measurements from the HTML-first reference. */
.public-mode .market-home-page .market-home-hero-reference {
  min-height: 318px;
  align-content: center;
  padding: 58px 48px 32px;
  border-radius: 0;
  background-position: center;
  background-size: cover !important;
  background-repeat: no-repeat !important;
}
.public-mode .market-home-page .market-home-hero-reference h1 {
  max-width: 560px;
  font: 800 44px/52px var(--font-head, Manrope, Inter, sans-serif);
}
.public-mode .market-home-page .market-home-hero-reference .market-eyebrow {
  display: block !important;
  margin: 12px 0 0;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  letter-spacing: 0;
  text-transform: none;
}
.public-mode .market-home-page .market-home-hero-reference .market-search-panel {
  width: calc(100% - 20px);
  max-width: 920px;
  margin: 54px auto 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 30px rgba(19,38,48,.18);
}

.public-mode .market-categories button,
.public-mode .market-card,
.public-mode .market-toolbar,
.public-mode .market-detail,
.public-mode .market-section {
  border-radius: 8px;
}

body.public-mode .apartment-detail-page .apartment-contact-actions {
  margin-top: 24px;
}
body.public-mode .apartment-detail-page .apartment-contact-actions .primary {
  width: 100%;
  min-height: 48px;
}
@media (min-width: 701px) and (max-width: 1199px) {
  body.public-mode .apartment-detail-page .market-detail {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 24px;
  }
}

/* The live home renderer keeps its data-driven cards, while these aliases
   give the repeated navigation and apartment blocks the exact HTML-first
   geometry and interaction affordances. */
.public-mode .market-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.public-mode .market-categories button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line, #d8e2e7);
  background: #fff;
  color: #172633;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.public-mode .market-categories button:hover {
  border-color: #b7cce0;
  box-shadow: 0 12px 28px rgba(23, 41, 70,.14);
  transform: translateY(-2px);
}
.public-mode .market-categories button svg {
  display: block;
  width: 34px;
  height: 34px;
  padding: 5px;
  color: #1268d7;
  border: 1px solid #d9e8fb;
  border-radius: 4px;
  background: #f1f7ff;
}
.public-mode .market-categories button b {
  font-size: 15px;
}
.public-mode .market-categories button span {
  display: block;
  margin-top: 3px;
  color: var(--muted, #6e7f89);
  font-size: 12px;
}
.public-mode .market-home-page .apartment-preview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.public-mode .market-home-page .apartment-preview-grid .public-apartment-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #d8e2e7);
  background: #fff;
}
.public-mode .market-home-page .apartment-preview-grid .public-apartment-media {
  min-height: 74px;
}
.public-mode .market-home-page .apartment-preview-grid .public-apartment-media img {
  width: 92px;
  height: 74px;
  object-fit: cover;
  border-radius: 5px;
}
.public-mode .market-home-page .apartment-preview-grid .market-card-body {
  padding: 0;
}
.public-mode .market-home-page .apartment-preview-grid .market-card-body h3 {
  margin: 0;
  font-size: 15px;
}
.public-mode .market-home-page .apartment-preview-grid .market-card-body p {
  margin: 3px 0 0;
  color: var(--muted, #6e7f89);
  font-size: 12px;
}
@media (max-width: 900px) {
  .public-mode .market-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .public-mode .market-home-page .apartment-preview-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .public-mode .market-home-hero {
    background-position: 62% center;
  }
  .public-mode .market-home-page .market-home-hero-reference {
    min-height: 0;
    padding: 32px 18px;
  }
  .public-mode .market-home-page .market-home-hero-reference h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .public-mode .market-categories { grid-template-columns: 1fr 1fr; gap: 8px; }
  .public-mode .market-categories button {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
    min-height: 64px;
    padding: 10px;
  }
  .public-mode .market-categories button svg { width: 28px; height: 28px; }
}

/* HTML-first public renderers use the design stand's structural classes.
   These rules only bridge interactive elements whose native element differs
   from the static stand (buttons instead of article tiles). */
.public-mode .design-home-page .category-tiles button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 14px 18px;
  border: 1px solid var(--line, #d8e2e7);
  border-radius: 8px;
  background: #fff;
  color: #172633;
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.public-mode .design-home-page .category-tiles button:hover {
  border-color: #b7cce0;
  box-shadow: 0 12px 28px rgba(23, 41, 70,.14);
  transform: translateY(-2px);
}
.public-mode .design-home-page .category-tiles button > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #1268d7;
  border: 1px solid #d9e8fb;
  border-radius: 4px;
  background: #f1f7ff;
}
.public-mode .design-home-page .category-tiles button svg { width: 26px; height: 26px; }
.public-mode .design-home-page .category-tiles button b { font-size: 15px; }
.public-mode .design-home-page .category-tiles button p { margin: 3px 0 0; color: var(--muted, #6e7f89); font-size: 12px; }
.public-mode .design-home-page .category-tiles article > span {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}
.public-mode .design-home-page .category-tiles article > span .ui-icon {
  width: 32px;
  height: 32px;
}
.public-mode .design-home-page .district-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.public-mode .design-home-page .district-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.public-mode .design-home-page .district-row:last-child { border-bottom: 0; }
.public-mode .design-home-page .district-row:hover { background: #f7fbff; }
.public-mode .design-home-page .district-row .card-arrow { display: none; }
.public-mode .design-home-page .design-project-grid .catalog-card,
.public-mode .design-catalog-page .catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.public-mode .design-home-page .design-project-grid .catalog-card-body,
.public-mode .design-catalog-page .catalog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.public-mode .design-home-page .design-project-grid .catalog-card-foot,
.public-mode .design-catalog-page .catalog-card-foot {
  margin-top: auto;
}
.public-mode .project-card-title-link {
  color: #101820 !important;
  text-decoration: none;
}
.public-mode .project-card-title-link:visited,
.public-mode .project-card-title-link:hover {
  color: #101820 !important;
}
body.public-mode #view .project-card-title-link,
body.public-mode #view .project-card-title-link:visited,
body.public-mode #view .project-card-title-link:hover {
  color: #101820 !important;
}
.public-mode .project-apartment-summary-link {
  color: var(--blue);
  font: 600 14px/20px Inter, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}
.public-mode .project-apartment-summary-link:hover { text-decoration: underline; }
.public-mode .project-card-facts .summary-compact { display: none; }
.public-mode .project-card-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 0;
  color: var(--muted);
  font: 500 14px/20px Inter, sans-serif;
}
.public-mode .project-card-facts .project-apartment-summary-link {
  margin-left: auto;
  text-align: right;
}
.public-mode .project-card-photo {
  position: relative;
}
.public-mode .project-deadline-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border: 1px solid rgba(220, 226, 231, 0.46);
  border-radius: 6px;
  color: var(--ink, #19252b);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 2px 8px rgba(25, 37, 43, 0.05);
  font: 600 13px/18px Inter, sans-serif;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.public-mode .catalog-card > .public-favorite {
  position: absolute;
  z-index: 3;
  top: 12px;
  right: 12px;
  color: var(--ink, #19252b);
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(4px);
}
.public-mode .public-detail-icon.is-saved svg {
  fill: currentColor;
}
.public-mode .public-filter-dialog-close {
  display: grid;
  place-items: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid var(--line, #dce2e7);
  border-radius: 6px;
  color: var(--ink, #19252b);
  background: #fff;
  cursor: pointer;
}
.public-mode .public-filter-dialog-close .ui-icon {
  width: 18px;
  height: 18px;
}
.public-mode .design-home-page .apartment-preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.public-mode .design-home-page .apartment-preview {
  position: relative;
  grid-template-columns: 76px minmax(0, 1fr);
}
.public-mode .design-home-page .apartment-preview > div:nth-child(2),
.public-mode .design-home-page .apartment-preview h4 {
  min-width: 0;
}
.public-mode .design-home-page .apartment-preview h4 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.public-mode .design-home-page .apartment-preview .plan img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.public-mode .design-project-detail-page .detail-gallery-main,
.public-mode .design-project-detail-page .detail-gallery-strip .photo {
  background-position: center;
  background-size: cover;
}
.public-mode .design-project-detail-page .detail-gallery .photo::before,
.public-mode .design-project-detail-page .detail-gallery .photo::after {
  display: none !important;
}
.public-mode .design-project-detail-page .detail-gallery-strip button.photo {
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  cursor: pointer;
}
.public-mode .design-project-detail-page .detail-gallery-strip button.photo.active {
  border-color: var(--primary, #0865f5);
}
.public-mode .design-project-detail-page .detail-gallery-main .ui-icon {
  width: 18px;
  height: 18px;
}
.public-mode .design-project-detail-page .project-summary-apartments a {
  display: inline-block;
  color: var(--primary, #0865f5);
  text-decoration: none;
  white-space: normal;
}
.public-mode .design-project-detail-page .project-summary { padding-top: 0; }
.public-mode .design-project-detail-page .project-summary > .meta {
  margin: 10px 0 12px;
}
.public-mode .design-project-detail-page .project-summary > .developer-line {
  margin: 0 0 16px;
}
.public-mode .design-project-detail-page .project-summary-apartments {
  margin: 22px 0 16px;
  font: 700 18px/24px var(--font-head);
}
.public-mode .design-project-detail-page .project-summary-apartments .summary-compact { display: none; }
.public-mode .design-project-detail-page .developer-strip-name { min-width: 0; }
.public-mode .design-project-detail-page .developer-strip-name > b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.public-mode .design-project-detail-page .dev-logo { overflow: hidden; }
.public-mode .design-project-detail-page .dev-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.public-mode .design-project-detail-page .developer-projects-link {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.public-mode .design-project-detail-page .project-main-photo { background-position: center; background-size: cover; border-radius: 8px; }
.public-mode .design-project-detail-page .thumb-strip .photo { background-position: center; background-size: cover; border: 1px solid transparent; }
.public-mode .design-project-detail-page .thumb-strip .photo.active { border-color: var(--primary); }
.public-mode .design-project-detail-page .key-facts span .ui-icon { width: 18px; height: 18px; }
.public-mode .design-project-detail-page .key-facts article b { display: block; font-size: 16px; }
.public-mode .design-project-detail-page .key-facts article small { display: block; color: var(--muted); font-size: 12px; }
.public-mode .design-project-detail-page .about-project p:not(.meta) { font-size: 16px; line-height: 24px; }
.public-mode .design-project-detail-page .about-project .photo {
  width: 100%;
  min-width: 0;
  background-color: #f3f6f8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.public-mode .design-project-detail-page .detail-gallery-main .public-detail-actions {
  top: 12px;
  right: 12px;
}
.public-mode .design-project-detail-page .detail-gallery-main {
  cursor: zoom-in;
  touch-action: pan-y;
}
.public-mode .design-project-detail-page .gallery-nav {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.38);
  box-shadow: 0 4px 12px rgba(20,40,52,.1);
  opacity: .62;
}
.public-mode .design-project-detail-page .gallery-nav:hover,
.public-mode .design-project-detail-page .gallery-nav:focus-visible {
  background: rgba(255,255,255,.54);
  opacity: .82;
}
.public-mode .design-project-detail-page .key-facts,
.public-mode .design-project-detail-page .key-facts article {
  border-color: #d8e8ff;
  background: #f1f7ff;
}
.public-mode .design-project-detail-page .project-about-combined {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
}
.public-mode .design-project-detail-page .project-about-copy {
  min-width: 0;
}
.public-mode .design-project-detail-page .project-about-copy h3 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 28px;
}
.public-mode .design-project-detail-page .project-about-copy p {
  margin: 0;
  color: var(--text, #102a3a);
  font-size: 15px;
  line-height: 24px;
}
.public-mode .design-project-detail-page .project-about-facts {
  display: grid;
  min-width: 0;
}
.public-mode .design-project-detail-page .project-about-facts article {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}
.public-mode .design-project-detail-page .project-about-fact-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 6px;
  color: var(--primary, #0865f5);
  background: #f1f7ff;
}
.public-mode .design-project-detail-page .project-about-fact-icon .ui-icon {
  width: 24px;
  height: 24px;
}
.public-mode .design-project-detail-page .project-about-facts b,
.public-mode .design-project-detail-page .project-about-facts small {
  display: block;
}
.public-mode .design-project-detail-page .project-about-facts b {
  color: var(--text, #102a3a);
  font-size: 16px;
  line-height: 20px;
}
.public-mode .design-project-detail-page .project-about-facts small {
  margin-top: 2px;
  color: var(--muted, #667b88);
  font-size: 12px;
  line-height: 16px;
}
.public-mode .design-project-detail-page .project-about-selected {
  display: block;
}
.public-mode .design-project-detail-page .project-about-selected .project-about-combined {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr);
  gap: 32px;
  padding: 24px 28px 24px 0;
  border: 0;
  border-radius: 0;
}
.public-mode .design-project-detail-page .project-about-selected .project-about-copy {
  padding-left: 0;
  border-left: 0;
}
.public-mode .design-project-detail-page .project-about-selected .project-about-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
}
.public-mode .design-project-detail-page .project-about-selected .project-about-facts article {
  min-height: 48px;
}

@media (max-width: 800px) {
  .public-mode .design-project-detail-page .project-about-selected .project-about-combined {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .public-mode .design-project-detail-page .project-about-copy h3 {
    font-size: 20px;
    line-height: 26px;
  }
  .public-mode .design-project-detail-page .project-about-selected .project-about-combined {
    padding: 18px 18px 18px 0;
  }
  .public-mode .design-project-detail-page .project-about-selected .project-about-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Public text links use one brand-blue treatment across legacy and current
   page templates. Button-style actions keep their component colors. */
body.public-mode #view a:not(.primary):not(.primary-btn):not(.secondary):not(.secondary-btn):not(.icon-btn):not(.project-tab-link):not(.developer-strip-name):not(.project-card-title-link):not([data-public-project]),
body.public-mode #view .link,
body.public-mode #view .link-button {
  color: var(--primary, #0865f5) !important;
}
body.public-mode #view a:not(.primary):not(.primary-btn):not(.secondary):not(.secondary-btn):not(.icon-btn):not(.project-tab-link):not(.developer-strip-name):not(.project-card-title-link):not([data-public-project]):visited {
  color: var(--primary, #0865f5) !important;
}
body.public-mode #view a:not(.primary):not(.primary-btn):not(.secondary):not(.secondary-btn):not(.icon-btn):not(.project-tab-link):not(.developer-strip-name):not(.project-card-title-link):not([data-public-project]):hover,
body.public-mode #view .link:hover,
body.public-mode #view .link-button:hover {
  color: var(--primary-dark, #0648b3) !important;
}
body.public-mode #view a.developer-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
body.public-mode #view .developer-line-logo {
  display: inline-grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #475c7e;
  font-size: 12px;
}
body.public-mode #view .developer-line-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.public-mode .design-project-detail-page .location-section {
  display: block;
}
body.public-mode .design-project-detail-page .location-section > h3 {
  margin: 0 0 8px;
}
body.public-mode .design-project-detail-page .project-location-address {
  margin: 0 0 16px;
  color: var(--muted);
  font: 400 14px/20px Inter, sans-serif;
}
body.public-mode .design-project-detail-page .location-section .map-box {
  width: 100%;
  box-sizing: border-box;
}
body.public-mode .design-apartment-page .apartments-filter {
  grid-template-columns: minmax(210px, 1.6fr) repeat(3, minmax(118px, .8fr)) minmax(120px, .7fr);
}
body.public-mode .public-property-photo img {
  display: block;
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center;
}
body.public-mode .public-property-photo {
  display: block;
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #f3f6f8;
  padding: 0;
  cursor: pointer;
}
body.public-mode .public-property-photo.is-plan img {
  object-fit: contain !important;
}
body.public-mode .apartment-media-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .94);
  color: #29374d;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}
body.public-mode .public-property-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 2px;
  scrollbar-gutter: stable;
}
body.public-mode .public-property-thumbs button {
  position: relative;
  flex: 0 0 96px;
  width: 96px;
  height: 72px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}
body.public-mode .public-property-thumbs button.active {
  border-color: #0865f5;
  box-shadow: inset 0 0 0 1px #0865f5;
}
body.public-mode .public-property-thumbs img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.public-mode .public-property-thumbs span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  left: 3px;
  overflow: hidden;
  padding: 3px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .94);
  color: #29374d;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.public-mode .map-box,
body.public-mode .city-map {
  background: #f4f6f8 !important;
}

body.public-mode .yandex-public-map {
  position: relative;
  overflow: hidden;
  background: #f2f5f7 !important;
}
body.public-mode .yandex-map-marker-wrap {
  position: relative;
  z-index: 1;
  width: 0;
  height: 0;
}
body.public-mode .yandex-map-marker,
body.public-mode .yandex-map-cluster {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  min-height: 0;
  padding: 0;
  color: #fff;
  background: #0865f5;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 2px 7px rgba(25, 37, 43, .24);
  cursor: pointer;
  transform: translate(-50%, -50%);
}
body.public-mode .yandex-map-marker {
  width: 16px;
  height: 16px;
}
body.public-mode .yandex-map-cluster {
  width: 38px;
  height: 38px;
  font: 700 12px/1 Inter, sans-serif;
}
body.public-mode .yandex-map-marker:hover,
body.public-mode .yandex-map-marker:focus-visible,
body.public-mode .yandex-map-cluster:hover,
body.public-mode .yandex-map-cluster:focus-visible {
  background: #0055d6;
  outline: 2px solid rgba(8, 101, 245, .25);
  outline-offset: 2px;
}
body.public-mode .yandex-map-popup {
  position: absolute;
  left: 0;
  bottom: 14px;
  z-index: 6;
  box-sizing: border-box;
  width: max-content;
  min-width: 210px;
  max-width: 320px;
  padding: 12px;
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 7px;
  box-shadow: 0 10px 28px rgba(25, 37, 43, .18);
  transform: translateX(-50%);
}
body.public-mode .yandex-map-popup.map-hover-popup {
  width: 320px;
  max-width: min(320px, calc(100vw - 40px));
  padding: 0;
  overflow: hidden;
}
body.public-mode .yandex-map-popup .map-hover-card,
body.public-mode .yandex-map-popup .catalog-card {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
}
body.public-mode .yandex-map-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 8;
  display: grid;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dce2e7;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(25, 37, 43, .12);
}
body.public-mode .yandex-map-controls button {
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  color: #19252b;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #dce2e7;
  border-radius: 0;
  font: 700 20px/1 Inter, sans-serif;
  cursor: pointer;
}
body.public-mode .yandex-map-controls button:last-child {
  border-bottom: 0;
}
body.public-mode .yandex-map-controls button:hover,
body.public-mode .yandex-map-controls button:focus-visible {
  color: #0865f5;
  background: #f4f8ff;
  outline: none;
}

body.public-mode .site-actions {
  position: relative;
}

body.public-mode .site-actions > #publicMoreMenu {
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  min-width: 240px;
  z-index: 80;
}

body.public-mode .public-menu-dialog #publicMoreMenu .public-menu-account {
  color: #0754c9 !important;
  background: #f1f7ff !important;
  border-bottom-color: #d7e5fb;
}
body.public-mode #view a.catalog-card,
body.public-mode #view a.catalog-card:visited {
  display: block;
  color: inherit !important;
  text-decoration: none;
}
body.public-mode .photo[style*="background-image"]::before,
body.public-mode .photo[style*="background-image"]::after,
body.public-mode .developer-photo-empty::before,
body.public-mode .developer-photo-empty::after {
  display: none !important;
}
body.public-mode .developer-photo-empty {
  display: grid;
  place-items: center;
  background: #f4f6f8 !important;
}
body.public-mode .photo[style*="background-image:url('')"],
body.public-mode .photo[style*='background-image:url("")'] {
  background: #f4f6f8 !important;
}
body.public-mode .design-developers-page .developers-filter {
  margin-bottom: 16px;
}
body.public-mode .project-tabs a,
body.public-mode .project-tabs a:visited {
  padding: 16px 0 14px;
  color: #405966 !important;
  font-weight: 700;
  text-decoration: none;
}
body.public-mode .project-tabs a.active,
body.public-mode .project-tabs a:hover {
  color: var(--primary, #0865f5) !important;
}
body.public-mode #view .design-project-detail-page .project-tabs a:not(.active) {
  color: #405966 !important;
}
body.public-mode #view .design-project-detail-page .developer-strip-name,
body.public-mode #view .design-project-detail-page .developer-strip-name:visited {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: #18202c !important;
  text-decoration: none;
}
body.public-mode #view .design-project-detail-page .developer-strip-name:hover {
  color: var(--primary, #0865f5) !important;
}
body.public-mode .design-project-detail-page .project-cta-developer {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
body.public-mode .design-project-detail-page .project-cta-developer .dev-logo {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 18px;
  overflow: hidden;
}
body.public-mode .design-project-detail-page .project-cta-developer .developer-strip-name {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #18202c !important;
  text-decoration: none;
}
body.public-mode .design-project-detail-page .project-cta-developer .developer-strip-name:hover {
  color: var(--primary, #0865f5) !important;
}
body.public-mode .design-commercial-page .commercial-filters,
body.public-mode .design-catalog-page .commercial-filters {
  grid-template-columns: minmax(160px, .8fr) minmax(160px, .8fr) minmax(280px, 1.8fr) minmax(140px, .7fr) !important;
}
body.public-mode .design-catalog-page .commercial-filters > * {
  min-width: 0;
}
body.public-mode .design-catalog-page > .catalog-filter-row {
  margin-bottom: 24px;
}
body.public-mode .catalog-filter-row .filter-select[open] {
  z-index: 40;
}
body.public-mode .catalog-filter-row .filter-menu {
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.public-mode .catalog-filter-row .filter-menu::-webkit-scrollbar { display: none; }
body.public-mode .design-apartment-page .apartment-preview {
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 160px;
  padding: 12px;
}
body.public-mode .design-apartment-page .apartment-preview .plan {
  position: relative;
  width: 136px;
  height: 136px;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f6f8;
}
body.public-mode .design-apartment-page .apartment-preview .plan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.public-mode .design-apartment-page .apartment-preview .plan.is-plan img {
  object-fit: contain;
}
body.public-mode .design-commercial-grid .commercial-photo-empty,
body.public-mode .commercial-detail-empty {
  display: grid;
  place-items: center;
  padding: 20px;
  color: #627681;
  background: #f3f6f8;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
body.public-mode .design-commercial-grid .commercial-plan-photo {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 12px;
  overflow: hidden;
  background: #f3f6f8;
}
body.public-mode .design-commercial-grid .commercial-plan-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.public-mode .commercial-detail-empty {
  min-height: 420px;
  border-radius: 8px;
}

body.public-mode .commercial-detail-page > .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.public-mode .commercial-detail-page > .breadcrumb > :last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.public-mode .commercial-detail-page .market-detail {
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  align-items: start;
  gap: 24px;
}
body.public-mode .commercial-detail-page .market-detail > * {
  min-width: 0;
}
body.public-mode .commercial-detail-page .public-property-photo {
  height: 420px;
  min-height: 420px;
}

@media (max-width: 860px) {
  body.public-mode .commercial-detail-page .market-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  body.public-mode .commercial-detail-page .public-property-photo {
    height: 360px;
    min-height: 360px;
  }
}
@media (max-width: 560px) {
  body.public-mode .commercial-detail-page .public-property-photo {
    height: 240px;
    min-height: 240px;
  }
  body.public-mode .design-apartment-page .apartment-preview {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 128px;
    padding: 10px;
  }
  body.public-mode .design-apartment-page .apartment-preview .plan {
    width: 108px;
    height: 108px;
  }
}
body.public-mode .design-project-detail-page > .section {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.public-mode .screen-main > .section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.public-mode .screen-main > .section > .section-head {
  padding: 0;
  border-bottom: 0;
}
body.public-mode .design-home-page > .section .market-empty {
  padding: 18px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
body.public-mode .design-home-page > .section:has(> .apartment-preview-grid > .market-empty),
body.public-mode .design-apartment-page > .lead {
  display: none;
}
body.public-mode .design-apartment-page > .catalog-pagination {
  margin-top: 24px;
}
body.public-mode .design-apartment-page > .catalog-pagination .pagination-page.is-current {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}
body.public-mode .design-project-detail-page .project-gallery .photo {
  border: 0 !important;
}
.public-mode .design-project-detail-page .apartment-table-head,
.public-mode .design-project-detail-page .apartment-table > article {
  grid-template-columns: .6fr .9fr 1.1fr .9fr 1.2fr;
  gap: 10px;
}
.public-mode .design-project-detail-page .apartment-table > article { display: grid; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); font-size: 12px; }
.public-mode .design-project-detail-page .apartment-table > article:last-child { border-bottom: 0; }
.public-mode .design-project-detail-page .apartment-table > article span { color: var(--muted); font-size: 13px; }
.public-mode .design-project-detail-page .apartment-table > article b {
  white-space: nowrap;
}
body.public-mode .design-project-detail-page .apartment-table .link {
  width: auto;
  min-height: 0;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
}
body.public-mode .design-project-detail-page .apartment-table .link:hover {
  color: var(--primary-dark);
  background: transparent;
  transform: translateX(2px);
}
body.public-mode .design-project-detail-page .project-gallery {
  display: block;
}
body.public-mode .design-project-detail-page .project-gallery-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
body.public-mode .design-project-detail-page .project-gallery-track .photo {
  width: 100%;
  min-width: 0;
  min-height: 96px;
  padding: 0;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  border-radius: 6px;
  cursor: default;
}
@media (max-width: 700px) {
  body.public-mode .design-project-detail-page .project-gallery-track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-right: -16px;
    padding: 0 16px 8px 0;
    scroll-padding-inline: 0 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.public-mode .design-project-detail-page .project-gallery-track .photo,
  body.public-mode.mobile-screen .design-project-detail-page .project-gallery-track .photo:nth-child(n) {
    display: block;
    flex: 0 0 clamp(180px, 42vw, 240px);
    width: clamp(180px, 42vw, 240px);
    min-height: 102px;
    scroll-snap-align: start;
  }
}

@media (min-width: 561px) and (max-width: 900px) {
  body.public-mode .design-project-detail-page .detail-gallery-main {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 11;
  }
}
@media (max-width: 700px) {
  .public-mode .design-home-page .category-tiles button { grid-template-columns: 32px minmax(0, 1fr); min-height: 64px; padding: 10px; }
  .public-mode .design-home-page .category-tiles button > span { width: 32px; height: 32px; }
  .public-mode .design-home-page .apartment-preview-grid { grid-template-columns: 1fr; }
  .public-mode .design-project-detail-page .apartment-table-head { display: none; }
  .public-mode .design-project-detail-page .apartment-table > article { grid-template-columns: 1fr 1fr; font-size: 14px; }
  body.public-mode .design-home-page .district-map-section {
    padding-right: 0;
    padding-left: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.public-mode .design-home-page .district-map-section > div:first-child > h3 {
    padding-right: 16px;
    padding-left: 16px;
  }
  body.public-mode .design-home-page .district-list {
    margin-top: 12px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }
}

/* Live API images must stay inside the fixed media slots from the HTML stand. */
.public-mode .design-home-page .design-project-grid .catalog-card > img,
.public-mode .design-catalog-page .catalog-card > img {
  display: block;
  width: 100%;
  height: 178px;
  min-height: 0;
  object-fit: cover;
}
.public-mode .design-home-page .district-thumb img {
  display: block;
  width: 100%;
  height: 46px;
  object-fit: cover;
  border-radius: 5px;
}
.public-mode .design-home-page .hero-copy h2 { color: #fff; }
.public-mode .design-home-page .hero-search {
  margin-right: 0;
  margin-left: 0;
}
.public-mode .design-home-page .home-hero {
  z-index: 3;
  overflow: visible;
}
.public-mode .design-home-page .category-tiles {
  position: relative;
  z-index: 1;
}
.public-mode .design-home-page .category-tiles article > span {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
}
.public-mode .design-home-page .category-tiles article > span .ui-icon {
  width: 32px;
  height: 32px;
}
.public-mode .design-home-page .hero-search > *,
.public-mode .design-home-page .hero-search .hero-select summary,
.public-mode .design-home-page .hero-search .primary-btn {
  min-height: 54px;
  height: 100%;
  box-sizing: border-box;
}
.public-mode .design-home-page .hero-search .primary-btn {
  padding-top: 0;
  padding-bottom: 0;
}
.public-mode .design-catalog-page .catalog-filter-row:has(#designProjectDistrict) {
  grid-template-columns: minmax(180px, 1.8fr) repeat(4, minmax(100px, 1fr)) !important;
}
.public-mode .design-catalog-page .catalog-filter-row .filter-select summary,
.public-mode .design-catalog-page .catalog-filter-row .filter-select summary span {
  white-space: nowrap;
}
.public-mode .design-catalog-page .catalog-sort-row {
  justify-content: flex-end;
}
body.public-mode .design-catalog-page .catalog-head {
  padding-left: 0;
}
body.public-mode .design-catalog-page .catalog-head-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
body.public-mode .design-catalog-page .catalog-head-controls > .filter-select {
  width: 220px;
}
body.public-mode .design-catalog-page .catalog-head-controls > .filter-select summary {
  min-height: 40px;
}
@media (max-width: 767px) {
  body.public-mode .design-catalog-page .catalog-head-controls {
    width: 100%;
  }
  body.public-mode .design-catalog-page .catalog-head-controls > .filter-select {
    width: 100%;
  }
}

body.public-mode .site-footer .site-footer-logo-surface,
body.public-mode .footer-brand-col .site-footer-logo-surface {
  padding: 0;
  background: transparent;
}
body.public-mode .site-footer .site-footer-logo-surface .site-brand-logo,
body.public-mode .footer-brand-col .site-footer-logo-surface .site-brand-logo {
  filter: brightness(0) invert(1);
}
body.public-mode .design-catalog-page .participant-filter-row {
  margin-bottom: 16px;
}
body.public-mode .design-project-catalog-list .catalog-list-card {
  grid-template-columns: 220px minmax(0, 1fr) minmax(240px, auto);
}
body.public-mode .design-project-catalog-list .catalog-list-card .photo {
  display: block;
  width: 220px;
  min-height: 132px;
  background: #f4f6f8 center / cover no-repeat;
}
body.public-mode .design-project-catalog-list .catalog-list-card-copy {
  min-width: 0;
}
body.public-mode .design-project-catalog-list .catalog-list-card-copy p {
  margin: 6px 0 0;
}
body.public-mode .design-project-catalog-list .project-card-facts {
  align-self: stretch;
  justify-content: center;
  min-width: 240px;
  border-top: 0;
  border-left: 0;
  padding: 12px 0;
}
body.public-mode .design-catalog-page .design-participant-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
body.public-mode #view .design-catalog-page a.design-participant-card {
  color: inherit !important;
  text-decoration: none;
  cursor: pointer;
}
body.public-mode #view .design-catalog-page a.design-participant-card:hover,
body.public-mode #view .design-catalog-page a.design-participant-card:visited {
  color: inherit !important;
}
@media (max-width: 900px) {
  .public-mode .design-home-page .home-search-button-suffix {
    display: none;
  }
  .public-mode .design-home-page .design-project-grid .catalog-card-body h4,
  .public-mode .design-catalog-page .catalog-card-body h4 {
    display: -webkit-box;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .public-mode .design-catalog-page .catalog-card-body h4 {
    min-height: 0;
    max-height: none;
  }
}

body.public-mode .apartment-project-summary {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 20px;
  overflow: hidden;
  border: 1px solid #c7d3dd;
  border-radius: 8px;
  background: #fff;
  color: #101820 !important;
  text-decoration: none;
}
body.public-mode .apartment-project-summary-photo {
  min-height: 168px;
  background-color: #eef3f6;
  background-position: center;
  background-size: cover;
}
body.public-mode .apartment-project-summary-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  padding: 12px 20px 12px 0;
}
body.public-mode .apartment-project-summary-copy strong {
  margin-bottom: 6px;
  font: 700 20px/1.3 Manrope, sans-serif;
}
body.public-mode .apartment-project-summary-copy > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
body.public-mode .apartment-project-summary-copy small {
  margin-top: auto;
  color: #475c7e;
  font-size: 13px;
}
body.public-mode #view .apartment-detail-page .market-detail p > a[data-public-project],
body.public-mode #view .apartment-detail-page .market-detail p > a[data-public-project]:visited {
  color: #101820 !important;
  font: 700 16px/20px Manrope, Inter, sans-serif;
  text-decoration: none;
}
body.public-mode #view .apartment-detail-page .market-detail p > a[data-public-project]:hover {
  color: var(--blue) !important;
}
body.public-mode .apartment-project-summary-copy b {
  margin-top: 14px;
  color: var(--blue);
  font-size: 14px;
}
body.public-mode .project-building-selector {
  display: block;
  margin: 14px 0 16px;
}
body.public-mode .project-building-selector .structure-building-tags {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow: hidden;
  padding: 2px;
  scrollbar-width: none;
}
body.public-mode .project-building-selector .structure-building-tags::-webkit-scrollbar {
  display: none;
}
body.public-mode .project-building-selector .structure-building-tags button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 8px 12px;
  border-color: #d7e2ec;
  background: #fff;
  color: #334b5b;
}
body.public-mode .project-building-selector .structure-building-tags button:hover {
  border-color: #8db9fa;
  color: #0754c9;
}
body.public-mode .project-building-selector .structure-building-tags button.active {
  border-color: #0865f5;
  background: #f1f7ff;
  color: #0754c9;
}
body.public-mode .project-building-menu {
  position: relative;
  width: min(360px, 100%);
}
body.public-mode .project-building-menu > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #fff;
  color: #334b5b;
  font: 700 14px/1.4 Inter, sans-serif;
  cursor: pointer;
  list-style: none;
}
body.public-mode .project-building-menu > summary::-webkit-details-marker { display: none; }
body.public-mode .project-building-menu > summary .ui-icon { width: 18px; height: 18px; }
body.public-mode .project-building-menu[open] > summary {
  border-color: #0865f5;
  box-shadow: 0 0 0 3px rgba(8, 101, 245, .12);
}
body.public-mode .project-building-menu-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  width: min(360px, calc(100vw - 32px));
  max-height: 300px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(26, 48, 62, .16);
}
body.public-mode .project-building-menu-list button {
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: #334b5b;
  text-align: left;
  cursor: pointer;
}
body.public-mode .project-building-menu-list button:hover,
body.public-mode .project-building-menu-list button.active {
  background: #f1f7ff;
  color: #0754c9;
}
@media (max-width: 560px) {
  body.public-mode .apartment-project-summary {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 14px;
  }
  body.public-mode .apartment-project-summary-photo { min-height: 142px; }
  body.public-mode .apartment-project-summary-copy { padding: 14px 14px 14px 0; }
  body.public-mode .apartment-project-summary-copy strong { font-size: 16px; }
  body.public-mode .apartment-project-summary-copy > span { font-size: 12px; }
  body.public-mode .apartment-project-summary-copy small { font-size: 12px; }
  body.public-mode .project-building-selector {
    margin-right: 0;
  }
  body.public-mode .project-building-selector .structure-building-tags {
    gap: 6px;
  }
}

@media (max-width: 700px) {
  body.public-mode .design-project-detail-page .breadcrumb {
    display: flex;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
  }
  body.public-mode .design-project-detail-page .breadcrumb > * {
    flex: 0 0 auto;
  }
  body.public-mode .design-project-detail-page .breadcrumb > span:last-child {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  body.public-mode .design-project-detail-page .project-gallery-track {
    padding-bottom: 0;
    scrollbar-width: none;
  }
  body.public-mode .design-project-detail-page .project-gallery-track::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .public-mode .design-project-grid .catalog-card-body > p.meta:nth-of-type(2),
  .public-mode .design-project-catalog-grid .catalog-card-body > p.meta:nth-of-type(2) {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .public-mode .design-project-grid .project-card-facts .summary-full,
  .public-mode .design-project-catalog-grid .project-card-facts .summary-full { display: none; }
  .public-mode .design-project-grid .project-card-facts .summary-compact,
  .public-mode .design-project-catalog-grid .project-card-facts .summary-compact { display: inline; }
}
@media (max-width: 767px) {
  body.public-mode .design-catalog-page > .catalog-filter-row {
    margin-bottom: 16px;
  }
  body.public-mode .design-project-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  body.public-mode .design-project-detail-page .project-hero > div:first-child,
  body.public-mode .design-project-detail-page .detail-gallery-project,
  body.public-mode .design-project-detail-page .detail-gallery-main {
    width: 100%;
    min-width: 0;
    justify-self: stretch;
    box-sizing: border-box;
  }
  body.public-mode .design-project-detail-page .project-summary-apartments .summary-full { display: none; }
  body.public-mode .design-project-detail-page .project-summary-apartments .summary-compact { display: inline; }
  body.public-mode .design-project-detail-page .developer-strip {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 10px;
    align-items: center;
    padding: 16px 0;
    text-align: left;
  }
  body.public-mode .design-project-detail-page .developer-strip > * {
    min-width: 0;
  }
  body.public-mode .design-project-detail-page .developer-strip .dev-logo {
    width: 48px;
    height: 48px;
    font-size: 21px;
  }
  body.public-mode .design-project-detail-page .developer-strip .meta { display: none; }
  body.public-mode .design-project-detail-page .developer-strip .developer-projects-link {
    justify-self: end;
    font-size: 14px;
  }
  body.public-mode .design-project-detail-page .apartment-table {
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }
  body.public-mode .design-project-detail-page .apartment-table-head {
    display: grid;
    grid-template-columns: minmax(62px, .7fr) minmax(88px, 1fr) minmax(110px, 1.2fr);
    gap: 8px;
    padding: 9px 12px;
  }
  body.public-mode .design-project-detail-page .apartment-table-head > span:nth-child(n+4) {
    display: none;
  }
  body.public-mode .design-project-detail-page .apartment-table > article {
    grid-template-columns: minmax(62px, .7fr) minmax(88px, 1fr) minmax(110px, 1.2fr) !important;
    gap: 8px;
    min-height: 48px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  body.public-mode .design-project-detail-page .apartment-table > article > div:first-child {
    grid-row: auto;
  }
  body.public-mode .design-project-detail-page .apartment-table > article > div:nth-child(2),
  body.public-mode .design-project-detail-page .apartment-table > article > div:nth-child(3) {
    display: block;
    grid-column: auto;
    min-width: 0;
  }
  body.public-mode .design-project-detail-page .apartment-table > article > div:nth-child(3),
  body.public-mode .design-project-detail-page .apartment-table-head > span:nth-child(3) {
    text-align: right;
  }
  body.public-mode .design-project-detail-page .apartment-table > article > div:nth-child(4),
  body.public-mode .design-project-detail-page .apartment-table > article > div:nth-child(5) {
    display: none;
  }
  body.public-mode .design-project-detail-page .apartment-table > article b {
    font-size: 13px;
  }
  body.public-mode .design-project-detail-page .project-tabs {
    display: none !important;
  }
  body.public-mode .design-catalog-page .catalog-filter-row,
  body.public-mode .design-catalog-page .catalog-filter-row:not(.developers-filter) {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.public-mode .design-catalog-page .catalog-filter-row::-webkit-scrollbar {
    display: none;
  }
  body.public-mode .design-catalog-page .catalog-filter-row > * {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 148px !important;
    max-width: 240px !important;
    margin: 0 !important;
  }
  body.public-mode .design-catalog-page .catalog-filter-row > .filter-select {
    min-width: 128px !important;
    max-width: 190px !important;
  }
  body.public-mode .design-catalog-page .catalog-filter-row > .search-field {
    min-width: 220px !important;
    order: 4;
  }
  body.public-mode .design-catalog-page .catalog-filter-row > :has(#designProjectDistrict) { order: 1; }
  body.public-mode .design-catalog-page .catalog-filter-row > :has(#designProjectPrice) { order: 2; }
  body.public-mode .design-catalog-page .catalog-filter-row > :has(#designProjectDeadline) { order: 3; }
  body.public-mode .design-catalog-page .catalog-filter-row > .primary-btn {
    display: none !important;
  }
}

/* Apartment catalogue uses the same vertical card rhythm as the ЖК catalogue.
   Homepage apartment previews intentionally keep their compact horizontal form. */
body.public-mode .design-apartment-page .design-apartment-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
body.public-mode .design-apartment-page .apartment-catalog-card .apartment-catalog-photo {
  display: grid;
  min-height: 178px;
  place-items: center;
  overflow: hidden;
  background: #f3f6f8;
}
body.public-mode .design-apartment-page .apartment-catalog-card .apartment-catalog-photo img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: cover;
}
body.public-mode .design-apartment-page .apartment-catalog-card .apartment-catalog-photo.is-plan img {
  object-fit: contain;
}
body.public-mode .design-apartment-page .apartment-catalog-card .catalog-card-body h4 a {
  color: inherit;
  text-decoration: none;
}
body.public-mode .design-apartment-page .apartment-catalog-card .project-card-facts {
  justify-content: space-between;
}
body.public-mode .design-apartment-page .apartment-catalog-card .project-card-facts strong {
  color: var(--ink, #19252b);
  white-space: nowrap;
}
@media (max-width: 900px) {
  body.public-mode .design-apartment-page .design-apartment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}
@media (max-width: 767px) {
  body.public-mode .design-apartment-page .design-apartment-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.public-mode .design-apartment-page .apartment-catalog-card .apartment-catalog-photo,
  body.public-mode .design-apartment-page .apartment-catalog-card .apartment-catalog-photo img {
    min-height: 190px;
    height: 190px;
  }
}
.public-mode .design-home-page .category-tiles button > div { min-width: 0; }
.public-mode .design-home-page .apartment-preview .plan img {
  display: block;
  width: 100%;
  height: 74px;
  object-fit: cover;
}
.public-mode .design-home-page .hero-select .design-select-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: grid;
  gap: 2px;
  max-height: 248px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line, #d8e2e7);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(23, 41, 70, .16);
}
.public-mode .design-home-page .hero-select .design-select-menu button {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  color: var(--text, #172633);
  background: #fff;
  font: 600 14px/20px Inter, Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}
.public-mode .design-home-page .hero-select .design-select-menu button:hover,
.public-mode .design-home-page .hero-select .design-select-menu button:focus-visible {
  color: var(--primary, #0865f5);
  background: #f1f7ff;
  outline: 0;
}
.public-mode .design-home-page .section-head .link {
  display: inline-flex;
  margin-top: 0;
  padding: 0;
  border: 0;
  color: var(--primary, #0865f5);
  background: transparent;
  font: 600 12px/18px Inter, Arial, sans-serif;
  text-decoration: none;
}
.public-mode .design-home-page .section-head {
  align-items: center;
}
body.public-mode.mobile-screen .design-home-page .section-head {
  align-items: center;
}
.public-mode .design-home-page .section-head .link {
  align-self: center;
}
.public-mode .design-home-page .section-head .link:hover {
  color: var(--primary-dark, #0754c9);
  background: transparent;
  transform: translateX(2px);
}
@media (min-width: 701px) and (max-width: 1100px) {
  body.public-mode .design-home-page .design-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  body.public-mode .design-home-page .apartment-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .public-mode .main > .site-footer > .footer-grid {
    grid-template-columns: 1.25fr repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}
.public-mode .design-map-page > .page-title {
  margin-bottom: 16px;
}

body.public-mode .design-map-page .map-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
}

body.public-mode .design-map-page .map-list-card {
  grid-template-columns: 72px minmax(0, 1fr);
  min-height: 88px;
  padding: 8px 12px;
}

body.public-mode .design-map-page .map-list-card > img,
body.public-mode .design-map-page .map-list-card-photo-empty {
  display: block;
  width: 72px;
  height: 64px;
  margin: 0;
  border-radius: 4px;
  background: #f1f4f7;
  object-fit: cover;
}

@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  body.public-mode .map-hover-popup .maplibregl-popup-content {
    width: 320px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #c8dcfa;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(24, 37, 45, .2);
  }
  body.public-mode .map-hover-popup .catalog-card {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  body.public-mode .map-hover-popup .catalog-card > .photo {
    display: block;
    width: 100%;
    height: 176px;
    min-height: 176px;
    aspect-ratio: auto;
  }
  body.public-mode .map-hover-popup .catalog-card-body {
    padding: 14px 16px 16px;
  }
  body.public-mode .map-hover-popup .catalog-card-body h4 {
    min-height: 0;
    margin-bottom: 6px;
  }
  body.public-mode .map-hover-popup .project-card-facts {
    margin-top: 10px;
  }
  body.public-mode .map-hover-popup .maplibregl-popup-tip {
    border-top-color: #c8dcfa;
  }
}

@media (max-width: 767px) {
  body.public-mode .design-map-page .map-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .public-mode .design-home-page .design-project-grid .catalog-card > img,
  .public-mode .design-catalog-page .catalog-card > img { height: 150px; }
}

/* Mobile catalog filters follow the reference: one swipeable row instead of
   a tall stack that pushes the catalogue below the first screen. */
@media (max-width: 700px) {
  body.public-mode .design-home-page .home-budget-select {
    display: none;
  }

  body.public-mode.mobile-screen .catalog-filter-row,
  body.public-mode.mobile-screen .design-catalog-page .catalog-filter-row,
  body.public-mode.mobile-screen .apartments-filter,
  body.public-mode.mobile-screen .developers-filter {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.public-mode.mobile-screen .catalog-filter-row::-webkit-scrollbar,
  body.public-mode.mobile-screen .design-catalog-page .catalog-filter-row::-webkit-scrollbar,
  body.public-mode.mobile-screen .apartments-filter::-webkit-scrollbar,
  body.public-mode.mobile-screen .developers-filter::-webkit-scrollbar {
    display: none;
  }
  body.public-mode.mobile-screen .catalog-filter-row > *,
  body.public-mode.mobile-screen .design-catalog-page .catalog-filter-row > * {
    flex: 0 0 auto;
    width: auto !important;
    min-width: 148px !important;
    max-width: 240px !important;
  }
  body.public-mode.mobile-screen .catalog-filter-row > .filter-select,
  body.public-mode.mobile-screen .design-catalog-page .catalog-filter-row > .filter-select {
    display: block !important;
  }
  body.public-mode.mobile-screen .catalog-filter-row > .primary-btn,
  body.public-mode.mobile-screen .design-catalog-page .catalog-filter-row > .primary-btn {
    display: none !important;
  }
  body.public-mode.mobile-screen .catalog-filter-row .search-field {
    min-width: 220px !important;
  }
  body.public-mode.mobile-screen .catalog-filter-row > :has(#designProjectDistrict),
  body.public-mode.mobile-screen #designApartmentDistrict,
  body.public-mode.mobile-screen #designDeveloperCity,
  body.public-mode.mobile-screen .catalog-filter-row > :has(#designCommercialType),
  body.public-mode.mobile-screen #designParticipantType { order: 1; }
  body.public-mode.mobile-screen .catalog-filter-row > :has(#designProjectPrice),
  body.public-mode.mobile-screen .catalog-filter-row > :has(#designCommercialDistrict),
  body.public-mode.mobile-screen #designApartmentRooms { order: 2; }
  body.public-mode.mobile-screen .catalog-filter-row > :has(#designProjectDeadline),
  body.public-mode.mobile-screen #designApartmentPrice,
  body.public-mode.mobile-screen .developers-filter > .sort-label { order: 3; }
  body.public-mode.mobile-screen .catalog-filter-row > .search-field { order: 4; }
  body.public-mode.mobile-screen .design-catalog-page .mobile-catalog-actions > button:first-child {
    display: none;
  }

  body.public-mode .public-project-card .project-apartment-summary > div {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 12px;
  }
  body.public-mode .public-project-card .project-apartment-type {
    display: flex;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-align: left !important;
    white-space: nowrap;
  }
  body.public-mode .public-project-card .project-apartment-type > b,
  body.public-mode .public-project-card .project-apartment-type > span {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: auto !important;
  }
  body.public-mode .public-project-card .project-apartment-summary > div > strong {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: baseline;
  }
  body.public-mode .public-project-card .project-apartment-summary > div.without-price {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.public-mode .catalog-filter-trigger {
  min-width: 120px;
  background: #fff;
}
body.public-mode .design-filter-dialog-fields {
  display: grid;
  align-content: start;
  gap: 16px;
}
body.public-mode .design-filter-dialog-fields label {
  display: grid;
  gap: 7px;
  color: #334b5b;
  font: 700 13px/1.4 Inter, sans-serif;
}
body.public-mode .design-filter-dialog-fields input,
body.public-mode .design-filter-dialog-fields select {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  box-sizing: border-box;
  border: 1px solid #d7e2ec;
  border-radius: 6px;
  background: #fff;
  color: #172633;
  font: 400 14px/1.4 Inter, sans-serif;
}
body.public-mode .design-filter-dialog-fields input:focus,
body.public-mode .design-filter-dialog-fields select:focus {
  border-color: #0865f5;
  outline: 3px solid rgba(8, 101, 245, .12);
}
body.public-mode .design-filter-dialog > footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
body.public-mode .design-filter-dialog > footer .design-filter-map-action {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
body.public-mode .design-filter-dialog > footer .design-filter-map-action .ui-icon {
  width: 18px;
  height: 18px;
}
body.public-mode .design-map-page > .map-filter-row {
  margin-bottom: 16px;
}
body.public-mode .design-filter-catalog-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: #fff;
}
body.public-mode .design-filter-catalog-switch button {
  min-width: 0;
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-right: 1px solid #cbd8e4;
  background: #fff;
  color: #334b5b;
  font: 600 14px/1.25 Inter, sans-serif;
  cursor: pointer;
}
body.public-mode .design-filter-catalog-switch button:last-child {
  border-right: 0;
}
body.public-mode .design-filter-catalog-switch button.active {
  color: #fff;
  background: #0865f5;
}
body.public-mode .design-filter-number-pair {
  display: grid;
  gap: 7px;
  color: #334b5b;
  font: 700 13px/1.4 Inter, sans-serif;
}
body.public-mode .design-filter-number-pair > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
body.public-mode .design-filter-number-pair input {
  min-width: 0;
}
body.public-mode .project-apartment-results-head {
  margin: 24px 0 12px;
}
body.public-mode #designProjectApartmentList {
  scroll-margin-top: 84px;
}
body.public-mode #designProjectApartmentList > .catalog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
body.public-mode #designProjectApartmentList .apartment-preview {
  position: relative;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 84px;
  gap: 10px;
  padding: 9px;
}
body.public-mode #designProjectApartmentList .apartment-preview .plan {
  position: relative;
  width: 64px;
  height: 64px;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #f3f6f8;
}
body.public-mode #designProjectApartmentList .apartment-preview .plan img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.public-mode #designProjectApartmentList .apartment-preview h4 {
  font-size: 14px;
  line-height: 18px;
}
body.public-mode #designProjectApartmentList .apartment-preview .meta {
  margin-top: 3px;
  line-height: 16px;
}
body.public-mode #designProjectApartmentList .apartment-preview .price {
  margin-top: 5px;
  line-height: 18px;
}
body.public-mode #designProjectApartmentList .apartment-preview > .card-arrow,
body.public-mode #designProjectApartmentList .apartment-preview .apartment-media-label {
  display: none;
}
@media (min-width: 701px) {
  body.public-mode .design-filter-dialog {
    inset: 50% auto auto 50%;
    width: min(520px, calc(100vw - 40px));
    height: auto;
    max-height: min(720px, calc(100dvh - 40px));
    margin: 0;
    border-radius: 8px;
    transform: translate(-50%, -50%);
  }
  body.public-mode .design-filter-dialog[open] {
    display: grid;
  }
  body.public-mode .design-filter-dialog::backdrop {
    background: rgba(23, 38, 51, .42);
  }
}
@media (max-width: 700px) {
  body.public-mode.mobile-screen .catalog-filter-row .catalog-filter-trigger {
    display: inline-flex !important;
  }
  body.public-mode .design-filter-dialog {
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    transform: none;
  }
  body.public-mode .design-filter-dialog[open] {
    display: grid;
    grid-template-rows: 56px minmax(0, 1fr) auto;
  }
  body.public-mode.mobile-screen .apartment-mobile-actions {
    grid-template-columns: 1fr;
  }
  body.public-mode #designProjectApartmentList > .catalog-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
body.public-mode .project-apartment-browser {
  min-width: 0;
}
body.public-mode .project-apartment-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(190px, 260px) minmax(140px, 190px) auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: var(--surface-soft, #f1f7ff);
}
body.public-mode .project-apartment-filter-trigger {
  grid-column: -2 / -1;
}
body.public-mode .project-apartment-filter-group,
body.public-mode .project-apartment-filters label {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin: 0;
}
body.public-mode .project-apartment-filter-group > span,
body.public-mode .project-apartment-filters label > span {
  color: #607382;
  font: 600 12px/1.3 Inter, sans-serif;
}
body.public-mode .project-room-segments,
body.public-mode .project-building-segments,
body.public-mode .project-apartment-view-switch {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
body.public-mode .project-room-segments button,
body.public-mode .project-building-segments button,
body.public-mode .project-apartment-view-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 48px;
  min-height: 40px;
  padding: 8px 13px;
  border: 0;
  border-right: 1px solid #cbd8e4;
  border-radius: 0;
  background: #fff;
  color: #334b5b;
  font: 600 14px/1.3 Inter, sans-serif;
  cursor: pointer;
}
body.public-mode .project-room-segments button:last-child,
body.public-mode .project-building-segments button:last-child,
body.public-mode .project-apartment-view-switch button:last-child {
  border-right: 0;
}
body.public-mode .project-room-segments button:hover,
body.public-mode .project-building-segments button:hover,
body.public-mode .project-apartment-view-switch button:hover {
  color: #0754c9;
  background: #f1f7ff;
}
body.public-mode .project-room-segments button.active,
body.public-mode .project-building-segments button.active,
body.public-mode .project-apartment-view-switch button.active {
  color: #fff;
  background: #0865f5;
}
body.public-mode .project-room-segments button:disabled {
  color: #a6b1ba;
  background: #f3f5f7;
  cursor: not-allowed;
}
body.public-mode .project-apartment-view-switch button:disabled {
  color: #93a1ad;
  background: #f2f4f6;
  cursor: default;
}
body.public-mode .project-apartment-view-switch .ui-icon {
  width: 17px;
  height: 17px;
}
body.public-mode .project-apartment-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background-color: #fff;
  color: #263b49;
  font: 600 14px/1.3 Inter, sans-serif;
}
body.public-mode .project-apartment-filters select:focus {
  border-color: #0865f5;
  outline: 3px solid rgba(8, 101, 245, .12);
}
body.public-mode .project-apartment-filter-trigger {
  min-width: 116px;
  min-height: 42px;
}
body.public-mode .project-apartment-viewbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 16px;
}
body.public-mode .project-house-scheme {
  display: grid;
  width: 100%;
  min-width: 100%;
  gap: 2px;
  overflow: hidden;
  border: 0;
  background: transparent;
}
body.public-mode .project-house-scroll {
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-gutter: auto;
}
body.public-mode .project-house-layout.has-selection {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 38%);
  align-items: start;
  gap: 12px;
}
body.public-mode .project-house-floor {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 0;
  border: 0;
  background: transparent;
}
body.public-mode .project-house-floor-label {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 100%;
  min-height: 32px;
  padding: 2px;
  border: 0;
  color: #263b49;
  background: #fff;
  font: inherit;
}
body.public-mode .project-house-floor-label b {
  font-size: 12px;
}
body.public-mode button.project-house-floor-label {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
}
body.public-mode .project-house-floor-label.has-plan {
  cursor: pointer;
}
body.public-mode .project-house-floor-label.has-plan:hover,
body.public-mode .project-house-floor-label.has-plan.active {
  color: #0754c9;
  background: #e5f0ff;
}
body.public-mode .project-house-units {
  display: grid;
  grid-template-columns: repeat(var(--scheme-columns), minmax(32px, 1fr));
  row-gap: 2px;
  column-gap: 4px;
  min-width: 0;
  padding: 2px;
}
body.public-mode .has-building-segments.uses-building-select select {
  display: block;
  width: 100%;
}
body.public-mode .project-house-unit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  width: 100%;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #c8dcfa;
  border-radius: 3px;
  background: #f1f7ff;
  color: #0754c9;
  text-align: left;
  cursor: pointer;
}
body.public-mode .project-house-unit:hover {
  border-color: #0865f5;
  background: #e5f0ff;
}
body.public-mode .project-house-unit.active {
  border-color: #0865f5;
  background: #0865f5;
  color: #fff;
}
body.public-mode .project-house-unit-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  width: 100%;
}
body.public-mode .project-house-unit-value b {
  font-size: 12px;
  line-height: 1;
}
body.public-mode .project-house-unit-area {
  display: none;
  align-items: baseline;
  gap: 3px;
  min-width: 0;
}
body.public-mode .project-house-unit-area i {
  color: #86a0b4;
  font-style: normal;
}
body.public-mode .project-house-unit-area small {
  color: #607382;
  font-size: 9px;
  white-space: nowrap;
}
body.public-mode .project-house-scheme.show-unit-area .project-house-unit-area {
  display: inline-flex;
}
body.public-mode .project-house-unit.active .project-house-unit-area :is(i, small) {
  color: #fff;
}

body.public-mode .project-house-unit.is-filtered-out,
body.public-mode .project-house-unit.is-filtered-out:hover {
  border-color: #e0e4e8;
  background: #f2f4f6;
  color: #9aa4ad;
  cursor: not-allowed;
  opacity: 1;
}

body.public-mode .project-house-unit.is-filtered-out .project-house-unit-area :is(i, small),
body.public-mode .project-house-floor-label.is-filtered-out {
  color: #aab2b9;
}

body.public-mode .project-house-floor.is-filtered-out .project-house-floor-label {
  background: #f7f8f9;
}
body.public-mode .project-house-selection {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #d7e2ec;
  border-radius: 8px;
  background: #fff;
}
body.public-mode .project-house-selection-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #607382;
  cursor: pointer;
}
body.public-mode .project-house-selection-close svg {
  width: 18px;
  height: 18px;
}
body.public-mode .project-house-selection .eyebrow {
  margin: 0;
  padding-right: 32px;
}
body.public-mode .project-house-selection-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  overflow: hidden;
  border: 1px solid #e0e7ed;
  border-radius: 6px;
  background: var(--surface-soft, #f1f7ff);
}
body.public-mode .project-house-selection-media img {
  position: absolute;
  inset: 12px;
  display: block;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  max-width: none;
  max-height: none;
  object-fit: contain;
}
body.public-mode .project-house-selection h4,
body.public-mode .project-house-selection-price {
  margin: 0;
  color: #182a35;
}
body.public-mode .project-house-selection-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #e0e7ed;
  border-radius: 6px;
  background: #e0e7ed;
}
body.public-mode .project-house-selection-facts span {
  display: grid;
  gap: 2px;
  padding: 8px;
  background: #fff;
}
body.public-mode .project-house-selection-facts small {
  color: #6b7d89;
  font-size: 10px;
}
body.public-mode .project-house-selection-facts b {
  font-size: 12px;
}
body.public-mode .project-house-selection-price {
  font-size: 18px;
}
body.public-mode .project-house-selection-meta {
  margin: -4px 0 0;
  color: #607382;
  font-size: 13px;
}
body.public-mode .project-house-selection-link {
  display: flex;
  justify-content: center;
  text-decoration: none;
}
body.public-mode .project-scheme-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 24px;
  border: 1px dashed #cbd8e4;
  border-radius: 8px;
  color: #607382;
  text-align: center;
}
body.public-mode .project-scheme-empty b {
  color: #263b49;
  font-size: 18px;
}
body.public-mode .project-scheme-empty p {
  margin: 4px 0 0;
}
body.public-mode .project-apartment-more {
  display: flex;
  width: max-content;
  margin: 20px auto 0;
  text-decoration: none;
}

@media (max-width: 800px) {
  body.public-mode .project-apartment-filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  body.public-mode .project-apartment-filter-group {
    grid-column: 1;
    grid-row: 1;
  }
  body.public-mode .project-room-segments {
    width: 100%;
  }
  body.public-mode .project-room-segments button {
    flex: 1 1 0;
    min-width: 0;
  }
  body.public-mode .project-apartment-filter-trigger {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
    justify-self: stretch;
  }
  body.public-mode .project-apartment-filter-trigger span {
    display: none;
  }
  body.public-mode .project-house-layout.has-selection {
    grid-template-columns: minmax(0, 1fr);
  }
  body.public-mode .project-house-selection {
    position: static;
    grid-template-areas:
      "eyebrow eyebrow"
      "media title"
      "media price"
      "media facts"
      "link link";
    grid-template-columns: 120px minmax(0, 1fr);
    grid-row: 1;
    align-items: start;
  }
  body.public-mode .project-house-selection .eyebrow {
    grid-area: eyebrow;
  }
  body.public-mode .project-house-selection-media {
    grid-area: media;
    aspect-ratio: 1;
  }
  body.public-mode .project-house-selection h4 {
    grid-area: title;
  }
  body.public-mode .project-house-selection-facts {
    grid-area: facts;
  }
  body.public-mode .project-house-selection-price {
    grid-area: price;
  }
  body.public-mode .project-house-selection-link {
    grid-area: link;
  }
}
@media (min-width: 521px) and (max-width: 800px) {
  body.public-mode .project-apartment-filter-trigger span {
    display: inline;
  }
}
@media (min-width: 680px) and (max-width: 800px) {
  .public-mode .design-project-detail-page .project-about-selected .project-about-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}
@media (max-width: 560px) {
  body.public-mode .project-apartment-filters {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px 8px;
    margin: 12px 0;
    padding: 12px;
  }
  body.public-mode .project-apartment-filters > .project-apartment-filter-group {
    grid-column: 1 / 12;
    grid-row: 1;
  }
  body.public-mode .project-apartment-filters > .project-apartment-filter-trigger {
    grid-column: 12 / 13;
    grid-row: 1;
  }
  body.public-mode .project-apartment-filters > label:has(#designProjectBuildingFilter) {
    grid-column: 1 / 9;
    grid-row: 2;
  }
  body.public-mode .project-apartment-filters > label:has(#designProjectFloorFilter) {
    grid-column: 9 / 13;
    grid-row: 2;
  }
  body.public-mode .project-apartment-filters:not(:has(#designProjectBuildingFilter)) > label:has(#designProjectFloorFilter) {
    grid-column: 1 / 13;
  }
  body.public-mode .project-apartment-filters.financing-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  body.public-mode .project-apartment-filters.financing-controls > label {
    grid-column: auto;
    grid-row: auto;
  }
  body.public-mode .project-room-segments {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  body.public-mode .project-room-segments button {
    min-width: 0;
    padding: 8px 5px;
  }
  body.public-mode .project-house-selection-facts span {
    padding: 7px 5px;
  }
  body.public-mode .project-house-selection-facts b {
    overflow: hidden;
    font-size: 11px;
    text-overflow: clip;
    white-space: nowrap;
  }
  body.public-mode .project-building-segments {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(var(--building-segment-count), minmax(0, 1fr));
  }
  body.public-mode .project-building-segments button {
    min-width: 0;
    padding: 8px 5px;
  }
  body.public-mode .project-apartment-viewbar {
    margin-bottom: 12px;
  }
  body.public-mode .project-apartment-view-switch {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
  body.public-mode .project-apartment-view-switch button {
    min-width: 0;
  }
  body.public-mode .project-house-scheme {
    overflow: hidden;
    border: 0;
    background: transparent;
  }
  body.public-mode .project-house-floor {
    display: grid;
    margin-bottom: 0;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  body.public-mode .project-house-floor-label {
    display: grid;
    justify-content: center;
    gap: 0;
    min-height: 32px;
    padding: 2px;
    border: 0;
  }
  body.public-mode .project-house-floor-label b {
    font-size: 12px;
  }
  body.public-mode .project-house-units {
    display: grid;
    row-gap: 2px;
    column-gap: 4px;
    overflow: visible;
    padding: 2px;
  }
  body.public-mode .project-house-unit {
    width: 100%;
  }
}
body.public-mode .design-developers-page .developer-logo-photo {
  background-color: #fff !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}
body.public-mode .design-developers-page .developer-logo-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #0754c9;
  font: 800 28px/1 Inter, sans-serif;
}
body.public-mode .catalog-single-view[data-view="list"] :is(.design-apartment-grid,.design-commercial-grid) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
body.public-mode .catalog-single-view[data-view="list"] .apartment-preview {
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 126px;
}
body.public-mode .catalog-single-view[data-view="list"] .commercial-card {
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 132px;
}
@media (max-width: 700px) {
  body.public-mode .design-project-catalog-list .catalog-list-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  body.public-mode .design-project-catalog-list .catalog-list-card .photo {
    width: 112px;
    min-height: 96px;
  }
  body.public-mode .design-project-catalog-list .project-card-facts {
    grid-column: 1 / -1;
    min-width: 0;
    border-top: 0;
    border-left: 0;
    padding: 10px 0 0;
  }
}
@media (max-width: 767px) {
  body.public-mode .design-catalog-page .design-participant-list {
    grid-template-columns: 1fr;
  }
}

body.public-mode .public-property-thumbs.apartment-media-switch {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: #f1f4f8;
  overflow: hidden;
}
body.public-mode .public-property-thumbs.apartment-media-switch button {
  position: static;
  width: auto;
  height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid #cbd8e4;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.public-mode .public-property-thumbs.apartment-media-switch button:last-child {
  border-right: 0;
}
body.public-mode .public-property-thumbs.apartment-media-switch button.active {
  color: #0754c9;
  background: #fff;
  box-shadow: none;
}
body.public-mode .public-property-thumbs.apartment-media-switch span {
  position: static;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
  text-overflow: clip;
}

body.public-mode .design-filter-choice,
body.public-mode .design-filter-range-pair {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: #334b5b;
  font: 700 13px/1.4 Inter, sans-serif;
}
body.public-mode .design-filter-segments {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(62px, 1fr));
  overflow: hidden;
  border: 1px solid #cbd8e4;
  border-radius: 6px;
  background: #fff;
}
body.public-mode .design-filter-segments button {
  min-height: 42px;
  padding: 7px 10px;
  border: 0;
  border-right: 1px solid #cbd8e4;
  background: #fff;
  color: #334b5b;
  font: 600 14px/1.25 Inter, sans-serif;
  cursor: pointer;
}
body.public-mode .design-filter-segments button:last-child {
  border-right: 0;
}
body.public-mode .design-filter-segments button.active {
  color: #fff;
  background: #0865f5;
}
body.public-mode .design-filter-range-values {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #172633;
  font-weight: 600;
}
body.public-mode .design-filter-range-values i {
  color: #7a8b99;
  font-style: normal;
}
body.public-mode .design-filter-dialog-fields .design-filter-range-pair input[type="range"] {
  position: absolute;
  inset: 0;
  z-index: 2;
  min-height: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
  accent-color: #0865f5;
  background: transparent;
  outline: 0;
}
body.public-mode .design-filter-range-track {
  position: relative;
  height: 24px;
}
body.public-mode .design-filter-range-track::before {
  position: absolute;
  top: 11px;
  right: 2px;
  left: 2px;
  height: 3px;
  border-radius: 3px;
  background: #cbd8e4;
  content: "";
}
body.public-mode .design-filter-range-track input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
}
body.public-mode .design-filter-range-track input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0865f5;
  box-shadow: 0 0 0 1px #0865f5;
  pointer-events: auto;
  -webkit-appearance: none;
  cursor: grab;
}
body.public-mode .design-filter-range-track input[type="range"]::-moz-range-track {
  height: 3px;
  background: transparent;
}
body.public-mode .design-filter-range-track input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #0865f5;
  box-shadow: 0 0 0 1px #0865f5;
  pointer-events: auto;
  cursor: grab;
}
body.public-mode .project-apartment-filters .project-inline-area-filter {
  display: none;
}
@media (min-width: 960px) {
  body.public-mode .project-apartment-filters:has(.project-inline-area-filter) {
    grid-template-columns: minmax(210px, 1fr) minmax(170px, 230px) minmax(130px, 170px) minmax(130px, 170px) auto;
  }
  body.public-mode .project-apartment-filters .project-inline-area-filter {
    display: grid;
  }
}

body.public-mode .design-catalog-page .catalog-map-button {
  width: auto;
  min-width: 108px;
  padding: 0 12px;
  gap: 7px;
  text-decoration: none;
}

@media (min-width: 701px) {
  body.public-mode .design-catalog-page .commercial-filters {
    grid-template-columns: minmax(160px, 220px) minmax(160px, 220px) minmax(240px, 1fr) auto;
  }
}

@media (min-width: 701px) {
  body.public-mode .design-catalog-page .catalog-head {
    margin: 24px 0 0;
    padding: 0 0 16px;
  }
  body.public-mode .design-catalog-page > .catalog-filter-row {
    margin-top: 16px;
  }
}
body.public-mode .catalog-single-view[data-view="list"] .commercial-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 132px;
}
body.public-mode .catalog-single-view[data-view="list"] .commercial-card .photo {
  width: 190px;
  min-height: 132px;
}
body.public-mode .catalog-single-view[data-view="list"] .developers-grid,
body.public-mode .catalog-single-view[data-view="list"] .design-participant-list {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 700px) {
  body.public-mode .design-catalog-page .catalog-head {
    gap: 10px;
    width: 100%;
    padding-right: 0;
  }
  body.public-mode .design-catalog-page .catalog-head-controls {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(116px, 1fr);
    gap: 8px;
    width: 100%;
    align-self: stretch;
  }
  body.public-mode .design-catalog-page .catalog-head-controls > .filter-select {
    width: 100%;
    min-width: 0;
  }
  body.public-mode .design-catalog-page .catalog-head .view-tabs {
    display: flex;
    width: 100%;
  }
  body.public-mode .design-catalog-page .catalog-head .view-tabs [data-catalog-view-mode] {
    display: none;
  }
  body.public-mode .design-catalog-page .catalog-map-button {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
  }
  body.public-mode .design-catalog-page .catalog-filter-row > *:not(.search-field) {
    flex: 0 0 180px !important;
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    box-sizing: border-box;
  }
}
