/* Каталог, карта, поиск, лендинг (F4). Только токены дизайн-системы FD — обе темы, смартфон первым. */
/* ---- схема-карта */
.atlas { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2);
  outline: none; touch-action: none; user-select: none; -webkit-user-select: none; }
.atlas:focus-visible { box-shadow: 0 0 0 2px var(--focus); }
.atlas__svg { display: block; width: 100%; height: clamp(360px, 62vh, 680px); }   /* распорка разметки: высота карты */
.atlas--sm .atlas__svg { height: clamp(300px, 48vh, 460px); }
.atlas__bar { position: absolute; z-index: 2; left: .5rem; top: .5rem; right: .5rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center;
  pointer-events: none; }
.atlas__bar > * { pointer-events: auto; }
.atlas__bar .icon-btn { background: var(--surface); border: 1px solid var(--line); }
.atlas__layers { display: inline-flex; flex-wrap: wrap; gap: .2rem .7rem; padding: .25rem .6rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); }
.atlas__layers .check { min-height: 32px; }
.atlas__pin { cursor: pointer; outline: none; pointer-events: bounding-box; }   /* нажимается и подпись */
.atlas__pin--stable path { fill: var(--role-stable); stroke: var(--surface); stroke-width: 1.6; }
[data-theme="dark"] .atlas__pin--stable path { stroke: var(--bg); }
/* след копыта в метке — цветом фона (как в знаке Roskoni); обводки у него нет ни в каком состоянии */
.atlas__pin path.atlas__pin-hoof { fill: var(--surface); stroke: none !important; }
.atlas__pin--specialist rect { fill: var(--role-specialist); stroke: var(--surface); stroke-width: 1.4; }
.atlas__pin.is-selected path, .atlas__pin.is-selected rect, .atlas__pin:focus-visible path, .atlas__pin:focus-visible rect { stroke: var(--focus); stroke-width: 2.6; }
.atlas__label { font: 600 12px var(--font-body); fill: var(--text); paint-order: stroke; stroke: var(--surface-2); stroke-width: 3.5px;
  stroke-linejoin: round; pointer-events: visiblePainted; }
