/*
 * Tenant-aware mobile layer.
 * Visual rules are added only after matching the tenant's established identity.
 */
:root {
  --metro-mobile-accent: var(--tenant-accent, #e7182c);
  --metro-mobile-ink: #07183f;
  --metro-mobile-muted: #68758d;
  --metro-mobile-line: #dfe4ec;
  --metro-mobile-warm: #ff5418;
  --metro-mobile-surface: #ffffff;
}

/* База: мобильный слой по умолчанию скрыт, показывается только в @media (max-width: 767px) ниже.
   Без этого правила .ym-mobile-menu и .ym-app-home остаются видимыми на десктопе (п.109/110). */
.ym-mobile-menu,
.ym-app-home,
.ym-mobile-catalog,
.ym-card-actions,
.ym-catalog-sheet-handle,
.metro-catalog-card__save-actions { display: none; }

@media (max-width: 767px) {
  .ym-app-home [hidden], .ym-mobile-catalog [hidden], .ym-mobile-favorites-panel[hidden],
  .ym-mobile-about-panel[hidden], .ym-object-actions-panel[hidden] { display: none !important; }
  .body--catalog .catalog-filter,
  .body--catalog .page-top,
  .body--catalog .catalog-top .catalog-sort,
  .body--catalog .metro-catalog-view {
    display: none !important;
  }

  .ym-mobile-catalog {
    display: block;
    margin: 0 -14px 14px;
    padding: 10px 14px 14px;
    border-bottom: 1px solid #e5e9f0;
    background: #fff;
    color: #07183f;
    font-family: Arial, Helvetica, sans-serif;
  }

  .ym-mobile-catalog * { box-sizing: border-box; }

  .ym-mobile-catalog__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .ym-mobile-catalog__header div { display: grid; gap: 2px; }
  .ym-mobile-catalog__header span { font-size: 20px; font-weight: 700; }
  .ym-mobile-catalog__header strong { color: #738096; font-size: 12px; font-weight: 400; }
  .ym-mobile-catalog__header button {
    min-height: 40px; padding: 0 14px; border: 1px solid #dce2ea; border-radius: 11px;
    color: #07183f; background: #fff; font-size: 13px; font-weight: 600;
  }

  .ym-mobile-catalog__search {
    display: grid; grid-template-columns: 30px 1fr auto; min-height: 52px; align-items: center;
    padding-left: 12px; border: 1px solid #aeb8c7; border-radius: 13px; background: #fff;
  }

  .ym-mobile-catalog__search > span {
    width: 17px; height: 17px; border: 2px solid #07183f; border-radius: 50%;
  }

  .ym-mobile-catalog__search input {
    min-width: 0; height: 48px; padding: 0 8px; border: 0; outline: 0;
    color: #07183f; font-size: 15px;
  }

  .ym-mobile-catalog__search button {
    height: 40px; margin-right: 5px; padding: 0 13px; border: 0; border-radius: 9px;
    color: #fff; background: #e7182c; font-size: 13px; font-weight: 700;
  }

  .ym-mobile-catalog__switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 10px;
    padding: 3px; border-radius: 11px; background: #f1f3f7;
  }

  .ym-mobile-catalog input[type="radio"],
  .ym-mobile-catalog input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }

  .ym-mobile-catalog__switch span {
    display: flex; min-height: 42px; align-items: center; justify-content: center;
    border-radius: 9px; color: #788397; font-size: 14px; font-weight: 600;
  }

  .ym-mobile-catalog__switch input:checked + span {
    color: #07183f; background: #fff; box-shadow: 0 2px 8px rgba(7,24,63,.1);
  }

  .ym-mobile-catalog__chips {
    display: flex; gap: 7px; margin-top: 10px; overflow-x: auto; scrollbar-width: none;
  }

  .ym-mobile-catalog__chips::-webkit-scrollbar { display: none; }
  .ym-mobile-catalog__chips label { flex: 0 0 auto; }
  .ym-mobile-catalog__chips span {
    display: flex; min-height: 40px; align-items: center; padding: 0 14px;
    border: 1px solid #dce2ea; border-radius: 11px; background: #fff; font-size: 13px; white-space: nowrap;
  }

  .ym-mobile-catalog__chips input:checked + span {
    border-color: #e7182c; color: #b71323; background: #fff7f8;
  }

  .ym-mobile-catalog__quick {
    display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; margin-top: 10px;
  }

  .ym-mobile-catalog__quick button {
    min-height: 42px; padding: 0 5px; border: 1px solid #dce2ea; border-radius: 11px;
    color: #07183f; background: #fff; font-size: 12px;
  }

  .ym-mobile-catalog__quick button:last-child { border-color: #f0a0aa; color: #c51628; }
/* YARMETRO_ITEM6_DEAL_SHEET_V1 */
.body--catalog .ym-mobile-catalog__quick button.ym-mobile-catalog__quick--deal { border-color: #07183f; color: #fff; background: #07183f; font-weight: 700; }

  .ym-mobile-sheet { position: fixed; z-index: 250; inset: 0; }
  .ym-mobile-sheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,24,63,.4); }
  .ym-mobile-sheet > section {
    position: absolute; right: 0; bottom: 0; left: 0; max-height: 82vh; overflow-y: auto;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff;
  }

  .ym-mobile-sheet header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
  .ym-mobile-sheet h2 { flex: 1; margin: 0; padding: 0 8px; font-size: 18px; text-align: center; }
  .ym-mobile-sheet header .ym-mobile-sheet__close { flex: 0 0 auto; min-width: 36px; padding: 0; color: #07183f; background: transparent; font-size: 26px; line-height: 1; }
  .ym-mobile-sheet header .ym-mobile-sheet__reset { flex: 0 0 auto; padding: 0; color: #c51628; background: transparent; font-size: 13px; font-weight: 600; white-space: nowrap; }
  .ym-mobile-sheet header button { min-height: 36px; border: 0; color: #c51628; background: transparent; font-size: 13px; }
  .ym-mobile-sheet__group { margin-bottom: 18px; }
  .ym-mobile-sheet__group h3 { margin: 0 0 9px; font-size: 14px; }
  /* YARMETRO_ITEM_VISUAL_SYNC_V1: поля От/До "Площадь" переведены на тот же
   * залитый светло-серый стиль без обводки, что и поля "Цена"
   * (YARMETRO_ITEM_PRICE_SHEET_V1) -- у обоих одна и та же геометрия
   * (числовая пара От/До), в референсе ЦИАН они визуально идентичны. */
  .ym-mobile-sheet__range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ym-mobile-sheet__range label { display: block; color: #788397; font-size: 11px; }
  .ym-mobile-sheet__range input {
    width: 100%; height: 48px; margin-top: 4px; padding: 0 12px;
    border: 0; border-radius: 12px; background: #f2f4f8; color: #07183f; font-size: 15px;
  }
  .ym-mobile-sheet__range input:focus { outline: 2px solid #07183f; outline-offset: -2px; }

  .ym-mobile-sheet__checks { display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; }
  .ym-mobile-sheet__checks span {
    display: flex; min-height: 44px; align-items: center; justify-content: center;
    border: 1px solid #dce2ea; border-radius: 10px; font-size: 13px;
  }
  .ym-mobile-sheet__checks input:checked + span { border-color: #e7182c; color: #b71323; background: #fff7f8; }
  .ym-mobile-sheet__submit {
    width: 100%; min-height: 52px; border: 0; border-radius: 11px;
    color: #fff; background: #e7182c; font-size: 16px; font-weight: 700;
  }

  .body--catalog .catalog-count {
    display: block; margin: 0 0 10px; color: #6e7a8f; font-size: 12px;
  }
}

/* Functional mobile search: one form, one state, one submission. */
@media (max-width: 767px) {
  .ym-mobile-search-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .ym-mobile-search-form legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .ym-mobile-search {
    grid-template-columns: 35px 1fr;
  }

  .ym-mobile-deal label,
  .ym-mobile-categories label,
  .ym-mobile-locations label,
  .ym-mobile-checks label {
    cursor: pointer;
  }

  .ym-mobile-deal input,
  .ym-mobile-categories input,
  .ym-mobile-locations input,
  .ym-mobile-checks input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .ym-mobile-deal label span {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #8791a3;
    font-size: 16px;
    font-weight: 600;
  }

  .ym-mobile-deal input:checked + span {
    color: var(--metro-mobile-ink);
    background: #fff;
    box-shadow: 0 3px 11px rgba(7, 24, 63, .12);
  }

  .ym-mobile-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ym-mobile-categories label > span {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 11px;
    color: var(--metro-mobile-ink);
    background: #fff;
    box-shadow: 0 4px 12px rgba(7, 24, 63, .055);
    font-size: 13px;
  }

  .ym-mobile-categories input:checked + span,
  .ym-mobile-locations input:checked + span,
  .ym-mobile-checks input:checked + span {
    border-color: var(--metro-mobile-warm);
    color: var(--metro-mobile-ink);
    box-shadow: 0 0 0 1px var(--metro-mobile-warm);
  }

  .ym-mobile-categories b {
    font-weight: 600;
  }

  .ym-mobile-locations label > span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 12px;
    background: #fff;
    font-size: 12px;
    white-space: nowrap;
  }

  .ym-mobile-quick-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  .ym-mobile-quick-fields details {
    position: relative;
  }

  .ym-mobile-quick-fields summary {
    min-height: 42px;
    padding: 13px 9px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 11px;
    background: #fff;
    color: var(--metro-mobile-ink);
    font-size: 12px;
    text-align: center;
    list-style: none;
  }

  .ym-mobile-quick-fields summary::-webkit-details-marker {
    display: none;
  }

  .ym-mobile-quick-fields details[open] {
    grid-column: 1 / -1;
  }

  .ym-mobile-range,
  .ym-mobile-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
    padding: 10px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 12px;
    background: #fff;
  }

  .ym-mobile-range label {
    color: #7d889b;
    font-size: 11px;
  }

  .ym-mobile-range input {
    width: 100%;
    height: 42px;
    margin-top: 3px;
    padding: 0 10px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 9px;
    font-size: 14px;
  }

  .ym-mobile-checks {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ym-mobile-checks span {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 9px;
    font-size: 12px;
  }

  .ym-mobile-submit {
    width: 100%;
    border: 0;
    font-family: inherit;
  }
}

.ym-mobile-home,
.ym-mobile-nav,
.ym-mobile-header-contact {
  display: none;
}

@media (max-width: 767px) {
  html {
    scroll-padding-bottom: 76px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .body--main .main > .wrap {
    padding: 0 14px;
  }

  .body--main .main > .wrap > *:not(.ym-mobile-home) {
    display: none !important;
  }

  .body--main .application,
  .body--main .footer {
    display: none;
  }

  .header {
    border-bottom: 0;
    background: #fff;
  }

  .header-top {
    display: grid;
    grid-template-columns: 1fr 44px 44px 44px;
    align-items: center;
    min-height: 72px;
    padding: 12px 14px;
    box-shadow: none;
  }

  .header .logo {
    position: static;
    grid-column: 1;
    grid-row: 1;
    width: 142px;
    height: 38px;
    transform: none;
  }

  .header .logo img {
    width: 142px;
    height: 38px;
  }

  .header .burger {
    grid-column: 2;
    grid-row: 1;
    width: 44px;
    height: 44px;
    background-size: 25px auto, 0;
  }

  .header .burger.opened {
    background-size: 0, 23px auto;
  }

  .header-top__favorite {
    position: static;
    grid-column: 3;
    grid-row: 1;
    width: 44px;
    height: 44px;
    padding: 0;
    background-size: 26px auto;
  }

  .ym-mobile-header-contact {
    position: relative;
    display: block;
    grid-column: 4;
    grid-row: 1;
    width: 44px;
    height: 44px;
    overflow: hidden;
    color: transparent;
  }

  .ym-mobile-header-contact::before {
    position: absolute;
    top: 7px;
    left: 10px;
    width: 20px;
    height: 20px;
    border: 2px solid var(--metro-mobile-ink);
    border-radius: 50%;
    content: "";
  }

  .ym-mobile-header-contact::after {
    position: absolute;
    right: 8px;
    bottom: 6px;
    left: 8px;
    height: 12px;
    border: 2px solid var(--metro-mobile-ink);
    border-radius: 50% 50% 4px 4px;
    background: #fff;
    content: "";
  }

  .header-bg {
    height: 72px;
  }

  .ym-mobile-home {
    display: block;
    max-width: 430px;
    margin: 0 auto;
    padding: 4px 0 18px;
    color: var(--metro-mobile-ink);
    font-family: Arial, Helvetica, sans-serif;
  }

  .ym-mobile-home *,
  .ym-mobile-nav * {
    box-sizing: border-box;
  }

  .ym-mobile-search {
    display: grid;
    grid-template-columns: 35px 1fr 44px;
    min-height: 54px;
    align-items: center;
    margin-bottom: 10px;
    padding: 0 5px 0 12px;
    border: 1px solid #aeb8c7;
    border-radius: 13px;
    background: #fff;
  }

  .ym-mobile-search__icon {
    position: relative;
    width: 20px;
    height: 20px;
    border: 2px solid var(--metro-mobile-ink);
    border-radius: 50%;
  }

  .ym-mobile-search__icon::after {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: var(--metro-mobile-ink);
    content: "";
    transform: rotate(48deg);
  }

  .ym-mobile-search input {
    width: 100%;
    min-width: 0;
    height: 50px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--metro-mobile-ink);
    background: transparent;
    font-size: 15px;
  }

  .ym-mobile-search input::placeholder {
    color: #9ca7b8;
  }

  .ym-mobile-search button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }

  .ym-mobile-search button::before {
    position: absolute;
    inset: 12px;
    border: 2px solid var(--metro-mobile-warm);
    border-radius: 3px;
    content: "";
  }

  .ym-mobile-search button::after {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--metro-mobile-warm);
    border-right: 2px solid var(--metro-mobile-warm);
    content: "";
  }

  .ym-mobile-deal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-bottom: 9px;
    padding: 3px;
    border-radius: 12px;
    background: #f3f5f8;
  }

  .ym-mobile-deal a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #8791a3;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
  }

  .ym-mobile-deal a.is-active {
    color: var(--metro-mobile-ink);
    background: #fff;
    box-shadow: 0 3px 11px rgba(7, 24, 63, .12);
  }

  .ym-mobile-categories {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 10px;
  }

  .ym-mobile-categories a {
    display: flex;
    min-height: 96px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 11px;
    color: var(--metro-mobile-ink);
    background: #fff;
    box-shadow: 0 4px 12px rgba(7, 24, 63, .055);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  }

  .ym-mobile-categories img {
    width: 42px;
    height: 40px;
    object-fit: contain;
  }

  .ym-mobile-locations,
  .ym-mobile-filters {
    display: flex;
    gap: 7px;
    margin-bottom: 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ym-mobile-locations::-webkit-scrollbar,
  .ym-mobile-filters::-webkit-scrollbar {
    display: none;
  }

  .ym-mobile-locations a,
  .ym-mobile-filters a {
    display: flex;
    min-height: 42px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 12px;
    color: var(--metro-mobile-ink);
    background: #fff;
    box-shadow: 0 3px 9px rgba(7, 24, 63, .04);
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
  }

  .ym-mobile-filters a::after {
    margin-left: 7px;
    content: "⌄";
  }

  .ym-mobile-filters .ym-mobile-filters__all {
    border-color: #ffb39b;
    color: var(--metro-mobile-warm);
  }

  .ym-mobile-filters .ym-mobile-filters__all::after {
    display: none;
  }

  .ym-mobile-history,
  .ym-mobile-popular {
    margin-bottom: 10px;
    padding: 11px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 13px rgba(7, 24, 63, .045);
  }

  .ym-mobile-history header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
  }

  .ym-mobile-history h2,
  .ym-mobile-popular h2 {
    margin: 0 0 8px;
    color: var(--metro-mobile-ink);
    font-size: 14px;
    line-height: 1.2;
  }

  .ym-mobile-history header h2 {
    margin: 0;
  }

  .ym-mobile-history header button {
    min-height: 32px;
    border: 0;
    color: var(--metro-mobile-warm);
    background: transparent;
    font-size: 12px;
  }

  .ym-mobile-history a {
    display: flex;
    min-height: 36px;
    align-items: center;
    margin-top: 6px;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 9px;
    color: #34425e;
    font-size: 11px;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .ym-mobile-popular > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .ym-mobile-popular a {
    overflow: hidden;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 9px;
    color: var(--metro-mobile-ink);
    background: #fff;
    font-size: 10px;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
  }

  .ym-mobile-popular a span {
    display: block;
    height: 52px;
    background-position: center;
    background-size: cover;
  }

  .ym-mobile-popular strong {
    display: block;
    min-height: 39px;
    padding: 6px 3px;
    font-weight: 500;
  }

  .ym-mobile-submit {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(90deg, #f33b17, #ff6519);
    box-shadow: 0 8px 18px rgba(255, 84, 24, .2);
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
  }

  .ym-mobile-submit::before {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    content: "";
  }

  .ym-mobile-nav {
    position: fixed;
    z-index: 100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(60px + env(safe-area-inset-bottom));
    padding: 6px 6px env(safe-area-inset-bottom);
    border-top: 1px solid var(--metro-mobile-line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -6px 24px rgba(7, 24, 63, .07);
    backdrop-filter: blur(12px);
  }

  .ym-mobile-nav a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 2px 6px;
    border-radius: 10px;
    color: var(--metro-mobile-muted);
    font-size: 10px;
    font-weight: 600;
    text-decoration: none;
  }

  .ym-mobile-nav a::before,
  .ym-mobile-nav a::after {
    position: absolute;
    content: "";
  }

  .ym-mobile-nav a::before {
    top: 9px;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--metro-mobile-ink);
    transform: translateX(-50%);
  }

  .body--main .ym-mobile-nav__home,
  .body--catalog .ym-mobile-nav__search {
    color: var(--metro-mobile-warm);
    background: #fff8f4;
  }

  .body--main .ym-mobile-nav__home::before,
  .body--catalog .ym-mobile-nav__search::before {
    border-color: var(--metro-mobile-warm);
  }

  .ym-mobile-nav__home::before {
    clip-path: polygon(50% 0, 100% 42%, 88% 42%, 88% 100%, 12% 100%, 12% 42%, 0 42%);
  }

  .ym-mobile-nav__search::before {
    border-radius: 50%;
  }

  .ym-mobile-nav__search::after {
    top: 27px;
    left: calc(50% + 8px);
    width: 8px;
    height: 2px;
    background: var(--metro-mobile-ink);
    transform: rotate(45deg);
  }

  .ym-mobile-nav__map::before {
    border-radius: 50% 50% 50% 0;
    transform: translateX(-50%) rotate(-45deg);
  }

  .ym-mobile-nav__favorites::before {
    border: 0;
    content: "♡";
    font-size: 29px;
    line-height: 20px;
  }

  .ym-mobile-nav__contacts::before {
    border-radius: 50% 50% 4px 4px;
  }

  .body--catalog .page-top {
    margin-bottom: 10px;
    padding: 16px 0 6px;
    background: #fff;
  }

  .body--catalog .page-top h1 {
    margin: 0;
    color: var(--metro-mobile-ink);
    font-size: 25px;
    line-height: 1.18;
  }

  .body--catalog .catalog-filter {
    margin-bottom: 12px;
    padding: 10px 0 12px;
    border-bottom: 1px solid var(--metro-mobile-line);
    background: #fff;
  }

  .body--catalog .catalog-filter .show-filter,
  .body--catalog .catalog-filter .main-top__search-btn,
  .body--catalog .catalog-filter .main-top__to-map {
    min-height: 48px;
    border-radius: 11px;
  }

  .body--catalog .catalog-filter .show-filter,
  .body--catalog .catalog-filter .main-top__search-btn {
    border-color: #ff9a78;
    color: var(--metro-mobile-warm);
    background: #fff8f4;
  }

  .body--catalog .metro-catalog-grid,
  .body--catalog .metro-catalog-grid[data-columns="3"] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
  }

  .body--catalog .metro-catalog-card {
    display: grid;
    grid-template-columns: 43% minmax(0, 57%);
    min-height: 224px;
    overflow: hidden;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(7, 24, 63, .045);
  }

  .body--catalog .metro-catalog-card__media {
    height: 100%;
    min-height: 224px;
    aspect-ratio: auto;
    border-radius: 0;
  }

  .body--catalog .metro-catalog-card__body-link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 16px 13px 12px;
  }

  .body--catalog .metro-catalog-card__price {
    order: 2;
    margin: 0 0 7px;
    color: var(--metro-mobile-ink);
    font-size: 21px;
    line-height: 1.15;
  }

  .body--catalog .metro-catalog-card__price-old {
    order: 3;
    font-size: 13px;
  }

  .body--catalog .metro-catalog-card__name {
    order: 1;
    margin: 0 0 8px;
    color: var(--metro-mobile-ink);
    font-size: 14px;
    line-height: 1.3;
  }

  .body--catalog .metro-catalog-card__address {
    order: 4;
    min-height: 0;
    margin-bottom: 10px;
    color: var(--metro-mobile-muted);
    font-size: 11px;
    line-height: 1.4;
  }

  .body--catalog .metro-catalog-card__facts {
    order: 5;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid var(--metro-mobile-line);
    font-size: 10px;
  }

  .body--catalog .metro-catalog-card__fact {
    padding: 3px 4px;
  }

  .body--catalog .metro-catalog-card__fact-label {
    display: none;
  }

  .body--catalog .metro-catalog-card__footer {
    order: 6;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid var(--metro-mobile-line);
  }

  .body--catalog .metro-catalog-card__more {
    color: var(--metro-mobile-warm);
    font-size: 11px;
  }

  .body--catalog .metro-catalog-card__date {
    display: none;
  }

  .body--catalog-detail {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .body--catalog-detail .ym-mobile-nav {
    display: none;
  }

  .body--catalog-detail .metro-detail-heading {
    margin: 12px 14px 14px;
  }

  .body--catalog-detail .metro-detail-heading h1 {
    margin: 8px 0 14px;
    color: var(--metro-mobile-ink);
    font-size: 23px;
    line-height: 1.2;
  }

  /* YARMETRO_ITEM10_BREADCRUMBS_GAP_FIX_V1: gap:5px ничего не делал --
   * .metro-detail-breadcrumbs был display:block (унаследован из десктопных
   * стилей), а gap работает только у flex/grid-контейнеров. Ссылки шли
   * подряд без единого пробела ('Ярославская областьКупитьКвартиры...').
   * display:flex включает gap и естественно выстраивает ссылки в строку. */
  .body--catalog-detail .metro-detail-breadcrumbs {
    display: flex;
    gap: 5px;
    overflow: hidden;
    color: var(--metro-mobile-muted);
    font-size: 11px;
    white-space: nowrap;
  }

  .body--catalog-detail .metro-object-detail-v1 .apartment-top {
    margin: 0 0 12px;
    padding: 18px 14px;
    border: 1px solid var(--metro-mobile-line);
    border-radius: 14px;
    background: #fff;
  }

  .body--catalog-detail .metro-object-detail-v1 .catalog-item__price .price {
    color: var(--metro-mobile-ink);
    font-size: 27px;
    line-height: 1.2;
  }

  .body--catalog-detail .metro-detail-facts {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--metro-mobile-line);
  }

  .body--catalog-detail .metro-detail-facts h4 {
    color: var(--metro-mobile-ink);
    font-size: 18px;
  }

  .body--catalog-detail .metro-detail-facts li {
    font-size: 13px;
  }

  .body--catalog-detail .apartment-descr,
  .body--catalog-detail .apartment-place,
  .body--catalog-detail .metro-related {
    border-radius: 14px;
  }

  .ym-mobile-detail-actions {
    position: fixed;
    z-index: 110;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px 14px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--metro-mobile-line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -6px 24px rgba(7, 24, 63, .08);
    backdrop-filter: blur(12px);
  }

  .ym-mobile-detail-actions a {
    display: flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--metro-mobile-warm);
    border-radius: 11px;
    color: var(--metro-mobile-warm);
    background: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
  }

  .ym-mobile-detail-actions a:last-child {
    border: 0;
    color: #fff;
    background: linear-gradient(90deg, #f33b17, #ff6519);
  }
}

