@font-face {
  font-family: "CoFoSans";
  src: url("assets/fonts/CoFoSans-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "CoFoSans";
  src: url("assets/fonts/CoFo_Sans-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "CoFoSans";
  src: url("assets/fonts/CoFo_Sans-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "CoFoSans";
  src: url("assets/fonts/CoFo_Sans-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  /* Soft Tech design tokens. Legacy aliases keep existing components stable. */
  --color-primary: #6c5ce7;
  --color-primary-hover: #5146c9;
  --color-primary-light: #f1efff;
  --color-accent: #34d399;
  --bg-primary: #f8f9fc;
  --surface-primary: #fff;
  --surface-secondary: #f1f3f8;
  --text-primary: #171923;
  --text-secondary: #62677a;
  --text-muted: #9297a8;
  --border-default: #e5e7eb;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --shadow-sm: 0 2px 8px rgba(23, 25, 35, .04);
  --shadow-md: 0 8px 24px rgba(23, 25, 35, .06);
  --transition-fast: 180ms ease-out;
  --container: 1312px;
  --blue: var(--color-primary);
  --blue-dark: var(--color-primary-hover);
  --blue-hover: #7b6deb;
  --blue-soft: var(--color-primary-light);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-default);
  --soft: var(--surface-secondary);
  --shadow: var(--shadow-md);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #f3f6fb;
  color: var(--text);
  min-width: 320px;
  overflow-x: hidden;
  font-family: "CoFoSans", Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }

button,
a,
input { touch-action: manipulation; }

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(108, 92, 231, .28);
  outline-offset: 2px;
}

button,
input,
select,
textarea { font-family: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1220px, calc(100% - 64px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 8px 24px rgba(20, 32, 54, .08);
  transition: transform .22s ease;
}

.header.hidden { transform: translateY(-100%); }

.header-row {
  height: 96px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 230px;
  line-height: 0;
}

.logo img { display: block; width: 100%; height: auto; }

.region {
  padding: 14px 26px;
  background: #f2f4f8;
  color: #2d3343;
  font-size: 19px;
  font-weight: 500;
}

.header-spacer { flex: 1; }

.favorites-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 500;
}

.header-favorites {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  justify-content: center;
  gap: 0;
  color: #000;
}

.header-favorites:hover {
  color: #000;
  text-decoration: none;
}

.favorites-link:hover,
.footer-list a:hover,
.all-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }

.heart-icon {
  width: 16px;
  height: 16px;
  color: currentColor;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.heart-icon::before { content: none; }

.header-favorites .badge {
  top: -6px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 11px;
}

.badge {
  position: absolute;
  top: -13px;
  right: -18px;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #ff5261;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.badge.show { display: inline-flex; }

.phone {
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.btn {
  height: 52px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 0 28px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: #fff;
}

.main { background: #fff; }

.hero {
  padding: 32px 0 0;
  background: #fff;
}

.hero-banner {
  position: relative;
  height: 408px;
  overflow: hidden;
  background: var(--blue);
}

.hero-region {
  position: absolute;
  z-index: 2;
  top: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
}

.hero-region-icon {
  display: block;
  width: 14px;
  height: 14px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 42%, 56% 57%, 41% 100%);
  transform: rotate(-7deg);
  flex: 0 0 14px;
}

.hero-banner img {
  width: 100%;
  height: calc(100% + 52px);
  object-fit: cover;
  object-position: center center;
  transform: translateY(-38px);
}

.search-card {
  position: relative;
  z-index: 3;
  margin-top: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(17, 30, 54, .11);
}

.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.tab {
  border: 0;
  background: #fff;
  padding: 18px 28px;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

.tab.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.tabs .tab-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
  stroke: none;
}

.filter-form {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .7fr .8fr 160px 160px;
  gap: 14px;
  padding: 18px;
  align-items: stretch;
}

.filter-form.compact {
  grid-template-columns: 1fr 1fr 1fr 160px 160px;
}

.field,
.select-btn,
.filter-trigger {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0 16px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.field::placeholder { color: #aeb4c2; }

.address-autocomplete {
  position: relative;
  min-width: 0;
  z-index: 1;
}

.address-autocomplete.address-is-open { z-index: 500; }

.address-suggestions {
  position: absolute;
  z-index: 500;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.address-suggestions[hidden] { display: none; }

.address-suggestion {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.address-suggestion:last-child { border-bottom: 0; }
.address-suggestion:hover,
.address-suggestion.active { background: var(--blue-soft); color: var(--blue); }

.field:focus,
.select-btn:focus-visible,
.filter-trigger:focus-visible,
.range-input:focus {
  border-color: var(--blue);
  outline: 0;
  box-shadow: none;
}

.dropdown { position: relative; min-width: 0; }

.filter-trigger,
.select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.filter-trigger span:first-child,
.select-btn span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chevron {
  width: 11px;
  height: 18.4px;
  margin-left: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 11px;
  color: #000;
  transform-origin: center;
  transition: transform .3s cubic-bezier(.645,.045,.355,1);
}

.chevron .select-chevron-icon { width: 11px; height: 11px; display: block; fill: currentColor; }
.dropdown.open .chevron:not(.is-clear),
.select-btn[aria-expanded="true"] .chevron:not(.is-clear) { transform: rotate(180deg); }

.dropdown-menu,
.floating-menu {
  position: absolute;
  z-index: 100;
  display: block;
  max-width: calc(100vw - 24px);
  background: #fff;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transform-origin: top center;
  transition: opacity .2s cubic-bezier(.645,.045,.355,1), visibility .2s cubic-bezier(.645,.045,.355,1), transform .2s cubic-bezier(.645,.045,.355,1);
}

#filter-dropdown { position: fixed; }

.dropdown.open .dropdown-menu,
.floating-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-option {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 16px 18px;
  text-align: left;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.dropdown-option:hover,
.dropdown-option.active {
  background: var(--blue-soft);
  color: var(--blue);
}

.rooms-menu {
  width: min(340px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 4px;
}

.rooms-title {
  margin: 0 0 16px;
  color: #05070d;
  font-size: 17px;
  font-weight: 800;
}

.rooms-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 8px;
}

.room-option {
  height: 42px;
  border: 1px solid #d5d9e2;
  border-radius: 2px;
  background: #f6f7fb;
  color: #242a38;
  font: inherit;
  font-size: 17px;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
  cursor: pointer;
}

.room-option:nth-child(5),
.room-option:nth-child(6) { grid-column: span 2; }

.room-option:hover,
.room-option.active {
  background: #050505;
  border-color: #050505;
  color: #fff;
}

.range-menu {
  width: min(380px, calc(100vw - 24px));
  padding: 18px;
  border-radius: 4px;
}

.range-subtitle {
  margin-bottom: 14px;
  color: #717789;
  font-size: 15px;
}

.range-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.range-input {
  width: 100%;
  height: 50px;
  border: 1px solid #dfe3ec;
  border-radius: 3px;
  padding: 0 16px;
  color: #2d3343;
  font: inherit;
  font-size: 20px;
}

.range-input:focus {
  border-color: var(--blue);
}

.dual-range {
  position: relative;
  height: 24px;
}

.dual-range-track,
.dual-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 10px;
  height: 4px;
  border-radius: 999px;
}

.dual-range-track { background: #dfe3ec; }
.dual-range-fill { background: var(--blue); }

.dual-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 24px;
  margin: 0;
  appearance: none;
  background: transparent;
  pointer-events: none;
}

.dual-range input[type="range"]::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  appearance: none;
  pointer-events: auto;
  cursor: pointer;
}

.dual-range input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  pointer-events: auto;
  cursor: pointer;
}

.all-link {
  display: inline-block;
  margin: 0 0 22px 18px;
  color: var(--blue);
  font-size: 17px;
  font-weight: 500;
}

.objects {
  padding: 60px 0 80px;
  background: #fff;
}

.objects h2,
.catalog-title {
  margin: 0 0 14px;
  color: #171d2d;
  font-size: 32px;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.objects p {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}

.object-card,
.listing {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.object-card {
  padding: 18px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card-favorite { position: absolute; top: 18px; right: 18px; }

.object-card:hover,
.card-grid .listing:hover { transform: translateY(-3px); border-color: #b9d6ff; box-shadow: 0 14px 32px rgba(17, 30, 54, .09); }

.photo,
.main-photo,
.thumb {
  background: linear-gradient(135deg, #dbe8ff, #f2e2d6 55%, #e6edff);
}

.photo {
  height: 190px;
  border-radius: 4px;
}

.object-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  font-weight: 500;
}

.price {
  margin: 12px 0;
  font-size: 26px;
  font-weight: 500;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 8px;
  background: #eef5f3;
  color: #596174;
  font-weight: 500;
}

.object-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.objects-cta { margin-top: 32px; text-align: center; }

.notice {
  margin-top: 34px;
  padding: 24px;
  border: 1px dashed #b9d6ff;
  background: #f5f8f7;
  color: #5f687a;
  font-size: 18px;
}

.footer {
  padding: 56px 0 34px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr;
  gap: 64px;
}

.footer-region {
  display: inline-flex;
  margin: 28px 0 24px;
  padding: 14px 24px;
  background: #f0f2f7;
  font-weight: 500;
}

.footer-logo { width: 242px; }

.footer-note { color: #9aa2b3; }
.footer-call { width: 100%; }

.footer-title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 500;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li { margin-bottom: 16px; }
.footer-list a { color: #717789; font-size: 18px; line-height: 1.25; }

.legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #9aa2b3;
  line-height: 1.45;
}

.filter-panel {
  position: sticky;
  top: 134px;
  z-index: 40;
  background: #fff;
  box-shadow: 0 8px 22px rgba(20, 32, 54, .06);
  transition: transform .22s ease;
}

.filter-panel.hidden {
  transform: translateY(calc(-100% - 96px));
}

.filter-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 168px 112px;
  gap: 16px;
  align-items: center;
  padding: 28px 0 16px;
}

.filter-title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
}

.filter-title .badge {
  position: absolute;
  top: -14px;
  right: auto;
  left: 32px;
}

.filter-icon {
  position: relative;
  width: 18px;
  height: 16px;
  background: linear-gradient(var(--blue), var(--blue)) 0 2px / 15px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 7px / 18px 2px no-repeat,
    linear-gradient(var(--blue), var(--blue)) 0 12px / 12px 2px no-repeat;
}

.filter-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.filter-controls {
  display: grid;
  grid-template-columns: 1.35fr .75fr .8fr .85fr;
  gap: 10px;
  min-width: 0;
}

.filter-action {
  min-height: 52px;
  border: 0;
  background: transparent;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
  cursor: pointer;
}

.filter-action:hover { color: var(--blue-dark); }

.filter-row > .favorites-link {
  justify-content: center;
  text-align: center;
  white-space: normal;
  line-height: 1.15;
}

.filter-map-link {
  min-height: 48px;
  border: 1px solid var(--blue);
  border-radius: 2px;
  padding: 0 12px;
  text-decoration: none;
}

.save-icon,
.map-icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.save-icon::before {
  content: "♡";
  position: absolute;
  inset: -6px 0 0;
  color: var(--blue);
  font-family: Arial, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.map-icon {
  width: 14px;
  height: 18px;
  border: 2px solid var(--blue);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}

.map-icon::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

.select-btn.has-value .chevron {
  width: 11px;
  height: 11px;
  border-radius: 0;
  background: transparent;
  color: rgba(0, 0, 0, .25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 0 26px 130px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #fafaff;
  border-radius: 3px;
  background: #fafaff;
  color: rgba(0, 0, 0, .85);
  font-size: 16px;
  cursor: pointer;
  transition: border-color .3s, color .3s, opacity .2s;
}

.chip:hover { border-color: #8b7ff0; background: #fafaff; color: #8b7ff0; }

.chip button {
  width: 16px;
  height: 16px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: .4;
  cursor: pointer;
  transition: opacity .2s ease;
}

.chip button:hover { opacity: .4; }
.chip-close-icon { width: 12px; height: 12px; fill: currentColor; }

.catalog {
  padding: 40px 0 80px;
}

.breadcrumbs {
  margin-bottom: 28px;
  color: #aeb5c4;
  font-weight: 700;
}

.catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.count { color: #c3c8d4; }

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sort-wrap { position: relative; }
.sort-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 17px;
  font-weight: 400;
  cursor: pointer;
}

.sort-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  z-index: 120;
  display: block;
  width: 196px;
  padding: 4px 0;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .22s cubic-bezier(.22,.61,.36,1), visibility 0s linear .22s;
}

.sort-wrap.open .sort-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}

.sort-option {
  width: 100%;
  border: 0;
  background: #fff;
  min-height: 34px;
  padding: 6px 12px;
  color: #343440;
  line-height: 22px;
  white-space: nowrap;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sort-option:hover,
.sort-option:focus-visible,
.sort-option.active {
  background: #f0f4ff;
  color: var(--blue);
  outline: none;
}

.view-switch {
  display: flex;
  border: 1px solid var(--line);
}

.view-btn {
  border: 0;
  background: #fff;
  padding: 13px 18px;
  color: #4f5668;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
}

.view-btn.active {
  background: #f0f4ff;
  color: var(--blue);
}

.list {
  display: grid;
  gap: 22px;
}

.listing {
  display: grid;
  grid-template-columns: 410px minmax(0, 1fr);
  gap: 28px;
  padding: 20px;
}

.gallery {
  display: grid;
  gap: 8px;
}

.main-photo {
  height: 250px;
  border-radius: 4px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.thumb { height: 88px; border-radius: 3px; }

.listing-title {
  margin: 0;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -.01em;
  min-width: 0;
}

.listing-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 12px;
}

.offer-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.offer-line span {
  padding: 7px 10px;
  border-radius: 5px;
  background: #f0f4ff;
  color: var(--blue);
  font-weight: 500;
}

.address,
.metro,
.description {
  color: #697184;
  font-size: 16px;
  line-height: 1.45;
}

.metro {
  display: flex;
  gap: 18px;
  margin: 12px 0;
}

.description {
  margin-top: 22px;
  color: #222838;
}

.listing-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.listing-actions .btn {
  min-width: 160px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.favorite {
  flex: 0 0 auto;
  position: relative;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.favorite::after {
  content: "♡";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #171d2d;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

.favorite.active {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

.favorite.active::before {
  content: none;
}

.favorite.active::after {
  content: "♥";
  color: var(--blue);
}

.favorite:hover { border-color: var(--blue); transform: scale(1.04); }

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid .listing {
  display: block;
  padding: 18px;
}

.card-grid .gallery { margin-bottom: 18px; }
.card-grid .main-photo { height: 210px; }
.card-grid .listing-title { font-size: 24px; line-height: 1.17; font-weight: 500; }
.card-grid .price { margin: 10px 0; font-size: 24px; font-weight: 500; }
.card-grid .price small { font-size: 15px; }
.card-grid .offer-line { margin: 10px 0 16px; }
.card-grid .offer-line span { padding: 5px 8px; font-size: 15px; }
.card-grid .address,
.card-grid .metro,
.card-grid .description { font-size: 16px; }
.card-grid .description { margin-top: 18px; }
.card-grid .favorite {
  position: static;
}

.card-grid .listing-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.load-more {
  width: 100%;
  height: 48px;
  margin: 28px 0 20px;
  border: 1px solid #cbd2df;
  background: transparent;
  color: #303748;
  font: inherit;
  font-size: 18px;
  cursor: pointer;
}

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a0a7b6;
}

.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
}

.page-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.page-btn.active {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn.disabled {
  opacity: .45;
  cursor: default;
}

.empty-note {
  width: 100%;
  padding: 22px 24px;
  border: 1px dashed #b9d6ff;
  background: #f5f8f7;
  color: #5f687a;
  font-size: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .45);
  overscroll-behavior: contain;
}

.modal.open { display: flex; }

.modal-card {
  width: min(560px, calc(100% - 32px));
  background: #fff;
  border-radius: 5px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.modal-title { font-size: 22px; font-weight: 800; }
.modal-close { border: 0; background: transparent; font-size: 32px; cursor: pointer; color: #8b92a0; }

.modal-body { padding: 26px; }
.modal-body label { display: block; margin-bottom: 16px; color: #717789; }
.modal-body input {
  width: 100%;
  height: 48px;
  margin-top: 8px;
  border: 1px solid var(--line);
  padding: 0 14px;
  font: inherit;
}

.modal-body input:focus { border-color: var(--blue); }
.modal-submit { width: 100%; margin: 10px 0 14px; }

.map-toggle { display:flex; align-items:center; gap:10px; font-weight:700; cursor:pointer; }
.map-toggle input { position:absolute; opacity:0; pointer-events:none; }
.map-toggle span { width:48px; height:28px; padding:3px; border-radius:999px; background:#c4c9d3; transition:background-color .18s ease; }
.map-toggle span::after { content:""; display:block; width:22px; height:22px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.18); transition:transform .18s ease; }
.map-toggle input:checked + span { background:var(--blue); }
.map-toggle input:checked + span::after { transform:translateX(20px); }
.map-toggle input:focus-visible + span { outline:3px solid rgba(108, 92, 231,.32); outline-offset:2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .lazy-photo::after { animation: none !important; }
  .motion-reveal { opacity: 1; transform: none; }
}
.consent { color: #9aa2b3; font-size: 13px; text-align: center; line-height: 1.4; }
.consent a { color: var(--text); text-decoration: underline; }

@media (max-width: 900px) {
  .wrap { width: min(100% - 28px, 1220px); }
  .header-row { height: auto; padding: 18px 0; flex-wrap: wrap; }
  .filter-form,
  .filter-form.compact,
  .filter-controls,
  .filter-row,
  .footer-grid,
  .cards,
  .card-grid,
  .listing {
    grid-template-columns: 1fr;
  }
  .filter-panel { top: 0; position: relative; }
  .chips { padding-left: 0; }
  .hero-banner { height: 300px; }
  .filter-row { gap: 12px; }
  .filter-title .badge { position: static; margin-left: 6px; }
  .filter-map-link { width: 100%; }
  .catalog-head, .catalog-actions, .pagination-row { align-items: stretch; flex-direction: column; }
  .view-switch { width: 100%; }
  .view-btn { flex: 1; }
  .listing-actions, .object-actions { flex-direction: column; }
  .listing-actions .btn { width: 100%; }
}

@media (max-width: 560px) {
  .wrap { width: min(100% - 24px, 1220px); }
  .header-row { gap: 12px; }
  .logo { width: 185px; }
  .hero-region { top: 16px; left: 16px; min-height: 40px; padding: 0 18px; font-size: 16px; }
  .phone { font-size: 17px; }
  .header .btn { width: 100%; }
  .hero { padding-top: 18px; }
  .hero-banner { height: 210px; }
  .tabs { overflow-x: auto; }
  .tab { padding: 14px 18px; font-size: 16px; white-space: nowrap; }
  .filter-form { padding: 14px; gap: 10px; }
  .objects h2, .catalog-title { font-size: 31px; }
  .objects p { font-size: 17px; }
  .catalog { padding-top: 28px; }
  .listing { padding: 14px; gap: 18px; }
  .main-photo { height: 190px; }
  .listing-title { font-size: 24px; }
  .price { font-size: 25px; }
  .footer { padding-top: 40px; }
}

/* Homepage foundation */
.header-main-row { height: 82px; }

.region-switch {
  border: 0;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.header-phone { display: grid; gap: 2px; }
.header-phone span { color: var(--muted); font-size: 12px; }
.site-nav { border-top: 1px solid var(--line); }

.nav-row {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-row::-webkit-scrollbar { display: none; }

.nav-row a {
  position: relative;
  flex: 0 0 auto;
  font-size: 15px;
}

.nav-row a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -16px;
  height: 2px;
  background: var(--blue);
  transition: right .18s ease;
}

.nav-row a:hover { color: var(--blue); }
.nav-row a:hover::after { right: 0; }

.menu-toggle {
  display: none;
  min-width: 88px;
  height: 44px;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.menu-toggle-label {
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}

.menu-toggle-icon {
  display: grid;
  width: 24px;
  height: 18px;
  align-content: space-between;
}

.menu-toggle-icon i {
  display: block;
  width: 24px;
  height: 2px;
  background: #667085;
  transform-origin: center;
  transition: transform .22s ease, opacity .16s ease;
}

.hero { padding-top: 24px; }

.hero-region {
  border: 0;
  border-radius: 3px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-family: inherit;
  cursor: pointer;
}

.search-card { margin-top: 16px; }

.search-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 24px 18px;
}

.search-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.search-heading p { margin: 0; color: var(--muted); font-size: 15px; }

a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.directions { padding: 76px 0 28px; background: #fff; }
.section-heading { max-width: 720px; }

.section-heading h2,
.consultation h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading > p,
.consultation p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.direction-card {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.direction-card:hover {
  transform: translateY(-3px);
  border-color: #b9d6ff;
  box-shadow: 0 14px 30px rgba(17, 30, 54, .08);
}

.direction-card-primary { border-color: var(--blue); background: var(--blue); color: #fff; }

.direction-icon {
  width: 88px;
  height: 88px;
  display: block;
  object-fit: contain;
  transform: translateZ(0);
  transform-origin: 36% 70%;
  transition:
    transform .42s cubic-bezier(.2,.8,.2,1),
    filter .42s cubic-bezier(.2,.8,.2,1);
  filter: drop-shadow(0 10px 14px rgba(108, 92, 231, .12));
}

.direction-card:hover .direction-icon {
  transform: translate3d(0, -4px, 0) rotate(-2deg) scale(1.045);
  filter: drop-shadow(0 16px 18px rgba(108, 92, 231, .2));
}

.direction-card-primary .direction-icon {
  filter: drop-shadow(0 12px 18px rgba(31, 95, 214, .24));
}

.direction-card-primary:hover .direction-icon {
  filter: drop-shadow(0 18px 22px rgba(31, 95, 214, .3));
}

.direction-card h3 {
  margin: 24px 0 10px;
  font-size: 24px;
  line-height: 1.05;
  font-weight: 700;
}

.direction-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.4; }
.direction-card-primary p { color: rgba(255,255,255,.78); }

.direction-link { margin-top: auto; padding-top: 24px; color: var(--blue); font-weight: 500; }
.direction-card-primary .direction-link { color: #fff; }

.photo {
  background-color: var(--blue-soft);
  background-image:
    linear-gradient(145deg, rgba(255,255,255,.56), transparent 42%),
    linear-gradient(120deg, #dbe8ff, #f0e8dc 58%, #e6edff);
}
.photo-2 {
  background-image:
    linear-gradient(25deg, rgba(255,255,255,.48), transparent 46%),
    linear-gradient(135deg, #e6edff, #e7ddd0 55%, #dbe8ff);
}
.photo-3 {
  background-image:
    radial-gradient(circle at 72% 28%, rgba(255,255,255,.58), transparent 24%),
    linear-gradient(115deg, #dbe8ff, #eee2d5 62%, #e6edff);
}

.services { padding: 88px 0; background: var(--blue-soft); }

.services-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 88px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}

.services-heading .btn { margin-top: 28px; }
.service-list { border-top: 1px solid rgba(0,0,0,.14); }

.service-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,.14);
}

.service-item > span { color: var(--blue); font-weight: 700; }
.service-item h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.service-item p { margin: 0; color: #596174; line-height: 1.45; }

/* Motion system matched to the reference catalog */
@keyframes listing-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes catalog-page-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes home-filter-refresh {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

body > main { animation: catalog-page-reveal .34s cubic-bezier(.645,.045,.355,1) both; }
.listing-enter { animation: listing-reveal .3s cubic-bezier(.645,.045,.355,1) both; animation-delay: calc(var(--enter-order, 0) * 35ms); }

.main-photo,
.thumb,
.photo { position: relative; overflow: hidden; }

.lazy-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg, #edf1f7 20%, #f8f9fc 42%, #edf1f7 64%);
  background-size: 220% 100%;
  opacity: 1;
  visibility: visible;
  animation: photo-skeleton 1.15s linear infinite;
  transition: opacity .3s cubic-bezier(.645,.045,.355,1), visibility .3s cubic-bezier(.645,.045,.355,1);
}

.lazy-photo.is-loaded::after { opacity: 0; visibility: hidden; }

.lazy-image { opacity: 0; visibility: hidden; transition: opacity .3s cubic-bezier(.645,.045,.355,1), visibility .3s cubic-bezier(.645,.045,.355,1); }
.lazy-image.is-loaded { opacity: 1; visibility: visible; }

@keyframes photo-skeleton {
  from { background-position: 180% 0; }
  to { background-position: -40% 0; }
}

.motion-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .42s cubic-bezier(.645,.045,.355,1), transform .42s cubic-bezier(.645,.045,.355,1);
}

.motion-reveal.motion-visible { opacity: 1; transform: translateY(0); }

.motion-enabled .hero-banner img {
  opacity: 0;
  transition: opacity .45s cubic-bezier(.645,.045,.355,1);
}

.motion-enabled.motion-ready .hero-banner img { opacity: 1; }

.motion-enabled .search-card {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .32s cubic-bezier(.645,.045,.355,1), transform .32s cubic-bezier(.645,.045,.355,1);
}

.motion-enabled.motion-ready .search-card {
  opacity: 1;
  transform: translateY(0);
}

.filter-fields.filters-refresh > * {
  animation: home-filter-refresh .24s cubic-bezier(.645,.045,.355,1) both;
}

.filter-fields.filters-refresh > *:nth-child(2) { animation-delay: 25ms; }
.filter-fields.filters-refresh > *:nth-child(3) { animation-delay: 50ms; }
.filter-fields.filters-refresh > *:nth-child(4) { animation-delay: 75ms; }

.filter-trigger,
.select-btn,
.view-btn,
.sort-button,
.filter-action,
.load-more,
.direction-card,
.direction-link { transition-duration: .3s; transition-timing-function: cubic-bezier(.645,.045,.355,1); }

.filter-trigger:hover,
.select-btn:hover { border-color: #97c8fc; color: var(--blue); }

.tab:hover:not(.active) { background: #f0f4ff; color: var(--blue); }

.consultation { padding: 76px 0; background: var(--blue); color: #fff; }

.consultation-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 64px;
}

.consultation-inner > div { max-width: 760px; }
.consultation .section-kicker, .consultation p { color: rgba(255,255,255,.78); }
.consultation-btn { flex: 0 0 auto; border-color: #fff; background: #fff; color: var(--blue); }
.consultation-btn:hover { border-color: #050505; background: #050505; color: #fff; }

@media (max-width: 900px) {
  .direction-grid { grid-template-columns: repeat(2, 1fr); }
  .services-layout { grid-template-columns: 1fr; gap: 48px; }
  .consultation-inner { align-items: flex-start; flex-direction: column; gap: 28px; }
}

@media (max-width: 560px) {
  .header-main-row { height: 68px; padding: 0; flex-wrap: nowrap; gap: 10px; }
  .header-main-row .logo { width: 164px; }
  .region-switch, .header-spacer, .header .favorites-link, .header-phone, .header-main-row > .btn { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .site-nav { display: none; }
  .menu-open .site-nav { display: block; }
  .nav-row { min-height: 0; display: grid; gap: 0; padding: 8px 12px 18px; }
  .nav-row a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-row a::after { display: none; }
  .menu-open .menu-toggle-icon i:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle-icon i:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-icon i:last-child { transform: translateY(-8px) rotate(-45deg); }
  .hero-banner img { height: 100%; transform: none; object-position: center; }
  .search-heading { display: block; padding: 20px 16px 14px; }
  .search-heading h2 { font-size: 24px; }
  .search-heading p { margin-top: 10px; line-height: 1.4; }
  .directions { padding-top: 56px; }
  .section-heading h2, .consultation h2 { font-size: 34px; }
  .direction-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 240px; }
  .services { padding: 64px 0; }
  .consultation { padding: 56px 0; }
  .consultation-btn { width: 100%; }
}

@media (max-width: 1050px) {
  .header-main-row { height: 72px; padding: 0; flex-wrap: nowrap; gap: 12px; }
  .header-main-row .logo { width: 180px; }
  .header .region-switch { display: none; }
  .header .header-spacer { display: none; }
  .header .favorites-link { display: none; }
  .header .header-phone { display: none; }
  .header .header-main-row > .btn { display: none; }
  .menu-toggle { display: flex; margin-left: auto; }
  .header .site-nav { display: none; }
  .header.menu-open .site-nav { display: block; }
  .nav-row { min-height: 0; display: grid; gap: 0; padding: 8px 0 18px; }
  .nav-row a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav-row a::after { display: none; }
  .menu-open .menu-toggle-icon i:first-child { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-toggle-icon i:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle-icon i:last-child { transform: translateY(-8px) rotate(-45deg); }
}

@media (max-width: 560px) {
  .header-main-row { height: 68px; }
  .header-main-row .logo { width: 164px; }
  .hero-banner { height: auto; aspect-ratio: 2.5 / 1; }
  .hero-banner img { width: 100%; height: 100%; object-fit: contain; transform: none; }
  .hero-region { display: none; }
}
/* Lead form delivery states and anti-spam field. */
.lead-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.modal-form-error { margin: 12px 0 0; color: #c53939; font-size: 14px; line-height: 20px; }
.modal-submit:disabled { cursor: wait; opacity: .68; }