.atlas__cluster { cursor: pointer; outline: none; }
.atlas__cluster circle { fill: var(--accent-bg); stroke: var(--accent-line); stroke-width: 2; }
.atlas__cluster--specialist circle { fill: var(--role-specialist-bg); stroke: var(--role-specialist); }
.atlas__cluster text { font: 700 12px var(--font-mono); fill: var(--text); pointer-events: none; }
.atlas__cluster:focus-visible circle { stroke: var(--focus); stroke-width: 3; }
.atlas__select { fill: var(--accent-bg); fill-opacity: .45; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 5 4; }
.atlas__pop { position: absolute; z-index: 3; width: min(320px, calc(100% - 1rem)); background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .8rem .9rem; user-select: text; }
.atlas__pop--stable { border-top: 4px solid var(--role-stable-mid); }
.atlas__pop--specialist { border-top: 4px solid var(--role-specialist-mid); }
.atlas__pop-x { position: absolute; right: .2rem; top: .2rem; font-size: 1.3rem; line-height: 1; }
.atlas__pop-head { display: flex; gap: .6rem; align-items: center; padding-right: 2rem; }
.atlas__pop-ava { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); filter: grayscale(1); }
.atlas__pop-ava:hover { filter: none; }
.atlas__pop-title { display: block; }
.atlas__pop-meta { display: block; font-size: .8rem; color: var(--muted); }
.atlas__pop-stars { margin: .4rem 0 0; color: var(--honey); font-weight: 600; font-size: .9rem; }
.atlas__pop-facts { margin: .35rem 0 0; font-size: .86rem; }
.atlas__pop-text { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.atlas__pop .btn-row { margin-top: .6rem; }
.atlas__pop-ymaps { display: inline-block; margin-top: .5rem; font-size: .78rem; }
@media (max-width: 599px) {
  .atlas__pop { left: .5rem !important; right: .5rem; bottom: 1.6rem; top: auto !important; width: auto; max-height: 60%; overflow-y: auto; }
}

/* ---- каталог */
.cat-filters-box { margin-bottom: 1rem; }
.cat-filters-box > summary { list-style: none; display: inline-flex; margin-bottom: .6rem; }
.cat-filters-box > summary::-webkit-details-marker { display: none; }
@media (min-width: 760px) { .cat-filters-box > summary { display: none; } }
.cat-head { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: end; justify-content: space-between; margin-bottom: 1rem; }
.cat-head h1 { margin: 0; }
.cat-filters { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end;
  padding: .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 1rem; }
.cat-filters .field { margin: 0; }
.cat-filters .btn-row { margin: 0; }
.cat-filters details > summary { cursor: pointer; }
.cat-view { display: inline-flex; gap: .2rem; }
.cat-list { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.cat-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; color: var(--text); text-decoration: none; transition: transform .2s var(--ease), border-color .2s; position: relative; }
.cat-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.cat-card:hover .cat-card__img img { filter: none; }
.cat-card__img { aspect-ratio: 16 / 9; background: var(--surface-3); overflow: hidden; }
.cat-card__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s var(--ease); }
.cat-card__ph { width: 100%; height: 100%; display: grid; place-items: center; font: 800 2.2rem var(--font-head); color: var(--muted-2); }
.cat-card--stable { border-top: 4px solid var(--role-stable-mid); }
.cat-card--specialist { border-top: 4px solid var(--role-specialist-mid); }
.cat-card__body { padding: .75rem .9rem .9rem; display: grid; gap: .3rem; }
.cat-card__title { font-weight: 700; font-size: 1.05rem; margin: 0; }
.cat-card__meta { font-size: .82rem; color: var(--muted); margin: 0; }
.cat-card__facts { display: flex; flex-wrap: wrap; gap: .3rem; }
.cat-card__more { font-size: .82rem; margin: 0; color: var(--muted); }
.cat-card__spec { display: flex; gap: .7rem; align-items: center; padding: .9rem .9rem 0; }
.cat-pages { display: flex; gap: .4rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }
.cat-guest { margin: 0 0 1rem; }
.stars { display: inline-flex; align-items: center; gap: .25rem; color: var(--honey); font-weight: 700; font-size: .88rem; }
.stars__n { color: var(--muted); font-weight: 500; }
.km { font: 600 .82rem var(--font-mono); color: var(--accent); }

