/* Плавность и мобильная версия (подключается после style.css) */
:root {
  --ease: cubic-bezier(.2, .9, .25, 1);        /* быстрый старт, мягкая остановка */
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --tabbar-h: 0px;
}
html { scroll-behavior: smooth; }
body { overscroll-behavior-y: none; }
button, a, .item, .chip, .seg { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, .pill, .chip, .seg, .access-btn, .icon-btn, .fav-btn {
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
              transform .15s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
}
button:active, .pill:active, .chip:active, .seg:active, .access-btn:active { transform: scale(.96); }
.seg.on, .chip.on { animation: tick .25s var(--ease); }
@keyframes tick { 50% { transform: scale(1.06); } }

/* ─── поиск с иконкой ───────────────────────────────────────────────────── */
.q-wrap { position: relative; flex: 1 1 320px; min-width: 0; display: flex; }
.q-wrap input[type=search] { flex: 1; width: 100%; padding-left: 50px; }
.q-ico { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input[type=search] { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.search input[type=search]:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(243, 232, 188, .12); }
.filter-btn, .icon-btn {
  display: inline-grid; place-items: center; position: relative; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink);
}
.filter-btn svg, .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.filter-btn { display: none; }
.badge { position: absolute; top: -2px; right: -2px; min-width: 19px; height: 19px; border-radius: 10px; padding: 0 5px;
  background: var(--ink); color: var(--on-accent); font: 600 11px/19px var(--body); }
.count-wrap { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 36px; height: 36px; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.spin svg { animation: spin .7s var(--ease); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── карточки: появляются волной, фото проявляется, нажатие пружинит ─────── */
.item { animation: cardIn .45s var(--ease) both; animation-delay: var(--d, 0ms);
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.985); } }
@media (hover: hover) {
  .item:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 20, 20, .28); }
  .item:hover .item-photo img.loaded { transform: scale(1.04); }
}
.item:active { transform: scale(.985); }
.item-photo { overflow: hidden; }
.item-photo img, .gallery img { opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.item-photo img.loaded, .gallery img.loaded { opacity: 1; }
.results { transition: opacity .2s var(--ease); }
.results.busy { opacity: .55; pointer-events: none; }
.fav-btn.pop { animation: pop .45s var(--ease); }
@keyframes pop { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }

/* ─── заглушки при загрузке ─────────────────────────────────────────────── */
.item.skel { pointer-events: none; min-height: 230px; gap: 10px; animation: none; }
.skel i { display: block; height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, var(--chip) 0%, rgba(243, 232, 188, .18) 50%, var(--chip) 100%);
  background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:nth-child(1) { height: 120px; border-radius: 12px; }
.skel i:nth-child(2) { width: 55%; height: 22px; }
.skel i:nth-child(3) { width: 80%; }
.skel i:nth-child(4) { width: 65%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─── окна: плавно появляются; на телефоне — снизу, закрываются свайпом ───── */
dialog[open] { animation: dlgIn .28s var(--ease); }
dialog[open]::backdrop { animation: fadeIn .28s var(--ease); }
dialog.closing { animation: dlgOut .2s var(--ease-in) forwards; }
dialog.closing::backdrop { animation: fadeOut .2s var(--ease-in) forwards; }
dialog::backdrop { backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes dlgOut { to { opacity: 0; transform: translateY(8px) scale(.97); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.grab { display: none; }

/* ─── плашка «новые объекты» и всплывающие подсказки ────────────────────── */
.new-pill { position: fixed; z-index: 70; left: 50%; top: 14px; transform: translate(-50%, -160%);
  border: 0; border-radius: var(--radius); padding: 10px 18px; background: var(--ink); color: var(--on-accent);
  font: 500 14px var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .45s var(--ease); }
.new-pill.show { transform: translate(-50%, 0); }
.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + var(--tabbar-h)); max-width: calc(100vw - 32px);
  transform: translate(-50%, 160%); opacity: 0; padding: 11px 18px; border-radius: 14px;
  background: var(--ink); color: var(--on-accent); font: 500 14px var(--body); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  transition: transform .4s var(--ease), opacity .3s var(--ease); pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ─── ползунок цены ─────────────────────────────────────────────────────── */
.price-slider { display: grid; gap: 4px; width: min(100%, 340px); }
.ps-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ps-top b { font: 600 15px var(--head); letter-spacing: .02em; white-space: nowrap; }
.ps-track { position: relative; height: 32px; }
.ps-track::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 4px; border-radius: 2px; background: var(--line-2); }
.ps-fill { position: absolute; top: 14px; height: 4px; border-radius: 2px; background: var(--ink); left: 0; right: 0;
  transition: left .12s var(--ease), right .12s var(--ease); }
.ps-track input[type=range] { position: absolute; inset: 0; width: 100%; height: 32px; margin: 0; background: none;
  -webkit-appearance: none; appearance: none; pointer-events: none; outline: none; }
.ps-track input[type=range]::-webkit-slider-runnable-track { background: none; border: 0; }
.ps-track input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 26px; height: 26px;
  border-radius: 50%; background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: grab;
  transition: transform .15s var(--ease); }
.ps-track input[type=range]::-moz-range-thumb { pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--bg); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); cursor: grab; }
.ps-track input[type=range]:active::-webkit-slider-thumb { transform: scale(1.18); cursor: grabbing; }
.ps-track input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(243, 232, 188, .3); }
@media (max-width: 640px) { .price-slider { width: 100%; } .ps-track input[type=range]::-webkit-slider-thumb { width: 30px; height: 30px; } }