@media (min-width: 768px) {
  .ym-mobile-detail-actions {
    display: none;
  }
}

@media (max-width: 359px) {
  .ym-mobile-categories a {
    min-height: 90px;
    font-size: 12px;
  }

  .ym-mobile-popular > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile product pass v2. */
@media (max-width: 767px) {
  body.ym-mobile-sheet-open { overflow: hidden; }
  .ym-mobile-home-v2 { padding-top: 8px; }
  .ym-mobile-home-v2__intro { margin: 2px 0 18px; }
  .ym-mobile-home-v2__intro span { color: #6f7b90; font-size: 12px; }
  .ym-mobile-home-v2__intro h1 { margin: 5px 0 0; font-size: 25px; line-height: 1.12; letter-spacing: -.4px; }
  .ym-mobile-section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 9px; }
  .ym-mobile-section-title h2, .ym-mobile-filter-block h2 { margin: 0; font-size: 15px; line-height: 1.25; }
  .ym-mobile-section-title button { min-height: 36px; padding: 0; border: 0; color: #c51628; background: transparent; font-size: 12px; }
  .ym-mobile-deal { margin-bottom: 0; }
  .ym-mobile-categories { gap: 9px; margin: 0; }
  .ym-mobile-categories label > span, .ym-mobile-categories .ym-mobile-newbuildings {
    display: flex; min-height: 92px; flex-direction: column; align-items: center; justify-content: center;
    gap: 7px; padding: 8px 4px; border: 1px solid #dfe4ec; border-radius: 13px;
    color: #07183f; background: #fff; box-shadow: 0 3px 10px rgba(7,24,63,.045);
    font-size: 12px; text-align: center; text-decoration: none;
  }
  .ym-mobile-categories label > span img, .ym-mobile-categories .ym-mobile-newbuildings img { width: 36px; height: 36px; object-fit: contain; }
  .ym-mobile-categories label > input:checked + span { border-color: #e7182c; box-shadow: 0 0 0 1px #e7182c; }
  .ym-mobile-newbuildings { border-color: #b9c9de !important; background: #f7faff !important; }
  .ym-mobile-newbuildings b { font-weight: 600; }
  .ym-mobile-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; overflow: visible; }
  .ym-mobile-locations label > span { min-height: 44px; padding: 0 8px; border-radius: 11px; font-size: 12px; text-align: center; white-space: normal; }
  .ym-mobile-filter-block { margin-top: 18px; }
  .ym-mobile-checks--inline { display: grid; grid-template-columns: 1.35fr repeat(4,1fr); gap: 7px; margin-top: 9px; padding: 0; border: 0; }
  .ym-mobile-checks--inline span { min-height: 44px; border-radius: 11px; background: #fff; }
  .ym-mobile-price input[type="range"] { width: 100%; height: 28px; margin: 2px 0 0; accent-color: #e7182c; }
  .ym-mobile-price output { color: #c51628; font-size: 13px; font-weight: 600; }
  .ym-mobile-price__scale { display: flex; justify-content: space-between; margin-top: -2px; color: #8a95a7; font-size: 10px; }
  .ym-mobile-range--inline { margin: 9px 0 0; padding: 0; border: 0; }
  .ym-mobile-range--inline input { height: 46px; }
  .ym-mobile-submit { margin-top: 20px; min-height: 54px; border-radius: 12px; background: #e7182c; box-shadow: 0 7px 16px rgba(231,24,44,.18); font-size: 16px; }
  .ym-mobile-submit::before { display: none; }
  .ym-mobile-regions-sheet { position: fixed; z-index: 260; inset: 0; }
  .ym-mobile-regions-sheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,24,63,.42); }
  .ym-mobile-regions-sheet > section { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px 14px calc(20px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; }
  .ym-mobile-regions-sheet header { display: flex; align-items: center; justify-content: space-between; }
  .ym-mobile-regions-sheet h2 { margin: 0; font-size: 18px; }
  .ym-mobile-regions-sheet header button { min-height: 40px; border: 0; color: #c51628; background: transparent; }
  .ym-mobile-regions-sheet p { margin: 5px 0 13px; color: #7b879a; font-size: 11px; }
  .ym-mobile-regions-sheet section > div { display: grid; gap: 8px; }
  .ym-mobile-regions-sheet label span { display: flex; min-height: 48px; align-items: center; padding: 0 14px; border: 1px solid #dfe4ec; border-radius: 11px; font-size: 13px; }
  .ym-mobile-regions-sheet input { position: absolute; opacity: 0; }
  .ym-mobile-regions-sheet input:checked + span { border-color: #e7182c; background: #fff7f8; }
  .header-top { grid-template-columns: 1fr 46px 46px; gap: 4px; }
  .header .burger { position: relative; grid-column: 2; border-radius: 12px; background-image: none !important; }
  .header .burger::before, .header .burger::after { position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: #07183f; content: ""; transition: .2s; }
  .header .burger::before { top: 15px; box-shadow: 0 7px 0 #07183f; }
  .header .burger::after { top: 29px; }
  .header .burger.opened::before { top: 21px; transform: rotate(45deg); box-shadow: none; }
  .header .burger.opened::after { top: 21px; transform: rotate(-45deg); }
  .header-top__favorite { display: none !important; }
  .ym-mobile-header-contact { grid-column: 3; border-radius: 12px; background: #f4f6f9; }
  .ym-mobile-header-contact::before { top: 9px; left: 14px; width: 14px; height: 14px; border-width: 1.8px; }
  .ym-mobile-header-contact::after { right: 10px; bottom: 8px; left: 10px; height: 10px; border-width: 1.8px; border-radius: 12px 12px 5px 5px; background: transparent; }
  .header .header-bot { padding: 16px 14px 24px; background: #fff; }
  .header .header-bot > *:not(.ym-mobile-menu) { display: none !important; }
  .ym-mobile-menu { display: grid; gap: 8px; }
  .ym-mobile-menu header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
  .ym-mobile-menu header strong { font-size: 21px; }
  .ym-mobile-menu header span { color: #7b8799; font-size: 11px; }
  .ym-mobile-menu > a:not(.ym-mobile-menu__phone) { display: grid; gap: 3px; padding: 14px; border: 1px solid #e0e5ec; border-radius: 13px; color: #07183f; text-decoration: none; }
  .ym-mobile-menu > a b { font-size: 14px; }
  .ym-mobile-menu > a span { color: #768297; font-size: 11px; }
  .ym-mobile-menu__secondary { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 4px; }
  .ym-mobile-menu__secondary a { display: flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid #e0e5ec; border-radius: 11px; color: #07183f; font-size: 12px; text-decoration: none; }
  .ym-mobile-menu__phone { margin-top: 5px; color: #c51628; font-size: 17px; font-weight: 700; text-decoration: none; }
  .ym-mobile-nav { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .ym-mobile-nav__contacts { display: none !important; }
  .ym-mobile-nav a { gap: 4px; font-size: 10px; }
  .ym-mobile-nav a::before { width: 23px; height: 23px; background-image: none !important; }
  .ym-mobile-nav__home::before { border: 2px solid currentColor; border-radius: 7px; transform: rotate(45deg) scale(.7); }
  .ym-mobile-nav__search::before { border: 2px solid currentColor; border-radius: 8px; }
  .ym-mobile-nav__map::before { border: 2px solid currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) scale(.75); }
  .ym-mobile-nav__favorites::before { border: 2px solid currentColor; border-radius: 7px; }
  div[id^="jivo"], div[class*="jivo"], iframe[src*="jivosite"] { display: none !important; }
  .footer .footer-info, .footer .copyright, .footer [class*="legal"] { display: none !important; }
  .ym-mobile-nav { grid-template-columns: repeat(5,minmax(0,1fr)); padding-inline: 3px; }
  .ym-mobile-nav__contacts { display: flex !important; }
  .ym-mobile-nav a::before, .ym-mobile-nav a::after { display: none !important; }
  .ym-mobile-nav svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  /* YARMETRO_ITEM5_NAV_COMPACT_V1: сняли подъём кнопки "Карта" -- по
   * просьбе пользователя выровнена заподлицо с остальными пунктами. */
  .ym-mobile-nav__map svg { width: 24px; height: 24px; padding: 4px; border-radius: 12px; color: #fff; background: #e7182c; box-shadow: 0 5px 12px rgba(231,24,44,.24); }
  .ym-mobile-nav__favorites { position: relative; }
  .ym-mobile-nav__favorites b { position: absolute; top: 2px; left: calc(50% + 7px); min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; color: #fff; background: #e7182c; font-size: 9px; line-height: 15px; }

  /* YARMETRO_ITEM38_FAVORITES_ABOVE_QUICK_FILTERS_V1: панель "Избранное"
   * открывается через тот же общий класс body.ym-mobile-sheet-open, что и
   * другие шторки -- а по нему .ym-mobile-catalog (контейнер карты с чипами
   * быстрых фильтров) сама поднимается на z-index:400 (см.
   * YARMETRO_ITEM1_MAP_SHEET_Z_FIX_V1 ниже). Из-за этого чипы карты
   * просвечивали поверх панели избранного (z-index:280 < 400). Подняли выше
   * всего остального в мобильной верстке. */
  .ym-mobile-favorites-panel { position: fixed; z-index: 600; inset: 0 0 calc(70px + env(safe-area-inset-bottom)); overflow: hidden; background: #fff; font-family: Arial,Helvetica,sans-serif; }
  .ym-mobile-favorites-panel__backdrop { display: none; }
  .ym-mobile-favorites-panel > div { position: absolute; inset: 0; overflow-y: auto; padding: calc(18px + env(safe-area-inset-top)) 14px 24px; border-radius: 0; background: #fff; }
  .ym-mobile-favorites-panel header { display: flex; align-items: flex-start; justify-content: space-between; }
  .ym-mobile-favorites-panel h2 { margin: 0; color: #07183f; font-size: 20px; }
  .ym-mobile-favorites-panel header p { margin: 4px 0 0; color: #7b8799; font-size: 11px; }
  .ym-mobile-favorites-panel header button { min-height: 38px; border: 0; color: #c51628; background: transparent; }
  .ym-mobile-favorites-panel__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 16px 0 12px; padding: 3px; border-radius: 11px; background: #f0f3f7; }
  .ym-mobile-favorites-panel__tabs button { min-height: 42px; border: 0; border-radius: 9px; color: #788397; background: transparent; font-size: 13px; }
  .ym-mobile-favorites-panel__tabs button.is-active { color: #07183f; background: #fff; box-shadow: 0 2px 8px rgba(7,24,63,.1); }
  .ym-mobile-saved-empty { padding: 35px 12px; color: #7b8799; font-size: 13px; text-align: center; }
  .ym-mobile-saved-row { display: grid; grid-template-columns: 1fr 40px; align-items: center; margin-top: 8px; padding: 10px 8px 10px 12px; border: 1px solid #e0e5ec; border-radius: 11px; }
  .ym-mobile-saved-row a { display: grid; gap: 3px; color: #07183f; text-decoration: none; }
  .ym-mobile-saved-row a strong { font-size: 13px; }
  .ym-mobile-saved-row a span { color: #7b8799; font-size: 10px; }
  .ym-mobile-saved-row button { width: 36px; height: 36px; border: 0; color: #778397; background: transparent; font-size: 23px; }

  .metro-catalog-card__save-actions { position: absolute; z-index: 5; top: 10px; right: 10px; display: flex; gap: 7px; }
  .metro-catalog-card__save-actions button { width: 38px; height: 38px; border: 0; border-radius: 12px; color: #07183f; background: rgba(255,255,255,.93); box-shadow: 0 3px 10px rgba(7,24,63,.15); font-size: 21px; }
  .metro-catalog-card__save-actions button.is-active { color: #fff; background: #e7182c; }

  .ym-mobile-catalog__chips--locations button { flex: 0 0 auto; min-height: 40px; padding: 0 14px; border: 1px dashed #aeb8c7; border-radius: 11px; color: #526078; background: #fff; font-size: 12px; }
  .ym-mobile-catalog__quick { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0f4; }
  .ym-mobile-catalog__quick button { padding-inline: 4px; font-size: 11px; }
  .ym-mobile-sheet__price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ym-mobile-sheet__price-fields label { display: block; color: #788397; font-size: 11px; }
  .ym-mobile-sheet__price-fields input {
    width: 100%; height: 48px; margin-top: 4px; padding: 0 12px;
    border: 0; border-radius: 12px; background: #f2f4f8; color: #07183f; font-size: 15px;
  }
  .ym-mobile-sheet__price-fields input:focus { outline: 2px solid #07183f; outline-offset: -2px; }
}

/* Mobile application architecture v3. */
@media (max-width: 767px) {
  .header-top { display: flex; min-height: 64px; justify-content: center; padding: 10px 16px; }
  .header .logo, .header .logo img { width: 136px; height: 36px; }
  .header .burger, .header-top__favorite, .ym-mobile-header-contact, .header .header-bot { display: none !important; }
  .header-bg { height: 64px; }

  .body--main .main > .wrap { padding: 0 16px; }
  .body--main .main > .wrap > .ym-app-home { display: block !important; }
  .ym-app-home { color: #07183f; font-family: Arial,Helvetica,sans-serif; }
  .ym-app-home * { box-sizing: border-box; }
  .ym-app-home__hero { padding: 14px 0 18px; }
  .ym-app-home__hero span { color: #e7182c; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .ym-app-home__hero h1 { margin: 7px 0 4px; font-size: 28px; line-height: 1.08; letter-spacing: -.7px; }
  .ym-app-home__hero p { margin: 0; color: #748096; font-size: 13px; }
  .ym-scenarios { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ym-scenarios button {
    display: grid; min-height: 112px; align-content: space-between; padding: 15px;
    border: 1px solid #dfe4ec; border-radius: 17px; color: #07183f; background: #fff;
    box-shadow: 0 5px 16px rgba(7,24,63,.055); text-align: left;
  }
  .ym-scenarios button span { position: relative; width: 34px; height: 34px; border-radius: 11px; background: #fff0f2; }
  .ym-scenarios button span::after { position: absolute; inset: 9px; border: 2px solid #e7182c; border-radius: 4px; content: ""; }
  .ym-scenarios button:nth-child(2) span::after { border-radius: 50%; }
  .ym-scenarios button:nth-child(3) span::after { inset: 8px 6px; border-radius: 2px; }
  .ym-scenarios button:nth-child(4) span::after { border-radius: 50% 50% 4px 4px; }
  .ym-scenarios strong { font-size: 15px; }

  .ym-home-editorial, .ym-home-reviews { margin-top: 28px; }
  .ym-home-editorial > header, .ym-home-reviews > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
  .ym-home-editorial > header h2, .ym-home-reviews > header h2 { margin: 0; font-size: 19px; }
  .ym-home-editorial > header a, .ym-home-reviews > header a { color: #c51628; font-size: 11px; text-decoration: none; }
  .ym-home-editorial .main-news, .ym-home-reviews .main-news { display: block !important; margin: 0; }
  .ym-home-editorial .main-news > .main-title, .ym-home-editorial .main-news > .view-all,
  .ym-home-reviews .main-news .main-title, .ym-home-reviews .main-news .view-all { display: none !important; }
  .ym-home-editorial .main-news__items, .ym-home-reviews .main-news__items { display: flex; gap: 10px; margin: 0; overflow-x: auto; scrollbar-width: none; }
  .ym-home-editorial .news-item, .ym-home-reviews .news-item {
    display: block !important; min-width: 76%; margin: 0; padding: 12px; border: 1px solid #e1e6ed;
    border-radius: 15px; color: #07183f; background: #fff; text-decoration: none;
  }
  .ym-home-editorial .news-item__img { display: block; height: 120px; margin: -12px -12px 10px; border-radius: 15px 15px 0 0; background-position: center; background-size: cover; }
  .ym-home-editorial .news-item__name, .ym-home-reviews .news-item__name { display: block; margin-top: 5px; font-size: 14px; line-height: 1.3; }
  .ym-home-editorial .news-item__text, .ym-home-reviews .news-item__text { display: -webkit-box; margin-top: 5px; overflow: hidden; color: #6f7b90; font-size: 11px; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .ym-home-editorial .news-item__date, .ym-home-reviews .news-item__date { color: #8b95a6; font-size: 9px; }

  .ym-search-sheet { position: fixed; z-index: 300; inset: 0; }
  .ym-search-sheet__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,24,63,.32); }
  .ym-search-sheet > form {
    position: absolute; right: 0; bottom: 0; left: 0; max-height: 94vh; overflow-y: auto;
    padding: 14px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff;
  }
  .ym-search-sheet > form > header { position: sticky; z-index: 2; top: -14px; display: grid; grid-template-columns: 44px 1fr 64px; align-items: center; margin: -14px -16px 12px; padding: 10px 10px 9px; border-bottom: 1px solid #edf0f4; background: rgba(255,255,255,.97); }
  .ym-search-sheet > form > header h2 { margin: 0; font-size: 18px; text-align: center; }
  .ym-search-sheet__close { position: relative; width: 40px; height: 40px; border: 0; background: transparent; }
  .ym-search-sheet__close::before, .ym-search-sheet__close::after { position: absolute; top: 19px; left: 11px; width: 19px; height: 1.5px; background: #07183f; content: ""; transform: rotate(45deg); }
  .ym-search-sheet__close::after { transform: rotate(-45deg); }
  .ym-search-sheet__reset { min-height: 40px; padding: 0; border: 0; color: #c51628; background: transparent; font-size: 11px; }
  .ym-search-group { padding: 15px 0; border-bottom: 1px solid #edf0f4; }
  .ym-search-group h3 { margin: 0 0 10px; font-size: 14px; }
  .ym-search-group__title { display: flex; align-items: center; justify-content: space-between; }
  .ym-search-group__title button { min-height: 36px; border: 0; color: #c51628; background: transparent; font-size: 11px; }
  .ym-choice-row, .ym-choice-grid, .ym-room-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .ym-choice-grid { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .ym-room-row { display: grid; grid-template-columns: 1.35fr repeat(4,1fr); }
  .ym-choice-row input, .ym-choice-grid input, .ym-room-row input { position: absolute; opacity: 0; pointer-events: none; }
  .ym-choice-row label { flex: 0 0 auto; }
  .ym-choice-row span, .ym-choice-grid span, .ym-room-row span {
    display: flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px;
    border: 1px solid #dce2ea; border-radius: 11px; background: #fff; font-size: 12px; text-align: center;
  }
  .ym-choice-row input:checked + span, .ym-choice-grid input:checked + span, .ym-room-row input:checked + span { border-color: #e7182c; color: #b71323; background: #fff7f8; box-shadow: inset 0 0 0 1px #e7182c; }
  .ym-location-more { position: fixed; z-index: 320; inset: 0; padding: 0 16px 16px; overflow-y: auto; background: rgba(7,24,63,.32); }
  .ym-location-more > header, .ym-location-more > .ym-choice-grid { position: relative; top: 20vh; background: #fff; }
  .ym-location-more > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px; border-radius: 18px 18px 0 0; }
  .ym-location-more h4 { margin: 0; font-size: 17px; }
  .ym-location-more header button { position: relative; width: 40px; height: 40px; border: 0; background: transparent; }
  .ym-location-more header button::before, .ym-location-more header button::after { position: absolute; top: 19px; left: 10px; width: 20px; height: 1.5px; background: #07183f; content: ""; transform: rotate(45deg); }
  .ym-location-more header button::after { transform: rotate(-45deg); }
  .ym-location-more > .ym-choice-grid { padding: 8px 16px 18px; border-radius: 0 0 18px 18px; }
  .ym-search-range { width: 100%; height: 30px; accent-color: #e7182c; }
  .ym-search-group output { color: #c51628; font-size: 12px; font-weight: 700; }
  .ym-search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .ym-search-fields label { color: #788397; font-size: 10px; }
  .ym-search-fields input { width: 100%; height: 46px; margin-top: 4px; padding: 0 11px; border: 1px solid #dce2ea; border-radius: 10px; font-size: 14px; }
  .ym-search-submit { position: sticky; bottom: 0; width: 100%; min-height: 54px; margin-top: 16px; border: 0; border-radius: 13px; color: #fff; background: #e7182c; box-shadow: 0 7px 17px rgba(231,24,44,.22); font-size: 16px; font-weight: 700; }

  /* YARMETRO_ITEM2_MAP_NAV_V1: раньше здесь принудительно возвращали 4
   * колонки и прятали .ym-mobile-nav__map -- в разметке (footer.php) такой
   * кнопки не было вообще, так что скрывать было нечего. Теперь кнопка
   * "Карта" добавлена в footer.php (между "Объекты" и "Избранное") и
   * использует уже готовую вёрстку выше по каскаду (5 колонок, приподнятая
   * круглая иконка) -- здесь просто убираем прежний override. */

  /* YARMETRO_ITEM2_LIST_MODE_V1: у каталога на мобильном раньше было одно
   * состояние -- карта на фон, поверх неё плавающая шторка с карточками.
   * Развели на два режима: "Объекты" в нижней навигации = обычный список
   * без карты (классическая прокрутка страницы), "Карта" = прежнее комбо
   * карта+шторка. Переключается классом .ym-catalog-mode-map на <body>
   * (JS: initMobileMapResults / initMobileNavMapToggle в scripts.js). Все
   * прежние правила ниже, завязанные на карту, теперь работают только при
   * этом классе; для обычного списка -- парные правила. */
  .body--catalog { overflow: visible; }
  .body--catalog.ym-catalog-mode-map { overflow: hidden; }
  .body--catalog .header { position: fixed; z-index: 130; top: 0; right: 0; left: 0; }
  .body--catalog .main { margin-top: 64px; }
  .body--catalog.ym-catalog-mode-map .main { height: calc(100vh - 64px - 70px); overflow: hidden; }
  .body--catalog:not(.ym-catalog-mode-map) .main { min-height: calc(100vh - 64px - 70px); padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .body--catalog .main > .wrap { position: relative; padding: 0; }
  .body--catalog.ym-catalog-mode-map .main > .wrap { position: absolute; inset: 0; width: 100%; height: 100%; }
  /* YARMETRO_ITEM3_MAP_COMPACT_HEADER_V1: убираем плавающую плашку
   * "Недвижимость / N объектов" над картой (её функцию -- счётчик -- теперь
   * несёт live-счётчик на кнопке "Смотреть N объектов" внутри bottom-sheet,
   * см. YARMETRO_LIVE_PRICE_COUNT_V1) и поднимаем ряд быстрых фильтров-чипов
   * ближе к шапке сайта (top уменьшен с 44px до 14px). В обычном списке
   * (не map-режим) плашка остаётся -- там она единственное место, где виден
   * счётчик объектов. */
  .body--catalog.ym-catalog-mode-map .ym-mobile-catalog__header { display: none; }
  .body--catalog.ym-catalog-mode-map .ym-mobile-catalog {
    position: absolute; z-index: 30; top: 72px; right: 10px; left: 10px; margin: 0; padding: 0;
    border: 0; background: transparent; pointer-events: none;
  }
  /* YARMETRO_ITEM1_SHEET_STACKING_FIX_V1: .ym-mobile-catalog (position:absolute;
   * z-index:30 в режиме карты) создаёт собственный stacking context, и
   * вложенный в него .ym-mobile-sheet (position:fixed; z-index:250) фактически
   * визуально фиксирован к вьюпорту на весь экран (проверено getBoundingClientRect
   * -- top:0, bottom:816), но КОМПОЗИТИТСЯ на уровне z-index родителя, т.е. 30.
   * Поэтому шапка сайта (.header, z-index:130) и особенно шторка со списком
   * объектов на карте (.catalog-items, z-index:90, НЕ вложена в .ym-mobile-catalog)
   * перекрывали открытый bottom-sheet вместо того чтобы быть под ним -- баг
   * "тип недвижимости должен был поверх всего вылезти, но нет". Поднимаем
   * .ym-mobile-catalog выше всех конкурирующих fixed-элементов ТОЛЬКО пока
   * открыт sheet (класс ym-mobile-sheet-open навешивается в JS на body при
   * открытии/закрытии, см. mobile-catalog-controls.php). */
  .body--catalog.ym-mobile-sheet-open .ym-mobile-catalog { z-index: 400; }

  .body--catalog:not(.ym-catalog-mode-map) .ym-mobile-catalog { position: static; margin: 0; padding: 10px 10px 0; }
  .body--catalog .ym-mobile-catalog form, .body--catalog .ym-mobile-catalog button, .body--catalog .ym-mobile-catalog label { pointer-events: auto; }
  .body--catalog .ym-mobile-catalog__header { margin: 0 0 6px; padding: 8px 10px; border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(7,24,63,.12); }
  .body--catalog .ym-mobile-catalog__header span { font-size: 14px; }
  .body--catalog .ym-mobile-catalog__switch { width: 210px; margin-top: 0; box-shadow: 0 3px 12px rgba(7,24,63,.12); }
  .body--catalog .ym-mobile-catalog__chips, .body--catalog .ym-mobile-catalog__quick { margin-top: 7px; padding: 0; border: 0; }
  .body--catalog .ym-mobile-catalog__chips span, .body--catalog .ym-mobile-catalog__quick button, .body--catalog .ym-mobile-catalog__chips--locations button { min-height: 38px; background: rgba(255,255,255,.95); box-shadow: 0 3px 10px rgba(7,24,63,.1); }
  .body--catalog .ym-mobile-save-search { width: auto; min-height: 38px; margin-top: 7px; padding: 0 13px; border: 0; border-radius: 11px; color: #fff; background: #07183f; font-size: 11px; box-shadow: 0 3px 10px rgba(7,24,63,.15); }
  .body--catalog .ym-mobile-catalog__header { width: max-content; margin-bottom: 7px; }
  .body--catalog [data-mobile-catalog-form] {
    display: flex; align-items: center; gap: 7px; overflow-x: auto; padding: 1px 1px 8px;
    scrollbar-width: none; pointer-events: auto;
  }
  .body--catalog [data-mobile-catalog-form]::-webkit-scrollbar { display: none; }
  .body--catalog .ym-mobile-catalog__switch { flex: 0 0 190px; }
  .body--catalog .ym-mobile-catalog__chips, .body--catalog .ym-mobile-catalog__quick { flex: 0 0 auto; margin: 0; }
  .body--catalog .ym-mobile-catalog__quick { display: flex; gap: 7px; }
  .body--catalog .ym-mobile-catalog__quick button { min-width: 82px; }
  .body--catalog .ym-mobile-save-search { flex: 0 0 auto; margin: 0; }
  .body--catalog .ym-mobile-sheet { position: fixed; }
  .body--catalog .catalog-top, .body--catalog #application { display: none !important; }
  .body--catalog:not(.ym-catalog-mode-map) .catalog-map { display: none !important; }
  .body--catalog.ym-catalog-mode-map .catalog-map { display: block !important; position: absolute; inset: 0; height: 100%; min-height: 0; margin: 0 !important; }
  .body--catalog .catalog-map #map { width: 100%; height: 100%; min-height: 360px; background: #eef2f5; }
  .body--catalog .catalog-map.is-map-error #map::after { display: grid; position: absolute; inset: 0; place-items: center; padding: 24px; color: #68758d; background: #eef2f5; content: "Карта временно не загрузилась. Обновите страницу."; font-size: 13px; text-align: center; }
  /* YARMETRO_ITEM10_ZOOM_CONTROL_FIX_V1: зумControl Яндекс.Карт ставит себя
   * инлайн-стилем (inset: 108px auto auto 10px), что на мобильном упирается
   * прямо в ряд кнопок быстрых фильтров сверху карты. Опускаем ниже через
   * !important -- перебивает инлайн-стиль. */
  .body--catalog .catalog-map .ymaps-2-1-79-controls__control { top: 170px !important; }
  /* YARMETRO_ITEM11_MOBILE_MAP_DOTS_V2: маленькие точки вместо ценников и
   * подписанных кластеров -- разметку создаёт openCatalogMap() в
   * news.list/catalog/template.php (см. YARMETRO_ITEM11_MOBILE_MAP_DOTS_V2
   * там же). */
  .metro-map-dot { width: 14px; height: 14px; border-radius: 50%; background: #e7182c; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(7,24,63,.4); }
  .metro-map-dot--cluster { width: 18px; height: 18px; }
  /* YARMETRO_ITEM2B_MOBILE_MAP_TAP_FEEDBACK_V1: кратковременное "гашение" метки
   * (точки или пилюли с ценой) по тапу -- видимое подтверждение, что тап
   * зарегистрирован, даже пока балун ещё грузится/открывается. */
  .metro-map-dot.ym-map-marker--tapped,
  .metro-map-single-price.ym-map-marker--tapped {
    opacity: .35 !important;
    transition: opacity .12s ease;
  }
  /* YARMETRO_ITEM2B_MOBILE_MAP_PROGRESSIVE_PRICE_V1: пилюля с ценой для одиночных
   * (некластеризованных) меток -- раскрывается по мере приближения зума/
   * уменьшения числа видимых одиночных объектов в районе (см. openCatalogMap()
   * в components/bitrix/news.list/catalog/template.php, ymUpdateMobilePriceReveal).
   * transform: translate(-50%,-50%) вместо фикс. пиксельного сдвига (как у
   * .metro-map-bubble) -- ширина плашки зависит от длины цены, процентное
   * центрирование корректно работает при любой ширине контента. */
  .metro-map-single-price {
    transform: translate(-50%, -50%);
    display: flex; align-items: center; justify-content: center;
    padding: 4px 10px; border-radius: 12px;
    background: #fff; color: var(--metro-mobile-ink);
    font-size: 11px; font-weight: 700; white-space: nowrap;
    border: 1.5px solid var(--metro-mobile-accent);
    box-shadow: 0 1px 4px rgba(7,24,63,.28);
  }
  /* YARMETRO_ITEM2_MAP_CLUSTER_PRICE_BUBBLE_V1: компактный ценник на месте
   * кластера точек -- кружок с числом объектов + белая плашка с минимальной
   * ценой по кластеру (см. openCatalogMap() в components/bitrix/news.list/
   * catalog/template.php, clusterLayout для isMobileCatalogMap). Одиночные
   * точки (.metro-map-dot без --cluster) остаются без подписи. */
  .metro-map-bubble {
    display: flex; align-items: center; transform: translate(-12px, -12px);
    filter: drop-shadow(0 2px 6px rgba(7,24,63,.28));
  }
  .metro-map-bubble__count {
    position: relative; z-index: 2; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--metro-mobile-accent); color: #fff;
    font-size: 12px; font-weight: 700; border: 2px solid #fff; box-sizing: border-box;
  }
  .metro-map-bubble__price {
    position: relative; z-index: 1; margin-left: -10px;
    padding: 4px 10px 4px 16px; border-radius: 12px;
    background: #fff; color: var(--metro-mobile-ink);
    font-size: 11px; font-weight: 600; white-space: nowrap;
    box-shadow: 0 1px 3px rgba(7,24,63,.18);
  }
  /* YARMETRO_ITEM6_MAP_BALLOON_PANEL_V1: дефолтный балун Yandex Maps ("плавающий"
   * тултип с хвостиком и отдельной кнопкой закрытия, съезжающей за край экрана)
   * выглядел непропорционально на мобилке -- жалоба п.6. balloonPanelMaxMapArea:
   * Infinity (openCatalogMap() в components/bitrix/news.list/catalog/template.php)
   * включает штатный "панельный" режим балуна Yandex -- полноширинная панель,
   * прижатая к низу карты, без хвостика. Ниже -- стилизация под бренд + отступ
   * снизу, чтобы контент не заезжал под фикс. нижнюю нав-панель (высота см.
   * YARMETRO_ITEM5_NAV_COMPACT_V1) -- без этого отступа цена оказывалась
   * физически под нав-баром (проверено live: .map-hint__price y:743-767 при
   * старте нав-бара на y:739 -- полностью перекрыто, невидимо для пользователя). */
  .ymaps-2-1-79-balloon_layout_panel {
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -6px 24px rgba(7,24,63,.24) !important;
    z-index: 500 !important;
  }
  /* YARMETRO_ITEM36_PANEL_ABOVE_SHEET_V1: приоткрытая шторка списка объектов
     (.catalog-items, z-index 90) рендерится поверх карты даже в режиме
     "Карта" -- без этого превью объекта пряталось под ней (см. фидбек п.36,
     обнаружено live: панель балуна h=197 но невидима под .catalog-items). */
  .ymaps-2-1-79-balloon {
    z-index: 500 !important;
  }
  .ymaps-2-1-79-balloon_layout_panel .ymaps-2-1-79-balloon__content {
    padding-bottom: calc(60px + env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }

/* YARMETRO_ITEM36_HIDE_SHEET_ON_PREVIEW_V1: см. template.php --
   body.ym-map-preview-open переключается по клику на метку / закрытию
   балуна. Прячем .catalog-items целиком, а не боремся с z-index --
   она рендерится в собственном fixed-стеке выше .ymaps-2-1-79-map
   (см. YARMETRO_ITEM36_PANEL_ABOVE_SHEET_V1 выше). */
/* ОТМЕНЕНО: п.1.1 фидбека 2026-09-06 -- шторка со списком объектов прятаться
   при открытии превью НЕ должна. Превью теперь рисуется своей панелью в body
   (.ym-map-preview-card, YARMETRO_ITEM41_CUSTOM_PREVIEW_V1 в
   news.list/catalog/template.php) и спокойно ложится поверх шторки, так что
   прятать её больше незачем. Правило оставлено пустым намеренно -- сам класс
   ym-map-preview-open больше нигде не выставляется. */
  .ymaps-2-1-79-balloon_layout_panel .ymaps-2-1-79-balloon__close {
    top: 10px !important;
    right: 10px !important;
  }
  .ymaps-2-1-79-balloon_layout_panel .ymaps-2-1-79-balloon__close-button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50%;
    background-color: rgba(255,255,255,.92);
    box-shadow: 0 2px 8px rgba(7,24,63,.22);
  }
  /* YARMETRO_ITEM34_36_PIN_PRICE_SELECTED_V1: цена отдельной плашкой над
   точкой (не овал вместо точки -- см. фидбек скрин 1), плюс устойчивое
   "выбранное" состояние точки (см. YARMETRO_ITEM36_PIN_TAP_ZOOM_SELECT_V1
   в template.php). .ym-map-pin -- новый DOM-контейнер метки, а не
   .metro-map-marker, чтобы не пересекаться со старым десктопным классом
   маркера выше. */
  .ym-map-pin { position: relative; width: 14px; height: 14px; }
  .ym-map-pin.ym-map-marker--tapped { opacity: .35 !important; transition: opacity .12s ease; }
  .metro-map-marker__price {
    display: none;
    pointer-events: none;
    position: absolute;
    left: 50%; bottom: 100%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    padding: 3px 8px;
    border-radius: 10px;
    background: #fff;
    color: var(--metro-mobile-ink);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    border: 1.5px solid var(--metro-mobile-accent);
    box-shadow: 0 1px 4px rgba(7,24,63,.28);
  }
  .ym-map-pin--price .metro-map-marker__price { display: block; }
  /* YARMETRO_ITEM41_SELECTED_PIN_V1: п.3 фидбека 2026-09-06 -- выбранная точка
     должна УВЕЛИЧИВАТЬСЯ (раньше уменьшалась, это читалось как "погасла"), а её
     цена -- заливка фирменным красным с белым текстом (раньше был просто красный
     текст на белом, что интуитивно не читалось как "выбрано"). */
  .ym-map-pin.is-selected .metro-map-dot { transform: scale(1.45); transition: transform .15s ease; }
  .ym-map-pin.is-selected .metro-map-marker__price {
    display: block;
    background: var(--metro-mobile-accent);
    color: #fff;
    border-color: var(--metro-mobile-accent);
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(231,24,44,.35);
  }
  /* YARMETRO_ITEM36_MOBILE_MAP_PREVIEW_V1: компактная горизонтальная
     карточка объекта в панели-балуне карты (генерируется
     generate_catalog_point_html_mobile в scripts.js) вместо крупного
     десктопного .map-hint с фото 320x192 -- см. фидбек п.36. */
  .ym-map-preview { display: flex; align-items: stretch; gap: 12px; padding: 12px; }
  .ym-map-preview__link { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; }
  .ym-map-preview__photo { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 12px; background-color: #f1f3f5; background-size: cover; background-position: center; }
  .ym-map-preview__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .ym-map-preview__price { font-size: 17px; font-weight: 700; color: var(--metro-mobile-ink); }
  .ym-map-preview__title { font-size: 13px; color: var(--metro-mobile-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ym-map-preview__address { font-size: 12px; color: var(--metro-mobile-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ym-map-preview__call {
    flex: 0 0 auto; align-self: center; display: flex; align-items: center; justify-content: center;
    padding: 0 16px; height: 38px; border-radius: 10px;
    background: var(--metro-mobile-accent); color: #fff; font-size: 13px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
  }
/* YARMETRO_ITEM35_CIAN_STYLE_ZOOM_CONTROLS_V1: раздельные скруглённые
     кнопки +/- вместо дефолтной вертикальной полосы Yandex со слайдером
     (см. фидбек п.35, референс ЦИАН). Слайдер (.ymaps-2-1-79-zoom__scale)
     скрыт полностью -- на мобилке зум только кнопками. */
  .ymaps-2-1-79-zoom {
    height: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: transparent !important;
  }
  .ymaps-2-1-79-zoom__scale { display: none !important; }
  .ymaps-2-1-79-zoom__plus.ymaps-2-1-79-zoom__button,
  .ymaps-2-1-79-zoom__minus.ymaps-2-1-79-zoom__button {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 2px 10px rgba(7,24,63,.18) !important;
    border: none !important;
  }
  /* YARMETRO_ITEM38_ZOOM_ICON_REDRAW_V1: фидбек (2026-09-06, скрин) --
   * дефолтный спрайт-глиф Yandex внутри .ymaps-2-1-79-zoom__icon визуально
   * не по центру кнопки (сам спрайт со смещением) и выглядит устаревшим.
   * Прячем родную иконку и рисуем свои +/- псевдоэлементами -- гарантированно
   * по центру (position:absolute + transform:translate(-50%,-50%) от центра
   * кнопки, которая уже position:relative) и в едином современном стиле. */
  .ymaps-2-1-79-zoom__plus .ymaps-2-1-79-zoom__icon,
  .ymaps-2-1-79-zoom__minus .ymaps-2-1-79-zoom__icon {
    display: none !important;
  }
  .ymaps-2-1-79-zoom__plus::before,
  .ymaps-2-1-79-zoom__plus::after,
  .ymaps-2-1-79-zoom__minus::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--metro-mobile-ink, #1c2b45);
    border-radius: 1px;
  }
  .ymaps-2-1-79-zoom__plus::before,
  .ymaps-2-1-79-zoom__minus::before {
    width: 16px;
    height: 2px;
    transform: translate(-50%, -50%);
  }
  .ymaps-2-1-79-zoom__plus::after {
    width: 2px;
    height: 16px;
    transform: translate(-50%, -50%);
  }
  /* YARMETRO_ITEM7_GALLERY_NAV_PROGRESS_V1: bracket-стрелки + прогресс-полоса
   * поверх мобильной фотокарусели карточки объекта. */
  .catalog-item__img-mobile.swiper-container {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
  }
  .catalog-item__img-mobile.swiper-container::before {
    content: '';
    position: absolute;
    z-index: 5;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(7,24,63,.38), rgba(7,24,63,0));
    pointer-events: none;
  }
  .ym-gallery-progress {
    position: absolute; z-index: 6; top: 10px; left: 10px; right: 10px;
    display: flex; gap: 4px;
    pointer-events: none;
  }
  .ym-gallery-progress__seg {
    flex: 1 1 0; height: 3px; border-radius: 2px;
    background: rgba(255,255,255,.4);
    overflow: hidden;
  }
  .ym-gallery-progress__seg.is-filled { background: #fff; }
  .ym-gallery-nav {
    position: absolute; z-index: 6; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.92);
    box-shadow: 0 2px 8px rgba(7,24,63,.22);
    color: #1c2430; font-size: 20px; line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .ym-gallery-nav::before { position: relative; top: -1px; }
  .ym-gallery-nav--prev { left: 8px; }
  .ym-gallery-nav--prev::before { content: '\2039'; }
  .ym-gallery-nav--next { right: 8px; }
  .ym-gallery-nav--next::before { content: '\203A'; }
  /* YARMETRO_ITEM9_GALLERY_LIGHTBOX_V1: полноэкранный лайтбокс фото (Fancybox,
   * группа data-fancybox="ym-object-gallery"). Общий для сайта фон .fancybox-bg
   * (metro.css: .fancybox-is-open .fancybox-bg{opacity:.4}) сделан для форм
   * обратной связи -- для полноэкранной фотогалереи нужен непрозрачный тёмный
   * фон, поэтому здесь override только для baseClass ym-fancy-gallery,
   * специфичность 3 класса перекрывает правило metro.css (2 класса). */
  .ym-fancy-gallery.fancybox-is-open .fancybox-bg { opacity: .95; }
  /* YARMETRO_ITEM9_SHEET_DRAG_V1: шторка над картой -- "bottom" берём из
   * --ym-mobile-nav-h (реальная высота нижней навигации, меряем в JS,
   * см. syncMobileNavHeight в scripts.js), а не из фиксированных 70px --
   * реальная высота панели гуляет (безопасная зона, перенос подписей) и
   * фиксированное число давало наезд шторки на навигацию на part устройств. */
  .body--catalog.ym-catalog-mode-map .catalog-items {
    position: fixed; z-index: 90; right: 0; bottom: var(--ym-mobile-nav-h, calc(72px + env(safe-area-inset-bottom))); left: 0;
    height: 36vh; margin: 0; padding: 0 12px 18px; overflow-y: auto; border-radius: 22px 22px 0 0;
    background: #fff; box-shadow: 0 -5px 22px rgba(7,24,63,.18); touch-action: pan-y; transition: height .22s ease;
    /* YARMETRO_ITEM10_ROUND24: страховка от "призрачного" белого прямоугольника
     * при быстром изменении height на iOS Safari -- явно выносим шторку в
     * отдельный composite-слой, чтобы браузер надёжнее перерисовывал область
     * позади неё при анимации сжатия/раскрытия. */
    transform: translateZ(0); -webkit-transform: translateZ(0); backface-visibility: hidden; -webkit-backface-visibility: hidden;
  }
  .body--catalog.ym-catalog-mode-map .catalog-items.is-dragging { transition: none; }
  .body--catalog:not(.ym-catalog-mode-map) .catalog-items { position: static; margin: 0; padding: 10px 12px 4px; }
  .body--catalog:not(.ym-catalog-mode-map) .ym-catalog-sheet-handle { display: none; }
  /* YARMETRO_ITEM9_SHEET_DRAG_V1: ручка увеличена до полноценной зоны
   * захвата (44px, минимум для тач-таргета) с более заметным "грипом";
   * тап по ручке (без протяжки) переключает шторку по кругу
   * свернуто -> половина -> развернуто -- см. ту же метку в scripts.js. */
  /* YARMETRO_ITEM4_HANDLE_VISIBILITY_V1: ручка теперь всегда стоит на своём
   * непрозрачном белом фоне со скруглением и лёгкой тенью снизу -- раньше
   * background:transparent означал, что видна только тонкая серая
   * полоска-индикатор (52x6px) без какой-либо подложки, из-за чего на фоне
   * фото объекта/чипов её было легко не заметить и не понять, что за неё
   * можно тянуть. */
  /* YARMETRO_ITEM4_HANDLE_STICKY_V1: ручка переведена с absolute на sticky,
   * чтобы при скролле содержимого шторки (карточка объекта раскрыта на всю
   * высоту) ручка оставалась прикреплена к верху видимой области, а не
   * прокручивалась вместе с контентом и не пропадала из виду -- см.
   * скриншот 4 из punch-list. */
  .ym-catalog-sheet-handle {
    position: sticky; z-index: 5; top: 0; left: 0; width: calc(100% + 24px); margin: 0 -12px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    padding: 0; border: 0; background: #fff; border-radius: 22px 22px 0 0;
    box-shadow: 0 -3px 10px rgba(7,24,63,.08); touch-action: none; cursor: ns-resize;
  }
  .ym-catalog-sheet-handle span {
    display: block; width: 52px; height: 6px; border-radius: 3px;
    background: #c3cad4; transition: background .15s ease, width .15s ease;
  }
  .ym-catalog-sheet-handle:active span,
  .body--catalog.ym-catalog-mode-map .catalog-items.is-dragging .ym-catalog-sheet-handle span {
    width: 60px; background: #8b96a8;
  }
  .body--catalog .metro-catalog-grid { display: grid !important; grid-template-columns: 1fr !important; gap: 18px; }
  .body--catalog .metro-catalog-card { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .body--catalog .metro-catalog-card__media { position: relative; width: 100%; height: 150px; overflow: hidden; border-radius: 16px; }
  .body--catalog .metro-catalog-card__track, .body--catalog .metro-catalog-card__slide { height: 100%; }
  .body--catalog .metro-catalog-card__slide img { width: 100%; height: 100%; object-fit: cover; }
  .body--catalog /* YARMETRO_ITEM4_BODYLINK_HEIGHT_FIX_V1: базовое (не мобильное) правило
   * .metro-catalog-card__body-link { height:100% } рассчитано на десктопную
   * grid-раскладку карточки. На мобильной раскладке карточка display:block,
   * поэтому "100%" резолвился в высоту ВСЕЙ карточки -- блок с ценой/адресом
   * растягивался на 500+px и залезал под фото следующего объекта, утаскивая
   * за собой кнопки Позвонить/Скопировать/Поделиться. Сбрасываем к auto. */
  .metro-catalog-card__body-link { padding: 13px 2px 10px; height: auto; }
  .body--catalog .metro-catalog-card__price { font-size: 21px; }
  .body--catalog .metro-catalog-card__name { font-size: 14px; }
  .body--catalog .metro-catalog-card__address { font-size: 12px; line-height: 1.45; }
  .body--catalog .metro-catalog-card__footer { display: none; }
  .ym-card-thumbs { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; width: 100%; margin-top: 7px; }
  .ym-card-thumbs button { width: 100%; height: 62px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 9px; background: #eef1f5; }
  .ym-card-thumbs button.is-active { border-color: transparent; }
  .ym-card-thumbs img { width: 100%; height: 100%; object-fit: cover; }
  /* YARMETRO_ACTIONS_ICONS_V1: было 3 текстовые кнопки одинаковой ширины в
   * grid (1.5fr/1fr/1fr) -- "Позвонить" еле отличался по размеру от
   * "Скопировать"/"Поделиться". Теперь flex: Позвонить растягивается на всё
   * оставшееся место (реально крупный, как основной CTA), а Скопировать/
   * Поделиться -- квадратные иконки фиксированного размера 46x46. */
  .ym-card-actions { display: flex; align-items: stretch; gap: 8px; padding: 0 2px 14px; }
  .ym-card-actions a { flex: 1 1 auto; display: flex; min-height: 46px; align-items: center; justify-content: center; border: 1px solid #e7182c; border-radius: 12px; color: #fff; background: #e7182c; font-size: 14px; font-weight: 700; text-decoration: none; }
  .ym-card-actions button {
    position: relative; flex: 0 0 46px; width: 46px; height: 46px; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #dce2ea; border-radius: 12px; color: #07183f; background: #fff;
    transition: background .15s ease, border-color .15s ease;
  }
  .ym-card-actions button svg { width: 20px; height: 20px; }
  /* Тот же приём успеха (зелёная подсветка + галочка) переиспользует нижняя
   * панель "..." карточки -- см. YARMETRO_ITEM8_PANEL_ICONS_V1. */
  .ym-card-actions button .ym-icon-check, .ym-object-actions-panel__row button .ym-icon-check { display: none; color: #1a9d5c; }
  .ym-card-actions button.is-success, .ym-object-actions-panel__row button.is-success { border-color: #1a9d5c; background: #eafff3; }
  .ym-card-actions button.is-success .ym-icon-default, .ym-object-actions-panel__row button.is-success .ym-icon-default { display: none; }
  .ym-card-actions button.is-success .ym-icon-check, .ym-object-actions-panel__row button.is-success .ym-icon-check { display: block; }
  /* YARMETRO_NAV_ARROW_SYMMETRY_V1: раньше "<" и ">" центрировались через
   * разные margin-left (12px и 5px) поверх базового left:50% без компенсации
   * translateX -- на мобильном это давало заметно разное положение стрелок
   * внутри одинаковых по размеру кнопок (правая казалась прижатой к краю).
   * Центрируем обе стрелки одинаковым transform: translate(-50%,-50%). */
  .body--catalog .metro-catalog-card__nav { top: 50%; width: 34px; height: 58px; margin: 0; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; transform: translateY(-50%); }
  .body--catalog .metro-catalog-card__nav::before { display: block; width: 13px; height: 13px; margin: 0; border: solid #fff; border-width: 2px 2px 0 0; content: ""; filter: drop-shadow(0 1px 2px rgba(7,24,63,.65)); left: 50%; }
  .body--catalog .metro-catalog-card__nav--prev { left: 5px; }
  .body--catalog .metro-catalog-card__nav--prev::before { transform: translate(-50%, -50%) rotate(-135deg); }
  .body--catalog .metro-catalog-card__nav--next { right: 5px; }
  .body--catalog .metro-catalog-card__nav--next::before { transform: translate(-50%, -50%) rotate(45deg); }
  .ym-mobile-sheet__checks--locations { grid-template-columns: 1fr 1fr; }
  .ym-mobile-sheet__checks--category { grid-template-columns: 1fr 1fr; }
  .ym-mobile-sheet__checks--regions { grid-template-columns: 1fr; }

  .ym-mobile-about-panel, .ym-object-actions-panel { position: fixed; z-index: 290; inset: 0; font-family: Arial,Helvetica,sans-serif; }
  .ym-mobile-about-panel__backdrop, .ym-object-actions-panel__backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(7,24,63,.4); }
  .ym-mobile-about-panel > div, .ym-object-actions-panel > div { position: absolute; right: 0; bottom: 0; left: 0; padding: 19px 16px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: #fff; }
  .ym-mobile-about-panel header, .ym-object-actions-panel header { display: flex; align-items: flex-start; justify-content: space-between; }
  .ym-mobile-about-panel h2 { margin: 4px 0 0; font-size: 22px; }
  .ym-mobile-about-panel header span { color: #e7182c; font-size: 10px; font-weight: 700; text-transform: uppercase; }
  .ym-mobile-about-panel header button, .ym-object-actions-panel header button { width: 42px; height: 42px; border: 0; color: #c51628; background: transparent; }
  .ym-mobile-about-panel > div > p, .ym-object-actions-panel > div > p { color: #69768c; font-size: 13px; line-height: 1.5; }
  .ym-mobile-about-panel__links { display: grid; gap: 8px; margin: 15px 0; }
  .ym-mobile-about-panel__links a { display: flex; min-height: 47px; align-items: center; padding: 0 13px; border: 1px solid #dfe4ec; border-radius: 11px; color: #07183f; background: #fff; font-size: 13px; text-decoration: none; }
  .ym-mobile-about-panel__phone, .ym-object-actions-panel__call { display: flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 12px; color: #fff; background: #e7182c; font-size: 14px; font-weight: 700; text-decoration: none; }
  .ym-object-actions-panel header strong, .ym-object-actions-panel header span { display: block; }
  .ym-object-actions-panel header strong { font-size: 21px; }
  .ym-object-actions-panel header span { margin-top: 4px; color: #68758d; font-size: 12px; }
  .ym-object-actions-panel__call { margin: 15px 0 8px; }
  /* YARMETRO_ITEM8_PANEL_ICONS_V1: было 3 текстовые кнопки в столбик на всю
   * ширину ("Скопировать ссылку" / "Поделиться" / "Добавить в избранное") --
   * гигантские и однообразные. Теперь ряд из 3 квадратных кнопок-иконок с
   * подписью под ними, как в карточке (см. YARMETRO_ACTIONS_ICONS_V1). */
  .ym-object-actions-panel__row { display: flex; gap: 8px; margin-top: 8px; }
  .ym-object-actions-panel__row button {
    flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 5px; min-height: 64px; padding: 10px 4px; border: 1px solid #dfe4ec; border-radius: 12px;
    color: #07183f; background: #fff; font-size: 11px; line-height: 1.2; text-align: center;
    transition: background .15s ease, border-color .15s ease;
  }
  .ym-object-actions-panel__row button svg { width: 20px; height: 20px; }
}

/* ============================================================================
   YARMETRO_ITEM42_MAP_UI_V2 -- фидбек 2026-09-06 (вечер), пункты 1, 2, 9.
   Превью объекта по тапу на метку: компактнее примерно на треть, сердечко
   избранного на фото, кнопки "позвонить" и "скопировать ссылку" в ряд.
   Шторка со списком важнее превью -- она перекрывает его по z-index, а
   касание шторки его закрывает (логика в scripts.js, YARMETRO_ITEM42_MAP_LAYER_V2).
   В шторке снова ШТАТНЫЕ карточки каталога (мой упрощённый список убран),
   поэтому серверную сетку больше не прячем -- прячем только пагинацию,
   так как объекты подгружаются по мере скролла.
   ========================================================================= */
@media (max-width: 767px) {
  /* --- превью объекта над шторкой --- */
  .ym-map-preview-card {
    position: fixed;
    z-index: 300;
    left: 10px;
    right: 10px;
    bottom: calc(var(--ym-mobile-nav-h, 73px) + 44px);
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 10px 26px rgba(7,24,63,.28);
    animation: ymMapPreviewUp .18s ease;
  }
  .ym-map-preview-card[hidden] { display: none !important; }
  @keyframes ymMapPreviewUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
  .ym-map-preview-card__media { position: relative; display: block; }
  .ym-map-preview-card__photo-link { display: block; }
  /* YARMETRO_ITEM43_PHOTO_FIT_V1: единое правило для всех фото (превью,
     карточки в шторке): картинку показываем ЦЕЛИКОМ, а пустоту по краям
     заполняем её же размытой копией -- так не режется ни вертикальное, ни
     широкое фото, и размер окна не скачет. */
  .ym-map-preview-card__track {
    display: flex;
    width: 100%;
    will-change: transform;
    touch-action: pan-y;
  }
  .ym-map-preview-card__photo {
    position: relative;
    display: block;
    flex: 0 0 100%;
    width: 100%;
    height: 92px;
    overflow: hidden;
    background-color: #eef1f5;
  }
  .ym-map-preview-card__photo::before,
  .ym-map-preview-card__photo::after {
    content: "";
    position: absolute;
    background-image: var(--ym-photo, none);
    background-position: center;
    background-repeat: no-repeat;
  }
  .ym-map-preview-card__photo::before {
    inset: -16px;
    background-size: cover;
    filter: blur(12px) saturate(1.1);
    opacity: .92;
  }
  .ym-map-preview-card__photo::after {
    inset: 0;
    background-size: contain;
  }
  .ym-map-preview-card__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    display: flex;
    justify-content: center;
    gap: 5px;
    pointer-events: none;
  }
  .ym-map-preview-card__dots i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.65);
    box-shadow: 0 1px 3px rgba(7,24,63,.35);
  }
  .ym-map-preview-card__dots i.is-active { background: #fff; width: 6px; height: 6px; }
  .ym-map-preview-card__close,
  .ym-map-preview-card__fav {
    position: absolute;
    top: 8px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.92);
    color: var(--metro-mobile-ink);
    box-shadow: 0 2px 8px rgba(7,24,63,.22);
    cursor: pointer;
  }
  .ym-map-preview-card__close { right: 8px; }
  .ym-map-preview-card__fav { right: 46px; }
  .ym-map-preview-card__fav.is-active { color: var(--metro-mobile-accent); }
  .ym-map-preview-card__fav.is-active svg { fill: var(--metro-mobile-accent); }
  .ym-map-preview-card__body {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px 9px;
  }
  .ym-map-preview-card__info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: inherit;
    text-decoration: none;
  }
  .ym-map-preview-card__price { font-size: 15px; font-weight: 800; color: var(--metro-mobile-ink); }
  .ym-map-preview-card__title { font-size: 11px; color: var(--metro-mobile-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ym-map-preview-card__address { font-size: 10px; color: var(--metro-mobile-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* кнопки в РЯД (п.1 фидбека): позвонить + скопировать ссылку */
  .ym-map-preview-card__actions { flex: 0 0 auto; display: flex; flex-direction: row; gap: 8px; }
  .ym-map-preview-card__btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
  }
  .ym-map-preview-card__btn--call { background: var(--metro-mobile-accent); color: #fff; }
  .ym-map-preview-card__btn--copy { background: rgba(231,24,44,.10); color: var(--metro-mobile-accent); }
  .ym-map-preview-card__btn--copy.is-done { background: var(--metro-mobile-accent); color: #fff; }

  /* шторка визуально и фактически главнее превью: перекрывает его собой */
  .body--catalog.ym-catalog-mode-map .catalog-items { z-index: 400; }
  /* карточки в шторке подгружаются по мере скролла -- пагинация не нужна */
  .body--catalog.ym-catalog-mode-map .catalog-items > .modern-page-navigation { display: none; }
  .ym-sheet-note { padding: 14px 4px; margin: 0; color: var(--metro-mobile-muted); font-size: 13px; line-height: 1.4; }

  /* --- мини-фото и цена в избранном (п.9 фидбека) --- */
  .ym-mobile-saved-row a { grid-template-columns: 128px 1fr; align-items: center; gap: 12px; }
  .ym-mobile-saved-row__photo {
    width: 128px;
    height: 104px;
    border-radius: 9px;
    background-color: #eef1f5;
    background-size: cover;
    background-position: center;
  }
  .ym-mobile-saved-row__text { display: grid; gap: 2px; min-width: 0; }
  .ym-mobile-saved-row__price { font-style: normal; font-weight: 700; font-size: 13px; color: var(--metro-mobile-ink); }
  .ym-mobile-saved-row__price:empty { display: none; }

  /* --- п.8: в разделе "Объекты" плашка "Недвижимость / N объектов" не нужна,
     кнопки фильтров поднимаются наверх --- */
  .ym-mobile-catalog__header { display: none; }
}

/* ============================================================================
   YARMETRO_ITEM43_UI_V3 -- фидбек 2026-09-06 (ночь), пункты 2, 3, 4.
   ========================================================================= */
@media (max-width: 767px) {
  /* --- п.2: подсветка активного раздела в нижнем меню ---
     раньше подсветка была прибита к типу страницы (.body--catalog всегда
     подсвечивал "Объекты"), из-за чего на карте горел не тот раздел.
     Теперь активную кнопку расставляет JS классом is-active
     (syncNav в footer.php), а старые жёсткие правила глушим. */
  body.ym-nav-managed .ym-mobile-nav__home,
  body.ym-nav-managed .ym-mobile-nav__search {
    color: var(--metro-mobile-muted);
    background: transparent;
  }
  body.ym-nav-managed .ym-mobile-nav__home::before,
  body.ym-nav-managed .ym-mobile-nav__search::before {
    border-color: var(--metro-mobile-ink);
  }
  .ym-mobile-nav a.is-active {
    color: var(--metro-mobile-warm);
    background: #fff8f4;
  }
  .ym-mobile-nav a.is-active::before {
    border-color: var(--metro-mobile-warm);
  }

  /* --- п.1: карточки в шторке должны листаться пальцем ---
     Старый код драга шторки выставляет ей inline touch-action: none во всех
     состояниях, кроме полностью раскрытого, и переустанавливает его при
     каждом снапе -- поэтому в среднем положении список не скроллился вообще.
     Правило с !important перебивает инлайновый стиль независимо от того,
     когда JS его записал. Свайп-сворачивание шторки при этом сохраняется:
     его логика сама отменяется, если список реально прокручен. */
  .body--catalog.ym-catalog-mode-map .catalog-items {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }

  /* --- п.3: карточка в шторке должна помещаться в среднее положение ---
     среднее положение шторки -- 36vh (около 292px на iPhone). Фото карточки
     занимало 224px, и под ним уже ничего не помещалось. Ужимаем медиа-блок
     именно в режиме карты, в обычном списке карточка остаётся прежней. */
  .body--catalog.ym-catalog-mode-map .catalog-items .metro-catalog-card__media {
    height: 148px;
    min-height: 148px;
  }
  .body--catalog.ym-catalog-mode-map .catalog-items .metro-catalog-card__body-link {
    padding: 10px 12px 10px;
  }

  /* --- п.4: единое правило показа фотографий ---
     фото любой пропорции показываем целиком, пустоту по краям заполняем его
     же размытой копией; размер окна при этом не меняется */
  .metro-catalog-card__slide {
    position: relative;
    overflow: hidden;
    background-color: #eef1f5;
  }
  .metro-catalog-card__slide::before {
    content: "";
    position: absolute;
    inset: -18px;
    background-image: var(--metro-card-photo, none);
    background-size: cover;
    background-position: center;
    filter: blur(14px) saturate(1.1);
    opacity: .92;
  }
  .body--catalog .metro-catalog-card__slide img {
    position: relative;
    z-index: 1;
    object-fit: contain;
  }
}

/* ===================================================================
   YARMETRO_ITEM44_PHOTO_FIT_V2 -- единое правило показа фотографий
   (фидбек 2026-09-06).
   1) Снимок любого формата занимает НЕ МЕНЕЕ 80% окна показа и стоит
      по центру; оставшиеся <=20% -- размытая копия того же снимка.
      Точный размер считает JS (footer.php, fitAllPhotos) и кладёт его
      в --ym-photo-size: чистым CSS это не описать, потому что
      background-size: contain оставляет сколь угодно широкие поля.
   2) Превью объекта на карте ужато ещё на 20%, причём белая часть с
      текстом и кнопками уменьшена в пользу фотографии.
   =================================================================== */
@media (max-width: 767px) {
  .ym-map-preview-card__photo { height: 100px; }
  .ym-map-preview-card__photo::before { inset: -14px; filter: blur(10px) saturate(1.1); opacity: .95; }
  .ym-map-preview-card__photo::after { background-size: var(--ym-photo-size, contain); }

  .ym-map-preview-card__body { gap: 8px; padding: 4px 10px 5px; }
  .ym-map-preview-card__info { gap: 1px; }
  .ym-map-preview-card__price { font-size: 13px; line-height: 1.1; }
  .ym-map-preview-card__title { font-size: 10px; line-height: 1.15; }
  .ym-map-preview-card__address { font-size: 9.5px; line-height: 1.15; }
  .ym-map-preview-card__actions { gap: 7px; }
  .ym-map-preview-card__btn { width: 30px; height: 30px; border-radius: 10px; }
  .ym-map-preview-card__btn svg { width: 16px; height: 16px; }
  .ym-map-preview-card__close,
  .ym-map-preview-card__fav { width: 28px; height: 28px; top: 7px; }
  .ym-map-preview-card__close { right: 7px; }
  .ym-map-preview-card__fav { right: 41px; }
  .ym-map-preview-card__dots { bottom: 5px; }

  /* карточка в шторке -- то же правило 80/20 */
  .body--catalog .metro-catalog-card__slide { overflow: hidden; }
  .body--catalog .metro-catalog-card__slide img { object-fit: contain; transform-origin: 50% 50%; }
  .body--catalog .metro-catalog-card__slide::before { inset: -14px; filter: blur(10px) saturate(1.1); opacity: .95; }

  /* избранное -- то же правило 80/20 вместо жёсткой обрезки cover */
  .ym-mobile-saved-row__photo { position: relative; overflow: hidden; }
  .ym-mobile-saved-row__photo::before,
  .ym-mobile-saved-row__photo::after {
    content: "";
    position: absolute;
    background-image: var(--ym-photo, none);
    background-position: center;
    background-repeat: no-repeat;
  }
  .ym-mobile-saved-row__photo::before { inset: -12px; background-size: cover; filter: blur(9px) saturate(1.1); opacity: .95; }
  .ym-mobile-saved-row__photo::after { inset: 0; background-size: var(--ym-photo-size, contain); }
}

/* ===================================================================
   YARMETRO_ITEM45_PREVIEW_OVERLAY_V1 (фидбек 2026-09-06, вечер)
   Превью объекта на карте: −20% по ширине и +38% по высоте
   (355×148 -> 284×205), фотография занимает всю карточку, цена,
   описание и адрес лежат поверх неё каждый на своей белой капсуле,
   кнопки собраны в белый блок справа, индикатор фотографий -- полоска
   по нижнему краю карточки вместо точек.
   Разметку не трогаем: превью строит showPreview() в footer.php, здесь
   только раскладка.
   =================================================================== */
@media (max-width: 767px) {
  .ym-map-preview-card { width: 284px; margin: 0 auto; }
  .ym-map-preview-card__photo { height: 205px; }

  /* блок с текстом и кнопками ложится поверх фотографии */
  .ym-map-preview-card__body {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 15px;
    z-index: 5;
    background: transparent;
    box-shadow: none;
    padding: 0;
    gap: 8px;
    align-items: flex-end;
  }
  .ym-map-preview-card__info { gap: 4px; align-items: flex-start; }
  .ym-map-preview-card__price,
  .ym-map-preview-card__title,
  .ym-map-preview-card__address {
    max-width: 100%;
    align-self: flex-start;
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(7,24,63,.20);
  }
  .ym-map-preview-card__price { font-size: 13.5px; line-height: 1.15; padding: 3px 10px; }
  .ym-map-preview-card__title { font-size: 10px; line-height: 1.2; padding: 3px 10px; }
  .ym-map-preview-card__address { font-size: 9.5px; line-height: 1.2; padding: 3px 10px; }

  .ym-map-preview-card__actions {
    background: #fff;
    border-radius: 999px;
    padding: 5px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(7,24,63,.20);
  }
  .ym-map-preview-card__btn { width: 30px; height: 30px; border-radius: 50%; }

  /* индикатор фотографий: полоска по нижнему краю, отрезок на каждый снимок */
  .ym-map-preview-card__dots {
    left: 12px;
    right: 12px;
    bottom: 6px;
    top: auto;
    z-index: 6;
    height: 3px;
    gap: 2px;
    border-radius: 3px;
    background: rgba(7,24,63,.30);
    box-shadow: 0 1px 3px rgba(7,24,63,.30);
  }
  .ym-map-preview-card__dots:empty { display: none; }
  .ym-map-preview-card__dots i {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    height: 3px;
    border-radius: 3px;
    background: rgba(255,255,255,.45);
    box-shadow: none;
  }
  .ym-map-preview-card__dots i.is-active { width: auto; height: 3px; background: #fff; }
}

/* ===================================================================
   YARMETRO_ITEM48_ROUND10_V1 (фидбек 2026-09-06, вечер, 11 пунктов)
   п.2 -- превью ещё на 15% шире и выше (284x205 -> 327x236);
   п.7 -- в карточках каталога скрыты характеристики и линия над ними;
   п.9 -- разделы мобильной версии не закрываются кнопкой "Закрыть";
   п.1 -- спокойная заглушка на месте ещё не загруженной фотографии.
   =================================================================== */
@media (max-width: 767px) {
  .ym-map-preview-card { width: 327px; }
  .ym-map-preview-card__photo { height: 236px; background-color: #e9edf3; }
  .ym-map-preview-card__price { font-size: 15px; padding: 4px 12px; }
  .ym-map-preview-card__title { font-size: 11px; padding: 3px 11px; }
  .ym-map-preview-card__address { font-size: 10.5px; padding: 3px 11px; }
  .ym-map-preview-card__actions { padding: 6px; gap: 7px; }
  .ym-map-preview-card__btn { width: 34px; height: 34px; }
  .ym-map-preview-card__btn svg { width: 17px; height: 17px; }
  .ym-map-preview-card__close,
  .ym-map-preview-card__fav { width: 30px; height: 30px; top: 8px; }
  .ym-map-preview-card__close { right: 8px; }
  .ym-map-preview-card__fav { right: 44px; }

  /* пока кадр не подгружен -- мягкое мерцание вместо пустоты */
  .ym-map-preview-card__photo:not([style*="--ym-photo:"]) {
    background-image: linear-gradient(90deg, #eceff4, #f6f8fb, #eceff4);
    background-size: 200% 100%;
    animation: ymPhotoWait 1.1s linear infinite;
  }
  @keyframes ymPhotoWait {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
  }

  /* п.7: характеристики под линией в карточке списка и шторки не нужны */
  .metro-catalog-card__facts,
  .metro-catalog-card__footer { display: none !important; }

  /* п.9: избранное и "О нас" -- это разделы, а не всплывающие окна */
  [data-mobile-favorites-close],
  button[data-mobile-about-close]:not(.ym-mobile-about-panel__backdrop) { display: none !important; }
}

/* ===================================================================
   YARMETRO_ITEM48_ABOUT_UI_V1 -- раздел «О нас» (п.10 фидбека)
   Компания и контакты собраны в один раздел: обложка, телефон, цифры,
   аргументы, услуги, офисы, ссылки. Разметку собирает footer.php
   (enhanceAboutPanel), содержимое взято со страниц /about/ и /contacts/.
   =================================================================== */
@media (max-width: 767px) {
  /* ITEM136: на карте шторка объектов (.catalog-items, z-index:400) торчала поверх «О нас» (320).
     Панель поднята на тот же уровень, что и «Избранное» (600, ITEM38) -- выше всех шторок каталога. */
  .ym-mobile-about-panel.ym-about { z-index: 600; }
  .ym-about > div {
    top: 22px;
    display: block;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 calc(var(--ym-mobile-nav-h, 73px) + 26px);
    border-radius: 22px 22px 0 0;
  }

  .ym-about .ym-about__hero {
    display: block;
    padding: 26px 18px 26px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(150deg, #07183f 0%, #16255c 55%, #3d1130 100%);
    color: #fff;
  }
  .ym-about .ym-about__brand {
    display: block; font-size: 11px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: #ff8b96;
  }
  .ym-about .ym-about__hero h2 { margin: 10px 0 0; font-size: 23px; line-height: 1.22; color: #fff; }
  .ym-about .ym-about__motto { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,.72); }

  .ym-about__call {
    display: block; margin: -16px 16px 0; padding: 14px 16px;
    border-radius: 16px; background: #e7182c; color: #fff; text-decoration: none;
    box-shadow: 0 10px 24px rgba(231,24,44,.30);
  }
  .ym-about__call-label { display: block; font-size: 11px; opacity: .85; }
  .ym-about__call-phone { display: block; font-size: 21px; font-weight: 800; }
  .ym-about__call-note { display: block; margin-top: 3px; font-size: 11px; opacity: .85; }

  .ym-about__numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 16px 0; }
  .ym-about__num { padding: 10px 6px; border: 1px solid #e5e9f0; border-radius: 14px; text-align: center; background: #fff; }
  .ym-about__num b { display: block; font-size: 17px; color: #07183f; }
  .ym-about__num span { display: block; margin-top: 3px; font-size: 10px; line-height: 1.25; color: #667085; }

  .ym-about__block { padding: 20px 16px 0; }
  .ym-about__block h3 { margin: 0 0 10px; font-size: 16px; color: #07183f; }
  .ym-about__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
  .ym-about__list li { padding: 12px 14px; border-radius: 14px; background: #f5f7fa; font-size: 12.5px; line-height: 1.45; color: #46536b; }
  .ym-about__list b { color: #07183f; }

  .ym-about__chips { display: flex; flex-wrap: wrap; gap: 7px; }
  .ym-about__chip { padding: 7px 11px; border: 1px solid #e0e5ee; border-radius: 999px; font-size: 12px; color: #34405a; background: #fff; }

  .ym-about__offices { display: grid; gap: 8px; }
  .ym-about__office {
    display: grid; grid-template-columns: 1fr auto; gap: 2px 10px;
    padding: 12px 14px; border: 1px solid #e5e9f0; border-radius: 14px;
    background: #fff; text-decoration: none;
  }
  .ym-about__office-addr { grid-column: 1; grid-row: 1; font-size: 13px; font-weight: 600; color: #07183f; text-align: left; }
  .ym-about__office-note { grid-column: 1; grid-row: 2; font-size: 11px; color: #8a95a8; text-align: left; }
  .ym-about__office-phone {
    grid-column: 2; grid-row: 1 / span 2; align-self: center;
    font-size: 12px; font-weight: 700; color: #e7182c; white-space: nowrap; text-align: right;
  }

  .ym-about__links { display: grid; gap: 8px; }
  .ym-about__links a { padding: 12px 14px; border-radius: 13px; background: #f5f7fa; color: #07183f; font-size: 13px; text-decoration: none; }
  .ym-about__mail { display: block; margin-top: 10px; font-size: 13px; color: #e7182c; text-decoration: none; }
  .ym-about__legal { margin: 12px 0 0; font-size: 10.5px; line-height: 1.4; color: #8a95a8; }
}

/* ===================================================================
   YARMETRO_ITEM48_DETAIL_UI_V1 -- страница объекта (п.8) и шторка
   фильтров поверх всего (п.11). Разметку перестраивает footer.php
   (enhanceObjectDetail), здесь только внешний вид.
   =================================================================== */
@media (max-width: 767px) {
  /* п.11: меню фильтров должно перекрывать и шторку объектов (z-index 400),
     и нижнее меню разделов */
  .ym-mobile-sheet { z-index: 900; }
  /* шторка фильтров лежит внутри .ym-mobile-catalog (z-index: 400), а это
     отдельный контекст наложения -- поэтому на карте её перекрывала шторка
     объектов с тем же z-index. Пока фильтры открыты, поднимаем весь блок. */
  body.ym-mobile-sheet-open .ym-mobile-catalog,
  .body--catalog.ym-mobile-sheet-open .ym-mobile-catalog { z-index: 1000; }

  .ym-detail-v2 .metro-detail-heading,
  .ym-detail-v2 .apartment-holder > .btn-back,
  .ym-detail-v2 .apartment-btns-holder,
  .ym-detail-v2 .apartment-rss-holder,
  .ym-detail-v2 .catalog-item__compare { display: none !important; }

  .ym-detail-v2 .ym-detail-title {
    margin: 12px 0 12px;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    color: #07183f;
  }

  .ym-detail-v2 .catalog-item__img-mobile.swiper-container {
    height: 52vh;
    max-height: 470px;
    min-height: 250px;
    border-radius: 16px;
  }
  .ym-detail-v2 .catalog-item__img-mobile .swiper-wrapper { height: 100%; }
  .ym-detail-v2 .catalog-item__img-mobile .swiper-slide {
    height: 100%;
    background-size: cover;
    background-position: center;
  }
  .ym-detail-v2 .ym-gallery-nav { width: 38px; height: 38px; font-size: 22px; }

  .ym-detail-thumbs {
    display: flex;
    gap: 6px;
    margin: 8px 0 0;
    padding-bottom: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .ym-detail-thumbs::-webkit-scrollbar { display: none; }
  .ym-detail-thumbs button {
    flex: 0 0 auto;
    width: 64px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #eef1f5;
    opacity: .5;
    transition: opacity .15s ease; /* YARMETRO_ITEM71_ROUND22: контур без лага */
  }
  .ym-detail-thumbs button.is-active { opacity: 1; box-shadow: 0 0 0 2px #e7182c; }
  .ym-detail-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }

  .ym-detail-actions { display: flex; gap: 8px; margin: 12px 0 0; }
  .ym-detail-v2 .ym-detail-actions > a,
  .ym-detail-v2 .ym-detail-actions > button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e5ee;
    border-radius: 13px;
    background: #fff;
    color: #07183f;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
  }
  .ym-detail-v2 .ym-detail-actions .catalog-item__favorite.active,
  .ym-detail-v2 .ym-detail-actions .catalog-item__favorite.is-active {
    color: #e7182c;
    border-color: rgba(231,24,44,.35);
  }


  /* на странице объекта нижнее меню разделов должно оставаться на месте:
     пользователь листает карточку и всегда может уйти в другой раздел */
  .ym-detail-v2 .ym-mobile-nav { display: grid; }
  .ym-detail-v2 .ym-mobile-nav__contacts { display: flex !important; }
  .ym-detail-v2 .apartment-top { margin-top: 16px; border-radius: 16px; }
  .ym-detail-v2 .apartment-top .col-2 { width: 100%; }

  .ym-detail-v2 .ym-mobile-detail-actions.ym-detail-manager {
    display: flex;
    align-items: center;
    gap: 10px;
    grid-template-columns: none;
    bottom: var(--ym-mobile-nav-h, 73px);
    z-index: 120;
    padding: 8px 14px;
  }
  .ym-detail-manager__ava {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5 center / cover no-repeat;
    color: #46536b;
    font-size: 14px;
    font-weight: 700;
  }
  .ym-detail-manager__who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
  .ym-detail-manager__who b { font-size: 13px; color: #07183f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ym-detail-manager__who i { font-style: normal; font-size: 11px; color: #8a95a8; }
  .ym-detail-v2 .ym-mobile-detail-actions a.ym-detail-manager__call {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    gap: 7px;
    border: 0;
    border-radius: 12px;
    background: #e7182c;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
  }

  .ym-detail-v2 .footer { padding-bottom: calc(var(--ym-mobile-nav-h, 73px) + 70px); }
  .ym-detail-socials { display: none !important; }
  .ym-detail-socials.is-open {
    display: flex !important;
    gap: 12px;
    justify-content: center;
    margin: 10px 0 0;
  }
  .ym-detail-v2 .apartment-rss { display: none; }
}

/* ===================================================================
   YARMETRO_ITEM49_ROUND11_V1 (фидбек 2026-09-06, поздний вечер)
   Логотип виден при открытом разделе «О нас»; нижнее меню разделов
   показывается на любой странице; в «Объектах» кнопки фильтров подняты
   к шапке; кнопка «...» переехала под третью миниатюру и открывает
   характеристики и описание объекта.
   =================================================================== */
@media (max-width: 767px) {
  .ym-mobile-about-panel.ym-about { top: 64px; }
  .ym-about > div { top: 0; border-radius: 0; }
  .ym-about .ym-about__hero { border-radius: 0; }

  .ym-mobile-nav { display: grid !important; }
  .footer { padding-bottom: calc(var(--ym-mobile-nav-h, 73px) + 18px); }

  .body--catalog:not(.ym-catalog-mode-map) .main { padding-top: 10px; }

  .ym-card-thumbs .ym-card-more {
    grid-column: 3;
    width: 100%;
    height: 34px;
    padding: 0;
    border: 1px solid #e0e5ee;
    border-radius: 9px;
    background: #fff;
    color: #46536b;
    font-size: 14px;
    letter-spacing: 2px;
    line-height: 1;
  }

  .ym-object-info { position: fixed; z-index: 950; inset: 0; }
  .ym-object-info[hidden] { display: none !important; }
  .ym-object-info__backdrop {
    position: absolute; inset: 0; width: 100%;
    border: 0; background: rgba(7,24,63,.45);
  }
  .ym-object-info > section {
    position: absolute; right: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    max-height: 84vh;
    border-radius: 20px 20px 0 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(7,24,63,.25);
  }
  .ym-object-info header {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 16px 16px 10px;
    border-bottom: 1px solid #edf0f5;
  }
  .ym-object-info__head { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
  .ym-object-info__head b { font-size: 18px; font-weight: 800; color: #07183f; }
  .ym-object-info__head i { font-style: normal; font-size: 12px; color: #667085; }
  .ym-object-info__close {
    flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: #f2f4f8;
    color: #46536b; font-size: 20px; line-height: 1;
  }
  .ym-object-info__body {
    flex: 1 1 auto; min-height: 0;
    padding: 12px 16px 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ym-object-info__body h4 { margin: 12px 0 8px; font-size: 14px; color: #07183f; }
  .ym-object-info__body h4:first-child { margin-top: 0; }
  .ym-object-info__chars ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
  .ym-object-info__chars li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 7px 10px; border-radius: 9px; background: #f5f7fa;
    font-size: 12.5px; color: #46536b;
  }
  .ym-object-info__chars li span:last-child { color: #07183f; font-weight: 600; text-align: right; }
  .ym-object-info__descr { font-size: 12.5px; line-height: 1.5; color: #46536b; }
  .ym-object-info__descr p { margin: 0 0 8px; }
  .ym-object-info__empty { margin: 0; font-size: 12.5px; color: #8a95a8; }
  .ym-object-info__open {
    flex: 0 0 auto; margin: 10px 16px calc(14px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: center;
    min-height: 46px; border-radius: 13px;
    background: #e7182c; color: #fff;
    font-size: 15px; font-weight: 700; text-decoration: none;
  }
  body.ym-object-info-open { overflow: hidden; }
}

/* YARMETRO_ITEM49_FILTER_UI_V1: группы фильтра, не относящиеся к выбранному
   типу недвижимости, скрываются (их всё равно игнорирует сервер). */
@media (max-width: 767px) {
  .ym-mobile-sheet__group[data-ym-available="0"] { display: none !important; }
  .ym-mobile-sheet__note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 11px;
    background: #fff5f6;
    color: #8a3b45;
    font-size: 11.5px;
    line-height: 1.4;
  }
  .ym-mobile-catalog__quick button[hidden] { display: none !important; }
}

/* ===================================================================
   YARMETRO_ITEM50_ROUND12_V1 (фидбек 2026-09-07)
   Кнопка «Все фильтры» выделена; в шторке фильтров крестик всегда сверху,
   а красная кнопка всегда снизу; кнопка «...» стоит справа от текста
   карточки и не занимает отдельную строку.
   =================================================================== */
@media (max-width: 767px) {
  /* «Все фильтры» -- главная кнопка ряда. Старое правило подсвечивало
     последнюю кнопку, а после перестановки последней стала «Площадь». */
  .ym-mobile-catalog__quick button:last-child { border-color: #dce2ea; color: #07183f; }
  .ym-mobile-catalog__quick button[data-mobile-filter-open="all"] {
    border-color: #e7182c;
    background: #e7182c;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(231,24,44,.25);
  }

  /* шапка и красная кнопка не уезжают при прокрутке фильтров */
  .ym-mobile-sheet > section { padding-top: 0; padding-bottom: 0; }
  .ym-mobile-sheet header {
    position: sticky;
    top: 0;
    z-index: 3;
    margin: 0 -14px 14px;
    padding: 14px 14px 12px;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
  }
  .ym-mobile-sheet__submit {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 14px 0 calc(14px + env(safe-area-inset-bottom));
  }

  /* «...» справа от текстового блока карточки */
  /* подтипы недвижимости: чипы переносятся по строкам, ничего не обрезается */
  .ym-mobile-sheet__group[data-mobile-filter-group="commercial"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="land"] .ym-mobile-sheet__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    grid-template-columns: none;
  }
  .ym-mobile-sheet__group[data-mobile-filter-group="commercial"] .ym-mobile-sheet__checks label,
  .ym-mobile-sheet__group[data-mobile-filter-group="land"] .ym-mobile-sheet__checks label {
    flex: 0 0 auto;
    max-width: 100%;
  }
  .ym-card-bodyrow { display: flex; align-items: flex-start; gap: 8px; }
  .ym-card-bodyrow > .metro-catalog-card__body-link { flex: 1 1 auto; min-width: 0; }
  .ym-card-bodyrow > .ym-card-more {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin-top: 12px;
    padding: 0;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
    background: #fff;
    color: #46536b;
    font-size: 13px;
    letter-spacing: 1.5px;
    line-height: 1;
  }
}

/* ===================================================================
   YARMETRO_ITEM51_ROUND13_UI (фидбек 2026-09-07, вечер)
   =================================================================== */
@media (max-width: 767px) {
  /* «Все фильтры» -- синяя, как «Купить»; «Купить» становится обычной */
  .body--catalog .ym-mobile-catalog__quick button.ym-mobile-catalog__quick--deal {
    border-color: #dce2ea;
    background: #fff;
    color: #07183f;
    font-weight: 400;
  }
  .ym-mobile-catalog__quick button[data-mobile-filter-open="all"] {
    border-color: #07183f;
    background: #07183f;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(7,24,63,.22);
  }

  /* белая подложка под красной кнопкой в шторке фильтров */
  .ym-sheet-foot {
    position: sticky;
    bottom: 0;
    z-index: 3;
    margin: 16px -14px 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #edf0f5;
  }
  .ym-sheet-foot .ym-mobile-sheet__submit { position: static; margin: 0; }

  /* раздел «О нас» не закрывает нижнее меню разделов */
  .ym-mobile-about-panel.ym-about { bottom: var(--ym-mobile-nav-h, 73px); }

  /* пока открыт раздел, чипы каталога не должны просвечивать поверх него */
  body.ym-panel-open .ym-mobile-catalog { display: none !important; }

  /* футер сайта в мобильной версии не нужен */
  .footer { display: none !important; }
  body { padding-bottom: calc(var(--ym-mobile-nav-h, 73px) + 10px); }

  /* главное фото карточки в шторке +20% */
  .body--catalog.ym-catalog-mode-map .catalog-items { height: 40vh; }
  .body--catalog.ym-catalog-mode-map .catalog-items .metro-catalog-card__media {
    height: 178px;
    min-height: 178px;
  }

  /* инструменты карточки: предпросмотр и «на карте» */
  .ym-card-tools { flex: 0 0 auto; display: flex; gap: 6px; margin-top: 12px; }
  .ym-card-bodyrow > .ym-card-tools > button {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
    background: #fff;
    color: #46536b;
  }
  .ym-card-bodyrow > .ym-card-tools > .ym-card-map { color: #c51628; border-color: #f1c3c9; }

  /* избранное: иконки вместо надписи «Открыть объект» */
  .ym-saved-tools { display: flex; gap: 8px; margin-top: 8px; }
  .ym-saved-tool {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e5ee;
    border-radius: 10px;
    background: #fff;
    color: #46536b;
    text-decoration: none;
  }
  .ym-saved-tool--open { border-color: #f1c3c9; color: #c51628; }
  .ym-saved-tool.is-done { border-color: #2e9e5b; color: #2e9e5b; }

  /* ползунок цены, как в новостройках */
  .ym-range { position: relative; margin: 4px 0 18px; padding-top: 4px; }
  .ym-range__values { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 12px; color: #46536b; }
  .ym-range__track { position: relative; height: 4px; border-radius: 3px; background: #e6eaf1; }
  .ym-range__fill { position: absolute; top: 0; height: 100%; border-radius: 3px; background: #e7182c; }
  .ym-range input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    width: 100%;
    margin: 0;
    height: 20px;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    pointer-events: none;
  }
  .ym-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #e7182c;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(7,24,63,.25);
    pointer-events: auto;
  }
  .ym-range input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 2px solid #e7182c;
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
  }

  /* отзывы на главной -- виджет Яндекс Карт вместо сайтовых отзывов */
  .ym-home-reviews--yandex .metro-home-yandex-reviews-v185 { margin: 12px 0 0; }
  .ym-home-reviews--yandex .metro-home-yandex-reviews-v185__frame-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid #e5e9f0;
    border-radius: 14px;
    background: #fff;
  }
  .ym-home-reviews--yandex .metro-home-yandex-reviews-v185__frame-wrap iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
  }
  /* пустая выдача -- спокойный блок, а не «всплывашка» */
  .catalog-v176-zero { padding: 18px 2px 8px; }
  .catalog-v176-zero__title { margin: 0 0 6px; font-size: 15px; color: #07183f; }
  .catalog-v176-zero__request { margin: 0 0 14px; font-size: 12px; color: #8a95a8; }
  .catalog-v176-zero__accent { margin: 0 0 12px; }
  .catalog-v176-zero__accent h3 { margin: 0 0 4px; font-size: 14px; color: #07183f; }
  .catalog-v176-zero__accent p { margin: 0; font-size: 12px; color: #8a95a8; }
}

/* ===================================================================
   YARMETRO_ITEM52_ROUND14_UI (фидбек 2026-09-07, ночь)
   Липкая строка фильтров, ползунки с галочкой ±10%, индикатор догрузки.
   =================================================================== */
@media (max-width: 767px) {
  /* строка фильтров едет вместе с выдачей */
  .body--catalog:not(.ym-catalog-mode-map) .ym-mobile-catalog {
    position: sticky;
    top: 64px;
    z-index: 60;
    margin-bottom: 8px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(7,24,63,.06);
  }

  /* галочка ±10% под ползунком */
  .ym-range__spread {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 12px;
    color: #46536b;
  }
  .ym-range__spread input { width: 17px; height: 17px; accent-color: #e7182c; }

  /* индикатор догрузки списка */
  .ym-list-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 10px 0 18px;
  }
  .ym-list-loader[hidden] { display: none !important; }
  .ym-list-loader span {
    width: 26px;
    height: 26px;
    border: 3px solid #e6eaf1;
    border-top-color: #e7182c;
    border-radius: 50%;
    animation: ymSpin .8s linear infinite;
  }
  @keyframes ymSpin { to { transform: rotate(360deg); } }

  /* карта объекта во всплывающем окне */
  .ym-object-map { position: fixed; z-index: 960; inset: 0; }
  .ym-object-map[hidden] { display: none !important; }
  .ym-object-map__backdrop {
    position: absolute; inset: 0; width: 100%;
    border: 0; background: rgba(7,24,63,.45);
  }
  .ym-object-map > section {
    position: absolute; right: 0; bottom: 0; left: 0;
    display: flex; flex-direction: column;
    height: 74vh;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    background: #fff;
  }
  .ym-object-map header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #edf0f5;
  }
  .ym-object-map header b { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #07183f; }
  .ym-object-map__close {
    flex: 0 0 auto; width: 32px; height: 32px; padding: 0;
    border: 0; border-radius: 50%; background: #f2f4f8;
    color: #46536b; font-size: 20px; line-height: 1;
  }
  .ym-object-map__canvas { flex: 1 1 auto; min-height: 0; }
}

/* ===================================================================
   YARMETRO_ITEM53_SHEET_LAYOUT_UI (фидбек 2026-09-07)
   1) Шторка фильтров -- честная колонка: шапка, прокручиваемая середина,
      подвал с красной кнопкой. position: sticky на части устройств
      отваливался, и кнопка уезжала вместе с содержимым.
   2) Ручки ползунка лежали поверх галочки «± 10 %» -- теперь у трека
      своя коробка, галочка идёт отдельной строкой.
   =================================================================== */
@media (max-width: 767px) {
  .ym-mobile-sheet > section {
    display: flex;
    flex-direction: column;
    max-height: 86vh;
    padding: 0;
    overflow: hidden;
  }
  .ym-mobile-sheet header {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 14px 14px 12px;
    background: #fff;
    border-bottom: 1px solid #edf0f5;
  }
  .ym-sheet-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 14px 14px 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .ym-sheet-foot {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #edf0f5;
  }

  .ym-range { position: relative; margin: 4px 0 4px; padding-top: 0; }
  .ym-range__slider {
    position: relative;
    display: flex;
    align-items: center;
    height: 24px;
  }
  .ym-range__track { position: relative; width: 100%; height: 4px; border-radius: 3px; background: #e6eaf1; }
  .ym-range input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 2px;
    bottom: auto;
    width: 100%;
    height: 20px;
    margin: 0;
  }
  .ym-range__spread {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 14px;
    font-size: 12px;
    color: #46536b;
  }
  .ym-range__spread input[type="checkbox"] {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: 1;
    -webkit-appearance: checkbox;
    appearance: checkbox;
    accent-color: #e7182c;
  }
}

/* YARMETRO_ITEM53_SHEET_Z_FIX: липкая строка фильтров получила z-index 60,
   и он же достался открытой шторке фильтров (она лежит внутри блока) --
   нижнее меню (z-index 100) стало перекрывать красную кнопку. Пока шторка
   открыта, поднимаем весь блок обратно. */
@media (max-width: 767px) {
  .body--catalog:not(.ym-catalog-mode-map).ym-mobile-sheet-open .ym-mobile-catalog,
  .body--catalog.ym-mobile-sheet-open .ym-mobile-catalog,
  body.ym-mobile-sheet-open .ym-mobile-catalog {

    z-index: 1000;
  }
}

/* ===================================================================
   YARMETRO_ITEM54_LIST_UI (фидбек 2026-09-07, круг 16)
   1) Строка фильтров снова «отлеплялась» при скролле: position: sticky
      не работает, пока у предка .main стоит overflow: hidden.
      Меняем hidden на clip -- обрезка остаётся, но скролл-контейнер
      не создаётся и sticky оживает.
   2) Фото в выдаче грузились плохо и часто оставались заблюренными:
      блюр-подложка ::before тянула ПОЛНОРАЗМЕРНУЮ картинку для всех
      ~440 слайдов сразу и конкурировала за канал с отложенной
      загрузкой самих <img>. Теперь подложка включается только у слайда
      с уже загруженным фото (.is-ready) -- минус сотни запросов.
   3) Номера страниц в списке не нужны -- листаем по 6 бесконечным скроллом.
   =================================================================== */
@media (max-width: 767px) {
  .body--catalog .main { overflow: clip; overflow-clip-margin: 0; }

  /* карточки прячутся атрибутом hidden, но макетные display:block/flex
     перебивают правило браузера -- возвращаем скрытие принудительно */
  .metro-catalog-card[hidden],
  .catalog-items [hidden] { display: none !important; }

  .body--catalog .metro-catalog-card__slide::before,
  .metro-catalog-card__slide::before {
    background-image: none;
    opacity: 0;
    transition: opacity .2s linear;
  }
  .body--catalog .metro-catalog-card__slide.is-ready::before,
  .metro-catalog-card__slide.is-ready::before {
    background-image: var(--metro-card-photo, none);
    opacity: .95;
  }

  .body--catalog:not(.ym-catalog-mode-map) .catalog-items > .modern-page-navigation,
  .body--catalog:not(.ym-catalog-mode-map) .modern-page-navigation { display: none; }
}

/* ===================================================================
   YARMETRO_ITEM55_ROUND17 (фидбек 2026-09-07, вечер)
   Главная: печатающийся заголовок без надзаголовка, крупные отраслевые
   иллюстрации, «Ещё 3 новости», читаемые отзывы Яндекса.
   Каталог: точки вместо счётчика, активная миниатюра в рамке, подписи
   у кнопок «Описание» и «На карте».
   Карточка объекта: шапка, галерея с соседними кадрами, адрес и кнопки
   в блоке цены, похожие объекты как карточки каталога.
   Плашка изменения цены. Финал выдачи на карте.
   =================================================================== */
@media (max-width: 767px) {
  /* --- п.1 главная: заголовок печатается --- */
  .ym-app-home__hero { padding: 2px 0 16px; }
  .ym-hero-typed h1 {
    min-height: 66px;
    margin: 0 0 6px;
    font-size: 27px;
    line-height: 1.14;
  }
  .ym-hero-typed h1 i {
    display: inline-block;
    width: 2px;
    height: .88em;
    margin-left: 3px;
    background: #e7182c;
    vertical-align: -2px;
    animation: ym-caret 1s steps(1) infinite;
  }
  .ym-hero-typed h1.is-typed i { animation-duration: 1.5s; }

  /* --- п.2 крупные отраслевые иллюстрации на сценариях --- */
  .ym-scenarios--art button {
    min-height: 0;
    align-content: start;
    gap: 9px;
    padding: 10px 11px 13px;
  }
  .ym-scenarios--art .ym-scenario-art {
    display: block;
    width: 100%;
    height: 76px;
    border-radius: 13px;
    background: linear-gradient(180deg, #f7f9fd, #eef2f8);
  }
  .ym-scenarios--art .ym-scenario-art::after { content: none; }
  .ym-scenarios--art .ym-scenario-art svg { display: block; width: 100%; height: 100%; }
  .ym-scenarios--art strong { font-size: 16px; }

  /* --- п.3 и п.5 новости --- */
  .ym-home-editorial .news-item__date { margin: 0 0 1px !important; font-size: 11px; line-height: 1.2; }
  .ym-home-editorial .news-item__name { margin-top: 1px !important; }
  .ym-news-paged .news-item[hidden] { display: none !important; }
  .ym-news-more {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 12px 0 2px;
    border: 1px solid #dfe4ec;
    border-radius: 13px;
    background: #fff;
    color: #07183f;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(7,24,63,.05);
  }
  .ym-news-more[hidden] { display: none !important; }

  /* --- п.4 отзывы: видно сами отзывы, шапку виджета с оценкой прячем --- */
  .metro-home-yandex-reviews-v185__frame-wrap {
    position: relative;
    height: 540px;
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 16px;
    background: #fff;
  }
  .metro-home-yandex-reviews-v185__frame-wrap iframe {
    position: absolute;
    top: -128px;
    left: 0;
    width: 100%;
    height: 668px;
    border: 0;
  }

  /* --- п.6 подписи у кнопок инструментов --- */
  .ym-card-tools { display: flex; gap: 8px; flex: 0 0 auto; align-items: flex-start; }
  .ym-card-more,
  .ym-card-map {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 56px;
    min-height: 54px;
    padding: 0;
    border: 1px solid #e0e5ee;
    border-radius: 13px;
    background: #fff;
    color: #46536b;
  }
  .ym-card-tool-cap {
    font-style: normal;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
    color: #46536b;
  }

  /* --- п.10 точки вместо счётчика фото --- */
  .metro-catalog-card__counter { display: none !important; }
  .ym-card-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin: 7px 0 0;
    padding: 0 10px;
  }
  .ym-card-dots[hidden] { display: none !important; }
  .ym-card-dots i {
    display: block;
    width: 15px;
    height: 3px;
    border-radius: 2px;
    background: #d7dde7;
    transition: background .18s ease, width .18s ease;
  }
  .ym-card-dots i.is-on { width: 22px; background: #e7182c; }

  /* --- п.11 активная миниатюра в красной рамке --- */
  .ym-card-thumbs button.is-active { border-color: #e7182c; }

  /* --- п.7.1 и 7.2 «Вернуться назад» и симметричные отступы --- */
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    min-height: 38px;
    margin: 0 0 14px;
    padding: 0 16px 0 13px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #fff;
    color: #07183f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(7,24,63,.06);
  }
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back)::before {
    content: "";
    width: 8px;
    height: 8px;
    border-left: 2px solid #e7182c;
    border-bottom: 2px solid #e7182c;
    border-radius: 1px;
    transform: rotate(45deg);
  }
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) span { color: inherit; }
  .ym-detail-v2 .ym-detail-title { margin: 0 0 12px; }

  /* --- п.7.3 и 7.4 галерея: скобки вместо кружков, соседние кадры --- */
  .ym-detail-v2 .catalog-item__img-mobile.swiper-container {
    height: 42vh;
    max-height: 376px;
    min-height: 220px;
    border-radius: 0;
    overflow: visible;
  }
  .ym-detail-v2 .ym-gallery-peek .swiper-slide {
    width: 80% !important;
    border-radius: 15px;
    opacity: .5;
    transition: opacity .25s ease;
  }
  .ym-detail-v2 .ym-gallery-peek .swiper-slide-active { opacity: 1; }
  .ym-detail-v2 .ym-gallery-nav {
    width: 34px !important;
    height: 48px !important;
    left: auto;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }
  .ym-detail-v2 .ym-gallery-nav--prev { left: calc(10% + 3px) !important; right: auto !important; }
  .ym-detail-v2 .ym-gallery-nav--next { right: calc(10% + 3px) !important; left: auto !important; }
  .ym-detail-v2 .ym-gallery-nav::after,
  .ym-detail-v2 .ym-gallery-nav::before { content: none; }
  .ym-detail-v2 .ym-gallery-nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 13px;
    height: 13px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-radius: 2px;
    filter: drop-shadow(0 1px 4px rgba(7,24,63,.55));
  }
  .ym-detail-v2 .ym-gallery-nav--prev::after { transform: translate(-35%, -50%) rotate(-135deg); }
  .ym-detail-v2 .ym-gallery-nav--next::after { transform: translate(-65%, -50%) rotate(45deg); }

  /* --- п.7.5 верхняя грань выделенной миниатюры не обрезается --- */
  .ym-detail-thumbs { margin: 10px 0 0; padding: 4px 2px 6px; }

  /* --- п.7.6 и 7.7 адрес слева, цена и кнопки-иконки справа --- */
  .ym-detail-v2 .apartment-top > .col-2 { display: none; }
  .ym-detail-priceline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 0 6px;
  }
  .ym-detail-addr { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
  .ym-detail-addr span { color: #46536b; font-size: 13px; line-height: 1.35; }
  .ym-detail-addr span:first-child { color: #07183f; font-size: 14px; font-weight: 700; }
  .ym-detail-addr .apartment-date { margin-top: 7px; color: #98a1b3; font-size: 11px; }
  .ym-detail-priceside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex: 0 0 auto;
  }
  .ym-detail-priceside .catalog-item__price { display: block; margin: 0; text-align: right; }
  .ym-detail-priceside .price { color: #07183f; font-size: 24px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
  .ym-detail-priceside .catalog-item__price br { display: none; }
  .ym-detail-priceside .catalog-item__price a { display: inline-block; margin-top: 4px; color: #8a95a8; font-size: 11.5px; }
  .ym-detail-v2 .ym-detail-actions--icons { display: flex; gap: 8px; margin: 0 !important; }
  .ym-detail-v2 .ym-detail-actions--icons > a,
  .ym-detail-v2 .ym-detail-actions--icons > button {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 13px;
    font-size: 0 !important;
    line-height: 0;
  }
  .ym-detail-v2 .ym-detail-actions--icons > a::before,
  .ym-detail-v2 .ym-detail-actions--icons > button::before {
    content: "";
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
  }
  .ym-detail-v2 .ym-detail-actions--icons .catalog-item__favorite::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2307183f%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.8%205.6a5.5%205.5%200%200%200-7.8%200L12%206.6l-1-1a5.5%205.5%200%201%200-7.8%207.8l1%201L12%2021.4l7.8-7.6%201-1a5.5%205.5%200%200%200%200-7.8z%22%2F%3E%3C%2Fsvg%3E"); }
  .ym-detail-v2 .ym-detail-actions--icons .catalog-item__favorite.active::before,
  .ym-detail-v2 .ym-detail-actions--icons .catalog-item__favorite.is-active::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23e7182c%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20.8%205.6a5.5%205.5%200%200%200-7.8%200L12%206.6l-1-1a5.5%205.5%200%201%200-7.8%207.8l1%201L12%2021.4l7.8-7.6%201-1a5.5%205.5%200%200%200%200-7.8z%22%2F%3E%3C%2Fsvg%3E"); }
  .ym-detail-v2 .ym-detail-actions--icons .copy-link::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2307183f%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%2213%22%20height%3D%2213%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22M5%2015H4a2%202%200%200%201-2-2V4a2%202%200%200%201%202-2h9a2%202%200%200%201%202%202v1%22%2F%3E%3C%2Fsvg%3E"); }
  .ym-detail-v2 .ym-detail-actions--icons .ym-detail-share::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%2307183f%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%225%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%226%22%20cy%3D%2212%22%20r%3D%223%22%2F%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2219%22%20r%3D%223%22%2F%3E%3Cpath%20d%3D%22M8.6%2013.5l6.8%204M15.4%206.5l-6.8%204%22%2F%3E%3C%2Fsvg%3E"); }
  .ym-detail-v2 .apartment-top { padding-top: 14px; }
  .ym-detail-v2 .apartment-char { margin-top: 6px; }

  /* --- п.7.8 контакты менеджера и п.7.9 «Связаться с нами» --- */
  .ym-detail-v2 .apartment-broker,
  .ym-detail-v2 .application { display: none !important; }

  /* --- п.7.9 похожие объекты как карточки каталога --- */
  .metro-related__counter { display: none !important; }
  .metro-related__grid { display: block; }
  .ym-rel-media {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #eef1f5;
    aspect-ratio: 16 / 10;
    touch-action: pan-y;
  }
  .ym-rel-track { display: flex; height: 100%; transition: transform .28s cubic-bezier(.22,.61,.36,1); }
  .ym-rel-slide { flex: 0 0 100%; height: 100%; }
  .ym-rel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
  .ym-rel-hit { position: absolute; inset: 0; }
  .ym-rel-nav {
    position: absolute;
    top: 50%;
    width: 34px;
    height: 48px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: none;
  }
  .ym-rel-nav[hidden] { display: none !important; }
  .ym-rel-nav--prev { left: 2px; }
  .ym-rel-nav--next { right: 2px; }
  .ym-rel-nav::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-radius: 2px;
    filter: drop-shadow(0 1px 4px rgba(7,24,63,.55));
  }
  .ym-rel-nav--prev::after { transform: translate(-35%, -50%) rotate(-135deg); }
  .ym-rel-nav--next::after { transform: translate(-65%, -50%) rotate(45deg); }
  .ym-rel-bodyrow { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; }
  .ym-rel-bodyrow .metro-related__body { flex: 1 1 auto; min-width: 0; }
  .ym-rel-actions { margin-top: 10px; }

  /* --- п.8 плашка изменения цены --- */
  .ym-price-delta { position: relative; display: inline-flex; margin-left: 7px; vertical-align: middle; }
  .ym-price-delta button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #fff;
  }
  .ym-price-delta--down button { background: #18a558; }
  .ym-price-delta--up button { background: #e7182c; }
  .ym-price-delta__pop {
    position: absolute;
    z-index: 40;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    min-width: 162px;
    padding: 9px 12px;
    border-radius: 12px;
    background: #07183f;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
    box-shadow: 0 10px 24px rgba(7,24,63,.28);
  }
  .ym-price-delta__pop b { display: block; font-size: 12.5px; }
  .ym-price-delta__pop i { font-style: normal; opacity: .82; }
  .ym-price-delta.is-open .ym-price-delta__pop { display: block; }

  /* --- п.9 продолжение и финал выдачи на карте --- */
  .ym-sheet-divider { margin: 20px 0 8px; color: #07183f; font-size: 14px; font-weight: 800; }
  .ym-sheet-end {
    margin: 18px 0 26px;
    padding: 16px 14px;
    border: 1px dashed #d7dde7;
    border-radius: 14px;
    color: #46536b;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
  }
}

@keyframes ym-caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

@media (max-width: 767px) {
  /* ширину кнопок инструментов задавало более специфичное правило выше */
  .ym-card-tools .ym-card-more,
  .ym-card-tools .ym-card-map,
  .body--catalog .ym-card-more,
  .body--catalog .ym-card-map { width: 56px !important; height: auto !important; min-height: 54px; }
}

@media (max-width: 767px) {
  /* сердечко на странице объекта было со своим отступом и сдвигом -- ряд иконок разъезжался */
  .ym-detail-v2 .ym-detail-actions--icons > a,
  .ym-detail-v2 .ym-detail-actions--icons > button {
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    vertical-align: top;
  }
  /* воздух между миниатюрами и блоком с ценой (п.7.7) */
  .ym-detail-v2 .apartment-top { margin-top: 18px !important; }
}

@media (max-width: 767px) {
  /* подсказка о прежней цене уезжала за левый край -- центрируем по кнопке */
  .ym-price-delta__pop {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100vw - 32px);
  }
}

/* ===================================================================
   YARMETRO_ITEM56_ROUND18 (фидбек 2026-09-07, ночь)
   Единый вид и поведение кнопок действий во всех разделах, пунктир
   по числу фотографий, точки под большим фото объекта, правки
   карточки объекта и избранного.
   =================================================================== */
@media (max-width: 767px) {
  /* --- п.19.1 и 19.2: курсор гаснет, заголовок ломается по строкам --- */
  .ym-hero-typed h1 { min-height: 0; white-space: pre-line; }
  .ym-hero-typed h1.is-typed i { display: none; }
  .ym-app-home__hero p { margin-top: 4px; }

  /* --- п.20: виджет отзывов показываем целиком, без обрезки --- */
  .metro-home-yandex-reviews-v185__frame-wrap { height: 560px; }
  .metro-home-yandex-reviews-v185__frame-wrap iframe {
    position: static;
    top: auto;
    width: 100%;
    height: 560px;
  }

  /* --- п.14: одинаковые кнопки действий везде --- */
  .ym-act,
  .ym-saved-tool,
  .ym-card-actions > a,
  .ym-card-actions > button,
  .ym-card-more,
  .ym-card-map,
  .ym-detail-v2 .ym-detail-actions--icons > a,
  .ym-detail-v2 .ym-detail-actions--icons > button {
    transition: transform .12s ease, background-color .16s ease, border-color .16s ease, color .16s ease;
  }
  .ym-act:active,
  .ym-saved-tool:active,
  .ym-card-actions > a:active,
  .ym-card-actions > button:active,
  .ym-card-more:active,
  .ym-card-map:active,
  .ym-detail-v2 .ym-detail-actions--icons > a:active,
  .ym-detail-v2 .ym-detail-actions--icons > button:active { transform: scale(.94); }

  .ym-act {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 11px;
    border: 1px solid #e0e5ee;
    border-radius: 11px;
    background: #fff;
    color: #46536b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
  }
  .ym-act i { font-style: normal; }
  .ym-act svg { flex: 0 0 auto; }
  .ym-act--open { border-color: rgba(231,24,44,.4); color: #e7182c; }
  .ym-act .ym-icon-check { display: none; }
  .ym-act.is-success { border-color: #18a558; color: #18a558; }
  .ym-act.is-success .ym-icon-default { display: none; }
  .ym-act.is-success .ym-icon-check { display: block; animation: ym-pop .28s ease; }

  .ym-saved-tools { display: flex; gap: 8px; margin-top: 9px; }
  .ym-saved-tools .ym-act:not(.ym-act--open) { width: 38px; padding: 0; }

  /* --- п.21 и 24: пунктир по числу фотографий --- */
  .ym-card-dots { display: flex; align-items: center; justify-content: center; gap: 3px; margin: 7px 0 0; padding: 0 12px; }
  .ym-card-dots i {
    flex: 1 1 0;
    min-width: 2px;
    max-width: 26px;
    height: 3px;
    border-radius: 2px;
    background: #d7dde7;
    transition: background .18s ease;
  }
  .ym-card-dots i.is-on { width: auto; background: #e7182c; }
  .ym-gallery-dots { margin: 10px 16px 0; padding: 0; }

  /* --- п.23: у кнопки «Вернуться назад» была вторая, серая скобка --- */
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) span::before,
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) span::after { content: none !important; display: none !important; }

  /* --- п.23: кадр не центрировался из-за левого паддинга контейнера --- */
  .ym-detail-v2 .catalog-item__img-mobile.swiper-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* --- п.25: цена в карточке снова крупная --- */
  .ym-detail-priceside .price { font-size: 30px !important; line-height: 1.05; }
  .ym-detail-priceside { gap: 12px; }
  .ym-detail-addr span:first-child { font-size: 14.5px; }

  /* --- п.27: лишняя линия под основной информацией --- */
  .ym-detail-v2 .apartment-char,
  .ym-detail-v2 .apartment-top { border-bottom: 0 !important; }

  /* --- п.28: скобки у похожих объектов --- */
  .ym-rel-nav {
    width: 34px !important;
    height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-size: 0 !important;
  }
  .ym-rel-nav::after {
    content: "" !important;
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    border-top: 3px solid #fff;
    border-right: 3px solid #fff;
    border-radius: 2px;
    filter: drop-shadow(0 1px 4px rgba(7,24,63,.55));
  }
  .ym-rel-nav--prev::after { transform: translate(-35%, -50%) rotate(-135deg); }
  .ym-rel-nav--next::after { transform: translate(-65%, -50%) rotate(45deg); }

  /* --- п.29: рамка у карточки похожего объекта не нужна --- */
  .metro-related__card { border: 0 !important; box-shadow: none !important; padding: 0 !important; }

  /* --- п.30: «Показать ещё» перекрывала панель менеджера --- */
  .ym-detail-v2 .metro-related { padding-bottom: calc(var(--ym-mobile-nav-h, 73px) + 96px); }

  /* --- п.31: фото менеджера крупнее, полоса чуть выше --- */
  .ym-detail-manager__ava { width: 48px !important; height: 48px !important; font-size: 16px; }
  .ym-detail-v2 .ym-mobile-detail-actions.ym-detail-manager { padding: 11px 14px; }

  /* --- п.18: число в красной кнопке меняется мягко --- */
  .ym-mobile-sheet__submit.is-bumped { animation: ym-bump .32s ease; }
  .ym-mobile-sheet__submit b { font-weight: 800; }
}

@keyframes ym-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.18); } 100% { transform: scale(1); opacity: 1; } }
@keyframes ym-bump { 0% { transform: scale(1); } 45% { transform: scale(1.035); } 100% { transform: scale(1); } }

/* ===================================================================
   YARMETRO_ITEM57_FILTERS_ROUND18 — порядок фильтров, сортировка,
   регионы и районы (п.16, 17, 32, 35)
   =================================================================== */
@media (max-width: 767px) {
  /* кнопки в избранном не растягиваются */
  .ym-saved-tools { flex-wrap: wrap; }
  .ym-saved-tools .ym-act { flex: 0 0 auto; }

  /* п.16: варианты во всех группах одной высоты */
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label { min-height: 40px; }

  /* п.32: чип сортировки */
  .ym-sort-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #fff;
    color: #46536b;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }
  .ym-sort-chip i { font-style: normal; }
  .ym-sort-chip.is-set { border-color: #07183f; background: #07183f; color: #fff; }

  .ym-sort-sheet { position: fixed; z-index: 1100; inset: 0; }
  .ym-sort-sheet[hidden] { display: none !important; }
  .ym-sort-sheet__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(7,24,63,.45);
  }
  .ym-sort-sheet > section {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 6px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    background: #fff;
  }
  .ym-sort-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 10px 0 8px; }
  .ym-sort-sheet header b { color: #07183f; font-size: 16px; }
  .ym-sort-sheet__close { width: 34px; height: 34px; border: 0; background: none; color: #8a95a8; font-size: 22px; }
  .ym-sort-sheet [data-ym-sort-list] { display: flex; flex-direction: column; gap: 8px; }
  .ym-sort-sheet [data-ym-sort] {
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #e0e5ee;
    border-radius: 13px;
    background: #fff;
    color: #07183f;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
  }
  .ym-sort-sheet [data-ym-sort].is-on { border-color: #e7182c; background: #fff4f5; color: #e7182c; }

  /* п.17: регионы и районы */
  .ym-region-more,
  .ym-terr-more,
  .ym-terr-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px dashed #cfd6e2;
    border-radius: 12px;
    background: #fff;
    color: #6b7689;
    font-size: 13px;
    font-weight: 700;
  }
  .ym-region-more.is-open { border-style: solid; border-color: #07183f; color: #07183f; }
  .ym-region-rest { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin-top: 8px; }
  .ym-region-rest[hidden] { display: none !important; }

  .ym-territory-group .ym-mobile-sheet__checks { display: flex; flex-wrap: wrap; gap: 8px; }
  .ym-terr-row { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 2px; }
  .ym-terr-row > label { flex: 0 0 auto; }
  .ym-terr-more { flex: 1 1 auto; }
  .ym-terr-more[disabled] { opacity: .5; }
  .ym-terr-more.is-ready { border-style: solid; border-color: #cfd6e2; color: #46536b; }
  .ym-terr-more.is-set { border-style: solid; border-color: #e7182c; background: #fff4f5; color: #e7182c; }
  .ym-terr-drop {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin: 2px 0 6px;
    padding: 10px;
    border: 1px solid #eef1f6;
    border-radius: 14px;
    background: #fafbfd;
  }
  .ym-terr-drop[hidden] { display: none !important; }
  .ym-terr-line { display: block; width: 100%; height: 1px; background: #e7182c; }
  .ym-terr-all { width: 100%; }
}

@media (max-width: 767px) {
  /* высоту виджета отзывов задавал инлайновый стиль страницы */
  .metro-home-yandex-reviews-v185__frame-wrap { height: 560px !important; }
  .metro-home-yandex-reviews-v185__frame-wrap iframe { height: 560px !important; }
}

@media (max-width: 767px) {
  /* ссылка «Открыть» в избранном растягивалась на всю строку */
  .ym-saved-tools .ym-act--open { width: auto !important; flex: 0 0 auto !important; }
  .ym-saved-tools .ym-act { flex: 0 0 auto !important; }
}

@media (max-width: 767px) {
  /* штатное правило ссылки в строке избранного делало её блочной на всю ширину */
  .ym-saved-tools .ym-act--open,
  .ym-mobile-saved-row__text .ym-saved-tools a.ym-act--open {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 0 auto !important;
  }
}

@media (max-width: 767px) {
  /* три кнопки избранного должны помещаться в одну строку */
  .ym-saved-tools { gap: 7px; }
  .ym-saved-tools .ym-act { min-height: 34px; font-size: 11.5px; }
  .ym-saved-tools .ym-act--open { padding: 0 9px; gap: 5px; }
  .ym-saved-tools .ym-act:not(.ym-act--open) { width: 34px !important; }
}

/* ===================================================================
   YARMETRO_ITEM58_ROUND19 (фидбек 2026-09-08)
   =================================================================== */
@media (max-width: 767px) {
  /* --- п.37: избранное -- фото во всю высоту, справа название, цена, кнопки --- */
  .ym-mobile-saved-row > a { display: flex; gap: 12px; align-items: stretch; }
  .ym-mobile-saved-row__photo {
    flex: 0 0 132px;
    width: 132px !important;
    height: auto !important;
    min-height: 116px;
    align-self: stretch;
    border-radius: 12px;
  }
  .ym-mobile-saved-row__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
  }
  .ym-mobile-saved-row__text strong { font-size: 14px; line-height: 1.25; }
  .ym-mobile-saved-row__price { color: #07183f; font-size: 17px; font-style: normal; font-weight: 800; }
  .ym-saved-tools { margin-top: auto; }

  /* --- п.38 и 40: варианты одной ширины, по два в ряд --- */
  .ym-mobile-sheet__group[data-mobile-filter-group="deal"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="category"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="commercial"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="land"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="region"] .ym-mobile-sheet__checks,
  .ym-mobile-sheet__group[data-mobile-filter-group="territory"] .ym-mobile-sheet__checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label { width: auto; margin: 0; min-height: 44px; }
  .ym-territory-group .ym-mobile-sheet__checks > .ym-terr-row,
  .ym-territory-group .ym-mobile-sheet__checks > .ym-terr-drop,
  .ym-region-group .ym-mobile-sheet__checks > .ym-region-more,
  .ym-region-group .ym-mobile-sheet__checks > .ym-region-rest { grid-column: 1 / -1; }
  .ym-terr-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
  .ym-terr-row > label,
  .ym-terr-more { width: auto; }
  .ym-terr-drop { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ym-terr-drop > .ym-terr-all,
  .ym-terr-drop > .ym-terr-line { grid-column: 1 / -1; }
  .ym-region-rest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

  /* --- п.41: число меняется одним движением, без мигания --- */
  .ym-mobile-sheet__submit b { display: inline-block; }
  .ym-mobile-sheet__submit b.is-swap { animation: ym-numswap .34s ease; }

  /* --- п.42: верхняя полоса-прогресс больше не нужна, точки ближе к фото --- */
  .ym-gallery-progress { display: none !important; }
  .ym-detail-v2 .catalog-item__img-mobile.swiper-container { margin-bottom: 0 !important; }
  .ym-gallery-dots { margin: 9px 16px 0 !important; }
  .ym-detail-thumbs { margin-top: 9px; }

  /* --- п.43: кнопка «Вернуться назад» компактнее --- */
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) {
    display: inline-flex !important;
    width: auto !important;
    min-width: 0;
    min-height: 34px;
    gap: 6px;
    padding: 0 13px 0 10px !important;
    font-size: 13px;
  }

  /* --- п.45: адресу больше места --- */
  .ym-detail-addr { flex: 1 1 auto; min-width: 0; }
  .ym-detail-priceside { flex: 0 0 auto; max-width: 56%; }

  /* --- п.46: у блока вернулась нижняя граница, внутренняя линия убрана --- */
  .ym-detail-v2 .apartment-top { border-bottom: 1px solid #dfe4ec !important; }
  .ym-detail-v2 .apartment-char { border-bottom: 0 !important; }

  /* --- п.48: сортировка -- только стрелки --- */
  .ym-sort-chip i { display: none; }
  .ym-sort-chip { min-width: 42px; padding: 0 11px; justify-content: center; }

  /* --- п.50: сердечко карточки не наезжает на ручку шторки --- */
  .body--catalog.ym-catalog-mode-map .ym-catalog-sheet-handle {
    z-index: 60 !important;
    background: #fff !important;
  }
  .body--catalog.ym-catalog-mode-map .metro-catalog-card__save-actions { z-index: 3; }
}

@keyframes ym-numswap { 0% { opacity: 0; transform: translateY(-7px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 767px) {
  /* штатное правило .btn держит кнопку во всю ширину через display:flex */
  :is(.ym-detail-v2 .apartment > .btn-back, .nb-detail .nb-back.btn-back) {
    width: fit-content !important;
    max-width: max-content !important;
    align-self: flex-start;
  }
}

@media (max-width: 767px) {
  /* п.37: крестик уводим в угол карточки -- три кнопки встают в одну строку */
  .ym-mobile-saved-row { position: relative; }
  .ym-mobile-saved-row > button {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 3;
    width: 30px;
    height: 30px;
    padding: 0;
  }
  .ym-mobile-saved-row__text strong { padding-right: 30px; }
  .ym-saved-tools { flex-wrap: nowrap; }
}

@media (max-width: 767px) {
  /* п.48: чипу сортировки штатное правило задавало min-width 82px */
  .ym-mobile-catalog__quick .ym-sort-chip,
  .ym-sort-chip {
    min-width: 44px !important;
    width: 44px !important;
    padding: 0 !important;
    justify-content: center;
  }
}

/* ===================================================================
   YARMETRO_ITEM60_ROUND20 (фидбек 2026-09-08, вечер)
   =================================================================== */
@media (max-width: 767px) {
  /* --- п.51: симметричные отступы у заголовка группы в избранном --- */
  .ym-mobile-saved-group > summary { margin: 0 0 12px; padding: 12px 0 0; }
  .ym-mobile-saved-group + .ym-mobile-saved-group > summary { padding-top: 4px; }
  .ym-mobile-saved-group .ym-mobile-saved-row { margin-bottom: 12px; }
  /* YARMETRO_ITEM8_ROUND25: вложенный уровень группировки у сохранённых поисков (тип недвижимости внутри Купить/Снять) -- лёгкий отступ и уменьшенный заголовок, чтобы не терять компактность */
  .ym-mobile-saved-group--nested { margin-left: 10px; padding-left: 10px; border-left: 1px solid #e0e5ec; }
  .ym-mobile-saved-group--nested > summary { margin: 0 0 8px; padding: 8px 0 0; font-size: 12px; color: #556; }
  .ym-mobile-saved-group--nested + .ym-mobile-saved-group--nested > summary { padding-top: 2px; }
  .ym-mobile-saved-group--nested .ym-mobile-saved-row { margin-bottom: 8px; }

  /* --- п.52: длинные названия вариантов центрируются как короткие --- */
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6px 10px;
    line-height: 1.2;
  }
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label > span { text-align: center; }

  /* --- п.54: «Все районы» -- галочка, разделитель -- тонкая линия --- */
  .ym-terr-all {
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 9px;
    grid-column: 1 / -1;
    width: 100%;
    min-height: 34px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: none !important;
    color: #07183f !important;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left !important;
  }
  .ym-terr-all input { width: 18px; height: 18px; accent-color: #e7182c; }
  .ym-terr-line { display: block; width: 100%; height: 1px; margin: 2px 0; background: #e7182c; grid-column: 1 / -1; }

  /* --- п.54: широкая двусоставная кнопка «район вокруг города» --- */
  .ym-terr-around {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 8px 12px !important;
    min-height: 46px !important;
  }
  .ym-terr-around span { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; text-align: left; }
  .ym-terr-around b { font-size: 13.5px; font-weight: 700; }
  .ym-terr-around i { font-style: normal; font-size: 11px; opacity: .65; }

  /* --- п.54.1: подложка выпадающих списков -- без серого поля --- */
  .ym-terr-drop {
    padding: 4px 0 8px !important;
    border: 0 !important;
    border-top: 1px solid #e7182c !important;
    border-radius: 0 !important;
    background: none !important;
  }

  /* --- п.63: своя плашка изменения цены вместо штатных стрелок --- */
  .ym-detail-v2 .price-old,
  .ym-detail-v2 .catalog-item__price .price-old { display: none !important; }
  .ym-detail-v2 .price.price-down::before,
  .ym-detail-v2 .price.price-down::after,
  .ym-detail-v2 .price.price-up::before,
  .ym-detail-v2 .price.price-up::after { content: none !important; display: none !important; }
  .ym-price-delta {
    position: relative !important;
    display: inline-flex !important;
    width: auto !important;
    vertical-align: middle;
  }
  .ym-price-delta__pop {
    position: absolute !important;
    display: none !important;
    width: auto !important;
  }
  .ym-price-delta.is-open .ym-price-delta__pop { display: block !important; }

  /* --- п.59: лишний воздух в конце основной информации --- */
  .ym-detail-v2 .apartment-char { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .ym-detail-v2 .apartment-char ul { margin-bottom: 0 !important; padding-bottom: 0 !important; }
  .ym-detail-v2 .apartment-top { padding-bottom: 16px !important; }

  /* --- п.64: серая окантовка под описанием --- */
  .ym-detail-v2 .apartment-descr {
    border: 0 !important;
    padding-bottom: 8px !important;
  }

  /* --- п.65: заголовок похожих объектов как остальные --- */
  .ym-detail-v2 .metro-related > h4 {
    margin: 0 0 8px !important;
    font-size: 20px !important;
    line-height: 1.2;
  }
  .ym-detail-v2 .metro-related { margin-top: 22px; }

  /* --- п.66: тёмный градиент закрывал верх фотографии --- */
  .ym-detail-v2 .catalog-item__img-mobile::before { content: none !important; display: none !important; }

  /* --- п.67: «Показать ещё» в стиле остальных кнопок --- */
  .ym-detail-v2 .metro-related__more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 46px !important;
    margin: 14px 0 0 !important;
    padding: 0 16px !important;
    border: 1px solid #dfe4ec !important;
    border-radius: 13px !important;
    background: #fff !important;
    color: #07183f !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(7,24,63,.05);
  }

  /* --- п.68: виджет отзывов двумя обрезанными частями --- */
  .ym-reviews-split .metro-home-yandex-reviews-v185__frame-wrap {
    height: auto !important;
    overflow: hidden;
    border: 1px solid #e6eaf1;
    border-radius: 16px;
    background: #fff;
  }
  .ym-rev-part { position: relative; overflow: hidden; }
  .ym-rev-part iframe {
    position: absolute !important;
    left: 0;
    width: 100%;
    height: 900px !important;
    border: 0;
  }
  .ym-rev-head { height: 138px; }
  .ym-rev-head iframe { top: 0 !important; }
  .ym-rev-body { height: 430px; }
  .ym-rev-body iframe { top: -208px !important; }
  .ym-reviews-2gis {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 12px 0 0;
    padding: 14px 16px;
    border: 1px solid #e6eaf1;
    border-radius: 16px;
    background: #fff;
    color: #07183f;
    text-decoration: none;
  }
  .ym-reviews-2gis b { font-size: 15px; font-weight: 800; }
  .ym-reviews-2gis span { color: #7a8496; font-size: 12.5px; }
}

@media (max-width: 767px) {
  /* цена и плашка изменения стоят одной строкой, не вылезая за блок */
  .ym-detail-v2 .ym-detail-priceside .price {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
  }
  .ym-detail-v2 .ym-detail-priceside .price > span:first-child { white-space: nowrap; }
  /* подсказка у правого края экрана прижимается к правому краю кнопки */
  .ym-detail-priceside .ym-price-delta__pop {
    left: auto !important;
    right: 0 !important;
    transform: none !important;
  }
}

@media (max-width: 767px) {
  /* штатный зелёный треугольник рисуется бордюрами у span::before */
  .ym-detail-v2 .price.price-down > span::before,
  .ym-detail-v2 .price.price-down > span::after,
  .ym-detail-v2 .price.price-up > span::before,
  .ym-detail-v2 .price.price-up > span::after,
  .ym-detail-v2 .catalog-item__price .price > span::before { content: none !important; display: none !important; }
  .ym-detail-v2 .ym-price-delta button::before,
  .ym-detail-v2 .ym-price-delta button::after { content: none !important; }
}

@media (max-width: 767px) {
  /* линия-разделитель растягивалась на всю строку grid */
  .ym-terr-line { align-self: center; height: 1px !important; min-height: 0 !important; }
}

@media (max-width: 767px) {
  /* центрирование добавило кнопкам лишние 12 px -- возвращаем единую высоту 44 */
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label {
    height: 44px;
    min-height: 44px;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.15;
  }
  /* галочка «Все районы» и широкая кнопка района живут по своим размерам */
  .ym-terr-all,
  .ym-terr-around {
    height: auto !important;
    min-height: 44px !important;
  }
  .ym-terr-around { min-height: 50px !important; padding: 7px 12px !important; }
}

@media (max-width: 767px) {
  /* видимая «кнопка» -- это внутренний span, а не сам label: растягиваем его
     на всю ячейку, иначе ширина скачет по длине текста */
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label { padding: 0 !important; }
  .ym-mobile-sheet__group .ym-mobile-sheet__checks > label > span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    padding: 0 10px !important;
    text-align: center;
    line-height: 1.15;
  }
  /* галочка «Все районы» -- обычная строка, а не кнопка */
  .ym-terr-all > span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    text-align: left;
  }
  .ym-terr-around > span {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
    text-align: left !important;
    padding: 0 12px !important;
  }
}

@media (max-width: 767px) {
  /* от виджета оставляем только шапку с оценкой -- серое поле «Поставьте нам
     оценку» начинается на 108 px внутри iframe, обрезаем раньше */
  .ym-rev-head { height: 104px !important; }
  .ym-rev-body { display: none !important; }
  .ym-reviews-link {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 10px 0 0;
    padding: 14px 16px;
    border: 1px solid #e6eaf1;
    border-radius: 16px;
    background: #fff;
    color: #07183f;
    text-decoration: none;
  }
  .ym-reviews-link b { font-size: 15px; font-weight: 800; }
  .ym-reviews-link span { color: #7a8496; font-size: 12.5px; }
  .ym-reviews-link:active { transform: scale(.99); }
}

/* ===================================================================
   YARMETRO_ITEM61: районы -- единый вид кнопок, видимая галочка,
   одинаковые разделители
   =================================================================== */
@media (max-width: 767px) {
  /* кнопки «Выберите район» и «Другие районы области» -- как обычные варианты */
  .ym-territory-group .ym-terr-more {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 10px !important;
    border: 1px solid #e0e5ee !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: #46536b !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.15;
    text-align: center;
  }
  .ym-territory-group .ym-terr-more[disabled] { opacity: .45; }
  .ym-territory-group .ym-terr-more.is-set {
    border-color: #e7182c !important;
    background: #fff4f5 !important;
    color: #e7182c !important;
  }
  .ym-terr-more--wide { grid-column: 1 / -1; width: 100% !important; margin: 0; }

  /* строки и выпадающие списки -- одинаковый ритм */
  .ym-territory-group .ym-mobile-sheet__checks { row-gap: 8px; }
  .ym-terr-row { margin: 0 !important; }
  .ym-terr-drop { margin: 0 !important; padding: 0 !important; border: 0 !important; }
  .ym-terr-line { margin: 4px 0 !important; background: #e7182c; }

  /* «Все районы» -- настоящая галочка */
  .ym-terr-all {
    grid-column: 1 / -1;
    display: flex !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 10px;
    width: 100%;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 2px !important;
    border: 0 !important;
    background: none !important;
    color: #07183f !important;
    font-size: 13.5px;
    font-weight: 700;
  }
  .ym-terr-all input {
    position: static !important;
    opacity: 1 !important;
    width: 19px !important;
    height: 19px !important;
    margin: 0 !important;
    pointer-events: auto !important;
    accent-color: #e7182c;
    appearance: auto;
    -webkit-appearance: checkbox;
  }
  .ym-terr-all > span {
    display: inline !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    color: inherit !important;
    font: inherit !important;
    text-align: left !important;
  }

  /* «Ярославский район (вокруг города)» -- обычная широкая кнопка */
  .ym-terr-wide { grid-column: 1 / -1; }
  .ym-terr-wide > span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    height: 100% !important;
    text-align: center !important;
    padding: 0 10px !important;
  }
  .ym-terr-wide b, .ym-terr-wide i { font: inherit; font-style: normal; }
}


/* ===================================================================
   YARMETRO_ITEM68_ROUND22: «Все районы» аккуратной строкой,
   крестик сброса в «Районов: N», разделитель до Рыбинска
   =================================================================== */
@media (max-width: 767px) {
  .ym-territory-group .ym-terr-all {
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: #f5f7fb !important;
    gap: 10px;
  }
  .ym-territory-group .ym-terr-all input {
    width: 20px !important;
    height: 20px !important;
    border-radius: 6px;
    accent-color: #e7182c;
    flex: 0 0 auto;
  }
  .ym-territory-group .ym-terr-more.is-set {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }
  .ym-terr-cnt { display: inline-flex; align-items: center; line-height: 1; }
  .ym-terr-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #e7182c;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .ym-territory-group .ym-terr-more.is-set .ym-terr-cnt {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    border-radius: 0 !important;
  }
  .ym-territory-group .ym-terr-more.is-set .ym-terr-x {
    width: 19px !important;
    height: 19px !important;
    min-height: 0 !important;
    padding: 0 !important;
    border-radius: 50% !important;
    align-self: center !important;
    background: #e7182c !important;
    color: #fff !important;
  }
}


/* ===================================================================
   YARMETRO_ITEM72_ROUND22: цена -- крупная, на всю ширину, слева (ЦИАН)
   =================================================================== */
@media (max-width: 767px) {
  .ym-detail-v2 .ym-detail-priceline {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
  }
  .ym-detail-v2 .ym-detail-priceside {
    max-width: none !important;
    width: 100% !important;
    text-align: left !important;
    gap: 8px;
    order: 0;
  }
  .ym-detail-v2 .ym-detail-addr { order: 1; }
  .ym-detail-v2 .ym-detail-actions--icons { order: 2; justify-content: flex-start !important; }
  .ym-detail-v2 .ym-detail-priceside .catalog-item__price { text-align: left !important; }
  .ym-detail-v2 .ym-detail-priceside .price {
    justify-content: flex-start !important;
    line-height: 1.05;
  }
}


/* ===================================================================
   YARMETRO_ITEM80_ROUND23: зазор иконки снижения, адрес одной строкой
   =================================================================== */
@media (max-width: 767px) {
  .ym-detail-v2 .ym-detail-priceside .ym-price-delta { margin-left: 0 !important; }
  /* 80: убрать 32px под родной треугольник — число и иконка вплотную */
  .ym-detail-v2 .ym-detail-priceside .price.price-up > span,
  .ym-detail-v2 .ym-detail-priceside .price.price-down > span { padding-left: 0 !important; }
  .ym-detail-v2 .ym-detail-priceside .ym-price-delta__pop { padding: 9px 12px !important; }
  .ym-detail-v2 .ym-detail-priceside .ym-price-delta__pop b,
  .ym-detail-v2 .ym-detail-priceside .ym-price-delta__pop i { padding-left: 0 !important; }
}


/* ===================================================================
   YARMETRO_ITEM77_ROUND23: чистое описание из CRM (списки, отступы)
   =================================================================== */
@media (max-width: 767px) {
  .ym-detail-v2 .apartment-descr.ym-descr-tidy p { margin: 0 0 9px; line-height: 1.5; }
  .ym-detail-v2 .apartment-descr.ym-descr-tidy p.ym-descr-head { margin: 14px 0 6px; }
  .ym-detail-v2 .apartment-descr.ym-descr-tidy ul { margin: 4px 0 12px; padding-left: 0; list-style: none; }
  .ym-detail-v2 .apartment-descr.ym-descr-tidy li { margin: 3px 0; line-height: 1.45; }
}


/* ===================================================================
   YARMETRO_ITEM79_ROUND23: чекбокс «Все районы» вровень с кнопками
   =================================================================== */
@media (max-width: 767px) {
  .ym-territory-group .ym-terr-all { padding-left: 2px !important; padding-right: 2px !important; align-items: baseline !important; }
}

/* ===================================================================
   YARMETRO_ITEM7_ROUND26: чекбокс «Все районы»/«Все районы области» -- сама
   галочка чуть выше текста при align-items:baseline, опускаем на пару px
   =================================================================== */
@media (max-width: 767px) {
  .ym-territory-group .ym-terr-all input { position: relative; top: 2px; }
}

/* ===================================================================
   YARMETRO_ITEM86_ROUND24: центрированный шеврон в чипах фильтров
   =================================================================== */
.ym-chip-caret { display: inline-flex; align-items: center; vertical-align: middle; margin-left: 3px; position: relative; top: -1px; }
.ym-chip-caret svg { display: block; width: 9px; height: 6px; }

/* ===================================================================
   YARMETRO_ITEM84_ROUND24: заметная кнопка «Показать ещё» (похожие)
   =================================================================== */
@media (max-width: 767px) {
  .metro-related .metro-related__more {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff5f6; border: 1.5px solid #f1c3c9 !important; color: #c51628 !important;
    font-weight: 700 !important; border-radius: 13px;
  }
  .metro-related .metro-related__more::after {
    content: ''; width: 8px; height: 8px;
    border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
    transform: rotate(45deg); margin-top: -3px;
  }
}

/* ===================================================================
   YARMETRO_ITEM11_ROUND26: раздел «Новостройки» (/new-buildings/) --
   отдельное мини-приложение (local/new-buildings/app.js + style.css), а
   не часть общего каталога -- у него свой сценарий на мобильном (выдача
   только карточками или на карте, свои фильтры) и свои классы (nb-...).
   Мобильных правил под него раньше не было вообще -- ниже только то, что
   было реально сломано: кнопки действий карточки съезжали друг на друга
   (текст трёх кнопок накладывался), и общий блок "Связаться с нами"
   вылезал внизу списка, как раньше уже было в деталке (см. п.7.9 выше).
   Карусель фото (стрелки/счётчик) не трогаем -- она рабочая, просто
   визуально не идентична карточкам «Объекты» (полосы-пунктиры и полоска
   миниатюр там -- часть отдельного JS этого мини-приложения, чтобы
   сделать 1-в-1 надо отдельно смотреть app.js, тут не стал рисковать).
   =================================================================== */
@media (max-width: 767px) {
  .body--new-buildings .application { display: none !important; }

  .nb-card-actions {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto auto !important;
    row-gap: 8px !important;
  }
  .nb-remaining {
    grid-column: 1 !important; grid-row: 1 !important;
    justify-content: flex-start !important;
  }
  .nb-card-about {
    grid-column: 2 !important; grid-row: 1 !important;
    justify-content: flex-end !important;
  }
  .nb-card-actions > .nb-remaining,
  .nb-card-actions > .nb-card-about {
    font-size: 12px !important;
  }
  .nb-card-phone {
    grid-column: 1 / -1 !important; grid-row: 2 !important;
    display: flex !important; gap: 8px !important;
    font-size: 13px !important;
  }
  .nb-card-phone .nb-phone-label-full { display: none !important; }
  .nb-card-phone .nb-phone-label-compact { display: inline !important; }
}

/* ===== YARMETRO_ITEM16_ROUND28: мобильный фильтр раздела «Новостройки» =====
 * Прячем десктопную панель фильтров и десктопный переключатель вида -- вместо
 * них модуль в scripts.js строит мобильную шапку и нижний лист по образцу
 * каталога. Сами контролы раздела остаются в DOM (просто скрыты): мобильный
 * лист управляет фильтрацией через них. */
@media (max-width: 767px) {
    .body--new-buildings .nb-filters,
    .body--new-buildings .nb-view { display: none !important; }
    .body--new-buildings .ym-nb-quick { margin: 0 0 14px; }
    .ym-nb-quick button.is-active { border-color: #07183f; color: #fff; background: #07183f; font-weight: 700; }
    .ym-nb-sheet .ym-nb-search {
        width: 100%; min-height: 42px; padding: 0 12px;
        border: 1px solid #dce2ea; border-radius: 11px;
        color: #07183f; background: #fff; font-size: 14px;
    }
    .ym-nb-sheet .ym-mobile-sheet__group input[disabled] + span { opacity: .65; }
}

/* ===== YARMETRO_ITEM16_1_ROUND28: карточка ЖК в выдаче каталога =====
 * Карточка ЖК живёт в той же сетке, что и карточки квартир, и наследует их
 * оформление -- отличают её только фото-блок (без слайдера) и метка
 * «Новостройка», чтобы было видно, что это предложение от застройщика. */
.ym-nb-card .ym-nb-card__photo {
    display: block; width: 100%; height: 100%;
    background-position: center; background-size: cover; background-repeat: no-repeat;
}
.ym-nb-card .metro-catalog-card__media { position: relative; overflow: hidden; }
.ym-nb-badge {
    position: absolute; left: 10px; top: 10px; z-index: 2;
    padding: 5px 10px; border-radius: 999px;
    color: #fff; background: #e7182c;
    font-size: 11px; font-weight: 700; line-height: 1.2;
}
.ym-nb-card .metro-catalog-card__price { white-space: nowrap; }

/* ===== YARMETRO_ITEM16_2_ROUND28: режим «только новостройки» ===== */
.ym-nb-only .metro-catalog-grid > .metro-catalog-card:not(.ym-nb-card) { display: none !important; }
.ym-nb-card .ym-card-actions .ym-nb-card__more { margin-left: auto; }

/* ===== YARMETRO_ITEM48_ROUND28: шторка над картой =====================
 * Жалоба: если тянуть шторку не за козырёк, а за фото/тело карточки, над
 * козырьком появляется белое поле. Это не наш драг -- это резиновая
 * прокрутка (overscroll bounce) внутри самой шторки: список уже наверху,
 * палец тянет дальше, и браузер показывает пустоту над содержимым.
 * 1) запрещаем резиновый ход и передачу прокрутки наружу;
 * 2) козырёк прибиваем к верху шторки -- он остаётся на месте, за что бы
 *    ни тянули, и белой полосы над ним быть не может. */
@media (max-width: 767px) {
  .body--catalog.ym-catalog-mode-map .catalog-items {
    overscroll-behavior: none;
    overscroll-behavior-y: none;
  }
  .body--catalog.ym-catalog-mode-map .ym-catalog-sheet-handle {
    position: sticky;
    top: 0;
  }
}

/* ===== YARMETRO_ITEM49_ROUND28: «призрак старой версии» при обновлении ==
 * Мобильный вид собирается скриптами поверх серверной вёрстки, поэтому в
 * первые доли секунды после перезагрузки браузер успевал показать
 * необработанную (десктопную) разметку -- со стороны это выглядело как
 * «загрузилась старая версия». Прячем страницу до того момента, когда
 * разметка перестроена. Класс снимается и по DOMContentLoaded, и по load,
 * и по таймеру-страховке -- если скрипт упадёт, страница всё равно
 * покажется (см. тот же маркер в начале scripts.js). */
@media (max-width: 767px) {
  html.ym-boot body { visibility: hidden !important; }
}

/* YARMETRO_ITEM32_ROUND28: кнопка «Вернуться назад» на карточке жилого
 * комплекса -- ТА ЖЕ, что на карточке объекта. Правила выше расширены
 * селектором .nb-detail .nb-back.btn-back через :is(), чтобы не заводить
 * вторую копию стилей (см. ui/README.md). */