/* ---- поиск */
.search-box { position: relative; max-width: 720px; }
.search-box input[type=search] { width: 100%; min-height: 52px; font-size: 1.08rem; padding-left: 2.6rem; }
.search-box > .ico { position: absolute; left: .85rem; top: 1rem; color: var(--muted); pointer-events: none; }
.search-sug { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: .3rem; list-style: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 60vh; overflow-y: auto; }
.search-sug li a { display: flex; gap: .6rem; align-items: center; padding: .55rem .6rem; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; }
.search-sug li a:hover, .search-sug li a.is-active { background: var(--surface-2); }
.search-sug__kind { font: 500 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-left: auto; }
.search-results { display: grid; gap: .6rem; margin-top: 1rem; }
.search-hit { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); color: var(--text); text-decoration: none; }
.search-hit:hover { border-color: var(--line-strong); }
.search-hit__body { display: grid; gap: .1rem; min-width: 0; }
.search-hit__kind { font: 500 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---- «рядом со мной» */
.near-intro { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .near-intro { grid-template-columns: 1.2fr 1fr; } }
.geo-help { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.geo-help > summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; }
.geo-help ol { margin: 0 0 .8rem; padding: 0 .9rem 0 2.2rem; font-size: .9rem; }
.geo-help li { margin: .2rem 0; }
.near-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.near-status { min-height: 1.4em; }
.badge--road { background: var(--sea-bg); color: var(--sea); }

/* ---- первый экран (замечание №7): заголовок, три «двери» по аудиториям, четыре опоры — телефон 390 без прокрутки */
.hero { display: grid; gap: .8rem; margin: -.2rem 0 1.6rem; }
.hero__title { font-size: calc(clamp(1.55rem, 7.4vw, 3.2rem) * var(--display-public-size)); line-height: 1.04; margin: 0; text-wrap: balance; }
.hero__sub { margin: .4rem 0 0; color: var(--muted); font-size: .98rem; line-height: 1.4; max-width: 44ch; text-wrap: pretty; }
.doors { display: grid; gap: .4rem; margin-top: .8rem; }
.door { display: grid; grid-template-columns: auto 1fr auto; gap: .7rem; align-items: center; min-height: 54px; padding: .4rem .55rem;
  border: 1px solid var(--line); border-left: 4px solid var(--door-mid); border-radius: var(--radius); background: var(--surface);
  color: var(--text); text-decoration: none; transition: transform .15s var(--ease), border-color .15s var(--ease); }
.door:hover { transform: translateY(-1px); border-color: var(--line-strong); border-left-color: var(--door); }
.door--owner { --door: var(--role-owner); --door-bg: var(--role-owner-bg); --door-mid: var(--role-owner-mid); }
.door--stable { --door: var(--role-stable); --door-bg: var(--role-stable-bg); --door-mid: var(--role-stable-mid); }
.door--specialist { --door: var(--role-specialist); --door-bg: var(--role-specialist-bg); --door-mid: var(--role-specialist-mid); }
.door__ico, .door__go { display: grid; place-items: center; flex: none; }
.door__ico { width: 2.3rem; height: 2.3rem; border-radius: var(--radius-sm); background: var(--door-bg); color: var(--door); }
.door__ico .ico { width: 1.35rem; height: 1.35rem; }
.door__body { display: grid; gap: .1rem; min-width: 0; }
.door__body b { font-size: 1.02rem; line-height: 1.2; }
.door__body span { font-size: .84rem; line-height: 1.3; color: var(--muted); }
.door__go { width: 2.1rem; height: 2.1rem; border-radius: var(--radius-pill); background: var(--door); color: var(--surface); }
.door__go .ico { width: 1.1rem; height: 1.1rem; stroke-width: 2.2; }
.trust { list-style: none; margin: 0; padding: .6rem .75rem; display: grid; gap: .4rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
.trust li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; }
.trust .ico { width: 1.15rem; height: 1.15rem; margin-top: .08rem; color: var(--accent); }
.trust p { margin: 0; font-size: .84rem; line-height: 1.36; color: var(--muted); }
.trust b { color: var(--text); }
.trust a { color: var(--text); text-underline-offset: .15em; }
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.2fr 1fr; gap: 1.5rem 2.6rem; align-items: center; margin: 1.6rem 0 2.6rem; }
  .hero__sub { font-size: 1.1rem; }
  .doors { gap: .55rem; margin-top: 1.4rem; max-width: 560px; }
  .door { min-height: 64px; padding: .6rem .75rem; }
  .trust { padding: 1.3rem 1.4rem; gap: 1rem; }
  .trust .ico { width: 1.4rem; height: 1.4rem; }
  .trust p { font-size: .95rem; line-height: 1.45; }
}

/* ---- лендинг ниже первого экрана (замечание №9 — без повторов, телефон 4–5 экранов) */
.landing-search { margin: 0 0 .7rem; }
.landing-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.landing-links .btn .badge { margin-left: .1rem; }
@media (max-width: 759px) {          /* телефон: лучшие отзывы — лентой вбок, карточки короче */
  .cat-list--row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 300px); overflow-x: auto;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: .4rem; }
  .cat-list--row > * { scroll-snap-align: start; }
}
.landing-top .cat-card__more { display: none; }
.landing-top .cat-card__img { aspect-ratio: 2 / 1; }
@media (max-width: 759px) {          /* телефон: поиск без подсказки про ID (она есть в поле), мини-карта ниже — вся карта по кнопке */
  .landing-search .search-box > .field-hint { display: none; }
  .landing .atlas--sm .atlas__svg { height: clamp(260px, 38vh, 360px); }
  .landing .slide__img { aspect-ratio: 16 / 9; }
}

/* ---- «Для конюшен» (замечания №5, №9): заметный и короткий блок под слайдером — путь «заявка → проверка → кабинет» и что внутри */
.forstable { display: grid; gap: .9rem 2rem; padding: 1.1rem 1rem 1.2rem; border-radius: var(--radius-lg); background: var(--role-stable-bg);
  border: 1px solid color-mix(in srgb, var(--role-stable) 25%, transparent); border-top: 6px solid var(--role-stable-mid); }