/* ─── карта ──────────────────────────────────────────────────────────────── */
.map .map-tiles { filter: saturate(.55) contrast(.95) brightness(1.03); }   /* приглушаем подложку — метки ярче */
.pin-wrap { background: none; border: 0; }
.pin { position: relative; transform: translate(-50%, calc(-100% - 8px)); display: inline-block; white-space: nowrap;
  padding: 5px 10px; border-radius: 999px; background: #f3e8bc; color: #035352; font: 600 13px/1.1 var(--head);
  letter-spacing: .02em; box-shadow: 0 4px 12px rgba(0, 30, 30, .35); border: 2px solid #035352;
  transition: transform .2s var(--ease), background-color .2s var(--ease); cursor: pointer; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; border-right: 2px solid #035352; border-bottom: 2px solid #035352; transform: rotate(45deg); border-radius: 0 0 3px 0; }
.leaflet-marker-icon:hover .pin { transform: translate(-50%, calc(-100% - 11px)) scale(1.08); }
.cl-wrap { background: none; border: 0; }
.cl { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 50%; background: #035352; color: #f3e8bc;
  font: 600 15px var(--head); border: 3px solid #f3e8bc; box-shadow: 0 0 0 6px rgba(3, 83, 82, .25), 0 6px 16px rgba(0, 30, 30, .35);
  transition: transform .2s var(--ease); }
.leaflet-marker-icon:hover .cl { transform: scale(1.08); }
/* всплывающая карточка */
.map-pop .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 32px rgba(0, 30, 30, .35); }
.map-pop .leaflet-popup-content { margin: 0; width: 240px !important; }
.map-pop .leaflet-popup-tip { box-shadow: none; }
.map-card { cursor: pointer; color: #12302f; font: 14px/1.35 var(--body); }
.map-card img { display: block; width: 100%; height: 130px; object-fit: cover; }
.mc-body { padding: 10px 14px 12px; display: grid; gap: 2px; }
.mc-head { font: 500 12px var(--head); letter-spacing: .04em; text-transform: uppercase; color: #3d5f5d; }
.mc-head .tag { color: #035352; border-color: #035352; }
.mc-price { font: 600 20px var(--head); color: #035352; }
.mc-title { font-size: 13px; }
.mc-more { margin-top: 6px; font-weight: 600; color: #035352; font-size: 13px; }
/* кнопки масштаба и подпись */
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; border: 0 !important;
  background: var(--paper) !important; color: var(--ink) !important; font-size: 20px !important; }
.leaflet-bar { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 30, 30, .3) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .6) !important; font-size: 10px !important; border-radius: 6px 0 0 0; }

/* Шторка фильтров и нижняя панель — только на телефоне */
.sheet-head, .sheet-foot, .sheet-overlay, .tabbar, .sheet-deal { display: none; }

@media (max-width: 640px) {
  :root { --tabbar-h: calc(64px + env(safe-area-inset-bottom)); }
  body { padding-bottom: var(--tabbar-h); }
  .top { padding: 14px 16px 2px; gap: 6px 12px; }
  .brand-sub, .top-actions { display: none; }
  .wrap { padding-top: 0; }

  /* поиск прилипает к верху */
  .search { position: sticky; top: 0; z-index: 30; margin: 0 -16px 10px; padding: 10px 16px; flex-wrap: nowrap; gap: 8px;
    background: rgba(3, 83, 82, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  .q-wrap { flex: 1 1 auto; }
  .search input[type=search] { flex-basis: auto; font-size: 16px; padding: 12px 14px 12px 44px; }
  .q-ico { left: 15px; width: 18px; height: 18px; }
  .search .deal { display: none; }
  .filter-btn { display: inline-grid; width: 46px; height: 46px; }

  /* фильтры — шторка снизу */
  .filters { position: fixed; z-index: 80; left: 0; right: 0; bottom: 0; display: block; max-height: 86dvh; overflow-y: auto;
    overscroll-behavior: contain; background: var(--paper); border-radius: 24px 24px 0 0; padding: 0 16px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, .35); transform: translateY(105%); visibility: hidden;
    transition: transform .42s var(--ease), visibility 0s linear .42s; }
  body.sheet-open .filters { transform: none; visibility: visible; transition: transform .42s var(--ease); }
  .filters > .row, .filters > .more { margin-bottom: 14px; }
  .sheet-deal { display: flex; margin-bottom: 14px; }
  .sheet-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
    background: var(--paper); padding: 20px 0 12px; font: 600 20px var(--head); }
  .sheet-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--chip); }
  .sheet-foot { display: block; position: sticky; bottom: 0; background: var(--paper);
    padding: 12px 0 calc(14px + env(safe-area-inset-bottom)); }
  .sheet-overlay { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(0, 20, 20, .55);
    opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
  body.sheet-open .sheet-overlay { opacity: 1; pointer-events: auto; }
  body.sheet-open { overflow: hidden; }
  .more[hidden] { display: flex !important; }
  .more { padding: 14px; }
  .more-btn { display: none; }
  .chips.scroll { max-height: none; }

  /* панель над списком */
  .bar { margin-top: 4px; padding-bottom: 10px; }
  .bar .view { display: none; }
  .bar-right { width: auto; }
  .count { font-size: 16px; }
  .map { height: calc(100dvh - 150px - var(--tabbar-h)); border-radius: 16px; }

  /* окна — снизу, во всю ширину */
  dialog.detail, dialog.small-dlg { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0;
    border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
  dialog[open] { animation: sheetUp .42s var(--ease); }
  dialog.closing { animation: sheetDown .26s var(--ease-in) forwards; }
  dialog.dragging { animation: none; transition: none; }
  @keyframes sheetUp { from { transform: translateY(100%); } }
  @keyframes sheetDown { to { transform: translateY(100%); } }
  .grab { display: block; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px;
    border-radius: 3px; background: var(--line-2); z-index: 3; }
  .detail .close { margin-top: 16px; }
  .gallery { margin-right: 0; }

  /* нижняя панель разделов */
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 50; left: 0; right: 0; bottom: 0;
    height: var(--tabbar-h); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 94, 92, .92);
    backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
  .tabbar button { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0;
    background: none; color: var(--ink-3); font: 500 11px var(--body); }
  .tabbar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round;
    stroke-linejoin: round; transition: transform .3s var(--ease); }
  .tabbar button.on { color: var(--ink); }
  .tabbar button.on svg { transform: translateY(-2px) scale(1.08); }
  .tabbar button[data-tab="fav"].on svg { fill: currentColor; }
  .tab-badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; border-radius: 9px;
    padding: 0 4px; background: var(--ink); color: var(--on-accent); font: 600 10px/17px var(--body); font-style: normal; }
  .new-pill { top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
.more-results { min-height: 1px; }

/* ═══ Стиль Apple: шапка, логотип, пружинные окна, избранное (v5) ═══════════ */
:root { --spring: cubic-bezier(.32, .72, 0, 1);    /* кривая «как у iOS» */
        --glide: cubic-bezier(.22, 1, .36, 1); }     /* мягкое замедление без отскока — для окон */

/* ─── шапка-меню: прозрачное стекло, уплотняется при прокрутке ─────────── */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(3, 83, 82, .62);
  backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.nav.scrolled { background: rgba(3, 83, 82, .84); border-bottom-color: var(--line); }
.nav-in { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 18px;
  transition: padding .35s var(--ease); }
.nav.scrolled .nav-in { padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font: inherit; letter-spacing: 0; }
.brand .logo { width: 42px; height: 42px; flex: 0 0 auto; transition: transform .45s var(--spring), width .35s var(--ease), height .35s var(--ease); }
.nav.scrolled .brand .logo { width: 36px; height: 36px; }
.brand:hover .logo { transform: rotate(-4deg) scale(1.04); }
.brand-text { display: grid; line-height: 1.05; }
.brand-name { font: 600 22px var(--head); letter-spacing: .04em; }
.brand-sub { color: var(--ink-3); font-size: 12px; flex: none; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; border: 0; background: none; color: var(--ink-2); text-decoration: none;
  padding: 9px 15px; border-radius: 999px; font: 500 14px var(--body); }
.nav-link:hover { color: var(--ink); background: var(--chip); }
.nav-link.on { color: var(--ink); background: rgba(243, 232, 188, .14); }
.nav-badge { display: inline-block; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px;
  background: var(--ink); color: var(--on-accent); font: 600 11px/18px var(--body); font-style: normal; text-align: center; }
.nav-cta { margin-left: 6px; border: 0; border-radius: 999px; padding: 10px 20px; background: var(--ink); color: var(--on-accent);
  font: 600 14px var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.nav-cta:hover { background: var(--hover); transform: translateY(-1px); }
.nav-cta.on { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ─── логотип: стены «прорисовываются», затем появляется надпись ──────────── */
.logo .walls path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s var(--ease) forwards; }
.logo .walls path:nth-child(2) { animation-delay: .35s; }
.logo .walls path:nth-child(3) { animation-delay: .45s; }
.logo .walls path:nth-child(4) { animation-delay: .55s; }
.logo .walls path:nth-child(5) { animation-delay: .62s; }
.logo .walls path:nth-child(6) { animation-delay: .7s; }
.logo-txt { font: 600 18px var(--head); fill: currentColor; opacity: 0; transform-origin: 27px 50px;
  animation: logoTxt .6s var(--spring) .85s forwards; }
.logo.redraw .walls path { animation: draw .8s var(--ease) forwards; }
.logo.redraw .logo-txt { animation: logoTxt .5s var(--spring) .4s both; }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes logoTxt { from { opacity: 0; transform: scale(.6) translateY(6px); } to { opacity: 1; transform: none; } }
.dlg-logo { width: 56px; height: 56px; margin-bottom: 10px; color: var(--ink); }
.dlg-logo .logo { width: 100%; height: 100%; }

/* ─── появление страницы: элементы мягко «всплывают» по очереди ────────── */
.search, .filters, .bar { animation: riseIn .7s var(--spring) both; }
.filters { animation-delay: .08s; }
.bar { animation-delay: .16s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(14px); } }

/* ─── сердце избранного ──────────────────────────────────────────────── */
.fav-btn { display: grid; place-items: center; }
.fav-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round;
  transition: fill .25s var(--ease), stroke .25s var(--ease), transform .3s var(--spring); }
