/* Shared visual layer. Business logic remains in app.js. */
:root {
  --blue: var(--color-primary);
  --blue-dark: var(--color-primary-hover);
  --blue-hover: #8b7ff0;
  --blue-soft: #e6edff;
  --text: #111827;
  --muted: #6d7485;
  --line: #e2e5ec;
  --soft: #f4f5f9;
  --shadow: 0 4px 8px -2px rgba(148,148,164,.24), 0 1px 4px -1px rgba(148,148,164,.08);
}

body { background: #f4f5f9; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 400; line-height: 1.15; }
.ui-icon { display: block; width: 16px; height: 16px; flex: 0 0 auto; fill: currentColor; color: inherit; }
.wrap { width: min(1312px, calc(100% - 64px)); }

/* Header */
.header { box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.645,.045,.355,1), box-shadow .3s ease; }
.header-main-row { height: 56px; gap: 24px; }
.header-row .logo { width: 206px; height: auto; overflow: visible; }
.header-row .logo img { width: 100%; height: auto; object-fit: contain; transform: translateX(-6.2%); }
.header-region { height: 32px; margin: 0 0 0 -20px; flex: 0 0 auto; }
.header-spacer { flex: 1; }
.header-favorites { width: 24px; height: 24px; flex: 0 0 24px; color: #000; border-radius: 2px; transition: color .3s ease, background-color .3s ease; }
.header-favorites:hover { background: #f4f5f9; }
.heart-icon { width: 16px; height: 16px; stroke: none; fill: currentColor; }
.header-favorites .badge { top: 0; right: -8px; min-width: 20px; height: 16px; padding: 0 6px; border-radius: 10px; background: var(--color-primary); color: #fff; box-shadow: 0 0 0 1px #fff; font-size: 12px; line-height: 20px; font-weight: 400; transform: none; }
.header-phone { display: flex; align-items: center; gap: 8px; margin-left: -4px; padding: 6px 0; }
.header-phone-icon { width: 16px; height: 16px; color: var(--blue); }
.header-phone .phone { display: inline-block; color: #000; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 14px; font-weight: 400; }
.header-phone span { display: none; }
.btn.header-call-button { width: 159px; min-width: 159px; min-height: 32px; height: 32px; margin-left: -8px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 8px; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 14px; font-weight: 400; white-space: nowrap; }
.header-call-button .ui-icon { width: 16px; height: 16px; }
.header-call-button span { display: inline; white-space: nowrap; }
.btn { min-height: 40px; border-radius: 2px; background: var(--blue); border-color: var(--blue); font-family: inherit; font-weight: 400; transition: background-color .3s cubic-bezier(.645,.045,.355,1), border-color .3s cubic-bezier(.645,.045,.355,1), color .3s cubic-bezier(.645,.045,.355,1), box-shadow .3s cubic-bezier(.645,.045,.355,1), transform .3s cubic-bezier(.645,.045,.355,1); }
.btn:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: none; }
.btn-outline { background: #fff; color: var(--blue); }
.btn-outline:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.site-nav { border-top: 0; border-bottom: 1px solid var(--line); }
.nav-row { min-height: 42px; gap: 32px; }
.nav-row a { font-size: 14px; line-height: 18px; color: rgba(0,0,0,.85); }
.nav-row a::after { bottom: -12px; }

/* Hero and homepage search */
.main { background: #fff; }
.hero { padding: 24px 0 0; background: #fff; }
.hero > .wrap { padding-bottom: 36px; background: var(--color-primary); }
.hero-banner { position: relative; overflow: hidden; height: auto; min-height: 0; aspect-ratio: 2.5 / 1; }
.hero-banner { background: var(--color-primary); }
.hero-banner img { width: 100%; height: 100%; min-height: 0; object-fit: contain; transform: translate(-8px, -116px) scale(.96); transform-origin: center center; }
.hero-region { top: 40px; left: 40px; min-height: 36px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 16px; line-height: 20px; font-weight: 400; }
.hero-region { display: none; }
.hero-region .ui-icon { width: 16px; height: 16px; }
.search-card { position: relative; z-index: 4; width: calc(100% - 80px); margin: -142px auto 0; border-radius: 0; box-shadow: none; background: transparent; }
.search-heading { display: none; }
.tabs { width: max-content; max-width: 100%; height: 40px; padding: 4px; display: flex; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; background: #fff; border-radius: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 32px; min-width: auto; padding: 0 15px; gap: 8px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 2px; background: #fff; color: rgba(0,0,0,.85); font: 400 14px/30px "CoFoSans", Helvetica, Arial, sans-serif; white-space: nowrap; transition: color .3s cubic-bezier(.645,.045,.355,1), background-color .3s cubic-bezier(.645,.045,.355,1); }
.tab:hover,
.tab:focus-visible { background: var(--blue-soft); color: var(--blue); outline: none; }
.tab.active { background: var(--blue-soft); color: var(--blue); }
.tabs .tab-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke: none;
}
.filter-form { margin-top: 8px; padding: 12px 16px; display: grid; grid-template-columns: var(--home-filter-columns, 1.45fr .82fr 1.12fr .8fr 167px 167px); gap: 10px; background: #fff; }
.filter-form[data-kind="houses"] { --home-filter-columns: 1.12fr .9fr .9fr 167px 167px; }
.filter-form[data-kind="land"] { --home-filter-columns: 1.2fr .9fr 167px 167px; }
.filter-form[data-kind="commerce"] { --home-filter-columns: 1.25fr 1.05fr .9fr 167px 167px; }
.filter-fields { display: contents; }
.filter-trigger, .field { height: 40px; min-height: 40px; padding: 6px 34px 6px 12px; border-color: var(--line); border-radius: 2px; background: #fff; font: 400 14px/20px "CoFoSans", Helvetica, Arial, sans-serif; }
.filter-trigger { padding-right: 12px; }
.filter-form > .btn { width: 167px; height: 40px; min-height: 40px; gap: 8px; font-size: 16px; line-height: 16px; }
.filter-form > button[type="submit"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.filter-form > button[type="submit"]:hover,
.filter-form > button[type="submit"]:focus-visible { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; outline: none; }
.filter-form .dropdown-menu { border-radius: 2px; box-shadow: var(--shadow); }
.filter-fields > .dropdown:last-child .dropdown-menu { right: 0; left: auto; }
.filter-form .dropdown-menu:not(.rooms-menu):not(.range-menu) { width: max-content; min-width: 100%; max-width: min(340px, calc(100vw - 24px)); max-height: 265px; }
.filter-form .dropdown-option,
.floating-menu .dropdown-option { min-height: 50px; padding: 16px 20px; border-bottom: 1px solid #ececf0; font: 400 14px/17px "CoFoSans", Helvetica, Arial, sans-serif; }
.address-suggestions { top: calc(100% + 4px); border-radius: 2px; box-shadow: var(--shadow); }
.address-suggestion { min-height: 44px; padding: 10px 12px; font-size: 14px; }
.rooms-menu { width: 300px; padding: 20px; border: 0; }
.range-menu { width: 360px; max-width: calc(100vw - 24px); padding: 20px; border: 0; }
.rooms-title { margin-bottom: 20px; font-size: 14px; font-weight: 500; line-height: 16px; }
.rooms-grid { gap: 4px; padding-bottom: 2px; }
.room-option { height: 32px; font-size: 14px; font-weight: 400; line-height: 30px; }
.room-option:hover, .room-option.active { background: #000; border-color: #000; color: #fff; }
.range-subtitle { margin-bottom: 8px; color: #6b6b7a; font-size: 12px; font-weight: 400; line-height: 14px; }
.range-fields { gap: 10px; margin-bottom: 0; }
.range-input { height: 32px; padding: 4px 12px; border-color: #d9d9d9; border-radius: 2px; color: #343440; font: 400 14px/16px "CoFoSans", Helvetica, Arial, sans-serif; }
.dual-range { height: 16px; margin: 4px 0; }
.dual-range-track,
.dual-range-fill { top: 7px; height: 2px; }
.dual-range input[type="range"] { height: 16px; }
.dual-range input[type="range"]::-webkit-slider-thumb { width: 14px; height: 14px; border-width: 2px; }
.dual-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-width: 2px; }

/* Shared editorial sections */
.directions, .objects, .services, .consultation { background: #fff; }
.directions { padding: 24px 0 48px; }
.directions .wrap { width: min(1312px, calc(100% - 64px)); }
.section-heading h2, .consultation h2, .objects h2 { font-weight: 500; letter-spacing: 0; }
.direction-card, .object-card { border-radius: 2px; box-shadow: none; }
.direction-card:hover, .object-card:hover { transform: none; border-color: var(--blue); box-shadow: var(--shadow); }

/* Homepage action strip: compact reference-style cards with project content */
.directions .section-heading { max-width: 760px; }
.directions .section-heading h2 { font-size: 30px; line-height: 36px; font-weight: 500; }
.directions .section-heading > p { margin-top: 6px; font-size: 15px; line-height: 21px; }
.directions .direction-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}
.directions .direction-card,
.directions .direction-card-primary {
  min-height: 194px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: #161b28;
  box-shadow: none;
}
.directions .direction-card:hover,
.directions .direction-card-primary:hover {
  border-color: var(--line);
  background: #f5f7ff;
  box-shadow: none;
}
.directions .direction-icon {
  width: 72px;
  height: 72px;
  display: block;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  overflow: visible;
}
.directions .direction-card h3 {
  margin: 10px 0 4px;
  color: #161b28;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}
.directions .direction-card p,
.directions .direction-card-primary p {
  margin: 0 0 16px;
  color: #000;
  font-size: 14px;
  line-height: 18px;
}
.directions .direction-link,
.directions .direction-card-primary .direction-link {
  min-height: 36px;
  width: fit-content;
  margin-top: auto;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  transition: color .3s cubic-bezier(.645,.045,.355,1), background-color .3s cubic-bezier(.645,.045,.355,1), border-color .3s cubic-bezier(.645,.045,.355,1);
}
.directions .direction-link:hover,
.directions .direction-card:hover .direction-link,
.directions .direction-card:focus-visible .direction-link { background: var(--blue-hover); }
.directions .direction-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (min-width: 1181px) {
  .directions { padding-top: 18px; }
  .directions .direction-card,
  .directions .direction-card-primary {
    position: relative;
    min-height: 132px;
    padding: 14px 88px 14px 16px;
  }
  .directions .direction-icon {
    position: absolute;
    right: 16px;
    bottom: 12px;
    width: 68px;
    height: 68px;
  }
  .directions .direction-card h3 { width: calc(100% + 72px); margin: 0 0 3px; }
  .directions .direction-card p,
  .directions .direction-card-primary p { margin: 0 0 10px; }
  .directions .direction-link,
  .directions .direction-card-primary .direction-link {
    min-height: 32px;
    margin-top: auto;
    padding: 6px 10px;
  }
}
.services { background: #f1f4fb; }
.catalog-preview { padding: 72px 0 80px; background: #f4f5f9; }
.catalog-preview .catalog-head { margin-bottom: 28px; }
.catalog-preview .catalog-title { max-width: none; }
.catalog-preview .objects-cta { margin-top: 24px; }
.catalog-preview .objects-cta .btn { min-width: 230px; }

/* Catalog filter bar */
.filter-panel { position: sticky; top: var(--header-stack-height, 0px); z-index: 45; background: #fff; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.645,.045,.355,1), top .3s cubic-bezier(.645,.045,.355,1); }
.filter-panel.hidden { transform: translateY(calc(-100% - var(--header-stack-height, 0px))); }
.filter-panel.header-collapsed { top: 0; transform: translateY(0); }
.filter-panel .wrap { padding-top: 16px; }
.filter-row { display: grid; grid-template-columns: 78px minmax(0,1fr) 140px 90px; gap: 18px; align-items: center; padding: 0; }
.filter-title { min-height: 48px; padding: 0; flex-direction: column; justify-content: center; gap: 2px; border: 0; background: transparent; color: var(--blue); font: inherit; font-size: 14px; line-height: 16px; cursor: pointer; }
.filter-title > .ui-icon { width: 20px; height: 20px; }
.filter-title .badge { top: -4px; left: 44px; min-width: 18px; height: 18px; padding: 0 4px; font-size: 10px; font-weight: 500; }
.filter-controls { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 10px; }
.filter-controls[data-kind="houses"] { grid-template-columns: 1.2fr 1fr 1fr; }
.filter-controls[data-kind="land"] { grid-template-columns: 1.2fr 1fr; }
.filter-controls[data-kind="commerce"] { grid-template-columns: 1.25fr 1fr 1fr; }
.select-btn { height: 48px; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; font: 400 14px/20px "CoFoSans", Helvetica, Arial, sans-serif; }
.catalog-address-field { width: 100%; height: 48px; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: var(--text); font: 400 14px/20px "CoFoSans", Helvetica, Arial, sans-serif; }
.catalog-address-field::placeholder { color: #aeb3c1; opacity: 1; }
.catalog-address-autocomplete { width: 100%; min-width: 0; }
.floating-menu:not(.rooms-menu):not(.range-menu) { max-width: calc(100vw - 24px); max-height: 265px; overflow-y: auto; }
.select-btn > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-action { min-height: 48px; padding: 0; flex-direction: column; gap: 2px; font-size: 14px; line-height: 16px; white-space: nowrap; }
.filter-action .ui-icon { width: 20px; height: 20px; }
.filter-map-link { border: 0; }
.chips { min-height: 48px; padding: 10px 0 12px 96px; gap: 8px; }
.chips:empty { min-height: 0; padding: 8px 0; }
.chip { min-height: 24px; padding: 4px 8px; border: 1px solid #fafaff; border-radius: 2px; background: #fafaff; color: rgba(0,0,0,.85); font-size: 14px; }
.chip:hover { border-color: #8b7ff0; background: #fafaff; color: #8b7ff0; }
.chip button { width: 16px; height: 16px; padding: 0; font-size: 12px; }
#filter-dropdown { border-radius: 2px; box-shadow: var(--shadow); }

/* Catalog heading, sorting and view */
.catalog { padding: 28px 0 80px; }
.breadcrumbs { margin-bottom: 24px; color: #aeb4c2; font-size: 14px; line-height: 18px; font-weight: 400; }
.breadcrumbs { display: flex; align-items: center; gap: 6px; }
.breadcrumbs a { color: inherit; cursor: pointer; transition: color .16s ease; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumb-separator { color: #c6cad4; }
.breadcrumb-current { color: #161b28; }
.catalog-head { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; justify-content: stretch; gap: 22px; margin-bottom: 28px; }
.catalog-title { margin: 0; font-size: 30px; line-height: 36px; font-weight: 500; }
.catalog-title .count { margin-left: 10px; color: #c3c7d3; }
.catalog-actions { width: 100%; justify-content: space-between; gap: 32px; }
.sort-button { min-height: 34px; padding: 0; display: inline-flex; align-items: center; gap: 8px; color: var(--color-primary); font-size: 16px; line-height: 16px; white-space: nowrap; transition: color .3s ease; }
.sort-button:hover,
.sort-button:focus-visible { color: var(--color-primary-hover); outline: none; }
.sort-button-icon { width: 16px; height: 16px; flex: 0 0 16px; }
.sort-menu { border-radius: 2px; box-shadow: var(--shadow); }
.sort-option { min-height: 34px; padding: 6px 12px; color: #343440; font-size: 14px; line-height: 22px; }
.sort-option.active { background: #fff; color: var(--color-primary); }
.view-switch { display: grid; grid-template-columns: auto auto; padding: 2px; border-color: #e6e6f0; border-radius: 2px; overflow: hidden; background: #fff; }
.view-btn { min-height: 28px; padding: 5px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #3e3e52; font-size: 14px; line-height: 18px; transition: color .3s ease, background-color .3s ease; }
.view-btn .ui-icon { width: 16px; height: 16px; }
.view-btn.active { background: #e6edff; color: var(--color-primary); }
.view-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: -2px; }

/* Listings: reference list and 3-column card views */
.list { gap: 16px; }
.listing { position: relative; grid-template-columns: minmax(330px, 42%) minmax(0, 1fr); gap: 24px; padding: 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; cursor: pointer; }
.listing:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.gallery { gap: 4px; }
.main-photo { height: 264px; border-radius: 2px; }
.thumbs { gap: 4px; }
.thumb { height: 88px; border-radius: 2px; }
.listing-info { min-width: 0; padding: 12px 12px 8px 0; }
.listing-title-row { margin-bottom: 8px; gap: 12px; }
.listing-title { font-size: 24px; line-height: 30px; font-weight: 500; }
.listing-title a { color: inherit; text-decoration: none; }
.listing { transition: box-shadow .3s cubic-bezier(.645,.045,.355,1), border-color .3s cubic-bezier(.645,.045,.355,1); }
.listing:hover { transform: none; border-color: var(--line); box-shadow: 0 8px 24px rgba(17, 30, 54, .08); }
.card-grid .listing:hover { transform: none; }
.listing .listing-title { transition: color .3s cubic-bezier(.645,.045,.355,1); }
.listing:hover .listing-title { color: var(--blue); }
.price { font-size: 26px; line-height: 32px; font-weight: 500; }
.price small { color: var(--muted); font-size: 14px; font-weight: 400; }
.offer-line { gap: 8px; margin: 8px 0 18px; }
.offer-line span { padding: 3px 6px; display: inline-flex; align-items: center; gap: 4px; border-radius: 2px; background: var(--blue-soft); color: var(--blue); font-size: 14px; line-height: 20px; font-weight: 400; }
.offer-line .ui-icon { width: 16px; height: 16px; }
.address, .metro, .description { font-size: 14px; line-height: 20px; }
.metro { gap: 14px; margin: 8px 0; }
.tag { width: fit-content; max-width: 100%; align-self: flex-start; padding: 4px 8px; border-radius: 2px; font-size: 14px; font-weight: 400; }
.description { margin-top: 16px; color: #161b28; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; }
.listing-actions { margin-top: 18px; }
.listing-actions .btn { min-width: 142px; height: 40px; white-space: nowrap; }
.favorite { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: #000; transition: color .3s ease, background .3s ease, border-color .3s ease; }
.favorite::before, .favorite::after { content: none !important; }
.favorite .ui-icon { width: 20px; height: 20px; fill: currentColor; }
.favorite:hover { transform: none; border-color: #c7cbd5; color: var(--blue); }
.favorite.active { background: #fff; border-color: var(--line); color: var(--blue); }
.favorite.active .ui-icon { fill: var(--blue); color: var(--blue); }

/* Catalog results preserve the reference header/filter sticky stack. */
.catalog-page > .header { display: block; }
.catalog-page .breadcrumbs { display: none; }
@media (min-width: 901px) {
  .catalog-page .filter-panel .wrap,
  .catalog-page .catalog > .wrap { width: min(1328px, calc(100% - 64px)); }
  .catalog-page .catalog { padding-top: 16px; }
  .catalog-page .catalog-head { margin-bottom: 24px; }
  .catalog-page .list:not(.card-grid) .listing {
    min-height: 341px;
    grid-template-columns: 416px minmax(0, 1fr);
    gap: 28px;
    padding: 8px;
  }
  .catalog-page .list:not(.card-grid) .gallery { height: 324px; }
  .catalog-page .list:not(.card-grid) .main-photo { height: 216px; }
  .catalog-page .list:not(.card-grid) .thumb { height: 104px; }
  .catalog-page .list:not(.card-grid) .listing-info { padding: 12px 12px 8px 0; display: flex; flex-direction: column; }
  .catalog-page .list:not(.card-grid) .listing-title { color: #212731; font-size: 24px; line-height: 26px; font-weight: 500; }
  .catalog-page .list:not(.card-grid) .price { color: #212731; font-size: 24px; line-height: 26px; font-weight: 500; }
  .catalog-page .list:not(.card-grid) .price small { margin-left: 8px; color: #6b6b7a; font-size: 14px; line-height: 20px; font-weight: 400; }
  .catalog-page .list:not(.card-grid) .address,
  .catalog-page .list:not(.card-grid) .metro { color: #67677a; font-size: 14px; line-height: 18px; font-weight: 400; }
  .catalog-page .list:not(.card-grid) .tag {
    padding: 4px 5px;
    border-radius: 4px;
    background: #e6edff;
    color: #000;
    font-size: 14px;
    line-height: 18px;
  }
  .catalog-page .list:not(.card-grid) .description {
    max-width: 760px;
    margin-top: auto;
    padding-top: 20px;
    display: -webkit-box;
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
  }
  .catalog-page .list:not(.card-grid) .listing-actions { display: none; }
}

.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card-grid .listing { display: flex; flex-direction: column; padding: 10px; }
.card-grid .gallery { margin-bottom: 4px; }
.card-grid .main-photo { height: 218px; }
.card-grid .thumbs { display: none; }
.card-grid .listing-info { display: flex; flex-direction: column; flex: 1; padding: 12px 6px 6px; }
.card-grid .listing-title { font-size: 20px; line-height: 25px; font-weight: 400; }
.card-grid .price { margin: 6px 0; font-size: 22px; line-height: 28px; font-weight: 500; }
.card-grid .offer-line { margin: 6px 0 14px; }
.card-grid .address, .card-grid .metro, .card-grid .description { font-size: 14px; line-height: 20px; }
.card-grid .description { margin-top: 14px; }
.card-grid .listing-actions { width: 100%; margin-top: auto; padding-top: 20px; display: block; }
.card-grid .listing-actions .btn { width: 100%; min-width: 0; padding-inline: 16px; }
.card-grid .favorite { position: static; flex: 0 0 40px; }

.load-more { height: 40px; margin: 24px 0 18px; border-color: #c7cbd5; font-size: 16px; }
.pagination-row { min-height: 32px; font-size: 14px; line-height: 18px; }
.pagination { gap: 0; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.page-btn { min-width: 40px; width: auto; height: 32px; margin: -1px 0 -1px -1px; padding: 0 6px; border: 1px solid var(--line); border-radius: 0; color: rgba(0,0,0,.85); background: #fff; font-size: 14px; line-height: 14px; font-weight: 400; transition: color .18s ease, background-color .18s ease, border-color .18s ease; }
.page-btn:first-child { margin-left: -1px; }
.page-btn:not(.disabled):hover,
.page-btn:not(.disabled):focus-visible { position: relative; z-index: 1; border-color: var(--blue); background: var(--blue-soft); color: var(--blue); outline: none; }
.page-btn.active { position: relative; border-color: var(--blue); background: var(--blue-soft); color: var(--blue); }
.page-btn.disabled:hover { border-color: var(--line); background: #fff; color: rgba(0,0,0,.85); }
.page-dots { min-width: 40px; height: 32px; padding: 0 6px; display: grid; place-items: center; border-left: 1px solid var(--line); background: #fff; color: #7b8495; }

/* Full catalog filter dialog */
body.advanced-filter-open { overflow: hidden; }
.advanced-filter-modal[hidden] { display: none; }
.advanced-filter-modal { position: fixed; inset: 0; z-index: 2200; display: grid; place-items: start center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
.advanced-filter-modal.open { opacity: 1; visibility: visible; }
.advanced-filter-backdrop { position: absolute; inset: 0; border: 0; background: rgba(29, 43, 61, .5); cursor: default; }
.advanced-filter-dialog { position: relative; width: min(904px, calc(100vw - 40px)); height: calc(100vh - 40px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; border-radius: 3px; background: #fff; box-shadow: 0 20px 60px rgba(12, 25, 43, .2); transform: translateY(10px); transition: transform .2s ease; overflow: hidden; }
.advanced-filter-modal.open .advanced-filter-dialog { transform: translateY(0); }
.advanced-filter-header { min-height: 70px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.advanced-filter-header h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 500; }
.advanced-filter-close { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; background: transparent; color: #8b93a2; cursor: pointer; }
.advanced-filter-close .ui-icon { width: 20px; height: 20px; }
.advanced-filter-body { padding: 8px 28px 24px; overflow-y: auto; }
.advanced-filter-row { min-height: 106px; padding: 18px 0; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; border-bottom: 1px solid var(--line); }
.advanced-filter-row-compact { min-height: 74px; padding: 14px 0 18px; }
.advanced-filter-label { padding-top: 10px; color: #172033; font-size: 16px; line-height: 22px; font-weight: 500; }
.advanced-filter-control { min-width: 0; }
.advanced-text-input, .advanced-range-fields input, .advanced-minutes input { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: #20293a; font: inherit; font-size: 15px; outline: none; }
.advanced-search-fields { display: grid; gap: 12px; }
.advanced-address-autocomplete { width: 100%; }
.advanced-address-autocomplete .address-suggestions { z-index: 5; }
.advanced-text-input:focus, .advanced-range-fields input:focus, .advanced-minutes input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.advanced-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.advanced-range .dual-range { margin: 8px 10px 0; }
.advanced-segmented, .advanced-choice-group { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.advanced-segmented button, .advanced-choice { min-height: 38px; padding: 7px 14px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: #344055; font: inherit; font-size: 14px; cursor: pointer; }
.advanced-segmented button.active, .advanced-choice.active { border-color: #111d2e; background: #111d2e; color: #fff; }
.advanced-minutes { width: 200px; margin-top: 10px; display: grid; gap: 6px; color: #758095; font-size: 13px; line-height: 18px; }
.advanced-minutes.hidden { display: none; }
.advanced-filter-footer { min-height: 68px; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #fff; }
.advanced-filter-reset { min-height: 40px; padding: 0; border: 0; background: transparent; color: #7d8798; font: inherit; font-size: 14px; cursor: pointer; }
.advanced-filter-reset span { margin-right: 5px; font-size: 25px; font-weight: 300; vertical-align: -2px; }
.advanced-filter-apply { min-width: 238px; height: 46px; }

/* Object detail: mirrors the reference information hierarchy and gallery behavior. */
.object-page { padding: 12px 0 32px; background: #fff; min-height: 70vh; }
.object-breadcrumbs { margin: 0 0 28px; font-size: 13px; line-height: 18px; }
.object-detail { display: block; padding: 0; border: 0; background: #fff; }
.object-detail-header { margin-bottom: 28px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.object-detail-header h1 { max-width: 760px; margin: 0 0 16px; color: #000; font-size: 32px; line-height: 38px; font-weight: 500; }
.object-detail-address { color: #252b36; font-size: 15px; line-height: 20px; }
.object-detail-meta { min-width: 355px; display: grid; justify-items: end; gap: 14px; }
.object-lot { color: #858b98; font-size: 13px; line-height: 18px; }
.object-lot strong { color: #343946; font-weight: 400; }
.object-detail-actions { max-width: 590px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.object-action { height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 2px; background: #fff; color: #111; font: 400 14px/18px "CoFoSans", Helvetica, Arial, sans-serif; text-decoration: none; cursor: pointer; transition: color .24s ease, border-color .24s ease, background-color .24s ease; }
.object-action:hover, .object-action:focus-visible { border-color: var(--blue); background: #f0f4ff; color: var(--blue); outline: none; }
.object-action svg { width: 17px; height: 17px; fill: currentColor; }
.object-map-action { min-width: 128px; padding: 0 18px; background: #f5f5f8; border-color: #f5f5f8; }
.object-phone-action,
.object-callback-action { min-width: 140px; padding: 0 18px; color: var(--blue); border-color: var(--blue); white-space: nowrap; }
.object-phone-action { background: var(--blue); color: #fff; }
.object-phone-action:hover,
.object-phone-action:focus-visible { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.object-phone-action.revealed { min-width: 158px; background: #fff; color: var(--blue); }
.object-phone-action.revealed:hover,
.object-phone-action.revealed:focus-visible { background: #f0f4ff; color: var(--color-primary); }
.object-callback-action:hover,
.object-callback-action:focus-visible { border-color: var(--color-primary); background: #f0f4ff; color: var(--color-primary); }
.object-action-square { position: relative; width: 40px; padding: 0; }
.object-action-square .ui-icon { width: 18px; height: 18px; }
.object-action-square.copied::after { content: "Ссылка скопирована"; position: absolute; top: calc(100% + 8px); right: 0; z-index: 4; width: max-content; padding: 7px 10px; background: #111d2e; color: #fff; font-size: 12px; box-shadow: var(--shadow); }

.object-detail-gallery { display: grid; gap: 8px; }
.object-gallery-viewport { position: relative; height: clamp(440px, 50vw, 610px); overflow: hidden; background: #eef0f4; }
.object-gallery-track { height: 100%; display: flex; transform: translate3d(0,0,0); transition: transform .46s cubic-bezier(.645,.045,.355,1); will-change: transform; }
.object-gallery-slide { position: relative; min-width: 100%; height: 100%; overflow: hidden; cursor: zoom-in; }
.object-gallery-slide::before, .object-lightbox-photo::before { content: ""; position: absolute; inset: 0; background-color: #eef0f4; background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: cover; filter: blur(10px); opacity: 1; }
.object-gallery-slide.has-photo { background-color: #eef0f4; }
.object-gallery-thumb.has-photo,
.object-lightbox-thumb.has-photo,
.object-lightbox-photo.has-photo { background-color: #eef0f4; background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: cover; }
.object-gallery-slide.has-photo::before,
.object-lightbox-photo.has-photo::before { background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: cover; }
.object-gallery-slide.has-photo .object-photo-placeholder { inset: 0; border: 0; background-color: transparent; background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: contain; box-shadow: none; }
.object-gallery-slide.has-photo .object-photo-placeholder::before { display: none; }
.object-gallery-thumb.has-photo span,
.object-lightbox-thumb.has-photo span { background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: cover; }
.listing .main-photo.has-photo,
.listing .thumb.has-photo,
.object-card .photo.has-photo {
  background-color: #eef0f4;
  background-image: var(--listing-photo);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.object-photo-placeholder { position: absolute; inset: 0 25%; display: block; border-left: 1px solid rgba(255,255,255,.45); border-right: 1px solid rgba(255,255,255,.45); background: inherit; box-shadow: 0 0 42px rgba(42,50,72,.08); }
.object-photo-placeholder::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: 12%; height: 32%; border: 1px solid rgba(255,255,255,.72); background: rgba(255,255,255,.18); box-shadow: 0 -82px 0 -60px rgba(255,255,255,.68); }
.object-photo-tone-1 { background: linear-gradient(135deg,#dce8fb 0%,#f4e2d8 56%,#e6edff 100%); }
.object-photo-tone-2 { background: linear-gradient(145deg,#d5e4f2,#e9e5dc 47%,#dbe8ff); }
.object-photo-tone-3 { background: linear-gradient(125deg,#efe3d4,#dbe6f4 58%,#e6edff); }
.object-photo-tone-4 { background: linear-gradient(140deg,#dbe8ff,#f0e2d9 52%,#d9e5fa); }
.object-photo-tone-5 { background: linear-gradient(130deg,#e9deef,#dce9f7 53%,#e9e2d1); }
.object-gallery-arrow { position: absolute; top: 0; bottom: 0; z-index: 2; width: 14.2857%; height: 100%; padding: 0; display: flex; align-items: center; border: 0; background: transparent; color: #fff; cursor: pointer; }
.object-gallery-arrow::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.object-gallery-arrow span { position: relative; z-index: 1; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; background: rgba(10,13,18,.7); font: 300 30px/30px Arial,sans-serif; opacity: .86; transition: background-color .3s, opacity .3s; }
.object-gallery-arrow:hover::before, .object-gallery-arrow:focus-visible::before { opacity: 1; visibility: visible; }
.object-gallery-arrow:hover span, .object-gallery-arrow:focus-visible span { background: #000; opacity: 1; }
.object-gallery-arrow:focus-visible { outline: none; }
.object-gallery-prev { left: 0; justify-content: flex-start; }
.object-gallery-next { right: 0; justify-content: flex-end; }
.object-gallery-prev::before { background: linear-gradient(90deg,rgba(0,0,0,.32),transparent); }
.object-gallery-next::before { background: linear-gradient(-90deg,rgba(0,0,0,.32),transparent); }
.object-gallery-prev span { left: 16px; }
.object-gallery-next span { right: 16px; }
.object-gallery-fullscreen { position: absolute; top: 24px; right: 24px; z-index: 2; width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 2px; background: rgba(10,13,18,.72); color: #fff; cursor: pointer; transition: background-color .24s ease, transform .24s ease; }
.object-gallery-fullscreen:hover { background: #111; transform: scale(1.04); }
.object-gallery-fullscreen svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; }
.object-gallery-counter, .object-gallery-plan { position: absolute; bottom: 24px; z-index: 2; min-height: 32px; padding: 7px 12px; display: flex; align-items: center; border-radius: 2px; background: rgba(10,13,18,.76); color: #fff; font-size: 14px; line-height: 18px; }
.object-gallery-counter { left: 24px; }
.object-gallery-plan { left: 90px; }
.object-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.object-gallery-thumbs::-webkit-scrollbar { display: none; }
.object-gallery-thumb { position: relative; min-width: 118px; width: 118px; height: 82px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 2px; cursor: pointer; scroll-snap-align: start; opacity: .72; transition: opacity .25s ease, border-color .25s ease, transform .25s ease; }
.object-gallery-thumb span { position: absolute; inset: 0; background: inherit; }
.object-gallery-thumb:hover { opacity: 1; transform: translateY(-1px); }
.object-gallery-thumb.active { border-color: var(--blue); opacity: 1; }

.object-agent-summary { min-width: 190px; display: grid; gap: 3px; }
.object-agent-summary > span { color: #7b8392; font-size: 13px; line-height: 17px; }
.object-agent-summary > strong { color: #111722; font-size: 16px; line-height: 20px; font-weight: 500; }
.object-agent-phone { width: max-content; padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--blue); font: inherit; cursor: pointer; }
.object-agent-phone.revealed { font-weight: 500; }

.object-quick-facts { margin: 30px 0 34px; display: flex; align-items: flex-start; gap: 54px; }
.object-quick-facts > div { min-width: 74px; display: grid; gap: 4px; }
.object-quick-facts:not(.object-kind-flats) > div:first-child { min-width: 260px; }
.object-quick-facts strong { color: #000; font-size: 22px; line-height: 26px; font-weight: 500; }
.object-quick-facts span { color: #858b98; font-size: 13px; line-height: 18px; }
.object-detail-columns { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 48px; align-items: start; }
.object-detail-content { min-width: 0; }
.object-tag { width: max-content; max-width: 100%; margin-bottom: 22px; padding: 5px 10px; border-radius: 12px; background: #f6f6fa; color: #434957; font-size: 13px; line-height: 16px; }
.object-description-wrap { margin-bottom: 46px; }
.object-detail-description { max-width: 820px; max-height: 48px; margin: 0 0 20px; overflow: hidden; color: #20252f; font-size: 15px; line-height: 24px; transition: max-height .35s cubic-bezier(.645,.045,.355,1); }
.object-description-wrap.expanded .object-detail-description { max-height: 260px; }
.object-description-toggle { padding: 0; border: 0; background: transparent; color: var(--blue); font: 400 14px/20px "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; }
.object-description-toggle span { margin-left: 7px; display: inline-block; transition: transform .28s ease; }
.object-description-wrap.expanded .object-description-toggle span { transform: rotate(180deg); }
.object-spec-section h2 { margin: 0 0 16px; color: #212731; font-size: 20px; line-height: 24px; font-weight: 500; }
.object-detail-specs { margin: 0 0 24px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 42px; }
.object-detail-specs div { min-height: 42px; padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.object-detail-specs dt { margin: 0; color: #858b98; font-size: 14px; line-height: 20px; }
.object-detail-specs dd { margin: 0; color: #161b28; font-size: 14px; line-height: 20px; text-align: right; }
.object-price-sidebar { position: relative; align-self: stretch; }
.object-price-card { position: sticky; top: 116px; padding: 24px; border: 1px solid var(--line); border-radius: 2px; background: #fff; box-shadow: var(--shadow); }
.object-price-per-meter { margin-bottom: 6px; color: #777f90; font-size: 14px; line-height: 18px; }
.object-price { margin-bottom: 18px; color: #111722; font-size: 30px; line-height: 36px; font-weight: 500; }
.object-mortgage { color: #6d7485; font-size: 13px; line-height: 18px; }
.object-mortgage strong { display: block; margin-top: 3px; color: var(--blue); font-size: 16px; font-weight: 500; }
.object-rate { width: max-content; margin: 14px 0 20px; padding: 5px 8px; display: flex; align-items: center; gap: 5px; background: #f0f4ff; color: var(--blue); font-size: 13px; line-height: 16px; }
.object-rate .ui-icon { width: 14px; height: 14px; }
.object-price-card .btn { width: 100%; height: 42px; margin-top: 8px; }
.object-agent-note { margin: 18px 0 0; color: #858b98; font-size: 12px; line-height: 17px; }

.gallery-modal-open { overflow: hidden; }
.object-gallery-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 184px minmax(0,1fr); grid-template-rows: 66px minmax(0,1fr); column-gap: 26px; row-gap: 38px; overflow: hidden; background: #fff; color: #111722; opacity: 0; transform: translateY(8px); transition: opacity .24s ease, transform .32s cubic-bezier(.22,.61,.36,1); }
.object-gallery-lightbox.open { opacity: 1; transform: translateY(0); }
.object-lightbox-header { grid-column: 1/-1; height: 66px; padding: 16px 40px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e3e6ee; background: #fff; }
.object-lightbox-header h2 { margin: 0; color: #070b12; font-size: 24px; line-height: 32px; font-weight: 500; }
.object-lightbox-header-actions { display: flex; align-items: center; gap: 12px; }
.object-lightbox-phone { height: 32px; padding: 0 16px; border: 0; border-radius: 0; background: var(--blue); color: #fff; font: 400 14px/14px "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; transition: background-color .22s ease, transform .22s ease; }
.object-lightbox-phone:hover, .object-lightbox-phone:focus-visible { background: var(--color-primary); outline: none; }
.object-lightbox-phone:active { transform: scale(.98); }
.object-lightbox-phone.revealed { min-width: 148px; background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.object-lightbox-share,
.object-lightbox-favorite { width: 32px; height: 32px; padding: 6px; display: grid; place-items: center; border: 1px solid #e1e4eb; background: #fff; color: #111722; cursor: pointer; transition: color .22s ease, border-color .22s ease, background-color .22s ease; }
.object-lightbox-share:hover, .object-lightbox-share:focus-visible,
.object-lightbox-favorite:hover, .object-lightbox-favorite:focus-visible { color: var(--blue); border-color: var(--blue); background: #f0f4ff; outline: none; }
.object-lightbox-share svg,
.object-lightbox-favorite .ui-icon { width: 18px; height: 18px; }
.object-lightbox-share svg { fill: currentColor; }
.object-lightbox-close { width: 32px; height: 32px; margin-left: 28px; padding: 0; position: relative; border: 0; background: transparent; cursor: pointer; transition: transform .25s ease, color .25s ease; }
.object-lightbox-close::before, .object-lightbox-close::after { content: ""; position: absolute; top: 15px; left: 6px; width: 21px; height: 1.5px; background: currentColor; }
.object-lightbox-close::before { transform: rotate(45deg); }
.object-lightbox-close::after { transform: rotate(-45deg); }
.object-lightbox-close:hover, .object-lightbox-close:focus-visible { color: var(--blue); transform: rotate(90deg); outline: none; }
.object-lightbox-thumbs { grid-column: 1; grid-row: 2; min-height: 0; padding: 0 0 40px 40px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #aeb5c2 transparent; overscroll-behavior: contain; }
.object-lightbox-thumb { position: relative; flex: 0 0 90px; width: 132px; height: 90px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; opacity: .86; cursor: pointer; transition: border-color .22s ease, opacity .22s ease, transform .22s ease; }
.object-lightbox-thumb span { position: absolute; inset: 0; background: inherit; }
.object-lightbox-thumb:hover, .object-lightbox-thumb:focus-visible { opacity: 1; transform: translateX(2px); outline: none; }
.object-lightbox-thumb.active { border-color: var(--blue); opacity: 1; }
.object-lightbox-stage { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; padding: 0 24px 40px 0; position: relative; display: grid; place-items: stretch; overflow: hidden; }
.object-lightbox-photo { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; background-color: #fff; transform: scale(.985); opacity: 0; transition: opacity .28s ease, transform .36s cubic-bezier(.22,.61,.36,1); }
.object-gallery-lightbox.open .object-lightbox-photo { transform: scale(1); opacity: 1; }
.object-lightbox-photo.changing { opacity: .35; transform: scale(.99); }
.object-lightbox-photo::before { display: none; }
.object-lightbox-photo span { position: absolute; inset: 0 3%; background: inherit; border-left: 1px solid rgba(255,255,255,.52); border-right: 1px solid rgba(255,255,255,.52); }
.object-lightbox-photo.has-photo span { inset: 0; border: 0; background-image: var(--object-photo); background-position: center; background-repeat: no-repeat; background-size: auto 100%; }
.object-lightbox-arrow { position: absolute; top: 0; bottom: 40px; z-index: 3; width: 18%; min-width: 64px; height: auto; padding: 0; display: flex; align-items: center; border: 0; background: transparent; color: #3d4450; cursor: pointer; transition: background .25s ease; }
.object-lightbox-arrow span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: #f5f5ff; color: #67677a; font: 300 30px/36px Arial,sans-serif; transition: opacity .3s ease; }
.object-lightbox-arrow:hover span, .object-lightbox-arrow:focus-visible span { background: #f5f5ff; color: #67677a; opacity: .7; }
.object-lightbox-arrow:focus-visible { outline: none; }
.object-lightbox-prev { left: 0; justify-content: flex-start; padding-left: 14px; }
.object-lightbox-next { right: 0; justify-content: flex-end; padding-right: 40px; }
.object-lightbox-prev:hover, .object-lightbox-next:hover { background: transparent; }
.object-lightbox-controls { position: absolute; left: 50%; bottom: 48px; z-index: 3; display: flex; align-items: center; gap: 16px; transform: translateX(-50%); }
.object-lightbox-count { min-width: 66px; height: 32px; padding: 0 12px; display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 16px; background: rgba(255,255,255,.94); color: #222832; font-size: 14px; line-height: 18px; box-shadow: 0 3px 12px rgba(16,25,45,.08); }
.object-lightbox-count strong { font-weight: 400; }
.object-lightbox-count span { color: #666e7d; }
.object-lightbox-plan { height: 32px; padding: 0 14px; display: flex; align-items: center; gap: 7px; border: 0; border-radius: 16px; background: rgba(255,255,255,.94); color: #222832; font: 400 14px/18px "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; box-shadow: 0 3px 12px rgba(16,25,45,.08); transition: color .22s ease, background-color .22s ease; }
.object-lightbox-plan:hover, .object-lightbox-plan:focus-visible { color: var(--blue); background: #fff; outline: none; }
.object-lightbox-plan svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.object-share-popover { position: fixed; inset: auto; z-index: 1600; width: 224px; margin: 0; padding: 14px; border: 1px solid #e1e4eb; background: #fff; box-shadow: 0 12px 34px rgba(22,27,40,.16); opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s ease, transform .2s ease, display .2s allow-discrete, overlay .2s allow-discrete; }
.object-share-popover:popover-open { opacity: 1; transform: translateY(0) scale(1); }
@starting-style { .object-share-popover:popover-open { opacity: 0; transform: translateY(-6px) scale(.98); } }
.object-share-popover strong { margin: 2px 8px 10px; display: block; color: #111722; font-size: 15px; line-height: 20px; font-weight: 500; }
.object-share-popover a, .object-share-popover button { width: 100%; min-height: 40px; padding: 8px; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; color: #2a303c; font: 400 14px/18px "CoFoSans", Helvetica, Arial, sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.object-share-popover a:hover, .object-share-popover a:focus-visible, .object-share-popover button:hover, .object-share-popover button:focus-visible { background: #f0f4ff; color: var(--blue); outline: none; transform: translateX(2px); }
.object-share-symbol { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; font-weight: 500; }
.empty-note { border-radius: 2px; background: #fff; }

/* Homepage object cards and footer */
.cards { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.object-card { padding: 16px; border: 1px solid var(--line); }
.object-card h3 { font-size: 20px; line-height: 25px; font-weight: 400; }
.object-card .price { font-size: 24px; font-weight: 500; }
.object-card .favorite { top: 14px; right: 14px; }
.footer { background: #fff; }
.footer-grid { gap: 56px; }
.footer-title { font-size: 18px; font-weight: 500; }
.footer-list a { font-size: 15px; line-height: 20px; text-decoration: none; transition: color .3s; }
.footer-list a:hover,
.footer-list a:focus-visible { color: #8b7ff0; text-decoration: none; }
.footer-list li { margin-bottom: 12px; }
.footer-logo {
  width: 206px;
  height: 21px;
  overflow: hidden;
  align-items: flex-start;
}
.footer-logo img { transform: translate(-6.2%, -12.5px); }
.footer-grid > div:first-child { max-width: 230px; }
.footer-region {
  width: max-content;
  height: 32px;
  margin: 18px 0 24px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #f4f5f9;
  border-radius: 2px;
  background: #f4f5f9;
  color: rgba(0, 0, 0, .85);
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  cursor: default;
  user-select: none;
}
.footer-region-icon { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
.footer-region.header-region { margin: 0 0 0 -20px; }
.footer-phone {
  display: inline-block;
  margin: 0 0 8px;
  color: #3e3e52;
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}
.footer-phone:hover { color: var(--color-primary); }
.footer-note { margin: 0 0 12px; color: #9393a3; font-size: 12px; line-height: 16px; }
.footer-call { width: 230px; height: 40px; padding: 0 15px; font-size: 16px; font-weight: 400; line-height: 16px; }
.footer-legal { margin-top: 48px; color: #6b6b7a; }
.footer-version { margin: 0 0 20px; color: #9393a3; font-size: 14px; line-height: 16px; }
.footer-legal-content { border-top: 1px solid #dedfe6; }
.footer-disclaimer { margin: 0 0 16px; padding: 16px 54px 0 0; color: #6b6b7a; font-size: 12px; font-weight: 400; line-height: 15px; }
.footer-policy { display: inline-block; color: #6b6b7a; font-size: 14px; font-weight: 400; line-height: 17px; text-decoration: none; transition: color .2s ease; }
.footer-policy:hover, .footer-policy:focus-visible { color: #8b7ff0; text-decoration: none; }

/* Privacy policy */
.privacy-body { background: #fff; }
.privacy-main { padding: 44px 0 72px; background: #fff; }
.privacy-wrap { width: min(1000px, calc(100% - 64px)); margin: 0 auto; }
.privacy-breadcrumbs { margin-bottom: 28px; color: #9393a3; font-size: 14px; line-height: 20px; }
.privacy-breadcrumbs a { color: #9393a3; }
.privacy-breadcrumbs a:hover { color: var(--color-primary); }
.privacy-document { color: #161b28; font-size: 16px; line-height: 24px; }
.privacy-document h1 { margin: 0 0 32px; color: #000; font-size: 28px; font-weight: 500; line-height: 35px; }
.privacy-document h2 { margin: 32px 0 12px; color: #000; font-size: 20px; font-weight: 500; line-height: 28px; }
.privacy-document p { margin: 0 0 14px; }
.privacy-document ul, .privacy-document ol { margin: 0 0 18px; padding-left: 28px; }
.privacy-document li { margin-bottom: 8px; }
.privacy-document a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.privacy-intro { color: #67677a; }
.privacy-date { color: #67677a; }
.privacy-warning { margin: 24px 0 36px; padding: 16px 18px; border-left: 3px solid var(--color-primary); background: #f0f4ff; color: #3e3e52; font-size: 14px; line-height: 20px; }
.privacy-table-wrap { margin: 18px 0 20px; overflow-x: auto; border: 1px solid #dedfe6; }
.privacy-table { width: 100%; min-width: 860px; border-collapse: collapse; color: #3e3e52; font-size: 14px; line-height: 20px; }
.privacy-table th, .privacy-table td { padding: 14px 16px; border-right: 1px solid #dedfe6; border-bottom: 1px solid #dedfe6; text-align: left; vertical-align: top; }
.privacy-table th:last-child, .privacy-table td:last-child { border-right: 0; }
.privacy-table tbody tr:last-child td { border-bottom: 0; }
.privacy-table th { background: #f4f5f9; color: #161b28; font-weight: 500; }
.privacy-operator-card { margin: 18px 0 0; border-top: 1px solid #dedfe6; }
.privacy-operator-card div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 14px 0; border-bottom: 1px solid #dedfe6; }
.privacy-operator-card dt { color: #67677a; }
.privacy-operator-card dd { margin: 0; color: #161b28; }
.privacy-operator-card dd:not(:has(a)) { color: #b24343; }
.privacy-footer { border-top: 1px solid #dedfe6; }
.privacy-footer-legal { padding-bottom: 0; }
.agreement-table-wrap { margin: 24px 0; overflow-x: auto; }
.agreement-table { width: 100%; min-width: 840px; border-collapse: collapse; color: #202637; font-size: 14px; line-height: 1.45; }
.agreement-table th,
.agreement-table td { padding: 16px; border: 1px solid #dedfe6; vertical-align: top; text-align: left; }
.agreement-table th { background: #f5f7fb; font-weight: 500; }
.agreement-table ul { margin: 0; padding-left: 18px; }

/* Consultation dialog */
body.modal-open { overflow: hidden; }
.modal { display: flex; padding: 24px; background: rgba(17, 24, 39, .46); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease; }
.modal.open { opacity: 1; visibility: visible; }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; border-radius: 4px; box-shadow: 0 18px 60px rgba(22, 27, 40, .2); transform: translateY(12px) scale(.985); transition: transform .24s ease; }
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-head { min-height: 80px; padding: 22px 32px; }
.modal-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; }
.modal-close { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; color: #8f96a6; border-radius: 2px; transition: color .18s ease, background .18s ease; }
.modal-close:hover { color: #161b28; background: #f3f4f7; }
.modal-close .ui-icon { width: 24px; height: 24px; }
.modal-body { padding: 32px; }
.modal-field { margin-bottom: 22px; }
.modal-field label { margin: 0 0 8px; display: block; color: var(--muted); font-size: 16px; line-height: 22px; }
.modal-body input { height: 56px; margin: 0; padding: 0 16px; border-color: #d9dde6; border-radius: 2px; font-size: 18px; outline: none; transition: border-color .18s ease, box-shadow .18s ease; }
.modal-body input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.modal-body input.invalid { border-color: #f34f5e; }
.field-error { min-height: 18px; padding-top: 5px; display: block; color: #e33b4e; font-size: 13px; line-height: 16px; }
.modal-submit { height: 52px; margin: 2px 0 20px; font-size: 17px; font-weight: 400; }
.consent { max-width: 460px; margin: 0 auto; color: #9ca4b5; font-size: 13px; line-height: 18px; }
.modal-success { padding: 42px 32px 36px; text-align: center; }
.modal-success[hidden], .modal-body[hidden] { display: none; }
.modal-success-icon { width: 56px; height: 56px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); }
.modal-success-icon .ui-icon { width: 28px; height: 28px; }
.modal-success h3 { margin: 0 0 8px; font-size: 24px; line-height: 30px; font-weight: 500; }
.modal-success p { margin: 0 0 28px; color: var(--muted); }
.modal-success .btn { width: 100%; height: 48px; }

/* Favorite feedback popover */
.favorite-notice { position: fixed; z-index: 1500; width: 284px; padding: 20px; border-radius: 4px; background: #fff; box-shadow: 0 1px 4px -1px rgba(148,148,164,.08), 0 4px 8px -2px rgba(148,148,164,.24); opacity: 0; visibility: hidden; transform-origin: top right; animation: favorite-popover-close .3s ease forwards; }
.gallery-modal-open .favorite-notice { top: 76px !important; right: 40px; left: auto !important; }
.favorite-notice.open { visibility: visible; animation: favorite-popover-open .3s ease forwards; }
.favorite-notice p { min-height: 32px; margin: 0 26px 16px 0; color: #111827; font-size: 14px; line-height: 16px; font-weight: 400; }
.favorite-notice p strong { font-weight: 600; }
.favorite-notice-close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 2px; background: transparent; color: #949baa; cursor: pointer; }
.favorite-notice-close:hover { color: #111827; background: #f3f4f7; }
.favorite-notice-close .ui-icon { width: 18px; height: 18px; }
.favorite-notice-link { width: 100%; height: 40px; font-size: 14px; font-weight: 400; }
.favorite-notice.removed .favorite-notice-link { display: none; }
.favorite-burst .ui-icon { animation: favorite-heart-pop .4s cubic-bezier(.2,.9,.25,1.35); }
.header-favorites .badge.bump { animation: favorite-badge-pop .4s cubic-bezier(.2,.9,.25,1.35); }
@keyframes favorite-heart-pop { 0% { transform: scale(.65); } 55% { transform: scale(1.38); } 100% { transform: scale(1); } }
@keyframes favorite-badge-pop { 0% { transform: scale(.7); } 55% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes favorite-popover-open { from { opacity: 0; } to { opacity: 1; } }
@keyframes favorite-popover-close { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* At laptop widths the reference keeps the four primary fields readable and
   moves the map/search actions to their own lower row. */
@media (min-width: 761px) and (max-width: 980px) {
  .search-card { margin-top: -158px; }
  .filter-form,
  .filter-form[data-kind] {
    --home-field-columns: 1.45fr .82fr 1.12fr .8fr;
    margin-top: 8px;
    padding: 0;
    grid-template-columns: minmax(0, 1fr) 188px 188px;
    column-gap: 10px;
    row-gap: 8px;
    background: transparent;
  }
  .filter-form[data-kind="houses"] { --home-field-columns: 1.12fr .9fr .9fr; }
  .filter-form[data-kind="land"] { --home-field-columns: 1.2fr .9fr; }
  .filter-form[data-kind="commerce"] { --home-field-columns: 1.25fr 1.05fr .9fr; }
  .filter-fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: var(--home-field-columns);
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
  }
  .filter-form > .map-search-link {
    grid-column: 2;
    grid-row: 2;
  }
  .filter-form > button[type="submit"] {
    grid-column: 3;
    grid-row: 2;
    background: #fff;
    border-color: #fff;
    color: var(--blue);
  }
  .filter-form > button[type="submit"]:hover,
  .filter-form > button[type="submit"]:focus-visible {
    background: var(--blue-soft);
    border-color: var(--blue-soft);
    color: var(--blue-dark);
  }
  .filter-form > .btn { width: 100%; }
}

@media (max-width: 1100px) {
  .wrap { width: min(100% - 32px, 960px); }
  .directions .wrap { width: min(100% - 32px, 960px); }
  .directions .direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-main-row { height: 64px; }
  .filter-form > .btn { width: 100%; }
  .search-card { width: calc(100% - 32px); margin-top: -178px; }
  .filter-row { grid-template-columns: 74px minmax(0,1fr); }
  .filter-action { display: none; }
  .filter-controls,
  .filter-controls[data-kind] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); overflow-x: auto; }
  .chips { padding-left: 92px; }
  .listing { grid-template-columns: minmax(300px, 42%) minmax(0,1fr); }
  .object-detail-columns { grid-template-columns: minmax(0,1fr) 286px; gap: 28px; }
  .object-detail-meta { min-width: 410px; }
  .object-detail-actions { max-width: 410px; }
  .object-gallery-viewport { height: 520px; }
  .object-quick-facts { gap: 32px; }
}

@media (max-width: 760px) {
  .hero > .wrap { padding-bottom: 0; background: #fff; }
  .object-page { padding-top: 18px; }
  .object-breadcrumbs { margin-bottom: 20px; overflow-x: auto; white-space: nowrap; }
  .object-detail-header { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .object-detail-header h1 { margin-bottom: 10px; font-size: 26px; line-height: 32px; }
  .object-detail-meta { min-width: 0; width: 100%; justify-items: start; }
  .object-detail-actions { width: 100%; max-width: none; justify-content: flex-start; }
  .object-map-action { width: 100%; flex: 1 0 100%; }
  .object-phone-action,
  .object-callback-action { min-width: 0; flex: 1 1 130px; }
  .object-gallery-viewport { height: 380px; }
  .object-photo-placeholder { inset: 0 12%; }
  .object-gallery-fullscreen { top: 12px; right: 12px; }
  .object-gallery-counter, .object-gallery-plan { bottom: 12px; }
  .object-gallery-counter { left: 12px; }
  .object-gallery-plan { left: 76px; }
  .object-gallery-thumb { min-width: 90px; width: 90px; height: 62px; }
  .object-gallery-lightbox { grid-template-columns: 1fr; grid-template-rows: 62px minmax(0,1fr) 82px; row-gap: 0; }
  .object-lightbox-header { height: 62px; padding: 14px 16px; }
  .object-lightbox-header h2 { max-width: 56vw; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; line-height: 24px; }
  .object-lightbox-phone { display: none; }
  .object-lightbox-close { margin-left: 6px; }
  .object-lightbox-stage { grid-column: 1; grid-row: 2; padding: 16px 12px 22px; }
  .object-lightbox-photo { width: 100%; height: 100%; }
  .object-lightbox-photo.has-photo span { background-size: contain; }
  .object-lightbox-thumbs { grid-column: 1; grid-row: 3; padding: 8px 12px 12px; flex-direction: row; gap: 6px; overflow-x: auto; overflow-y: hidden; }
  .object-lightbox-thumb { flex: 0 0 82px; width: 82px; height: 58px; border-radius: 4px; }
  .object-lightbox-thumb:hover { transform: translateY(-1px); }
  .object-lightbox-arrow { bottom: 22px; width: 24%; min-width: 58px; }
  .object-lightbox-prev { left: 0; padding-left: 18px; }
  .object-lightbox-next { right: 0; padding-right: 18px; }
  .object-lightbox-controls { bottom: 30px; gap: 8px; }
  .object-quick-facts { margin: 22px 0 28px; gap: 24px; overflow-x: auto; }
  .object-quick-facts > div { min-width: 72px; }
  .object-quick-facts:not(.object-kind-flats) > div:first-child { min-width: 230px; }
  .object-quick-facts strong { font-size: 19px; line-height: 24px; }
  .object-detail-columns { grid-template-columns: 1fr; gap: 28px; }
  .object-price-sidebar { grid-row: 1; }
  .object-price-card { position: static; padding: 20px; }
  .object-detail-specs { grid-template-columns: 1fr; }
  .advanced-filter-modal { padding: 0; }
  .advanced-filter-dialog { width: 100vw; height: 100vh; border-radius: 0; }
  .advanced-filter-header { min-height: 62px; padding: 0 18px; }
  .advanced-filter-body { padding: 4px 18px 18px; }
  .advanced-filter-row { min-height: 0; padding: 16px 0; grid-template-columns: 1fr; gap: 10px; }
  .advanced-filter-row-compact .advanced-filter-label { display: none; }
  .advanced-filter-label { padding-top: 0; font-size: 15px; }
  .advanced-filter-footer { padding: 10px 18px; }
  .advanced-filter-apply { min-width: 190px; }
  .pagination-row { gap: 12px; align-items: flex-start; }
  .pagination { align-self: flex-end; }
  .wrap { width: calc(100% - 24px); }
  .directions .wrap { width: calc(100% - 24px); }
  .directions { padding: 28px 0 36px; }
  .directions .section-heading h2 { font-size: 28px; line-height: 34px; }
  .directions .direction-grid { grid-template-columns: 1fr; margin-top: 22px; }
  .directions .direction-card,
  .directions .direction-card-primary { min-height: 176px; }
  .header-row .logo { width: 164px; height: 20px; }
  .hero { padding-top: 12px; }
  .hero-banner, .hero-banner img { min-height: 0; }
  .hero-banner { aspect-ratio: 2.5 / 1; }
  .hero-banner img { object-fit: contain; transform: translate(-4px, -24px); }
  .hero-region { display: none; }
  .search-card { width: 100%; margin: 0; background: #fff; }
  .tabs { width: 100%; border-bottom: 1px solid var(--line); }
  .filter-form,
  .filter-form[data-kind] {
    --home-filter-columns: 1fr;
    margin-top: 0;
    padding: 12px;
    grid-template-columns: 1fr;
    background: #fff;
  }
  .filter-fields {
    grid-column: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0;
    background: transparent;
  }
  .filter-form > .map-search-link,
  .filter-form > button[type="submit"] { grid-column: 1; grid-row: auto; }
  .filter-form > .btn { width: 100%; }
  .filter-panel .wrap { width: 100%; padding: 10px 12px 0; }
  .filter-row { grid-template-columns: 62px minmax(0,1fr); gap: 8px; }
  .filter-controls,
  .filter-controls[data-kind] { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(116px, 1fr); gap: 8px; }
  .select-btn { height: 42px; padding: 0 10px; font-size: 14px; }
  .chips { min-height: 0; padding: 8px 0 10px 70px; }
  #filter-dropdown { max-width: calc(100vw - 24px); }
  .catalog { padding-top: 22px; }
  .catalog-head { align-items: flex-start; flex-direction: column; }
  .catalog-title { font-size: 26px; line-height: 32px; }
  .catalog-actions { width: 100%; justify-content: space-between; }
  .listing { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .listing-info { padding: 6px; }
  .main-photo { height: 230px; }
  .thumb { height: 70px; }
  .listing-title { font-size: 21px; line-height: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid .main-photo { height: 230px; }
  .cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { max-width: none; }
  .footer-call { width: min(230px, 100%); }
  .privacy-wrap { width: min(100% - 32px, 960px); }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { width: 100%; max-height: calc(100vh - 18px); border-radius: 6px 6px 0 0; transform: translateY(24px); }
  .modal-head { min-height: 68px; padding: 16px 20px; }
  .modal-title { font-size: 23px; line-height: 29px; }
  .modal-body { padding: 24px 20px 28px; }
  .privacy-main { padding: 32px 0 48px; }
  .privacy-wrap { width: calc(100% - 24px); }
  .privacy-document h1 { font-size: 24px; line-height: 30px; }
  .footer-disclaimer { padding-right: 0; }
  .privacy-operator-card div { grid-template-columns: 1fr; gap: 4px; }
  .modal-body input { height: 52px; font-size: 16px; }
  .favorite-notice { top: 72px !important; right: 12px; left: 12px !important; width: auto; }
}

/* Object detail information, infrastructure and related listings */
.object-price-summary {
  margin: 26px 0 0;
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e6e6f0;
}
.object-price-summary > div { display: flex; align-items: baseline; gap: 12px; }
.object-price-summary strong { color: #000; font-size: 28px; line-height: 34px; font-weight: 500; }
.object-price-summary span { color: #6b6b7a; font-size: 15px; line-height: 20px; }
.object-price-summary .btn { width: 164px; height: 44px; font-size: 16px; font-weight: 400; }
.object-price-summary > .object-agent-summary { min-width: 190px; display: grid; align-items: start; gap: 3px; }
.object-price-summary > .object-agent-summary > span { color: #7b8392; font-size: 13px; line-height: 17px; }
.object-price-summary > .object-agent-summary > strong { color: #111722; font-size: 16px; line-height: 20px; font-weight: 500; }
.object-detail-content-reference { max-width: 100%; }
.object-sale-tags { margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.object-sale-tags li { padding: 7px 12px; background: #f2f4f8; color: #3e3e52; font-size: 14px; line-height: 18px; }
.object-description-section { max-width: 1020px; margin: 0 0 54px; }
.object-description-section h2,
.object-info-section h2 { margin: 0 0 16px; color: #212731; font-size: 20px; line-height: 24px; font-weight: 500; }
.object-description-content { position: relative; max-height: 48px; overflow: hidden; color: #212731; font-size: 16px; line-height: 24px; transition: max-height .42s cubic-bezier(.645,.045,.355,1); }
.object-description-content::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 38px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 88%); opacity: 1; transition: opacity .24s ease; pointer-events: none; }
.object-description-content p { margin: 0; }
.object-description-section.expanded .object-description-content::after { opacity: 0; }
.object-description-toggle { min-height: 40px; margin-top: 8px; padding: 0 4px; display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; color: var(--color-primary); font: 400 16px/20px "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; transition: color .2s ease; }
.object-description-toggle:hover,
.object-description-toggle:focus-visible { color: var(--color-primary-hover); outline: none; }
.object-description-toggle svg { width: 16px; height: 16px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .32s cubic-bezier(.645,.045,.355,1); }
.object-description-section.expanded .object-description-toggle svg { transform: rotate(180deg); }
.object-info-section { margin: 0 0 54px; }
.object-info-list { margin: 0; padding: 0; columns: 2; column-gap: 44px; list-style: none; }
.object-info-list li { min-height: 40px; padding: 8px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid #e6e6f0; break-inside: avoid; color: #212731; font-size: 16px; line-height: 20px; }
.object-info-list strong { color: #6b6b7a; font-weight: 400; }
.object-info-list span { text-align: right; }
.object-building-section { margin-top: 62px; }
.object-infrastructure-section { margin: 82px 0 96px; }
.object-infrastructure-section > h3 { margin: 0 0 32px; color: #000; font-size: 32px; line-height: 38px; font-weight: 500; }
.object-infrastructure-tabs { margin-bottom: 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.object-infrastructure-tabs::-webkit-scrollbar { display: none; }
.object-infrastructure-tab { min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 9px; flex: 0 0 auto; border: 1px solid var(--color-primary); border-radius: 2px; background: #fff; color: var(--color-primary); font: 400 15px/20px "CoFoSans", Helvetica, Arial, sans-serif; letter-spacing: 0; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.object-infrastructure-tab:hover { border-color: var(--color-primary-hover); background: #f4f7ff; color: var(--color-primary-hover); }
.object-infrastructure-tab.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.object-infrastructure-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; }
.object-infrastructure-icon svg { width: 18px; height: 18px; display: block; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.object-infrastructure-icon-medicine { color: #ff5a60; }
.object-infrastructure-icon-education { color: #22b8bd; }
.object-infrastructure-icon-shops,
.object-infrastructure-icon-transport { color: var(--color-primary); }
.object-infrastructure-icon-services { color: #ff991f; }
.object-infrastructure-icon-sport { color: #ef62ad; }
.object-infrastructure-icon-food { color: #8257d8; }
.object-infrastructure-tab.active .object-infrastructure-icon { color: #fff; }
.object-infrastructure-map { position: relative; height: 480px; overflow: hidden; border: 1px solid #dce1ea; background: linear-gradient(155deg,#eef1eb,#e9eef5 58%,#e8f1f4); }
.object-map-road { position: absolute; width: 130%; height: 46px; background: #fff; border: 1px solid #d6dce5; box-shadow: 0 0 0 8px rgba(255,255,255,.45); }
.object-map-road.road-one { left: -12%; top: 43%; transform: rotate(-8deg); }
.object-map-road.road-two { left: 20%; top: 52%; transform: rotate(64deg); }
.object-map-building { position: absolute; width: 150px; height: 86px; border: 2px solid #d5d9df; background: #f5f3ef; transform: rotate(-8deg); }
.object-map-building.building-one { left: 8%; top: 15%; }
.object-map-building.building-two { right: 9%; bottom: 12%; transform: rotate(10deg); }
.object-map-home,
.object-map-marker { position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--color-primary); color: #fff; box-shadow: 0 4px 12px rgba(18,65,146,.24); }
.object-map-home { left: 50%; top: 50%; transform: translate(-50%,-50%); }
.object-map-home .ui-icon { width: 21px; height: 21px; }
.object-map-marker { left: var(--marker-x); top: var(--marker-y); transform: translate(-50%,-50%); cursor: pointer; transition: opacity .25s, transform .25s, background .2s; }
.object-map-marker:hover,
.object-map-marker:focus-visible { z-index: 8; background: var(--color-primary); transform: translate(-50%,-50%) scale(1.1); outline: none; }
.object-map-marker.filtered-out { opacity: 0; transform: translate(-50%,-50%) scale(.7); pointer-events: none; }
.object-map-marker > span { font-size: 14px; }
.object-map-marker small { position: absolute; left: 50%; bottom: calc(100% + 10px); width: max-content; max-width: 240px; padding: 9px 12px; display: grid; gap: 2px; border-radius: 2px; background: #fff; color: #212731; box-shadow: 0 6px 18px rgba(29,40,63,.18); opacity: 0; visibility: hidden; transform: translate(-50%,5px); transition: opacity .2s, transform .2s, visibility .2s; text-align: left; pointer-events: none; }
.object-map-marker:hover small,
.object-map-marker:focus-visible small { opacity: 1; visibility: visible; transform: translate(-50%,0); }
.object-map-marker small strong { font-size: 13px; font-weight: 500; }
.object-map-marker small em { color: #6b6b7a; font-size: 12px; font-style: normal; }
.object-similar-section { margin: 82px 0 0; }
.object-similar-heading { margin: 0 0 34px; }
.object-similar-heading h3 { margin: 0; color: #000; font-size: 40px; line-height: 44px; font-weight: 700; }
.object-similar-toolbar { min-height: 64px; margin: 0 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.object-similar-toolbar > p { margin: 0; color: #777f90; font-size: 15px; line-height: 20px; }
.object-similar-controls { display: flex; gap: 8px; }
.object-similar-controls button { width: 40px; height: 40px; padding: 0; display: grid; flex: 0 0 auto; place-items: center; border: 0; border-radius: 2px; background: #fff; color: #171b24; box-shadow: 0 3px 14px rgba(28,36,52,.09); cursor: pointer; transition: color .2s, background-color .2s, box-shadow .2s, opacity .2s; }
.object-similar-controls button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.object-similar-controls button:hover:not(:disabled),
.object-similar-controls button:focus-visible { background: #f2f4f8; color: #000; box-shadow: 0 4px 18px rgba(28,36,52,.15); outline: none; }
.object-similar-controls button:focus-visible { box-shadow: 0 0 0 3px rgba(108,92,231,.2); }
.object-similar-controls button:disabled { color: #b7bac6; background: #fafbfc; box-shadow: 0 1px 7px rgba(28,36,52,.04); cursor: default; opacity: .7; }
.object-similar-tabs { width: max-content; margin-bottom: 18px; display: flex; gap: 0; background: #f4f4f8; }
.object-similar-tabs button { min-height: 44px; padding: 0 20px; border: 0; background: transparent; color: #232833; font: 400 16px/20px "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; transition: color .2s, background-color .2s; }
.object-similar-tabs button:hover { background: #e9eaf0; color: #000; }
.object-similar-tabs button.active { background: #000; color: #fff; }
.object-similar-viewport { width: 100%; overflow: hidden; }
.object-similar-section > .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.object-similar-grid { --similar-columns: 4; --similar-gap: 24px; display: flex; gap: var(--similar-gap); opacity: 1; transform: translate3d(0,0,0); transition: opacity .15s, transform .36s cubic-bezier(.22,.61,.36,1); will-change: transform; }
.object-similar-grid.changing { opacity: 0; }
.object-similar-grid.without-transition { transition: none; }
.object-similar-card { min-width: 0; min-height: 548px; flex: 0 0 calc((100% - (var(--similar-columns) - 1) * var(--similar-gap)) / var(--similar-columns)); display: flex; flex-direction: column; overflow: hidden; border: 1px solid #dedfe6; border-radius: 2px; background: #fff; color: #161b28; text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.object-similar-card:hover,
.object-similar-card:focus-visible { border-color: #b7c9e8; box-shadow: 0 8px 22px rgba(62,78,108,.12); transform: translateY(-2px); outline: none; }
.object-similar-photo { position: relative; height: 180px; display: block; flex: 0 0 auto; overflow: hidden; background: linear-gradient(135deg,#dfeafd,#f6e7de 55%,#dff1df); }
.object-similar-photo i { position: absolute; inset: 22% 18%; border: 1px solid rgba(255,255,255,.8); background: rgba(255,255,255,.22); transition: transform .35s ease; }
.object-similar-photo.has-photo { background: #eef0f4; }
.object-similar-photo.has-photo i { inset: 0; border: 0; background: var(--object-photo) center/cover no-repeat; }
.object-similar-card:hover .object-similar-photo i { transform: scale(1.04); }
.object-similar-content { min-height: 0; padding: 18px; display: grid; flex: 1 1 auto; grid-template-columns: 1fr auto; grid-template-rows: auto auto auto auto minmax(76px,1fr); gap: 9px 12px; }
.object-similar-content > strong { grid-column: 1 / -1; min-height: 48px; font-size: 18px; line-height: 24px; font-weight: 400; transition: color .2s; }
.object-similar-card:hover .object-similar-content > strong { color: var(--color-primary); }
.object-similar-content > b { font-size: 21px; line-height: 25px; font-weight: 500; }
.object-similar-content > small { align-self: end; color: #777f90; font-size: 12px; line-height: 16px; }
.object-similar-content > em { grid-column: 1 / -1; min-height: 40px; color: #777f90; font-size: 13px; line-height: 20px; font-style: normal; }
.object-similar-tag { grid-column: 1 / -1; width: max-content; padding: 4px 7px; background: #eaf0ff; color: #303744; font: 400 12px/16px "CoFoSans", Helvetica, Arial, sans-serif; }
.object-similar-description { grid-column: 1 / -1; align-self: end; overflow: hidden; color: #303744; font-size: 14px; line-height: 20px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

@media (max-width: 1100px) {
  .object-similar-grid { --similar-columns: 2; }
}

@media (max-width: 760px) {
  .object-price-summary { align-items: flex-start; flex-direction: column; }
  .object-price-summary > div { flex-wrap: wrap; }
  .object-price-summary .btn { width: 100%; }
  .object-quick-facts { padding-bottom: 8px; }
  .object-sale-tags { margin-bottom: 28px; }
  .object-description-section,
  .object-info-section { margin-bottom: 42px; }
  .object-info-list { columns: 1; }
  .object-building-section { margin-top: 42px; }
  .object-infrastructure-section { margin: 58px 0 68px; }
  .object-infrastructure-section > h3 { font-size: 26px; line-height: 32px; }
  .object-infrastructure-map { height: 360px; }
  .object-similar-heading { margin-bottom: 22px; }
  .object-similar-heading h3 { font-size: 30px; line-height: 36px; }
  .object-similar-tabs { max-width: 100%; overflow-x: auto; }
  .object-similar-tabs button { flex: 0 0 auto; }
  .object-similar-toolbar { min-height: 48px; }
  .object-similar-toolbar > p { max-width: calc(100% - 100px); }
  .object-similar-grid { --similar-columns: 1; }
}

/* Object page: two-column Samolet Plus interaction pattern */
.object-page { background: #fff; }
.object-reference-layout { display: grid; grid-template-columns: minmax(0, 1fr) 326px; gap: 24px; align-items: stretch; }
.object-reference-main { min-width: 0; }
.object-reference-sidebar { position: relative; min-width: 0; }
.object-sidebar-stack {
  position: sticky;
  top: var(--object-sidebar-top, 16px);
  display: grid;
  gap: 16px;
  transition: top .3s cubic-bezier(.645,.045,.355,1);
}
.object-reference-sidebar .object-price-card { position: static; padding: 20px; border-color: #e1e4eb; box-shadow: none; }
.object-reference-sidebar .object-price-per-meter { margin-bottom: 8px; color: #777f90; }
.object-reference-sidebar .object-price { margin-bottom: 18px; color: #000; font-size: 30px; line-height: 36px; font-weight: 500; }
.object-reference-sidebar .btn { width: 100%; height: 44px; margin-top: 8px; border-radius: 2px; font-size: 16px; font-weight: 400; }
.object-reference-sidebar .object-show-phone { border-color: var(--blue); background: var(--blue); color: #fff; }
.object-reference-sidebar .object-show-phone:hover { background: var(--color-primary-hover); }
.object-agent-card { min-height: 88px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid #e1e4eb; background: #fff; }
.object-agent-avatar { width: 48px; height: 48px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #edf3ff; color: var(--blue); font-size: 16px; }
.object-agent-card > span:last-child { display: grid; gap: 5px; }
.object-agent-card strong { color: #171b24; font-size: 15px; line-height: 19px; font-weight: 500; }
.object-agent-card small { color: #7b8392; font-size: 14px; line-height: 18px; }
.object-detail-header { grid-column: 1 / -1; }
.object-detail-header h1 { font-size: 32px; line-height: 38px; font-weight: 500; }
.object-detail-meta { min-width: 326px; }
.object-detail-gallery { margin-bottom: 0; }
.object-gallery-viewport { height: clamp(480px, 48vw, 620px); }
.object-quick-facts { margin-top: 34px; }
.object-detail-content-reference { max-width: none; }
.object-description-content::after { display: none; }
.object-description-content { max-height: 48px; }
.object-description-section.expanded .object-description-content { max-height: none; }
.object-scroll-nav { position: fixed; top: 0; right: 0; left: 0; z-index: 210; height: 66px; border-bottom: 1px solid #e1e4eb; background: rgba(255,255,255,.98); opacity: 0; visibility: hidden; transform: translateY(-100%); transition: opacity .2s ease, transform .28s cubic-bezier(.22,.61,.36,1), visibility .2s; }
.object-scroll-nav.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.object-scroll-nav .wrap { height: 100%; display: flex; align-items: center; justify-content: center; gap: 34px; }
.object-scroll-nav a { position: relative; height: 100%; display: flex; align-items: center; color: #151922; font-size: 16px; line-height: 20px; text-decoration: none; }
.object-scroll-nav a::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s; }
.object-scroll-nav a:hover, .object-scroll-nav a.active { color: var(--blue); }
.object-scroll-nav a.active::after { transform: scaleX(1); }
.object-infrastructure-section, .object-similar-section { scroll-margin-top: 88px; }
.object-infrastructure-section { position: relative; margin-top: 82px; }
.object-infrastructure-section > h3 { font-size: 32px; line-height: 38px; }
.object-yandex-map { position: relative; height: 560px; overflow: hidden; border: 1px solid #dce1ea; background: #eef2f6; }
.object-yandex-map iframe { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .28s ease; }
.object-yandex-map.loaded iframe { opacity: 1; }
.object-map-loading { position: absolute; inset: 0; display: grid; place-items: center; color: #7b8392; font-size: 14px; }
.object-map-route { position: absolute; right: 24px; bottom: 24px; z-index: 5; min-height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--blue); background: #fff; color: var(--blue); font: 500 15px/20px "CoFoSans", Helvetica, Arial, sans-serif; text-decoration: none; }
.object-map-route svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.object-map-route:hover { background: var(--blue); color: #fff; }
.object-infrastructure-tabs { position: relative; z-index: 2; }
.object-infrastructure-tab { min-height: 44px; }
.object-similar-section { padding-top: 16px; }

@media (max-width: 1100px) {
  .object-reference-layout { grid-template-columns: minmax(0,1fr) 286px; gap: 20px; }
  .object-gallery-viewport { height: 500px; }
}

@media (max-width: 820px) {
  .object-reference-layout { grid-template-columns: 1fr; }
  .object-reference-sidebar { grid-row: 2; }
  .object-sidebar-stack { position: static; grid-template-columns: 1fr 1fr; }
  .object-agent-card { align-self: stretch; }
  .object-scroll-nav { height: 56px; }
  .object-scroll-nav .wrap { justify-content: flex-start; gap: 24px; overflow-x: auto; }
  .object-yandex-map { height: 430px; }
}

@media (max-width: 560px) {
  .object-sidebar-stack { grid-template-columns: 1fr; }
  .object-detail-meta { min-width: 0; }
  .object-gallery-viewport { height: 360px; }
  .object-yandex-map { height: 360px; }
  .object-map-route { right: 12px; bottom: 12px; }
}

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 5000; padding: 10px 14px; border: 1px solid var(--blue); background: #fff; color: var(--blue); transform: translateY(-160%); transition: transform .18s ease; }
.skip-link:focus { transform: translateY(0); }
[id] { scroll-margin-top: 180px; }
.filter-save-link.saved { color: var(--color-primary-hover); }
.filter-map-link.active { color: var(--color-primary-hover); background: #f0f4ff; }
.catalog-map { position: relative; height: max(620px,calc(100vh - 118px)); min-height: 620px; margin-bottom: 28px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 22% 36%,rgba(108,92,231,.13) 0 4%,transparent 4.3%),radial-gradient(circle at 64% 58%,rgba(108,92,231,.12) 0 5%,transparent 5.3%),linear-gradient(135deg,#edf3f5 0 24%,#dfe9dd 24% 38%,#eaf0f5 38% 64%,#dce8db 64% 100%); }
.catalog-map-mode .filter-panel,.catalog-map-mode .breadcrumbs,.catalog-map-mode .catalog-head { display: none; }
.catalog-map-mode #main-content > .wrap { width: 100%; max-width: none; padding: 0; }
.catalog-map-mode .catalog-map { margin: 0; border-width: 1px 0 0; }
.catalog-map::before,.catalog-map::after { content: ""; position: absolute; inset: 12% -10%; border: 2px solid rgba(255,255,255,.9); border-radius: 45%; transform: rotate(-13deg); }
.catalog-map::after { inset: 34% -18%; transform: rotate(11deg); }
.catalog-map-canvas { position: absolute; inset: 0; z-index: 2; }
.catalog-map-marker { position: absolute; left: var(--marker-left); top: var(--marker-top); min-width: 82px; padding: 8px 10px; border: 1px solid #fff; background: var(--blue); color: #fff; font-size: 13px; line-height: 1; text-align: center; box-shadow: 0 5px 16px rgba(25,67,130,.22); transform: translate(-50%,-50%); transition: background-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.catalog-map-marker::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.catalog-map-marker:hover,.catalog-map-marker:focus-visible { background: var(--color-primary-hover); box-shadow: 0 8px 22px rgba(25,67,130,.3); transform: translate(-50%,-50%) scale(1.04); }
.catalog-map-toolbar { position: absolute; top: 22px; left: 22px; z-index: 8; display: flex; gap: 16px; }
.catalog-map-toolbar button { height: 42px; padding: 0 18px; display: inline-flex; align-items: center; gap: 10px; border: 0; color: #fff; background: var(--blue); font: 400 16px/18px "CoFoSans", Helvetica, Arial, sans-serif; box-shadow: 0 5px 18px rgba(25,67,130,.2); cursor: pointer; }
.catalog-map-toolbar button:hover,.catalog-map-toolbar button:focus-visible { background: var(--color-primary); outline: 0; }
.catalog-map-toolbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.catalog-map-toolbar b { min-width: 24px; height: 24px; padding: 0 7px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 500; }
.catalog-map-filter-toggle i { width: 9px; height: 9px; margin-left: 10px; border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg) translateY(3px); transition: transform .25s ease; }
.catalog-map-filter-toggle[aria-expanded="false"] i { transform: rotate(225deg) translateY(3px); }
.catalog-map-list-toggle { background: rgba(18,35,56,.78) !important; }
.catalog-map-panel { position: absolute; top: 78px; left: 22px; z-index: 8; width: 360px; padding: 22px; display: grid; gap: 12px; background: #fff; box-shadow: 0 10px 34px rgba(30,48,72,.2); transform-origin: top left; transition: opacity .22s ease,transform .22s cubic-bezier(.22,1,.36,1),visibility .22s ease; }
.catalog-map-panel.collapsed { opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); }
.catalog-map-panel > button { min-height: 58px; padding: 8px 36px 8px 14px; position: relative; display: grid; gap: 3px; border: 1px solid var(--line); background: #fff; color: #172033; text-align: left; font-family: "CoFoSans", Helvetica, Arial, sans-serif; cursor: pointer; }
.catalog-map-panel > button:hover,.catalog-map-panel > button:focus-visible { border-color: var(--blue); outline: 0; }
.catalog-map-panel > button span { color: #7a8496; font-size: 12px; }
.catalog-map-panel > button strong { font-size: 15px; font-weight: 400; }
.catalog-map-panel > button i { position: absolute; top: 50%; right: 15px; width: 8px; height: 8px; border-right: 1.5px solid #667085; border-bottom: 1.5px solid #667085; transform: translateY(-70%) rotate(45deg); }
.catalog-map-panel > .catalog-map-more { min-height: 42px; display: block; border-color: var(--blue); color: var(--blue); text-align: center; }
.yandex-object-cluster { width: 46px; height: 46px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; background: rgba(237,244,255,.96); color: var(--blue); font: 500 14px/1 "CoFoSans", Helvetica, Arial, sans-serif; text-decoration: none; box-shadow: 0 3px 12px rgba(31,83,159,.18); transform: translate(-50%,-50%); transition: transform .18s ease,background .18s ease; }
.yandex-object-cluster:hover,.yandex-object-cluster:focus-visible { background: #fff; transform: translate(-50%,-50%) scale(1.08); outline: 0; }
.yandex-object-marker { position: relative; display: block; padding: 8px 10px; border: 1px solid #fff; background: var(--blue); color: #fff; font: 400 13px/15px "CoFoSans", Helvetica, Arial, sans-serif; text-decoration: none; white-space: nowrap; box-shadow: 0 5px 16px rgba(25,67,130,.22); transform: translate(-50%,-100%); transition: background-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.yandex-object-marker::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 9px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.yandex-object-marker:hover,.yandex-object-marker:focus-visible { z-index: 3; background: var(--color-primary-hover); box-shadow: 0 8px 22px rgba(25,67,130,.3); outline: 0; transform: translate(-50%,-100%) scale(1.04); }
.catalog-map-fallback { position: absolute; inset: 0; padding: 0; display: block; overflow: hidden; background: linear-gradient(135deg,#dfeee6,#eaf1f5 44%,#dcebdc); }
.catalog-map-fallback-grid { position: absolute; inset: -20%; opacity: .72; background-image: linear-gradient(27deg,transparent 47%,rgba(255,255,255,.92) 48% 49%,transparent 50%),linear-gradient(118deg,transparent 47%,rgba(255,255,255,.82) 48% 49%,transparent 50%); background-size: 210px 170px,260px 210px; transform: rotate(-4deg); }
.catalog-map-fallback-copy { position: absolute; right: 22px; bottom: 22px; z-index: 2; width: min(390px,calc(100% - 44px)); padding: 22px; display: grid; gap: 10px; background: rgba(255,255,255,.96); box-shadow: 0 8px 26px rgba(45,59,84,.16); }
.catalog-map-fallback-copy strong { color: #111827; font-size: 26px; font-weight: 500; }
.catalog-map-fallback-copy span { color: #667085; font-size: 15px; line-height: 1.45; }
.catalog-map-fallback-copy .btn { width: fit-content; margin-top: 8px; }
.catalog-map-fallback-points { position: absolute; inset: 0; }
.catalog-map-fallback-points a { position: absolute; left: var(--fallback-left); top: var(--fallback-top); z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--blue); border-radius: 50%; background: rgba(245,249,255,.96); color: var(--blue); text-decoration: none; box-shadow: 0 3px 12px rgba(31,83,159,.16); transform: translate(-50%,-50%); transition: transform .18s ease,background .18s ease; }
.catalog-map-fallback-points a.is-cluster { width: 46px; height: 46px; }
.catalog-map-fallback-points a:hover,.catalog-map-fallback-points a:focus-visible { z-index: 3; background: #fff; outline: 0; transform: translate(-50%,-50%) scale(1.08); }
.catalog-map-fallback-points span { color: var(--blue); font-size: 13px; font-weight: 500; }
.object-yandex-map { position: relative; width: 100%; height: 480px; overflow: hidden; border: 1px solid #dce1ea; background: #eef2f6; }
.object-yandex-map.object-map-fallback { display: grid; place-items: center; background: linear-gradient(145deg,#edf3f5,#e3ece2 52%,#eef2f7); }
.object-map-fallback > div { width: min(460px,calc(100% - 32px)); padding: 28px; display: grid; gap: 12px; background: rgba(255,255,255,.96); box-shadow: 0 10px 32px rgba(32,46,71,.12); }
.object-map-fallback strong { color: #111827; font-size: 24px; font-weight: 500; }
.object-map-fallback span { color: #667085; line-height: 1.45; }
.object-map-fallback .btn { width: fit-content; margin-top: 6px; }
.yandex-object-marker-main { transform: translate(-50%,-100%); }
@media (max-width: 720px) {
  .catalog-map { height: calc(100dvh - 72px); min-height: 560px; }
  .catalog-map-toolbar { top: 12px; left: 12px; right: 12px; gap: 8px; }
  .catalog-map-toolbar button { height: 40px; padding: 0 12px; font-size: 14px; }
  .catalog-map-list-toggle { margin-left: auto; }
  .catalog-map-panel { top: 64px; left: 12px; width: min(340px,calc(100% - 24px)); padding: 14px; }
  .catalog-map-panel > button { min-height: 52px; }
  .catalog-map { min-height: 470px; }
  .catalog-map-marker { min-width: 68px; padding: 7px 8px; font-size: 11px; }
  .catalog-map-summary { right: 12px; left: 12px; bottom: 12px; }
  .catalog-map-fallback-copy { right: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; }
  .catalog-map-fallback-copy strong { font-size: 19px; }
  .catalog-map-fallback-copy span { font-size: 13px; }
  .catalog-map-fallback-copy .btn { min-height: 40px; }
}

/* Compact mobile home search interaction pattern. */
.mobile-more-filters { display: none; }
.mobile-filter-modal[hidden] { display: none; }
.mobile-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  align-items: end;
  background: rgba(17, 24, 39, .46);
  opacity: 0;
  transition: opacity .22s ease;
}
.mobile-filter-modal.open { opacity: 1; }
.mobile-filter-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  max-height: 94dvh;
  background: #fff;
  transform: translateY(28px);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.mobile-filter-modal.open .mobile-filter-dialog { transform: translateY(0); }
.mobile-filter-header {
  min-height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3e7ef;
}
.mobile-filter-header h2 { margin: 0; font-size: 24px; line-height: 30px; }
.mobile-filter-close {
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mobile-filter-close span { position: absolute; top: 19px; left: 8px; width: 24px; height: 2px; background: #667085; }
.mobile-filter-close span:first-child { transform: rotate(45deg); }
.mobile-filter-close span:last-child { transform: rotate(-45deg); }
.mobile-filter-body { padding: 4px 20px 28px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-filter-section { padding: 18px 0; border-bottom: 1px solid #e3e7ef; }
.mobile-filter-section > label,
.mobile-filter-label { display: block; margin-bottom: 10px; color: #111827; font-size: 16px; font-weight: 600; line-height: 22px; }
.mobile-filter-section input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d5dae4;
  border-radius: 0;
  background: #fff;
  color: #111827;
  font: inherit;
}
.mobile-filter-section input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 1px var(--blue); }
.mobile-filter-range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-filter-blank-label { visibility: hidden; }
.mobile-segmented { display: grid; grid-template-columns: 1fr 1fr; }
.mobile-segmented button,
.mobile-filter-pills button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #d5dae4;
  background: #fff;
  color: #344054;
  font: inherit;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}
.mobile-segmented button + button { border-left: 0; }
.mobile-segmented button.active,
.mobile-filter-pills button.active { border-color: #b9d6ff; background: #e6edff; color: var(--blue); }
.mobile-sea-minutes { margin-top: 14px; }
.mobile-sea-minutes label { display: block; margin-bottom: 7px; color: #667085; font-size: 14px; }
.mobile-filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mobile-filter-footer {
  min-height: 72px;
  padding: 10px 20px max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: auto minmax(190px, 1fr);
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e3e7ef;
  background: #fff;
}
.mobile-filter-reset { padding: 10px 0; border: 0; background: transparent; color: #667085; font: inherit; cursor: pointer; }
.mobile-filter-reset span { font-size: 22px; vertical-align: -1px; }
.mobile-filter-apply { min-height: 48px; }
.mobile-filter-open { overflow: hidden; }

@media (max-width: 760px) {
  .hero-search-only .search-heading {
    display: none;
  }
  .hero-search-only .wrap {
    background: #fff;
  }
  .header-main-row .menu-toggle { flex: 0 0 auto; min-width: 78px; height: 44px; gap: 10px; }
  .header-main-row .menu-toggle-label { font-size: 16px; line-height: 20px; }
  .header-main-row .menu-toggle-icon,
  .header-main-row .menu-toggle-icon i { width: 22px; }

  .search-card { box-shadow: 0 8px 22px rgba(16, 24, 40, .08); }
  .tabs { padding: 0 12px; border-bottom: 0; background: #fff; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { min-height: 52px; padding: 0 16px; border-bottom: 2px solid transparent; background: #fff; font-size: 16px; }
  .tab.active { border-bottom-color: var(--blue); background: #fff; color: var(--blue); }
  .tab:hover:not(.active) { background: #f7f9fc; }

  .filter-form,
  .filter-form[data-kind] {
    padding: 18px 16px 20px;
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
    box-shadow: 0 8px 22px rgba(16, 24, 40, .08);
  }
  .filter-fields { grid-column: 1 / -1; gap: 12px; }

  .filter-form[data-kind="flats"] .mobile-primary-select > .filter-trigger,
  .filter-form[data-kind="flats"] .mobile-primary-rooms > .filter-trigger,
  .filter-form[data-kind="houses"] .mobile-primary-select > .filter-trigger,
  .filter-form[data-kind="land"] .mobile-primary-select > .filter-trigger,
  .filter-form[data-kind="commerce"] .mobile-primary-select > .filter-trigger { display: none; }

  .filter-form[data-kind="flats"] .mobile-primary-select > .dropdown-menu,
  .filter-form[data-kind="flats"] .mobile-primary-rooms > .dropdown-menu,
  .filter-form[data-kind="houses"] .mobile-primary-select > .dropdown-menu,
  .filter-form[data-kind="land"] .mobile-primary-select > .dropdown-menu,
  .filter-form[data-kind="commerce"] .mobile-primary-select > .dropdown-menu {
    position: static;
    display: grid !important;
    width: 100%;
    max-width: none;
    max-height: none;
    padding: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .filter-form[data-kind="flats"] .mobile-primary-select > .dropdown-menu { grid-template-columns: repeat(3, 1fr); }
  .filter-form[data-kind="flats"] .mobile-primary-rooms > .dropdown-menu .rooms-title { display: none; }
  .filter-form[data-kind="flats"] .mobile-primary-rooms > .dropdown-menu .rooms-grid { display: grid; grid-template-columns: 1.45fr repeat(5, .62fr); gap: 8px; }
  .filter-form[data-kind="flats"] .mobile-primary-rooms .room-option:nth-child(5),
  .filter-form[data-kind="flats"] .mobile-primary-rooms .room-option:nth-child(6) { grid-column: auto; }
  .filter-form[data-kind="houses"] .mobile-primary-select > .dropdown-menu,
  .filter-form[data-kind="land"] .mobile-primary-select > .dropdown-menu,
  .filter-form[data-kind="commerce"] .mobile-primary-select > .dropdown-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .filter-form .mobile-primary-select .dropdown-option,
  .filter-form .mobile-primary-rooms .room-option {
    min-width: 0;
    min-height: 48px;
    padding: 8px 6px;
    display: grid;
    place-items: center;
    border: 1px solid #d5dae4;
    background: #fff;
    color: #344054;
    font-size: 15px;
    line-height: 18px;
    text-align: center;
    white-space: normal;
  }
  .filter-form .mobile-primary-select .dropdown-option:hover,
  .filter-form .mobile-primary-rooms .room-option:hover { background: #f0f4ff; color: var(--blue); }
  .filter-form .mobile-primary-select .dropdown-option.active,
  .filter-form .mobile-primary-rooms .room-option.active { border-color: #b9d6ff; background: #e6edff; color: var(--blue); }
  .filter-form[data-kind="flats"] .mobile-primary-address { display: none; }
  .filter-form .mobile-primary-range .filter-trigger { height: 52px; }
  .filter-form .mobile-primary-range .dropdown-menu { left: 0; right: auto; width: min(100%, 360px); }

  .mobile-more-filters {
    grid-column: 1 / -1;
    width: max-content;
    min-height: 44px;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    color: var(--blue);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: color .18s ease;
  }
  .mobile-more-filters:hover { color: var(--blue-hover); }
  .mobile-more-filters svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

  .filter-form > .map-search-link,
  .filter-form > button[type="submit"] { grid-row: auto; min-height: 50px; height: 50px; }
  .filter-form > .map-search-link { grid-column: 1; }
  .filter-form > button[type="submit"] { grid-column: 2; background: var(--blue); border-color: var(--blue); color: #fff; }
  .filter-form > button[type="submit"]:hover { background: var(--blue-hover); border-color: var(--blue-hover); color: #fff; }
}

@media (max-width: 430px) {
  .header-row { width: calc(100% - 24px); }
  .header-main-row .logo { width: 150px; }
  .header-region { padding: 0 10px; }
  .header-main-row .menu-toggle { min-width: 72px; gap: 8px; }
  .filter-form[data-kind="flats"] .mobile-primary-rooms > .dropdown-menu .rooms-grid { gap: 6px; }
  .filter-form .mobile-primary-select .dropdown-option,
  .filter-form .mobile-primary-rooms .room-option { font-size: 14px; }
  .mobile-filter-footer { grid-template-columns: 1fr; }
  .mobile-filter-reset { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-filter-modal,
  .mobile-filter-dialog,
  .menu-toggle-icon i { transition: none; }
}

/* Services journey in the shared blue visual system. */
.services {
  padding: 96px 0;
  overflow: hidden;
  background: #f3f7f5;
}
.services-layout {
  grid-template-columns: minmax(410px, .86fr) minmax(580px, 1.14fr);
  gap: clamp(44px, 5.4vw, 72px);
  align-items: stretch;
}
.services-intro {
  position: relative;
  min-height: 560px;
  padding: 56px 48px 46px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: hidden;
  border-radius: 18px;
  background: var(--color-primary);
  color: #fff;
}
.services-intro::after {
  content: "%";
  position: absolute;
  right: -36px;
  bottom: -78px;
  color: rgba(230,237,255,.22);
  font-size: 268px;
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}
.services-intro h2 { position: relative; z-index: 1; width: 100%; max-width: 100%; margin: 0; font-size: clamp(46px, 3.8vw, 56px); line-height: 1.06; font-weight: 700; letter-spacing: -.025em; text-align: left; }
.services-intro h2 > span,.services-title-main > span { display: block; margin-left: 0; text-align: left; }
.services-intro h2 .services-title-prefix { max-width: 100%; color: #fff; font-size: .53em; line-height: 1.15; font-weight: 700; letter-spacing: -.012em; white-space: nowrap; }
.services-intro h2 .services-title-main { max-width: 450px; margin-top: 18px; text-transform: none; }
.services-lead { position: relative; z-index: 1; max-width: 420px; margin: 46px 0 0; color: rgba(255,255,255,.92); font-size: 20px; line-height: 1.45; }
.services-cta { position: relative; z-index: 1; min-width: 230px; margin-top: 52px; margin-bottom: auto; border-color: #fff; border-radius: 10px; background: #fff; color: var(--color-primary); }
.services-cta:hover,.services-cta:focus-visible { border-color: #111827; background: #111827; color: #fff; }
.service-list { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; counter-reset: service-step; }
.service-item {
  position: relative;
  min-height: 0;
  padding: 24px 34px 24px clamp(138px, 12vw, 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(108,92,231,.13);
  border-radius: 16px;
  background: #fff;
  isolation: isolate;
  transition: transform .36s cubic-bezier(.22,1,.36,1), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.service-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(108,92,231,.18), rgba(108,92,231,0) 52%);
  opacity: 0;
  transition: opacity .32s ease;
}
.service-item:hover,.service-item:focus-within { border-color: var(--color-primary); box-shadow: 0 16px 38px rgba(31,95,214,.14); transform: translateX(6px); background: #fff; }
.service-item:hover::after,.service-item:focus-within::after { opacity: 1; }
.service-number {
  position: absolute;
  left: -4px;
  top: 0;
  bottom: 0;
  z-index: -1;
  width: 140px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--color-primary);
  font-size: clamp(176px, 10.8vw, 198px);
  line-height: .7;
  font-weight: 500;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1px rgba(108,92,231,0);
  text-stroke: 1px rgba(108,92,231,0);
  opacity: .9;
  transform: scaleX(.9) scaleY(1.18);
  transform-origin: left center;
  transition: transform .48s cubic-bezier(.22,1,.36,1), color .32s ease, -webkit-text-stroke-color .32s ease;
}
.service-item:hover,.service-item:focus-within { transform: none; }
.service-item:hover .service-number,.service-item:focus-within .service-number {
  color: transparent;
  -webkit-text-stroke-color: var(--color-primary);
  text-stroke-color: var(--color-primary);
  opacity: 1;
  transform: scaleX(.76) scaleY(.86);
}
.service-copy { position: relative; z-index: 1; width: 100%; }
.service-step { display: block; margin-bottom: 8px; color: var(--color-primary); font-size: 14px; line-height: 18px; font-weight: 700; letter-spacing: 0; }
.service-item h3 { max-width: 460px; margin: 0 0 8px; color: #111827; font-size: clamp(21px, 2vw, 26px); line-height: 1.08; font-weight: 500; }
.service-item p { max-width: 500px; margin: 0; color: #344054; font-size: 16px; line-height: 1.42; }
.motion-visible .service-item { animation: services-card-in .72s both cubic-bezier(.22,1,.36,1); }
.motion-visible .service-item:nth-child(2) { animation-delay: .07s; }
.motion-visible .service-item:nth-child(3) { animation-delay: .14s; }
.motion-visible .service-item:nth-child(4) { animation-delay: .21s; }
@keyframes services-card-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 900px) {
  .services { padding: 64px 0; }
  .services-layout { grid-template-columns: 1fr; gap: 12px; }
  .services-intro { min-height: 420px; padding-top: 48px; }
  .service-list { grid-template-rows: none; }
}
@media (max-width: 560px) {
  .services { padding: 48px 0; }
  .services .wrap { width: calc(100% - 24px); }
  .services-intro { min-height: 430px; padding: 30px 24px 32px; border-radius: 14px; }
  .services-intro h2 { max-width: 330px; padding-right: 8px; font-size: 40px; line-height: 1.01; }
  .services-intro h2 .services-title-prefix { font-size: .56em; white-space: normal; }
  .services-intro h2 .services-title-main { margin-top: 14px; }
  .services-lead { margin-top: 30px; font-size: 17px; }
  .services-cta { margin-top: 36px; margin-bottom: auto; }
  .service-list { grid-template-columns: 1fr; gap: 8px; }
  .service-item { min-height: 164px; padding: 24px 18px 24px 136px; border-radius: 14px; }
  .service-number { left: -7px; width: 128px; font-size: 168px; }
  .service-copy { padding: 2px 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.96) 84%, rgba(255,255,255,0) 100%); }
  .service-item:hover .service-copy,.service-item:focus-within .service-copy { background: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.96) 84%, rgba(255,255,255,0) 100%); }
  .service-item h3 { font-size: 21px; }
  .service-item p { font-size: 14px; }
  .service-item:hover,.service-item:focus-within { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: reduce) {
  .service-item,.service-number { transition: none; animation: none !important; }
  .service-item:hover { transform: none; }
}

/* Exact mobile navigation and filter typography from the system interface. */
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  background: #fff;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.mobile-menu-panel {
  min-height: 100%;
  height: 100dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  background: #fff;
  transform: translateY(-12px);
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu.open .mobile-menu-panel { transform: translateY(0); }
.mobile-menu-header {
  min-height: 66px;
  padding: 0 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid #edf0f5;
}
.mobile-menu-header strong { font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 24px; line-height: 28px; font-weight: 400; }
.mobile-menu-region { justify-self: center; margin: 0; min-height: 36px; }
.mobile-menu-close { position: relative; justify-self: end; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mobile-menu-close span { position: absolute; top: 19px; left: 8px; width: 24px; height: 1.5px; background: #667085; }
.mobile-menu-close span:first-child { transform: rotate(45deg); }
.mobile-menu-close span:last-child { transform: rotate(-45deg); }
.mobile-menu-content { min-height: 0; padding: 20px 22px; overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu-call,
.mobile-menu-sell { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 20px; font-weight: 400; }
.mobile-menu-call svg { width: 18px; height: 18px; }
.mobile-menu-sell { margin-top: 12px; border: 1px solid var(--blue); color: var(--blue); background: #fff; }
.mobile-menu-navigation { margin-top: 22px; display: grid; }
.mobile-menu-accordion,
.mobile-menu-accordion > button { width: 100%; }
.mobile-menu-navigation > a,
.mobile-menu-accordion > button { min-height: 52px; padding: 0; display: flex; align-items: center; justify-content: space-between; border: 0; border-bottom: 1px solid #e4e8ef; background: transparent; color: #344054; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 20px; font-weight: 400; text-align: left; cursor: pointer; }
.mobile-menu-navigation > a:hover,
.mobile-menu-navigation > a:focus-visible,
.mobile-menu-accordion > button:hover,
.mobile-menu-accordion > button:focus-visible { color: var(--blue); outline: 0; }
.mobile-menu-accordion > button i { width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid var(--blue); border-bottom: 1.5px solid var(--blue); transform: rotate(45deg) translateY(-2px); transition: transform .22s ease; }
.mobile-menu-accordion.expanded > button i { transform: rotate(225deg) translate(-2px, -2px); }
.mobile-menu-accordion > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s cubic-bezier(.22, 1, .36, 1); }
.mobile-menu-accordion.expanded > div { grid-template-rows: 1fr; }
.mobile-menu-accordion > div > div { min-height: 0; overflow: hidden; }
.mobile-menu-accordion > div a { min-height: 42px; padding: 0 14px; display: flex; align-items: center; color: #667085; font-size: 15px; line-height: 18px; transition: color .18s ease, background .18s ease; }
.mobile-menu-accordion > div a:hover,
.mobile-menu-accordion > div a:focus-visible { background: #f0f4ff; color: var(--blue); outline: 0; }
.mobile-menu-contact { min-height: 78px; padding: 10px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid #edf0f5; }
.mobile-menu-contact > div { min-width: 0; display: grid; gap: 4px; }
.mobile-menu-contact > div a { font-size: 18px; line-height: 22px; font-weight: 400; }
.mobile-menu-contact > div span { color: #8a93a5; font-size: 12px; line-height: 15px; }
.mobile-menu-phone-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--blue); color: var(--blue); }
.mobile-menu-phone-button svg { width: 19px; height: 19px; }
.mobile-menu-bottom { min-height: 64px; padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid #e5e9f0; background: #fff; }
.mobile-menu-bottom a { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #7d8594; font-size: 10px; line-height: 12px; }
.mobile-menu-bottom a.active { background: #e6edff; color: var(--blue); }
.mobile-menu-bottom svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu-bottom a.active svg { fill: currentColor; stroke: currentColor; }
.mobile-menu-open { overflow: hidden; touch-action: none; overscroll-behavior: none; }

.address-suggestion-loader { min-height: 58px; display: grid; place-items: center; background: #fff; }
.address-suggestion-loader span { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--blue); animation: addressBubble 1s ease-in-out infinite; }
.address-suggestion-loader span::after { content: ""; position: absolute; inset: -7px; border: 1px solid rgba(108,92,231,.28); border-radius: 50%; animation: addressBubbleRing 1s ease-out infinite; }
@keyframes addressBubble { 50% { transform: scale(.72); opacity: .72; } }
@keyframes addressBubbleRing { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }

@media (max-width: 760px) {
  .mobile-menu { display: block; }
  .header .site-nav,
  .header.menu-open .site-nav { display: none; }
  .header-main-row .menu-toggle { min-width: 74px; padding: 0; justify-content: flex-end; border: 0; }
  .header-main-row .menu-toggle-label { display: inline; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 18.4px; font-weight: 400; }
  .header-main-row .menu-toggle-icon { width: 24px; height: 18px; }
  .header-main-row .menu-toggle-icon i { width: 24px; height: 1.5px; }
  .menu-open .menu-toggle-icon i:first-child,
  .menu-open .menu-toggle-icon i:nth-child(2),
  .menu-open .menu-toggle-icon i:last-child { transform: none; opacity: 1; }

  .tabs,
  .tab,
  .filter-form,
  .filter-form button,
  .filter-form input,
  .mobile-more-filters,
  .mobile-filter-dialog { font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-weight: 400; }
  .tab { font-size: 16px; line-height: 18px; font-weight: 400; }
  .filter-form .mobile-primary-select .dropdown-option,
  .filter-form .mobile-primary-rooms .room-option { font-size: 15px; line-height: 18px; font-weight: 400; }
  .filter-form .mobile-primary-select .dropdown-option.active,
  .filter-form .mobile-primary-rooms .room-option.active { font-weight: 400; }
  .filter-form,
  .filter-fields { overflow: visible; }
  .filter-fields > * { position: relative; z-index: 1; }
  .filter-fields > .address-is-open { z-index: 500; }
  .address-suggestions { top: calc(100% + 4px); left: 0; right: 0; width: 100%; max-width: 100%; max-height: 292px; border-radius: 0; }
  .address-suggestion { min-height: 50px; padding: 14px 16px; font-family: "CoFoSans", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 18px; font-weight: 400; }
  .field:focus,
  .filter-trigger:focus-visible,
  .select-btn:focus-visible,
  .range-input:focus,
  .mobile-filter-section input:focus { border-color: var(--blue); outline: 0; box-shadow: none; }
  .mobile-filter-section > label,
  .mobile-filter-label { font-weight: 400; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu,
  .mobile-menu-panel,
  .mobile-menu-accordion > div,
  .mobile-menu-accordion > button i,
  .address-suggestion-loader span,
  .address-suggestion-loader span::after { transition: none; animation: none; }
}

/* Independent temporary identity for the Crimea real-estate project. */
.site-wordmark {
  width: auto !important;
  min-width: max-content;
  display: inline-flex !important;
  align-items: baseline;
  gap: 6px;
  overflow: visible;
  color: #172522;
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.025em;
  text-decoration: none;
}
.site-wordmark span,
.site-wordmark strong { display: inline; color: inherit; font: inherit; }
.site-wordmark strong { color: var(--blue); font-weight: 750; }
.site-wordmark:hover,
.site-wordmark:focus-visible { color: #172522; outline: none; }
.site-wordmark:hover strong,
.site-wordmark:focus-visible strong { color: var(--blue-dark); }
.footer-logo.site-wordmark { width: auto; margin: 0 0 28px; font-size: 23px; }

/* Временная независимая версия для согласования с поддержкой */
.header-wordmark {
  flex: 0 0 auto;
  max-width: none;
  margin: 0;
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}
.hero-search-only {
  padding: 38px 0 34px;
  background:
    radial-gradient(circle at 12% 14%, rgba(108, 92, 231, .15), transparent 28%),
    linear-gradient(180deg, #f1fbf8 0%, #fff 100%);
}
.hero-search-only .search-card {
  margin: 0;
}
.hero-search-only .search-heading {
  display: block;
}
.hero-search-only .search-heading h2 {
  color: #fff;
}
.hero-search-only .search-heading p {
  color: rgba(255, 255, 255, .76);
}

@media (min-width: 761px) {
  .hero-search-only > .wrap {
    padding-bottom: 0;
  }

  .hero-search-only .search-card {
    width: calc(100% - 80px);
    min-height: 272px;
    display: flex;
    flex-direction: column;
  }

  .hero-search-only .tabs {
    margin-top: auto;
  }
}

.footer-grid > div:first-child {
  align-self: start;
}
.footer-logo.site-wordmark {
  margin-bottom: 22px;
}
.services-intro h2 .services-title-main {
  max-width: 430px;
}

@media (max-width: 920px) {
  .header-wordmark {
    max-width: 205px;
    font-size: 18px;
  }
  .hero-search-only {
    padding: 22px 0 28px;
  }
}

@media (max-width: 560px) {
  .header-wordmark {
    max-width: 184px;
    font-size: 16px;
  }
  .hero-search-only {
    padding: 14px 0 24px;
  }
  .hero-search-only .wrap {
    padding-inline: 14px;
  }
}

/* Compact standalone mark in the header. */
.header-row .site-logo-mark {
  width: 49px;
  height: 38px;
  overflow: visible;
}
.header-row .site-logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.hero > .wrap { background: var(--color-primary); }
.hero-banner-neutral {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 22%, rgba(244,208,141,.26), transparent 24%),
    linear-gradient(122deg, var(--color-primary) 0%, var(--color-primary) 44%, #8b7ff0 100%);
  color: #fff;
}
.hero-neutral-copy {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 5.4%;
  width: min(540px, 49%);
  transform: translateY(-50%);
}
.hero-neutral-copy > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  color: #d9f1ed;
  font-size: 14px;
  line-height: 1;
  letter-spacing: .01em;
}
.hero-neutral-copy h1 {
  max-width: 520px;
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: .98;
  font-weight: 650;
  letter-spacing: -.045em;
}
.hero-neutral-copy p {
  max-width: 470px;
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 18px;
  line-height: 1.45;
}
.hero-neutral-visual {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 49%;
  overflow: hidden;
}
.hero-sun {
  position: absolute;
  top: 13%;
  right: 12%;
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f4d08d;
  box-shadow: 0 0 0 24px rgba(244,208,141,.08);
}
.hero-coast {
  position: absolute;
  right: -8%;
  bottom: -46%;
  width: 84%;
  aspect-ratio: 1.35;
  border-radius: 52% 0 0 0;
  transform: rotate(-8deg);
}
.hero-coast-one { background: #dceeea; }
.hero-coast-two {
  right: -22%;
  bottom: -57%;
  width: 78%;
  background: #b9d6ff;
  transform: rotate(12deg);
}
.hero-home-outline {
  position: absolute;
  right: 20%;
  bottom: 22%;
  width: 180px;
  height: 135px;
  border: 3px solid rgba(255,255,255,.78);
  border-top: 0;
}
.hero-home-outline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: -67px;
  width: 126px;
  height: 126px;
  border-top: 3px solid rgba(255,255,255,.78);
  border-left: 3px solid rgba(255,255,255,.78);
  transform: rotate(45deg);
}
.hero-home-outline::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: 0;
  width: 42px;
  height: 72px;
  border: 3px solid rgba(255,255,255,.78);
  border-bottom: 0;
}

@media (max-width: 760px) {
  .site-wordmark { gap: 4px; font-size: 17px; }
  .footer-logo.site-wordmark { font-size: 21px; }
  .header-row .site-logo-mark {
    width: 44px;
    height: 34px;
  }
  .hero-banner-neutral { min-height: 224px; aspect-ratio: auto; }
  .hero-neutral-copy { left: 18px; width: 58%; }
  .hero-neutral-copy > span { min-height: 24px; padding: 0 9px; font-size: 11px; }
  .hero-neutral-copy h1 { margin: 13px 0 10px; font-size: clamp(27px, 8.3vw, 35px); line-height: 1.02; }
  .hero-neutral-copy p { max-width: 250px; font-size: 12px; line-height: 1.35; }
  .hero-neutral-visual { left: 50%; }
  .hero-sun { top: 12%; right: 12%; width: 64px; box-shadow: 0 0 0 12px rgba(244,208,141,.08); }
  .hero-coast-one { right: -14%; bottom: -42%; width: 112%; }
  .hero-coast-two { right: -34%; bottom: -52%; width: 105%; }
  .hero-home-outline { right: 12%; bottom: 19%; width: 90px; height: 67px; border-width: 2px; }
  .hero-home-outline::before { left: 11px; top: -34px; width: 63px; height: 63px; border-width: 2px 0 0 2px; }
  .hero-home-outline::after { right: 12px; width: 22px; height: 37px; border-width: 2px 2px 0; }
}

@media (max-width: 760px) {
  .hero-search-only {
    padding: 0 0 24px;
    background: #fff;
  }
  .hero-search-only .search-heading {
    display: none;
  }
  .hero-search-only .wrap {
    padding-inline: 0;
    background: #fff;
  }
}

/* Soft Tech Real Estate 2026 visual system.
   This final layer changes presentation only; layout order and JS hooks stay intact. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggOxSuXd.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045f, U+0490-0491, U+04b0-04b1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/manrope/v20/xn7gYHE41ni1AdIRggexSg.woff2") format("woff2");
  unicode-range: U+0000-00ff, U+0131, U+0152-0153, U+02bb-02bc, U+02c6, U+02da, U+02dc, U+0304, U+0308, U+0329, U+2000-206f, U+20ac, U+2122, U+2191, U+2193, U+2212, U+2215, U+feff, U+fffd;
}

:root {
  --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);
}

html { background: var(--bg-primary); }
body { background: var(--bg-primary); color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; font-size: 16px; line-height: 1.5; }
.wrap { width: min(var(--container), calc(100% - 64px)); }
.main, .catalog, .object-page { background: var(--bg-primary); }
button, a, input, select, textarea { transition-duration: 180ms; transition-timing-function: ease-out; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(108, 92, 231, .22); outline-offset: 2px; }

/* Brand wordmark: the house is a negative-space silhouette inside P. */
.site-wordmark { gap: 10px; color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -.045em; }
.site-wordmark .wordmark-sp { display: inline-flex; align-items: baseline; gap: 0; color: var(--color-primary); font: inherit; }
.site-wordmark .wordmark-sp > span { color: inherit; font: inherit; }
.site-wordmark .wordmark-p { position: relative; }
.site-wordmark .wordmark-p i { position: absolute; top: .22em; left: .31em; width: .34em; height: .32em; background: var(--surface-primary); clip-path: polygon(50% 0, 100% 42%, 86% 42%, 86% 100%, 14% 100%, 14% 42%, 0 42%); }
.site-wordmark strong { color: var(--text-primary); font-weight: 700; letter-spacing: .08em; }
.site-wordmark:hover .wordmark-sp, .site-wordmark:focus-visible .wordmark-sp { color: var(--color-primary-hover); }
.header-wordmark { font-size: 22px; }
.footer-logo.site-wordmark { font-size: 24px; }

/* Header */
.header { background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--border-default); box-shadow: none; backdrop-filter: blur(8px); }
.header-main-row { height: 72px; }
.site-nav { border-top: 1px solid var(--border-default); border-bottom: 0; }
.nav-row { min-height: 44px; }
.nav-row a { color: var(--text-secondary); font: 600 14px/20px "Manrope", Arial, sans-serif; }
.nav-row a:hover { color: var(--color-primary); }
.nav-row a::after { bottom: -12px; background: var(--color-primary); }
.header-favorites { border-radius: var(--radius-sm); color: var(--text-primary); }
.header-favorites:hover { background: var(--color-primary-light); color: var(--color-primary); }
.header-favorites .badge { background: var(--color-primary); }
.header-phone .phone { color: var(--text-primary); font: 600 14px/20px "Manrope", Arial, sans-serif; }
.header-phone-icon { color: var(--color-primary); }

/* Shared controls */
.btn { min-height: 44px; border: 1px solid var(--color-primary); border-radius: var(--radius-md); background: var(--color-primary); color: #fff; font-family: "Manrope", Arial, sans-serif; font-weight: 700; box-shadow: none; }
.btn:hover, .btn:focus-visible { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-outline { background: var(--surface-primary); color: var(--color-primary); }
.btn-outline:hover, .btn-outline:focus-visible { background: var(--color-primary-light); border-color: var(--color-primary); color: var(--color-primary-hover); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Hero and search */
.hero-search-only { padding: 32px 0 48px; background: var(--bg-primary); }
.hero-search-only > .wrap { min-height: 420px; padding: 48px; display: flex; align-items: flex-end; border-radius: var(--radius-xl); background: linear-gradient(90deg, rgba(23, 25, 35, .72) 0%, rgba(23, 25, 35, .38) 52%, rgba(108, 92, 231, .16) 100%), url("assets/hero-interior-green-v2.png") center / cover no-repeat; box-shadow: var(--shadow-sm); }
.hero-search-only .search-card { width: 100%; min-height: 0; margin: 0; padding: 0; background: transparent; }
.hero-search-only .search-heading { display: block; max-width: 680px; padding: 0 0 24px; }
.hero-search-only .search-heading h2 { margin: 0; color: #fff; font-size: clamp(40px, 4.25vw, 56px); line-height: 1.08; font-weight: 700; letter-spacing: -.035em; }
.hero-search-only .search-heading p { margin-top: 12px; color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.5; }
.tabs { height: auto; padding: 4px; gap: 4px; border: 1px solid rgba(255, 255, 255, .7); border-radius: var(--radius-md); background: rgba(255, 255, 255, .96); }
.tab { min-height: 40px; padding: 0 16px; border-radius: var(--radius-sm); color: var(--text-secondary); font: 600 14px/20px "Manrope", Arial, sans-serif; }
.tab:hover, .tab:focus-visible, .tab.active { background: var(--color-primary-light); color: var(--color-primary); }
.filter-form { margin-top: 8px; padding: 16px; gap: 10px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-primary); box-shadow: var(--shadow-md); }
.filter-trigger, .field, .select-btn, .catalog-address-field, .range-input, .mobile-filter-section input { min-height: 44px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-primary); color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; }
.filter-trigger:hover, .select-btn:hover, .field:hover { border-color: rgba(108, 92, 231, .48); color: var(--text-primary); }
.filter-trigger:focus-visible, .select-btn:focus-visible, .field:focus, .catalog-address-field:focus, .range-input:focus, .mobile-filter-section input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, .12); outline: 0; }
.filter-form .dropdown-menu, .floating-menu, #filter-dropdown, .sort-menu, .address-suggestions { border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-primary); box-shadow: var(--shadow-md); }
.dropdown-option:hover, .dropdown-option.active, .address-suggestion:hover, .address-suggestion.active { background: var(--color-primary-light); color: var(--color-primary-hover); }
.room-option { border-radius: var(--radius-sm); }
.room-option:hover, .room-option.active { background: var(--color-primary); border-color: var(--color-primary); }
.dual-range-fill { background: var(--color-primary); }
.dual-range input[type="range"]::-webkit-slider-thumb { border-color: var(--color-primary); }
.dual-range input[type="range"]::-moz-range-thumb { border-color: var(--color-primary); }

/* Quick services */
.directions { padding: 48px 0 64px; background: var(--bg-primary); }
.directions .direction-grid { gap: 16px; }
.directions .direction-card, .directions .direction-card-primary { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-primary); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.directions .direction-card:hover, .directions .direction-card-primary:hover { border-color: rgba(108, 92, 231, .42); background: var(--surface-primary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.directions .direction-card h3 { color: var(--text-primary); font-weight: 700; }
.directions .direction-card p, .directions .direction-card-primary p { color: var(--text-secondary); }
.directions .direction-link, .directions .direction-card-primary .direction-link { border-radius: var(--radius-md); background: var(--color-primary-light); color: var(--color-primary); font-weight: 700; }
.directions .direction-card:hover .direction-link { background: var(--color-primary); color: #fff; }
.directions .direction-icon, .service-icon { filter: hue-rotate(28deg) saturate(.82); }

/* Catalog and listing cards */
.catalog-preview { padding: 64px 0 80px; background: var(--surface-primary); }
.catalog-title, .objects h2, .section-heading h2 { color: var(--text-primary); font-weight: 700; letter-spacing: -.025em; }
.catalog-title { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; }
.catalog-title .count { color: var(--text-muted); }
.filter-panel { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--border-default); box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); }
.filter-title, .filter-action, .sort-button { color: var(--color-primary); font-weight: 600; }
.filter-title:hover, .filter-action:hover, .sort-button:hover { color: var(--color-primary-hover); }
.chips { gap: 8px; }
.chip { min-height: 32px; padding: 6px 10px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary-hover); font-weight: 600; }
.chip:hover { border-color: rgba(108, 92, 231, .32); background: var(--color-primary-light); color: var(--color-primary-hover); }
.view-switch { padding: 4px; border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.view-btn { min-height: 36px; border-radius: var(--radius-sm); }
.view-btn.active { background: var(--color-primary-light); color: var(--color-primary); }
.listing, .object-card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-primary); box-shadow: var(--shadow-sm); }
.listing:hover, .object-card:hover { border-color: rgba(108, 92, 231, .36); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.main-photo, .thumb, .photo, .object-card-photo { border-radius: var(--radius-md); }
.listing-title, .object-card h3 { color: var(--text-primary); font-weight: 700; }
.price, .object-card-price { color: var(--text-primary); font-weight: 700; }
.address, .description, .object-card-address, .objects p { color: var(--text-secondary); }
.metro span, .tag, .object-badge, .listing-badge { border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary); }
.favorite { background: rgba(255, 255, 255, .94); border-radius: var(--radius-md); color: var(--text-primary); }
.favorite:hover, .favorite.active { background: var(--color-primary-light); color: var(--color-primary); }
.load-more { min-height: 48px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-primary); color: var(--color-primary); font-weight: 700; }
.load-more:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.pagination button { border-radius: var(--radius-sm); }
.pagination button.active { background: var(--color-primary); color: #fff; }

/* Important services section: same position, new split visual. */
.services { padding: 80px 0; background: var(--bg-primary); }
.services-layout { grid-template-columns: minmax(320px, .82fr) minmax(0, 1.18fr); gap: 24px; align-items: stretch; }
.services-intro { min-height: 560px; padding: 164px 48px 48px; display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius-xl); background: linear-gradient(135deg, var(--color-primary), var(--color-primary-hover)); box-shadow: var(--shadow-md); }
.services-intro::after { content: "%"; right: -18px; bottom: -82px; width: auto; height: auto; border: 0; background: transparent; color: rgba(255, 255, 255, .1); font-size: 280px; line-height: 1; font-weight: 800; transform: none; }
.services-intro h2 { font-size: clamp(36px, 3vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.035em; }
.services-intro h2 .services-title-prefix { color: rgba(255, 255, 255, .74); font-size: 16px; line-height: 1.4; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.services-intro h2 .services-title-main { max-width: 430px; margin-top: 0; }
.services-lead { margin-top: 46px; color: rgba(255, 255, 255, .82); font-size: 18px; line-height: 1.55; }
.services-cta { margin-top: 52px; margin-bottom: auto; border-color: #fff; background: #fff; color: var(--color-primary-hover); }
.services-cta:hover, .services-cta:focus-visible { border-color: var(--surface-secondary); background: var(--surface-secondary); color: var(--color-primary-hover); }
.service-list { display: grid; grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 12px; border: 0; }
.service-item {
  position: relative;
  min-height: 0;
  padding: 24px 34px 24px clamp(138px, 12vw, 160px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--border-default);
  border-radius: 16px;
  background: var(--surface-primary);
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .36s cubic-bezier(.22, 1, .36, 1), border-color .3s ease, box-shadow .3s ease, background-color .3s ease;
}
.service-item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(108, 92, 231, .24), rgba(108, 92, 231, .08) 38%, rgba(108, 92, 231, 0) 62%); opacity: 0; transition: opacity .32s ease; }
.service-item:hover,
.service-item:focus-within { border-color: rgba(108, 92, 231, .44); box-shadow: var(--shadow-md); transform: translateX(6px); }
.service-item:hover::after,
.service-item:focus-within::after { opacity: 1; }
.service-item .service-number {
  position: absolute;
  top: 50%;
  bottom: auto;
  left: -3px;
  z-index: 0;
  width: 150px;
  height: auto;
  display: block;
  color: var(--color-primary);
  font-family: "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: clamp(194px, 10.6vw, 204px);
  line-height: .8;
  font-weight: 700;
  letter-spacing: -.025em;
  opacity: .9;
  transform: translateY(-50%);
  transform-origin: left center;
  -webkit-text-stroke: 0;
  text-stroke: 0;
  pointer-events: none;
  transition: transform .48s cubic-bezier(.22, 1, .36, 1), color .32s ease, -webkit-text-stroke-color .32s ease;
}
.service-item:hover .service-number,
.service-item:focus-within .service-number {
  color: transparent;
  opacity: 1;
  transform: translateY(-50%) scale(.92);
  -webkit-text-stroke: 1.5px var(--color-primary);
  text-stroke: 1.5px var(--color-primary);
}
.service-item:nth-child(1) .service-number { left: -4px; }
.service-item:nth-child(2) .service-number { left: -3px; }
.service-item:nth-child(3) .service-number { left: -3px; }
.service-item:nth-child(4) .service-number { left: -4px; }
.service-copy { position: relative; z-index: 1; width: 100%; min-width: 0; }
.service-step { color: var(--color-primary); font-size: 11px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.service-item h3 { margin: 8px 0; color: var(--text-primary); font-size: 22px; line-height: 1.25; font-weight: 700; }
.service-item p { color: var(--text-secondary); line-height: 1.5; }

/* Forms, overlays, map and object page */
.modal-card, .advanced-filter-dialog, .mobile-filter-dialog, .favorite-notice { border: 1px solid var(--border-default); border-radius: var(--radius-xl); background: var(--surface-primary); box-shadow: 0 24px 64px rgba(23, 25, 35, .14); }
.modal-head, .advanced-filter-header, .mobile-filter-header { border-bottom-color: var(--border-default); }
.modal-title, .advanced-filter-title, .mobile-filter-header h2 { color: var(--text-primary); font-weight: 700; }
.modal-body input { border: 1px solid var(--border-default); border-radius: var(--radius-md); }
.modal-body input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(108, 92, 231, .12); outline: 0; }
.map-toggle input:checked + span { background: var(--color-primary); }
.catalog-map, .catalog-map-panel, .object-map, .object-detail-card, .object-sidebar-card { border-radius: var(--radius-lg); border-color: var(--border-default); box-shadow: var(--shadow-sm); }
.catalog-map-marker { background: var(--color-primary); }
.object-page h1, .object-detail h2, .object-detail h3 { color: var(--text-primary); font-weight: 700; }
.object-gallery, .object-detail-main-photo { border-radius: var(--radius-lg); }

/* Object page: rounded Crimea design system, preserving reference interactions. */
.object-detail { background: transparent; }
.object-detail-header { padding: 0; background: transparent; }
.object-detail-header h1 { font-family: "Manrope", Arial, sans-serif; font-weight: 750; letter-spacing: -.025em; }
.object-detail-address, .object-lot, .object-action { font-family: "Manrope", Arial, sans-serif; }
.object-action { border-color: var(--border-default); border-radius: var(--radius-md); background: var(--surface-primary); color: var(--text-primary); }
.object-map-action { border-color: var(--border-default); background: var(--surface-secondary); }
.object-action:hover, .object-action:focus-visible { border-color: rgba(108, 92, 231, .45); background: var(--color-primary-light); color: var(--color-primary); outline: 0; }
.object-action-square.copied::after { border-radius: var(--radius-sm); }
.object-gallery-viewport { border-radius: var(--radius-lg); }
.object-gallery-thumbs button { border-radius: var(--radius-sm); }
.object-quick-facts { padding-inline: 8px; }
.object-detail-content-reference { margin-top: 28px; padding-inline: 8px; background: transparent; }
.object-sale-tags li, .object-similar-tag { border-radius: var(--radius-sm); background: var(--color-primary-light); color: var(--color-primary-hover); font-family: "Manrope", Arial, sans-serif; font-weight: 650; }
.object-description-section { max-width: none; }
.object-description-content { max-height: 96px; padding-right: 12px; color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; line-height: 1.6; }
.object-description-content::after { display: block; height: 42px; background: linear-gradient(to bottom, rgba(248, 249, 252, 0), var(--bg-primary) 92%); }
.object-description-section.expanded .object-description-content { max-height: none; }
.object-description-section.expanded .object-description-content::after { opacity: 0; }
.object-description-toggle { border-radius: var(--radius-sm); color: var(--color-primary); font-family: "Manrope", Arial, sans-serif; font-weight: 700; }
.object-description-toggle:hover, .object-description-toggle:focus-visible { color: var(--color-primary-hover); }
.object-info-section h2, .object-infrastructure-section > h3, .object-similar-heading h3 { font-family: "Manrope", Arial, sans-serif; font-weight: 750; letter-spacing: -.025em; }
.object-info-list li { border-bottom-color: var(--border-default); color: var(--text-primary); }
.object-info-list strong { color: var(--text-secondary); }

.object-reference-sidebar .object-price-card, .object-agent-card { border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--surface-primary); box-shadow: var(--shadow-sm); }
.object-reference-sidebar .object-price-card { padding: 24px; }
.object-reference-sidebar .object-price { color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; font-weight: 750; }
.object-reference-sidebar .object-price-per-meter { color: var(--text-secondary); font-family: "Manrope", Arial, sans-serif; }
.object-reference-sidebar .btn { height: 48px; border-radius: var(--radius-md); font-family: "Manrope", Arial, sans-serif; font-weight: 700; }
.object-reference-sidebar .object-show-phone { border-color: var(--color-primary); background: var(--color-primary); }
.object-reference-sidebar .object-show-phone:hover, .object-reference-sidebar .object-show-phone:focus-visible { border-color: var(--color-primary-hover); background: var(--color-primary-hover); }
.object-agent-card { padding: 20px 22px; }
.object-agent-avatar { background: var(--color-primary-light); color: var(--color-primary); }
.object-agent-card strong { color: var(--text-primary); font-family: "Manrope", Arial, sans-serif; font-weight: 700; }
.object-agent-card small { color: var(--text-secondary); font-family: "Manrope", Arial, sans-serif; }

.object-infrastructure-tab { min-height: 44px; border-color: rgba(108, 92, 231, .42); border-radius: var(--radius-md); background: var(--surface-primary); color: var(--color-primary); font-family: "Manrope", Arial, sans-serif; font-weight: 650; }
.object-infrastructure-tab:hover { border-color: var(--color-primary); background: var(--color-primary-light); color: var(--color-primary-hover); }
.object-infrastructure-tab.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.object-infrastructure-icon-shops, .object-infrastructure-icon-transport { color: var(--color-primary); }
.object-yandex-map, .object-infrastructure-map { border-color: var(--border-default); border-radius: var(--radius-lg); }
.object-map-marker { background: var(--color-primary); }
.object-map-route { border-color: var(--color-primary); border-radius: var(--radius-md); color: var(--color-primary); font-family: "Manrope", Arial, sans-serif; font-weight: 700; box-shadow: var(--shadow-sm); }
.object-map-route:hover, .object-map-route:focus-visible { background: var(--color-primary); color: #fff; outline: 0; }

/* Keep the map and related listings as one continuous object-page flow. */
.object-infrastructure-section { margin-bottom: 24px; }
.object-similar-section { margin-top: 24px; padding-top: 0; }

.object-similar-tabs { padding: 4px; gap: 4px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--surface-secondary); }
.object-similar-tabs button { border-radius: var(--radius-sm); color: var(--text-secondary); font-family: "Manrope", Arial, sans-serif; font-weight: 650; }
.object-similar-tabs button:hover { background: var(--color-primary-light); color: var(--color-primary-hover); }
.object-similar-tabs button.active { background: var(--color-primary); color: #fff; }
.object-similar-controls button { border: 1px solid var(--border-default); border-radius: var(--radius-md); color: var(--color-primary); box-shadow: var(--shadow-sm); }
.object-similar-controls button:hover:not(:disabled), .object-similar-controls button:focus-visible { border-color: rgba(108, 92, 231, .42); background: var(--color-primary-light); color: var(--color-primary-hover); box-shadow: var(--shadow-sm); }
.object-similar-controls button:focus-visible { box-shadow: 0 0 0 3px rgba(108, 92, 231, .14); }
.object-similar-card { border-color: var(--border-default); border-radius: var(--radius-lg); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.object-similar-card:hover, .object-similar-card:focus-visible { border-color: rgba(108, 92, 231, .42); box-shadow: var(--shadow-md); }
.object-similar-photo i, .object-similar-card:hover .object-similar-photo i, .object-similar-card:focus-visible .object-similar-photo i { transform: none; }
.object-similar-card:hover .object-similar-content > strong, .object-similar-card:focus-visible .object-similar-content > strong { color: var(--color-primary); }
.object-similar-content, .object-similar-tag { font-family: "Manrope", Arial, sans-serif; }

@media (max-width: 820px) {
  .object-detail-content-reference { padding-inline: 4px; }
}

/* Advanced catalog filters: Samolet interaction model in the Crimea visual system. */
.advanced-filter-modal { padding: 24px; }
.advanced-filter-backdrop { background: rgba(31, 35, 48, .48); }
.advanced-filter-dialog {
  width: min(1040px, calc(100vw - 48px));
  height: calc(100vh - 48px);
  border-radius: var(--radius-xl);
  font-family: "Manrope", Arial, sans-serif;
  box-shadow: 0 28px 72px rgba(23, 25, 35, .2);
}
.advanced-filter-header { min-height: 76px; padding: 0 32px; background: #f6f7fa; }
.advanced-filter-header h2 { color: #252936; font: 650 22px/1.25 "Manrope", Arial, sans-serif; letter-spacing: -.018em; }
.advanced-filter-close { border-radius: 50%; color: var(--text-muted); transition: background-color .18s ease, color .18s ease; }
.advanced-filter-close:hover, .advanced-filter-close:focus-visible { background: var(--color-primary-light); color: var(--color-primary); outline: 0; }
.advanced-filter-body { padding: 0 32px 28px; scrollbar-gutter: stable; background: var(--surface-primary); }
.advanced-filter-row { min-height: 108px; padding: 24px 0; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 28px; align-items: start; border-bottom: 1px solid #e4e6eb; }
.advanced-filter-row:last-child { border-bottom: 0; }
.advanced-filter-label { padding-top: 11px; color: var(--text-primary); font: 650 15px/22px "Manrope", Arial, sans-serif; }
.advanced-text-input, .advanced-range-fields input, .advanced-minutes input {
  height: 48px;
  padding: 0 16px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font: 500 15px/1 "Manrope", Arial, sans-serif;
  box-shadow: none;
  transition: border-color .16s ease, background-color .16s ease;
}
.advanced-text-input::placeholder, .advanced-range-fields input::placeholder, .advanced-minutes input::placeholder { color: var(--text-muted); opacity: 1; }
.advanced-text-input:hover, .advanced-range-fields input:hover, .advanced-minutes input:hover { border-color: #cbc6f6; }
.advanced-text-input:focus, .advanced-text-input:focus-visible,
.advanced-range-fields input:focus, .advanced-range-fields input:focus-visible,
.advanced-minutes input:focus, .advanced-minutes input:focus-visible {
  border-color: var(--color-primary) !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.advanced-range-fields input::-webkit-inner-spin-button, .advanced-minutes input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.advanced-range-fields input, .advanced-minutes input { appearance: textfield; }
.advanced-search-fields { gap: 10px; }
.advanced-range-fields { gap: 10px; }
.advanced-range .dual-range { height: 20px; margin: 11px 9px 0; }
.advanced-range .dual-range-track, .advanced-range .dual-range-fill {
  top: 50%;
  height: 5px;
  border-radius: 999px;
  transform: translateY(-50%);
}
.advanced-range .dual-range-track { background: #e1e3e9; }
.advanced-range .dual-range-fill { background: var(--color-primary); }
.advanced-range .dual-range input[type="range"] { height: 20px; }
.advanced-range .dual-range input[type="range"]::-webkit-slider-thumb { width: 20px; height: 20px; border: 3px solid var(--color-primary); background: #fff; box-shadow: none; }
.advanced-range .dual-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid var(--color-primary); background: #fff; box-shadow: none; }
.advanced-range-extras { margin-top: 14px; }
.advanced-segmented, .advanced-choice-group { gap: 8px; }
.advanced-segmented button, .advanced-choice {
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  background: #f4f5f8;
  color: var(--text-secondary);
  font: 650 14px/20px "Manrope", Arial, sans-serif;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}
.advanced-segmented button:hover, .advanced-choice:hover { border-color: #cbc6f6; background: var(--color-primary-light); color: var(--color-primary-hover); }
.advanced-segmented button:focus-visible, .advanced-choice:focus-visible { border-color: var(--color-primary); outline: 0; box-shadow: none; }
.advanced-segmented button.active, .advanced-choice.active { border-color: var(--color-primary); background: var(--color-primary); color: #fff; }
.advanced-minutes { width: 220px; margin-top: 12px; color: var(--text-muted); font: 500 12px/18px "Manrope", Arial, sans-serif; }
.advanced-filter-footer { min-height: 82px; padding: 14px 32px; border-top-color: var(--border-default); background: #f6f7fa; }
.advanced-filter-reset { color: var(--text-muted); font: 600 14px/20px "Manrope", Arial, sans-serif; }
.advanced-filter-reset:hover, .advanced-filter-reset:focus-visible { color: var(--color-primary); outline: 0; }
.advanced-filter-apply { min-width: 280px; height: 50px; border-radius: var(--radius-md); }

/* Footer */
.footer { padding-top: 64px; background: var(--surface-primary); border-top: 1px solid var(--border-default); }
.footer-grid { gap: 64px; }
.footer-title { color: var(--text-primary); font-size: 16px; font-weight: 700; }
.footer-list a { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }
.footer-list a:hover, .footer-list a:focus-visible, .footer-phone:hover { color: var(--color-primary); }
.footer-phone { color: var(--text-primary); font-weight: 700; }
.footer-note, .footer-legal, .footer-disclaimer, .footer-policy { color: var(--text-muted); }

@media (max-width: 1100px) {
  .wrap { width: min(var(--container), calc(100% - 40px)); }
  .hero-search-only > .wrap { padding: 40px; }
  .services-layout { grid-template-columns: 1fr; }
  .services-intro { min-height: 420px; }
  .service-list { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { width: calc(100% - 24px); }
  .header-main-row { height: 64px; }
  .header-wordmark { font-size: 18px; }
  .menu-toggle { min-width: 76px; min-height: 44px; }
  .mobile-menu-panel { background: var(--surface-primary); }
  .mobile-menu-bottom a.active { color: var(--color-primary); }
  .hero-search-only { padding: 12px 0 32px; background: var(--bg-primary); }
  .hero-search-only > .wrap { min-height: 0; padding: 24px 12px 12px; display: block; border-radius: var(--radius-lg); background: linear-gradient(180deg, rgba(23, 25, 35, .32), rgba(23, 25, 35, .68)), url("assets/hero-interior-green-v2.png") center / cover no-repeat; }
  .hero-search-only .search-heading { display: block; padding: 0 8px 24px; }
  .hero-search-only .search-heading h2 { font-size: clamp(34px, 10vw, 40px); }
  .hero-search-only .search-heading p { font-size: 15px; }
  .tabs { width: 100%; border-radius: var(--radius-md); }
  .tab { min-width: max-content; min-height: 44px; }
  .filter-form { margin-top: 8px; padding: 12px; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
  .filter-trigger, .field, .filter-form > .btn, .mobile-more-filters { min-height: 48px; border-radius: var(--radius-md); }
  .directions { padding: 32px 0 48px; }
  .directions .direction-grid { grid-template-columns: 1fr; }
  .directions .direction-card, .directions .direction-card-primary { min-height: 164px; border-radius: var(--radius-lg); }
  .catalog-preview { padding: 48px 0 64px; }
  .catalog-title { font-size: 30px; }
  .listing, .object-card { border-radius: var(--radius-lg); }
  .filter-panel { backdrop-filter: none; }
  .services { padding: 48px 0; }
  .services .wrap { width: calc(100% - 24px); }
  .services-intro { min-height: 400px; padding: 96px 24px 32px; border-radius: var(--radius-lg); }
  .services-intro h2 { font-size: 36px; }
  .services-intro h2 .services-title-prefix { font-size: 13px; }
  .services-lead { margin-top: 24px; font-size: 16px; }
  .service-list { grid-template-columns: 1fr; }
  .service-item { min-height: 164px; padding: 24px 18px 24px 136px; border-radius: 14px; }
  .service-item .service-number { left: -3px; width: 136px; font-size: 190px; }
  .service-item:nth-child(1) .service-number { left: -4px; }
  .service-item:nth-child(2) .service-number { left: -3px; }
  .service-item:nth-child(3) .service-number { left: -3px; }
  .service-item:nth-child(4) .service-number { left: -4px; }
  .service-copy { padding: 2px 0; background: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.96) 84%, rgba(255,255,255,0) 100%); }
  .service-item:hover .service-copy,
  .service-item:focus-within .service-copy { background: linear-gradient(90deg, rgba(255,255,255,.96) 0, rgba(255,255,255,.96) 84%, rgba(255,255,255,0) 100%); }
  .service-item:hover,
  .service-item:focus-within { transform: translateY(-2px); }
  .modal-card, .advanced-filter-dialog, .mobile-filter-dialog { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .advanced-filter-modal { align-items: end; padding: 0; }
  .advanced-filter-dialog { width: 100%; height: min(92vh, 820px); }
  .advanced-filter-header { min-height: 68px; padding: 0 18px; }
  .advanced-filter-header h2 { font-size: 20px; }
  .advanced-filter-body { padding: 4px 18px 24px; }
  .advanced-filter-row { min-height: 0; padding: 18px 0; grid-template-columns: 1fr; gap: 10px; }
  .advanced-filter-label { padding-top: 0; }
  .advanced-filter-footer { min-height: 76px; padding: 12px 18px; }
  .advanced-filter-apply { min-width: 0; flex: 1; }
  .footer { padding-top: 48px; }
  .footer-grid { gap: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .listing:hover, .object-card:hover, .direction-card:hover, .service-item:hover, .btn:hover { transform: none; }
}

/* The SVG viewBox follows each glyph's measured ink bounds, so all four
   numerals meet the card's top, bottom and left inner edges consistently. */
.service-item svg.service-number {
  top: 1px;
  bottom: auto;
  left: 1px;
  width: auto;
  height: calc(100% - 2px);
  overflow: visible;
  opacity: .9;
  transform: none;
  transform-origin: left center;
}
.service-item svg.service-number text {
  fill: var(--color-primary);
  stroke: transparent;
  stroke-width: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 200px;
  font-weight: 700;
  transition: fill .32s ease, stroke .32s ease;
}
.service-item:hover svg.service-number,
.service-item:focus-within svg.service-number { transform: scale(.92); }
.service-item:hover svg.service-number text,
.service-item:focus-within svg.service-number text {
  fill: #fff;
  stroke: var(--color-primary);
  stroke-width: 1.5px;
  vector-effect: non-scaling-stroke;
}