.forstable__head h2 { margin: .3rem 0 .8rem; }
.forstable__head .btn-row { margin: 0; }
.forstable .btn--stable { background: var(--role-stable); color: var(--surface); border-color: var(--role-stable); }
.forstable .btn--stable:hover { background: color-mix(in srgb, var(--role-stable) 85%, var(--text)); }
.forstable__path { counter-reset: fs; list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; align-content: center; }
.forstable__path li { counter-increment: fs; position: relative; padding: .45rem .7rem .45rem 2.9rem; min-height: 2.6rem;
  font-size: .86rem; line-height: 1.35; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.forstable__path li::before { content: counter(fs); position: absolute; left: .7rem; top: .5rem; display: grid; place-items: center;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--role-stable); color: var(--surface); font: 700 .8rem var(--font-mono); }
.forstable__path b { font-size: .95rem; }
.forstable__path span { color: var(--muted); }
.forstable__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.forstable__list li { display: grid; grid-template-columns: auto 1fr; gap: .55rem; align-items: start; }
.forstable__list .ico { width: 1.2rem; height: 1.2rem; margin-top: .1rem; color: var(--role-stable); }
.forstable__list p { margin: 0; font-size: .86rem; line-height: 1.38; color: var(--muted); }
.forstable__list b { color: var(--text); }
@media (min-width: 900px) {
  .forstable { grid-template-columns: 1.15fr 1fr; padding: 1.8rem 2.2rem 2rem; }
  .forstable__list { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .forstable__list p { font-size: .9rem; }
}

/* ---- «Два скина» (замечания №5, №9): живые мини-образцы обеих тем; нажали — тема всей страницы (app.js, data-theme-set) */
.skins__pick { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 760px; }
.skin { display: grid; gap: .5rem; padding: .5rem .5rem .7rem; border: 2px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s var(--ease), transform .15s var(--ease); }
.skin:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.skin[aria-pressed="true"] { border-color: var(--accent-line); box-shadow: 0 0 0 2px var(--accent-line); }
.skin__name { display: flex; align-items: center; gap: .4rem; padding: 0 .3rem; font-weight: 700; }
.skin[aria-pressed="true"] .skin__name::after { content: "✓ выбран"; margin-left: auto; font: 600 .74rem var(--font-mono); color: var(--accent); }
.skin__shot { position: relative; display: grid; gap: .55rem; align-content: start; min-height: 190px; padding: .7rem .8rem .9rem; overflow: hidden;
  background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius); isolation: isolate; }
.skin__art { position: absolute; inset: auto 0 0; z-index: -1; }
.skin__bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: .45rem; border-bottom: 1px solid var(--line); }
.skin__mark { display: inline-flex; align-items: center; gap: .3rem; font: 700 1rem var(--font-body); letter-spacing: -.01em; }
.skin__hoof { width: 1.1em; height: 1.1em; color: var(--brand-mark); }
.skin__dots { display: inline-flex; gap: .3rem; }
.skin__dots i { width: .55rem; height: .55rem; border-radius: var(--radius-pill); background: var(--line-strong); }
.skin__dots i:first-child { background: var(--accent-strong); }
.skin__title { font-family: var(--font-display-public); font-weight: var(--head-public-weight); text-transform: var(--head-public-transform);
  font-stretch: var(--head-public-stretch); letter-spacing: var(--head-public-tracking); font-size: calc(1.45rem * var(--display-public-size)); line-height: 1.05; }
.skin__row { display: flex; flex-wrap: wrap; gap: .3rem; }
.skin__btn { justify-self: start; padding: .4rem .8rem; border-radius: var(--radius-pill); background: var(--accent-strong); color: var(--on-accent);
  border: 1px solid var(--accent-line); font: 650 .8rem var(--font-body); }