.fav-btn.on svg { fill: var(--bad); stroke: var(--bad); }
.fav-btn:hover svg { transform: scale(1.12); }
.fav-btn.pop { animation: heartPop .6s var(--spring); }
@keyframes heartPop { 0% { transform: scale(1); } 25% { transform: scale(.78); } 55% { transform: scale(1.28); } 100% { transform: scale(1); } }
.spark { position: fixed; z-index: 200; width: 7px; height: 7px; border-radius: 50%; pointer-events: none; }

/* окно объекта: «избранное» и «закрыть» — справа сверху, всегда под рукой */
.d-tools { position: sticky; top: 12px; z-index: 3; float: right; display: flex; gap: 8px; margin: 12px 12px 0 0; }
.d-tools .close { position: static; float: none; margin: 0; }
.d-iconbtn { position: static; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--chip); color: var(--ink); }
.d-iconbtn svg { width: 19px; height: 19px; }
.d-iconbtn:empty { visibility: hidden; }

/* ─── окна: пружинное появление и размытие фона (компьютер) ──────────── */
@media (min-width: 641px) {
  /* Плавность: анимируем только прозрачность и сдвиг (их видеокарта считает сама); размытие
     фона — лёгкое и без анимации самого размытия, иначе на слабых компьютерах окно «дёргается» */
  dialog[open] { animation: dlgSpring .42s var(--glide); will-change: transform, opacity; }
  dialog[open]::backdrop { animation: fadeIn .32s var(--ease); }
  dialog::backdrop { background: rgba(0, 20, 20, .5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
  dialog.closing { animation: dlgAway .22s var(--ease-in) forwards; }
  @keyframes dlgSpring { from { opacity: 0; transform: translate3d(0, 18px, 0) scale(.975); } to { opacity: 1; transform: none; } }
  @keyframes dlgAway { to { opacity: 0; transform: translate3d(0, 8px, 0) scale(.985); } }
  .item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 20, 20, .32); }
}
@media (max-width: 640px) {
  dialog[open] { animation: sheetUp .44s var(--glide); will-change: transform; }
  .d-tools { margin-top: 18px; }
}

