
.ps-subnav { border-bottom: 1px solid var(--line); }
.ps-subnav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; overflow-x: auto; scrollbar-width: none; }
.ps-subnav a { display: block; padding: 14px 14px 12px; color: var(--text); font: 500 15px var(--sans); white-space: nowrap; border-bottom: 2px solid transparent; text-decoration: none; }
.ps-subnav a:hover, .ps-subnav a:focus-visible { color: var(--accent); }
.ps-subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }
.ps-head { padding: 28px 0 4px; }
.ps-head h1 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 300; letter-spacing: -.03em; line-height: 1.08; margin: 0; }
.ps-lead { margin: 12px 0 20px; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--text); }
/* W2 19.10 №82: a slice gets an existing illustration beside its H1 and lead; phones and narrow tablets leave it out */
.ps-head-top { display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 28vw, 360px); gap: 40px; align-items: center; }
.ps-head-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r, 20px); background: var(--paper, #f4f1ea); }
@media (max-width: 900px) { .ps-head-top { display: block; } .ps-head-art { display: none; } }
.ps-bar { position: sticky; top: var(--ps-top, 0px); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
/* bug report #2 (14.11.2026): .ps-head is its own stacking context (z 2), the sticky .ps-bar (z 20) covered open filter popovers. */
.ps-head:has(.sf-pop:not([hidden])) { z-index: 21; }
.ps-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 60px; max-width: none; padding: 0 max(32px, calc((100vw - 1200px) / 2 + 32px)); }
.ps-count { margin: 0; font: 600 17px var(--sans); color: var(--ink); }
.ps-count small { display: block; font: 400 13px var(--sans); color: var(--muted); }
.ps-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; color: var(--muted); }
/* IA 19.10 W1 (Vlad, item 1): the native arrow sat on the right edge of the pill, one drawn chevron 14px in */
.ps-sort select { height: 40px; padding: 0 40px 0 14px; border: 1px solid #c9ccd4; border-radius: 999px; font: 14px var(--sans); color: var(--ink); cursor: pointer; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2312141a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center; }
.ps-sort select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ps-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid #c9ccd4; border-radius: 999px;
  background: #fff; color: var(--ink); font: 600 14px var(--sans); cursor: pointer; }
.ps-btn:hover, .ps-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.ps-btn--map { display: none; }
.ps-btn--onmap { margin-left: auto; text-decoration: none; }
.ps-sort + .ps-btn--onmap { margin-left: 0; }
/* IA 19.10 W1 (184): «Сохранить поиск» and «Поделиться» in the bar, one row; messages go to the toast, not under the buttons */
.ps-save .ss-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.ps-preset-note { color: var(--muted); font-weight: 400; } /* IA 19.10 W1 #186: «, до 1 000 $ в год» of the preset */
/* IA 28: the second «На карте» waits until the search form with its own one leaves the screen (catalog-shell-js) */
.ps-maplink-auto .ps-bar [data-ps-maplink] { transition: opacity .2s, visibility .2s; }
.ps-maplink-auto .ps-bar [data-ps-maplink]:not(.is-on) { visibility: hidden; opacity: 0; }
.ps-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 46%); gap: 0; }
.ps-list { padding: 24px 28px 48px max(32px, calc((100vw - 1200px) / 2 + 32px)); }
.ps-map { position: sticky; top: var(--ps-map-top, 61px); height: calc(100vh - var(--ps-map-top, 61px)); border-left: 1px solid var(--line); }
.ps .ps-map .c-map { margin: 0; height: 100%; border: 0; border-radius: 0; }
.ps .ps-map .c-map-el { height: 100%; }
.ps-map-close { display: none; }
.ps.is-nomap .ps-work { grid-template-columns: minmax(0, 1fr); }
.ps.is-nomap .ps-map { display: none; }
.ps.is-nomap .ps-list { padding-right: max(32px, calc((100vw - 1200px) / 2 + 32px)); }
.ps-notice { margin: 0 0 16px; color: var(--muted); }
.ps-more { display: block; width: 100%; margin-top: 20px; }
.ps-more[disabled] { opacity: .6; cursor: progress; }
.ps-prev { display: block; width: 100%; margin-bottom: 16px; text-align: center; }
.ps-pager { margin-top: 24px; }
.ps-empty h2 { font-size: 22px; font-weight: 600; }
.ps-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ps-presets a, .ps-venue a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid #c9ccd4; border-radius: 999px;
  color: var(--ink); font: 500 14px var(--sans); text-decoration: none; background: #fff; }