.skins__auto[aria-pressed="true"] { border-color: var(--accent-line); background: var(--accent-bg); color: var(--accent); }
.skins__note { margin: .6rem 0 0; }
@media (max-width: 599px) {          /* телефон: оба образца рядом, покороче */
  .skins__pick { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .skin { padding: .3rem .3rem .5rem; gap: .4rem; }
  .skin__shot { min-height: 150px; gap: .45rem; padding: .5rem .55rem .7rem; }
  .skin__title { font-size: calc(1.1rem * var(--display-public-size)); }
  .skin__row .badge + .badge { display: none; }
  .skin__btn { font-size: .68rem; padding: .3rem .55rem; }
  .skin__name { padding: 0 .2rem; font-size: .9rem; line-height: 1.2; }
  .skin[aria-pressed="true"] .skin__name::after { content: "✓"; font-size: .9rem; }
}

/* ---- G4: каталог неподтверждённых конюшен — серые контурные точки, мини-карточка, код для фото */
.atlas__pin--listing path { fill: var(--surface); stroke: var(--muted-2); stroke-width: 1.8; stroke-dasharray: 3 2; }
.atlas__pin--listing path.atlas__pin-hoof { fill: var(--muted-2); }
.atlas__pin--listing.is-selected path, .atlas__pin--listing:focus-visible path { stroke: var(--focus); stroke-dasharray: none; }
.atlas__cluster--listing circle { fill: var(--surface); stroke: var(--muted-2); stroke-dasharray: 4 3; }
.atlas__label--muted { fill: var(--muted); font-weight: 500; }
.atlas__pop--listing { border-top: 4px dashed var(--muted-2); }
.atlas__pop-note { margin: .45rem 0 0; font-size: .8rem; color: var(--muted); }
.atlas__pop-links { margin: .4rem 0 0; font-size: .84rem; }
.atlas__pop-osm { margin: .25rem 0 0; font-size: .72rem; color: var(--muted); }
.atlas__pop-ask { margin: 0; width: 100%; font-size: .9rem; }
.atlas-legend { display: flex; flex-wrap: wrap; gap: .2rem 1rem; margin: .4rem 0 .6rem; color: var(--muted); }
.atlas-legend__item { display: inline-flex; align-items: center; gap: .35rem; }
.atlas-legend__pin { width: .8rem; height: .8rem; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); flex: none; }
.atlas-legend__pin--stable { background: var(--role-stable); }
.atlas-legend__pin--listing { background: var(--surface); border: 1.5px dashed var(--muted-2); }
.geo-pin--listing { opacity: .7; filter: grayscale(1); }
.cat-card--listing { border-top: 4px dashed var(--muted-2); background: var(--surface); }
.cat-card__flag { margin: 0; }
.cat-suggest { margin-top: 1.2rem; }
.mini-card { display: grid; gap: .55rem; border-top: 4px dashed var(--muted-2); }
.mini-card__title { margin: 0; overflow-wrap: anywhere; }
.mini-card__place, .mini-card__addr { margin: 0; }
.mini-card__place { font-weight: 600; display: flex; gap: .35rem; align-items: center; }
.mini-card__addr { color: var(--muted); }
.mini-card__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.mini-card__links a { display: inline-flex; gap: .35rem; align-items: center; min-height: 32px; }
.mini-card__actions { margin-top: .3rem; }
.mini-card__sid { margin: 0; }
.mini-card__svc { list-style: none; margin: 0; padding: 0; --gap: .35rem; }
.chip--static { cursor: default; }
.mini-card__contacts a { font-weight: 600; overflow-wrap: anywhere; }
.claim-banner p { margin: .15rem 0; }
.claim-code { margin: 1rem 0; padding: 1rem; text-align: center; border: 2px dashed var(--role-stable-mid); border-radius: var(--radius);
  background: var(--surface); }