/* ─── переключение «Объекты ↔ Карта» — плавное перетекание ─────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; animation-timing-function: var(--ease); }

/* ─── телефон: шапка простая, разделы — в нижней панели ───────────────── */
@media (max-width: 640px) {
  .nav { position: relative; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; }
  .nav-in { padding: 14px 16px 4px; }
  .nav-links, .brand-sub { display: none; }
  .nav-links.doc-nav { display: flex; }           /* остальные страницы: на телефоне — только «← К поиску» */
  .nav-links.doc-nav .nav-link { display: none; }
  .nav-links.doc-nav .nav-cta { padding: 8px 14px; font-size: 13px; }
  .brand .logo { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo .walls path { stroke-dashoffset: 0; }
  .logo-txt { opacity: 1; }
}

/* ─── кабинет администратора: сводка ─────────────────────────────────── */
.cab-admin { display: grid; gap: 12px; padding: 14px; border-radius: 18px; background: var(--chip); }
.cab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cab-tile { background: var(--paper); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px;
  animation: riseIn .5s var(--spring) both; }
.cab-tile b { font: 600 22px var(--head); }
.cab-tile span { color: var(--ink-3); font-size: 11.5px; line-height: 1.25; }
.cab-tile.warn b { color: var(--bad); }
.cab-stats .skel { min-height: 58px; border-radius: 12px; overflow: hidden; }
.cab-stats .skel i { height: 100%; min-height: 58px; border-radius: 12px; }
.cab-admin .pill { text-align: center; text-decoration: none; }
@media (max-width: 640px) { .cab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ─── окошко метки на карте: адрес, цена за м², телефон ─────────────────── */
.map-card img { cursor: pointer; }
.mc-addr { font-size: 12.5px; color: #3d5f5d; }
.mc-m2 { font-size: 12px; color: #6b8583; }
.mc-phones { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; animation: riseIn .4s var(--spring) both; }
.mc-phones.locked span { font: 600 14px var(--head); color: #035352; letter-spacing: .04em; }
.mc-call, .mc-wa { border: 0; border-radius: 999px; padding: 7px 12px; font: 600 12.5px var(--body); text-decoration: none; cursor: pointer; }
.mc-call { background: #035352; color: #f3e8bc !important; }
.mc-wa { background: #e8f0ef; color: #035352 !important; }
.mc-more { cursor: pointer; }
.d-locked.loading { display: grid; gap: 8px; }
.d-locked.loading .skel i { height: 26px; width: 60%; }

.mc-extra { display: grid; gap: 2px; }
.mc-extra .skel { display: grid; gap: 6px; padding-top: 4px; }
.mc-extra .skel i { height: 10px; background-color: #e3ecea; }
.mc-extra .skel i:first-child { width: 80%; height: 10px; border-radius: 5px; }
.mc-extra .skel i:last-child { width: 55%; }

/* ─── согласие и cookie ──────────────────────────────────────────────── */
.consent { color: var(--ink-3); font-size: 12px; line-height: 1.45; margin: 12px 0 0; }
.consent a { color: var(--ink-2); }
.cookie { position: fixed; z-index: 85; left: 50%; bottom: calc(16px + var(--tabbar-h)); transform: translateX(-50%);
  width: min(560px, calc(100vw - 24px)); display: flex; gap: 14px; align-items: center; padding: 14px 16px;
  border-radius: 18px; background: rgba(10, 94, 92, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .3); animation: riseIn .6s var(--spring) .8s both;
  transition: opacity .35s var(--ease), transform .35s var(--ease); }
.cookie.bye { opacity: 0; transform: translate(-50%, 20px); }
.cookie p { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.cookie a { color: var(--ink); }
.cookie .pill { padding: 9px 18px; white-space: nowrap; }

/* ─── кабинет агента ─────────────────────────────────────────────────────── */
.agent-dlg { width: min(720px, calc(100vw - 32px)); }
.agent-step { background: var(--chip); border-radius: 18px; padding: 14px 16px; margin: 10px 0; }
.agent-step p { margin: 0 0 10px; }
.agent-more summary { cursor: pointer; color: var(--ink-2); font-size: 14px; margin: 4px 0 8px; }
.agent-code { margin-top: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 18px; }
.agent-code .code { font: 600 24px/1.3 var(--head); letter-spacing: .06em; }
.agent-code-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; }
.agent-head .d-h { margin: 0; }
.agent-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; align-items: center;
  padding: 10px; margin: 8px 0; border: 1px solid var(--line); border-radius: 16px; background: var(--paper);
}
.agent-item.off { opacity: .55; }
.agent-item img, .agent-noimg {
  width: 72px; height: 56px; object-fit: cover; border-radius: 10px; background: var(--chip);
  display: grid; place-items: center; font-size: 11px; color: var(--ink-3);
}
.agent-info { display: flex; flex-direction: column; min-width: 0; }
.agent-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-btns { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.agent-btns .pill, .agent-btns .ghost { padding: 6px 12px; font-size: 13px; }
.agent-rules { margin-top: 18px; font-size: 13px; }
.agent-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.agent-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-2); }
.agent-field input, .agent-field select, .agent-field textarea {
  font: inherit; font-size: 15px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; width: 100%; box-sizing: border-box;
}
.agent-field textarea { resize: vertical; min-height: 110px; }
.agent-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.agent-photo { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--chip); }
.agent-photo img { width: 100%; height: 100%; object-fit: cover; }
.agent-photo-del {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0;
  background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer;
}
.agent-photo.add {
  display: grid; place-items: center; align-content: center; cursor: pointer; font-size: 26px;
  border: 1px dashed var(--line-2); color: var(--ink-2);
}
.agent-photo.add span { font-size: 12px; }
@media (max-width: 560px) {
  .agent-item { grid-template-columns: 56px 1fr; }
  .agent-item img, .agent-noimg { width: 56px; height: 48px; }
  .agent-btns { grid-column: 1 / -1; flex-direction: row; }
  .agent-btns > * { flex: 1; }
}

/* карта: примерные точки и подпись «на карте N из M» */
.pin.approx { opacity: .82; border-style: dashed; }
.mc-approx { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 8px; border-radius: 8px;
  background: #fff1c7; color: #6a4a00; border: 1px solid #f0c95a; font: 600 11px/1.3 var(--body); }
.mc-approx::before { content: "≈"; font-size: 13px; }
.map-note { margin: 8px 2px 0; font-size: 13px; color: var(--ink-3); }

/* окно объекта: место под фото занято заранее — содержимое не прыгает, пока фото грузятся */
.gallery img { width: 293px; max-width: 80vw; }
@media (max-width: 640px) { .gallery img { width: 227px; } }
dialog.detail { contain: layout paint; overscroll-behavior: contain; }

/* ─── фишки: отметки, рынок, другие агенты, заметки, подписки ──────────── */
.marks { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.mark { position: static; font-size: 12px; line-height: 1.5; font-weight: 600; padding: 1px 9px; border-radius: 999px;
  background: var(--chip); color: var(--ink); white-space: nowrap; }
.mark.new { background: var(--ink); color: var(--on-accent); }
.mark.down { background: var(--gold); color: #3b2a00; }
.mark.good { background: var(--ok); color: var(--ok-ink); }
.d-back { font-size: 20px; font-weight: 600; }
.bar-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; width: 100%; }
.bar-tools .chip { font-size: 13px; padding: 5px 12px; }
.bar-tools .reset-chip { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.d-market { margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--chip); display: flex; flex-direction: column; gap: 2px; }
.d-market.good { background: rgba(167, 209, 182, .14); border: 1px solid var(--ok); }
.d-market.high { background: rgba(226, 165, 150, .14); }
.d-market small { color: var(--ink-3); }
.d-same, .d-note-box { margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.d-same summary, .d-note-box summary { cursor: pointer; font-weight: 600; }
.d-same ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.d-same li { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 14px; }
.d-same li span { color: var(--ink-3); }
button.link { border: 0; background: none; padding: 0; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.d-note-text { width: 100%; box-sizing: border-box; margin-top: 8px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 12px; padding: 9px 12px; resize: vertical; }
.saved-list { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 6px; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; }
.saved-list a { color: var(--ink); }

/* ─── логотип чаще: окно объекта, загрузка, пустой список, карта ───────── */
.brand-line { display: flex; align-items: center; gap: 10px; margin: 26px 0 4px; padding-top: 16px;
  border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.brand-line .logo { width: 44px; height: 44px; flex: 0 0 auto; color: var(--ink); }
.brand-line b { color: var(--ink); font: 600 16px var(--head); letter-spacing: .03em; }
.d-loading { display: grid; place-items: center; gap: 10px; padding: 70px 0; color: var(--ink-3); }
.d-loading .logo { width: 64px; height: 64px; color: var(--ink); }
.d-loading .logo .walls path { animation: draw 1.1s var(--ease) infinite alternate; }
.empty-logo { display: block; width: 60px; height: 60px; margin: 0 auto 12px; color: var(--ink); opacity: .9; }
.empty-logo .logo { width: 100%; height: 100%; }
.map-card { position: relative; }
.mc-logo { position: absolute; right: 10px; bottom: 8px; width: 22px; height: 22px; color: #035352; opacity: .55; }
.mc-logo .logo { width: 100%; height: 100%; }
.mc-logo .walls path, .mc-logo .logo-txt { animation: none; stroke-dashoffset: 0; opacity: 1; }

/* ─── уведомление поверх окон (popover) ─────────────────────────────────── */
.toast[popover] { inset: auto auto calc(24px + var(--tabbar-h)) 50%; margin: 0; border: 0; overflow: visible; }
.toast[popover]:not(:popover-open) { display: none; }

/* ─── «← Назад» в окне объекта — заметная кнопка ───────────────────────── */
.d-back { height: 42px; padding: 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--on-accent); font: 600 15px var(--body); box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  animation: pop .35s var(--spring); }
.d-back:hover { background: var(--hover); }

/* ─── колокольчик уведомлений ──────────────────────────────────────────── */
.bell-mobile { display: none; position: relative; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
  place-items: center; color: var(--ink); background: var(--chip); }
.bell-mobile svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bell-dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--bad);
  box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 640px) { .bell-mobile:not([hidden]) { display: grid; } }

/* ─── сохранённые поиски у фильтров; новое в поиске ───────────────────── */
.saved-row { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.saved-row::-webkit-scrollbar { display: none; }
.saved-label { flex: 0 0 auto; font-size: 13px; color: var(--ink-3); }
.saved-chips { display: flex; gap: 6px; flex-wrap: nowrap; }
.saved-chips .chip { white-space: nowrap; max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.hit-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(167, 209, 182, .14);
  border: 1px solid var(--ok); font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.item.hit { border-color: var(--ok); box-shadow: 0 0 0 2px var(--ok), 0 14px 34px rgba(0, 0, 0, .25); }
.mark.hit { background: var(--ok); color: var(--ok-ink); }

/* ─── «Партнёр» и правка точки (админ) ─────────────────────────────────── */
.mark.partner { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.geo-dlg { width: min(760px, calc(100vw - 32px)); }
.geo-map { height: min(60vh, 460px); border-radius: 16px; overflow: hidden; margin: 10px 0; }
.geo-actions { flex-wrap: wrap; }
.mc-geo { margin-left: 8px; border: 0; background: none; color: #035352; font: 600 12px var(--body); cursor: pointer;
  text-decoration: underline; padding: 0; }
.geo-pin-wrap { background: none; border: 0; }
.geo-pin { width: 36px; height: 36px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: #035352;
  border: 3px solid #f3e8bc; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); display: grid; place-items: center; }
.geo-pin .logo { width: 22px; height: 22px; color: #f3e8bc; transform: rotate(45deg); }
.geo-pin .walls path, .geo-pin .logo-txt { animation: none; stroke-dashoffset: 0; opacity: 1; }
.geo-find { margin: 8px 0 0; }
.geo-find input { flex: 1 1 auto; min-width: 0; }
.geo-now { margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.saved-chip { display: inline-flex; align-items: center; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 999px;
  overflow: hidden; transition: background .2s, border-color .2s; }
.saved-chip.on { background: var(--ink); border-color: var(--ink); }
.saved-open { border: 0; background: none; color: var(--ink); font: 500 14px var(--body); padding: 7px 4px 7px 14px; cursor: pointer;
  white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.saved-chip.on .saved-open, .saved-chip.on .saved-x { color: var(--on-accent); }
.saved-x { border: 0; background: none; color: var(--ink-3); font: 600 18px/1 var(--body); width: 32px; height: 34px; cursor: pointer; }
.saved-x:hover { color: var(--err); }

/* ─── админ: ЖК и район, «научить сервис» ──────────────────────────────── */
.place-learn { display: flex; flex-direction: column; gap: 8px; }
.place-learn .check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; justify-items: start;
  width: 100%; white-space: normal; text-align: left; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.place-learn .check input { margin: 2px 0 0; width: 18px; height: 18px; }
.place-learn .check span { overflow-wrap: anywhere; }
#placeDlg .dlg-body { overflow-x: hidden; }
.place-learn b { color: var(--ink); }

/* ─── выпадающий список с поиском (web/combo.js) ───────────────────────── */
.combo { position: relative; width: 100%; flex: 1 1 220px; min-width: 0; }
.combo > input { width: 100%; box-sizing: border-box; }
.combo-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 300px; overflow-y: auto;
  background: #0b4544; border: 1px solid var(--line-2); border-radius: 14px; padding: 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4); animation: comboIn .16s var(--ease); scrollbar-width: thin; }
@keyframes comboIn { from { opacity: 0; transform: translateY(-4px); } }
.combo-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px;
  border-radius: 10px; cursor: pointer; color: var(--ink); font-size: 15px; line-height: 1.3; }
.combo-item small { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.combo-item.on, .combo-item:hover { background: rgba(243, 232, 188, .12); }
.combo-item mark { background: none; color: var(--gold); font-weight: 700; }
.combo-item.new { color: var(--ok); font-weight: 600; border-top: 1px solid var(--line); margin-top: 4px; }
.combo-empty { padding: 10px 12px; color: var(--ink-3); font-size: 14px; }

/* ─── «Ещё ▾» в шапке ─────────────────────────────────────────────────── */
.nav-link { white-space: nowrap; }
.nav-more { position: relative; }
.nav-more summary { list-style: none; cursor: pointer; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: " ▾"; font-size: 11px; }
.nav-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 80; min-width: 240px; padding: 6px; border-radius: 16px;
  background: rgba(10, 94, 92, .98); border: 1px solid var(--line-2); box-shadow: 0 14px 36px rgba(0, 0, 0, .35);
  display: grid; gap: 2px; animation: riseIn .2s var(--ease) both; }
.nav-menu a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font: 500 14px var(--body); white-space: nowrap; }
.nav-menu a:hover { background: var(--chip); }
.doc-nav .nav-link.on { color: var(--ink); background: rgba(243, 232, 188, .14); }
.nav-cta { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 641px) { .doc-nav .nav-link:not(.on) { padding: 9px 10px; font-size: 13px; } }
@media (max-width: 920px) and (min-width: 641px) { .doc-nav .nav-link:not(.on) { display: none; } }
.nm-narrow { display: none; }
@media (max-width: 1023px) and (min-width: 641px) {   /* планшет: часть пунктов шапки — в «Ещё ▾» */
  #plannerLink, #bellLink, #adminLink { display: none !important; }
  .nm-narrow:not([hidden]) { display: block; }
}

/* ─── колокольчик с числом и плашка нового уведомления ─────────────────── */
.bell-mobile { display: none !important; }
.bell { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex: none;
  color: var(--ink); background: rgba(243, 232, 188, .08); text-decoration: none; order: 3; margin-left: 8px;
  transition: background .2s, transform .2s var(--spring); }
.bell[hidden] { display: none; }
.bell:hover { background: var(--chip); transform: translateY(-1px); }
.bell svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bell.has svg { animation: bellRing 1.2s var(--ease) 1; transform-origin: 50% 10%; }
.bell-count { position: absolute; top: -3px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #3b0d06; font: 700 11px/18px var(--body); text-align: center; box-shadow: 0 0 0 2px var(--bg, #035352); }
.nav-links { order: 2; }
@keyframes bellRing { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); }
  45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 75% { transform: rotate(2deg); } }
@media (max-width: 640px) { .bell { margin-left: auto; width: 40px; height: 40px; } }

.bell-pop { position: fixed; z-index: 2000; right: 20px; bottom: 20px; width: min(340px, calc(100vw - 32px)); display: grid;
  grid-template-columns: auto 1fr; gap: 6px 10px; padding: 12px 12px 10px 14px; border-radius: 16px; background: rgba(8, 72, 70, .97);
  border: 1px solid rgba(227, 203, 143, .45); box-shadow: 0 14px 40px rgba(0, 0, 0, .4); color: var(--ink);
  transform: translateY(24px) scale(.96); opacity: 0; pointer-events: none; transition: transform .35s var(--spring), opacity .25s; }
.bell-pop.in { transform: none; opacity: 1; pointer-events: auto; }
.bell-pop-ic { font-size: 20px; line-height: 1.2; }
.bell-pop-txt { min-width: 0; }
.bell-pop-txt b { display: block; font: 600 14px/1.3 var(--body); }
.bell-pop-txt small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell-pop-acts { grid-column: 2; display: flex; gap: 8px; align-items: center; }
.bell-pop-go { padding: 5px 12px; border-radius: 999px; background: var(--ink); color: var(--on-accent) !important; font: 600 13px var(--body);
  text-decoration: none; }
.bell-pop-x { margin-left: auto; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(243, 232, 188, .1);
  color: var(--ink); cursor: pointer; }
@media (max-width: 767px) { .bell-pop { left: 50%; right: auto; transform: translate(-50%, 24px) scale(.96);
  bottom: calc(var(--tabbar-h, 64px) + 14px); } .bell-pop.in { transform: translate(-50%, 0); } }
body:not(:has(.tabbar)) .bell-pop { bottom: 20px; }

.saved-toggle { flex: 0 0 auto; margin-left: auto; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: none; color: var(--ink-3); font: 500 12px var(--body); cursor: pointer; transition: color .2s, border-color .2s; }
.saved-toggle:hover { color: var(--ink); border-color: var(--line-2); }
.saved-row.collapsed .saved-chips { display: none; }
.saved-row.collapsed .saved-toggle { margin-left: 0; }
@media (max-width: 640px) {
  .nav-links.doc-nav { margin-left: auto; }
  .doc-nav ~ .bell { margin-left: 8px; }
}

/* ═══ последние штрихи: лёгкость и отклик ═══ */
html { scroll-behavior: smooth; }
.chip.on, .seg.on { animation: tick .3s var(--spring); }
#hotBtn:hover { text-shadow: 0 0 12px rgba(226, 165, 150, .6); }
#hotBtn.on { background: linear-gradient(135deg, #ffb08a, var(--gold)); color: #4a120a; border-color: transparent; }
.dv-acc summary { border-radius: 12px; transition: background .2s, color .2s; }
.dv-acc summary:hover { background: rgba(243, 232, 188, .05); }
.mark { animation: fadeIn .4s var(--ease) both; }
.count { transition: opacity .2s; }
.results.busy .count { opacity: .6; }
.pill, .chip, .seg, .dv-act, .cab-tile2, .pks-btn { -webkit-tap-highlight-color: transparent; }
@media (max-width: 640px) {
  .bar-tools { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .bar-tools::-webkit-scrollbar { display: none; }
  .bar-tools .chip { flex: 0 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip.on, .seg.on, .mark, .dv-acc-b, .pl-ev, .pks-card, .rq-item, .cab-tile2 { animation: none !important; }
}

.mc-geo.off { color: #b0412e; }