.ps-presets a:hover, .ps-presets a:focus-visible, .ps-venue a:hover, .ps-venue a:focus-visible { border-color: var(--accent); color: var(--accent); }
.ps-presets a[aria-current] { border-color: var(--accent); background: var(--accent); color: #fff; }
.ps-venue { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; color: var(--muted); font-size: 14px; }
/* 1.4: preset groups with a caption (OR inside «Направления»), active conditions right above the results bar */
.ps-pgroups { display: grid; gap: 10px; margin: 14px 0 0; }
.ps-pgroup { display: flex; align-items: center; gap: 10px; }
.ps-pgroup .ps-presets { margin: 0; }
.ps-pcap { flex: none; min-width: 168px; font-size: 13px; color: var(--muted); line-height: 1.3; }
.ps-pcap small { display: block; font-size: 12px; }
.ps-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.ps-active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: #eef1fb;
  color: var(--ink); font: 500 14px var(--sans); text-decoration: none; }
.ps-active-chip span { font-size: 16px; line-height: 1; color: var(--muted); }
.ps-active-chip:hover, .ps-active-chip:focus-visible { background: #e2e7f8; }
.ps-active-join { font-size: 13px; }
.ps-active-reset { margin-left: 4px; color: var(--muted); }
/* mobile dock «Фильтры (N) / На карте» once the search form left the screen */
.ps-dock { display: none; }
@media (max-width: 1099px) {
  .ps-work { grid-template-columns: minmax(0, 1fr); }
  .ps-list { padding: 20px 32px 40px; }
  .ps-btn--hide { display: none; }
  .ps-btn--map { display: inline-flex; }
  .ps-map { display: none; position: fixed; inset: 0; z-index: 1000; height: auto; border: 0; background: #fff; }
  .ps.is-mapopen .ps-map { display: block; }
  html.ps-lock { overflow: hidden; }
  .ps-count small { display: none; }
  .ps-map-close { display: inline-flex; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1001; box-shadow: 0 6px 18px -6px rgba(20,20,40,.35); }
}
@media (max-width: 760px) {
  .ps-list { padding: 16px 18px 32px; }
  .ps-sort label { display: none; }
  .ps-bar .wrap { gap: 8px; padding: 8px 18px; }
  .ps-count { flex: 1 0 100%; }
  .ps-sort { margin-left: 0; }
  .ps-lead { margin: 8px 0 14px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .ps-head { padding-top: 18px; }
  /* the dock below replaces the sticky bar: the top stays the site header only */
  .ps-bar { position: static; }
  .ps-pgroup { flex-direction: column; align-items: stretch; gap: 6px; }
  .ps-pcap { min-width: 0; }
  .ps-pgroup .ps-presets { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
  .ps-pgroup .ps-presets a { white-space: nowrap; }
  .ps-dock { display: flex; position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 900; transform: translate(-50%, 140%);
    gap: 0; border-radius: 999px; background: var(--ink); box-shadow: 0 10px 28px -8px rgba(20,20,40,.45); transition: transform .2s; }
  .ps-dock.is-on { transform: translate(-50%, 0); }
  .ps-dock button { height: 48px; padding: 0 20px; white-space: nowrap; border: 0; background: none; color: #fff; font: 600 15px var(--sans); cursor: pointer; }
  .ps-dock button + button { border-left: 1px solid rgba(255,255,255,.25); }
  .ps.is-mapopen .ps-dock { display: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .ps-dock { transition: none; } }