.claim-code__label { margin: 0; font: 500 .75rem var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.claim-code__value { margin: .2rem 0 0; font: 800 clamp(2.4rem, 13vw, 3.6rem) var(--font-mono); letter-spacing: .18em; color: var(--text); }
.claim-code__value--sm { font-size: 1.4rem; letter-spacing: .12em; font-weight: 700; }
.claim-review { border-left: 4px dashed var(--role-stable-mid); }
.claim-review__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .claim-review__grid { grid-template-columns: 1.3fr 1fr; } }
.claim-review__photo img { width: 100%; max-width: 360px; height: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.display-num { font: 800 2.2rem var(--font-mono); margin: 0 0 .4rem; }
.ctl-row { display: grid; gap: .6rem; margin-bottom: .6rem; }
@media (min-width: 900px) { .ctl-row { grid-template-columns: 1fr auto; align-items: center; } }
.ctl-row .form--inline input[type=text] { min-width: 12rem; }
@media (pointer: coarse) { .mini-card__links a { min-height: 44px; } .atlas__pop .btn--sm { min-height: 44px; } }
/* кабинет «Каталог конюшен»: полоса вкладок прокручивается сама и не распирает колонку кабинета на телефоне */
.catalog-admin { min-width: 0; }
.catalog-admin .tabs--scroll { width: 0; min-width: 100%; }

/* G8a: быстрый чип «Есть места» над списком конюшен; строка «бесплатно, без магазина приложений» */
.cat-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
@media (pointer: coarse) { .cat-chips .chip { min-height: 44px; } }
.cat-free { margin: .3rem 0 0; }

/* Карта Яндекса (atlas.js; единственная с 30.11.2026): холст Яндекса (.atlas__ymap) под слоем точек .atlas__svg--ya;
   высоту задаёт распорка .atlas__svg. Логотип, «Открыть Яндекс Карты» и условия Яндекса не закрываем (условия API п. 4.1.3).
   Пока API грузится — спокойная подложка «Загружаю карту…»; не загрузился или нет ключа — .atlas__off со ссылкой на список. */
.atlas > .atlas__map { position: absolute; inset: 0; z-index: 0; }
.atlas__map > .atlas__ymap { position: absolute; inset: 0; }
.atlas--ya > .atlas__svg { position: relative; pointer-events: none; visibility: hidden; }   /* распорка: высота */
.atlas.atlas--ya .atlas__map .atlas__svg--ya { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  pointer-events: none; cursor: default; overflow: hidden; visibility: visible; }
.atlas--ya .atlas__svg--ya .atlas__pin, .atlas--ya .atlas__svg--ya .atlas__cluster { pointer-events: auto; cursor: pointer; }
.atlas.atlas--ya.is-selecting .atlas__map .atlas__svg--ya { pointer-events: all; cursor: crosshair; touch-action: none; }
.atlas--ya .atlas__bar .btn--ghost { background: var(--surface); border: 1px solid var(--line); }   /* не сливаться с картой */
.atlas > .atlas__svg { pointer-events: none; }
.atlas--wait::after { content: "Загружаю карту…"; position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  color: var(--muted); font-size: .9rem; pointer-events: none; }
.atlas--wait .atlas__bar, .atlas--off .atlas__bar { visibility: hidden; }
.atlas__off { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: .6rem;
  padding: 1rem; text-align: center; color: var(--text); }
.atlas__off[hidden] { display: none; }
.atlas__off p { margin: 0; max-width: 32ch; }
/* «Где я» (прицел рядом с +/−, обе карты): точка «вы здесь» + круг точности. Цвет — синий фокус светлой темы; в тёмной —
   голубой васильковый: сигнальный зелёный там у трасс и конюшен, точка бы с ними сливалась */
.atlas { --atlas-me: var(--focus); }
[data-theme="dark"] .atlas { --atlas-me: var(--flower-cornflower); }
@media (prefers-color-scheme: dark) { [data-theme="auto"] .atlas { --atlas-me: var(--flower-cornflower); } }
.atlas__me, .atlas__me-acc { pointer-events: none; }
.atlas__me-acc { fill: var(--atlas-me); fill-opacity: .13; stroke: var(--atlas-me); stroke-opacity: .6; stroke-width: 1.2; }
.atlas__me-dot { fill: var(--atlas-me); stroke: var(--surface); stroke-width: 2.5; }
.atlas__me-label { fill: var(--text); }
.atlas__locate.is-on { color: var(--atlas-me); border-color: var(--atlas-me); }
.atlas__locate[aria-busy="true"] .ico { animation: atlas-locate 1s ease-in-out infinite alternate; }
@keyframes atlas-locate { from { opacity: 1; } to { opacity: .3; } }
.atlas__note { position: absolute; z-index: 3; left: .5rem; right: .5rem; bottom: 2rem; display: flex; gap: .4rem; align-items: flex-start;
  padding: .55rem .75rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); font-size: .86rem; box-shadow: var(--shadow); }
.atlas__note[hidden] { display: none; }
.atlas__note p { margin: 0; flex: 1; }
.atlas__note--warn { border-left: 4px solid var(--warn); }
.atlas__note-x { flex: none; margin: -.35rem -.45rem -.35rem 0; font-size: 1.3rem; line-height: 1; }
