/* Новый дизайн — шапка: верхняя полоса, шапка ПК (две строки, выпадашки), слой поиска, мобильная шапка, меню, нижняя панель, шторки, логотип.
   Правила перенесены из набора дизайнера целиком, без правок (решение 20.11.2026):
   resort-kmv-docs/workstreams/design-system/kit/design-system.css (версия 1.0, 14.11.2026).
   Порядок правил внутри файла — как в наборе. Стили первого экрана — в common/critical.css.
   Чистка неиспользуемого — перед выпуском, списком для Андрея. */


/* ---------- шапка (структура как на сайте, меняются только стили) ---------- */
.ds-topline { background: var(--ds-bg-topline); color: var(--ds-text); text-align: center; font-size: 14px; line-height: 32px; font-weight: var(--ds-fw-title); display: flex; align-items: center; justify-content: center; gap: 16px; }
.ds-topline::before, .ds-topline::after { content: ""; width: 28px; height: 1px; background: rgba(64, 64, 64, .45); }
.ds-header { background: #fff; }
.ds-header__in { max-width: var(--ds-container); margin: 0 auto; padding: 20px var(--ds-margin) 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 24px; align-items: stretch; --ds-hdr-h: 70px; }

/* одна высота ряда = высота эмблемы: верх и низ блоков на двух общих линиях */
.ds-header__in > .ds-logo { --ds-logo-w: 256px; align-self: start; }
.ds-header__in > * { min-height: var(--ds-hdr-h); }
.ds-header__search { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; }
.ds-header__phones > div { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.ds-header__phones > div > a { line-height: 19px; }
.ds-header__in > .ds-btn { height: 44px; min-height: 0; align-self: end; padding: 0 16px; font-size: 15px; }
.ds-header__search { min-width: 0; }
.ds-header__search .ds-field__control { width: 100%; }
.ds-header__search > span { display: block; font-size: 13px; line-height: 18px; color: var(--ds-text-2); white-space: nowrap; }
.ds-header__search .ds-field__box { min-height: 44px; }
.ds-header__phones { display: flex; gap: 24px; }
.ds-header__search .ds-field__control { padding-right: 4px; }
.ds-header__search .ds-field__end > .ds-ico { margin-right: 6px; }
.ds-header__phones span { display: block; font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-header__phones a { font-size: 19px; line-height: 22px; font-weight: var(--ds-fw-title); color: var(--ds-text-strong); text-decoration: none; white-space: nowrap; }
.ds-nav { max-width: var(--ds-container); margin: 28px auto 0; padding: 0 var(--ds-margin); }
.ds-nav ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--ds-bg-accent); border-radius: var(--ds-radius-s); overflow: hidden; }
.ds-nav li + li { border-left: 1px solid rgba(255,255,255,.22); }
.ds-root .ds-nav a { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 8px 12px; text-align: center; color: #fff; text-decoration: none; font-weight: var(--ds-fw-bold); font-size: 16px; line-height: 20px; transition: background-color var(--ds-dur-fast) var(--ds-ease-out); }
.ds-root .ds-nav a:hover { background: var(--ds-c-blue-700); color: #fff; }
.ds-header-m { display: none; }

/* ---------- телефон: эти же компоненты в узком контейнере ---------- */
.ds-phone .ds-topline { font-size: 12px; line-height: 26px; }
.ds-phone .ds-header__in, .ds-phone .ds-nav { display: none; }
.ds-phone .ds-header-m { display: block; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--ds-line-soft); }
.ds-header-m__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ds-header-m .ds-logo { --ds-logo-w: 150px; }
.ds-header-m__act { display: flex; gap: 8px; }
.ds-header-m__act > a, .ds-burger { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--ds-radius-s); border: 0; cursor: pointer; }
.ds-header-m__act > a { background: var(--ds-bg-soft); color: var(--ds-c-blue-700); }
.ds-header-m__act .ds-ico { color: currentColor; }
.ds-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ds-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ds-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ds-root .ds-burger:focus-visible { box-shadow: var(--ds-focus); }
.ds-header-m__search { margin-top: 10px; }
.ds-header-m__search .ds-field__control { padding-right: 4px; }
.ds-header-m__search .ds-field__end > .ds-ico { margin-right: 6px; }
.ds-header-m__search .ds-field__control::-webkit-search-cancel-button { -webkit-appearance: none; }
.ds-logo__tag { position: absolute; left: 29.6%; top: 56%; white-space: nowrap; font-size: calc(var(--ds-logo-w, 270px) * .048); line-height: 1.25; font-weight: var(--ds-fw-regular); color: var(--ds-text); }
.ds-root .ds-logo:hover .ds-logo__tag { color: var(--ds-text); }

/* ================= новая шапка 2.0 ================= */
.ds-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 5px; background: var(--ds-c-blue-50); box-shadow: inset 0 0 0 1px var(--ds-line-soft); font: 600 12px/1 var(--ds-font); color: var(--ds-text-2); }

/* узкая строка: короткая подпись кнопки, затем «Поиск» и «Связаться» — только значки */
@container hdr (max-width: 899px) {
  .ds-hdr__cta-x {display: none;}
}
@container hdr (max-width: 839px) {
  .ds-hdr__lbl {display: none;}
  .ds-hdr__tools .ds-btn--secondary {gap: 2px; padding-left: 12px; padding-right: 10px;}
}
.ds-hdr--sticky { box-shadow: 0 6px 24px rgba(20, 60, 85, .12); }
.ds-hdr--sticky .ds-hdr__r1 { border-bottom: 0; }
.ds-hdr--sticky .ds-hdr__logo { --ds-logo-w: 150px; }
.ds-hdr--sticky .ds-hdr__sbtn { margin-left: 8px; }
.ds-hdr__sbtn { width: 44px; height: 44px; }
.ds-hdr--sticky .ds-hdr__r1 .ds-hdr__in { height: 64px; }
.ds-hdr--sticky .ds-hdr__r2 { border-bottom: 0; }
.ds-sstrig:hover, .ds-sstrig.is-hover { box-shadow: inset 0 0 0 1px var(--ds-c-blue-500); }
.ds-root .ds-sstrig:focus-visible { box-shadow: inset 0 0 0 1px var(--ds-c-blue-500), var(--ds-focus); }
.ds-root .ds-hnav__i:hover, .ds-root .ds-hnav__i.is-hover { background: var(--ds-c-blue-50); color: var(--ds-c-blue-700); }
.ds-root .ds-hnav__i[aria-expanded="true"] { background: var(--ds-c-blue-100); color: var(--ds-c-blue-700); }
.ds-root .ds-hnav__i[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -17px; height: 3px; border-radius: 3px 3px 0 0; background: var(--ds-c-blue-500); }
.ds-root .ds-hnav__i[aria-current] { color: var(--ds-c-blue-700); }
.ds-root .ds-hnav__i.is-focus { box-shadow: var(--ds-focus); }
[aria-expanded="true"] > .ds-hnav__chev, [aria-expanded="true"] > .ds-btn__chev { transform: none; }
[aria-expanded="true"] + .ds-hdd { display: block; opacity: 1; transform: none; }
@starting-style {
  [aria-expanded="true"] + .ds-hdd {opacity: 0; transform: translateY(-4px);}
}
@media (prefers-reduced-motion: reduce) {
  .ds-hdd {transition: none;}
}
.ds-hdrop--end .ds-hdd { left: auto; right: 0; }
.ds-hdd ul { margin: 0; padding: 0; list-style: none; }
.ds-hdd--mega { width: 760px; padding: 16px; }
.ds-hdd--plain .ds-hdd__link, .ds-hdd--plain .ds-hdd__row { min-height: 36px; padding-top: 7px; padding-bottom: 7px; }
.ds-hdd__row > span:not(.ds-hdd__soon), .ds-hdd__link > span:not(.ds-hdd__soon) { display: grid; }
.ds-hdd__row small, .ds-hdd__link small, .ds-mm__row small { font-size: 12px; line-height: 16px; color: var(--ds-text-2); }
.ds-hdd__bar { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--ds-line-soft); }
.ds-hdd__lbl { font-size: 14px; font-weight: 600; color: var(--ds-text-2); }
.ds-root .ds-hdd__head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; padding: 10px 12px; border-radius: 10px; background: var(--ds-c-blue-50); font-size: 16px; font-weight: 700; color: var(--ds-c-blue-700); text-decoration: none; }
.ds-root .ds-hdd__head:hover { background: var(--ds-c-blue-100); }
.ds-hdd__head .ds-ico, .ds-hdd__all .ds-ico { width: 16px; height: 16px; color: currentColor; }
.ds-hdd__cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 0 8px; }
.ds-root .ds-hdd__link, .ds-root .ds-hdd__row { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 8px 12px; border-radius: 8px; font-size: 15px; line-height: 20px; color: var(--ds-text); text-decoration: none; }
.ds-root .ds-hdd__link:hover, .ds-root .ds-hdd__row:hover { background: var(--ds-c-blue-50); color: var(--ds-c-blue-700); }
.ds-hdd__ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 8px; background: var(--ds-icon-tile); }
.ds-hdd__ic .ds-ico { width: 18px; height: 18px; color: var(--ds-icon); --ds-ico-hole: var(--ds-icon-tile); }
.ds-root .ds-hdd__all { display: inline-flex; align-items: center; gap: 4px; margin: 8px 12px 4px; font-size: 15px; font-weight: 700; color: var(--ds-c-blue-700); text-decoration: none; }
.ds-root .ds-hdd__all:hover { color: var(--ds-c-blue-800); text-decoration: underline; text-underline-offset: 3px; }
.ds-hdd--list .ds-hdd__all { display: flex; margin: 4px 0 0; padding: 10px 12px 6px; border-top: 1px solid var(--ds-line-soft); }

/* сегменты городов */
.ds-hseg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 10px; background: var(--ds-c-blue-50); }
.ds-hseg__i { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; font: 600 14px/1 var(--ds-font); color: var(--ds-c-blue-700); cursor: pointer; white-space: nowrap; }
.ds-hseg__i:hover { background: rgba(255, 255, 255, .7); }
.ds-hseg__i[aria-selected="true"] { background: #fff; color: var(--ds-text-strong); box-shadow: 0 1px 3px rgba(20, 70, 100, .18); }
.ds-root .ds-hseg__i:focus-visible { box-shadow: var(--ds-focus); }
.ds-hseg--wrap { display: flex; flex-wrap: wrap; }
.ds-hseg--wrap .ds-hseg__i { flex: 1 1 30%; height: 40px; }

/* связаться */
.ds-hdd--contact { width: 330px; }
.ds-root .ds-hct { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--ds-text); text-decoration: none; }
.ds-root .ds-hct:hover { background: var(--ds-c-blue-50); }
.ds-hct > span:last-child { display: grid; }
.ds-hct b { font-size: 17px; line-height: 22px; font-weight: 700; color: var(--ds-text-strong); white-space: nowrap; }
.ds-hct small { font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-hct__bub { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--ds-icon-tile); }
.ds-hct__bub .ds-ico { width: 20px; height: 20px; color: var(--ds-icon); --ds-ico-hole: var(--ds-icon-tile); }
.ds-hct--l { padding: 10px 0; }
.ds-hct--l b { font-size: 19px; }
.ds-hct__notes { margin-top: 6px; padding: 10px 10px 4px; border-top: 1px solid var(--ds-line-soft); display: grid; gap: 6px; }
.ds-hct__note { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-hct__note .ds-ico { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--ds-c-blue-500); }

/* строка санатория при прокрутке */
.ds-hctx { display: flex; align-items: center; gap: 28px; flex: 1 1 auto; min-width: 0; }
.ds-hctx__id { display: grid; gap: 2px; min-width: 0; }
.ds-hctx__name { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 17px; white-space: nowrap; }
.ds-hctx__name b { font-weight: 700; color: var(--ds-text-strong); }
.ds-hctx__name a { font-weight: 600; text-decoration: none; }
.ds-hctx__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--ds-text-2); white-space: nowrap; }
.ds-hctx__meta .ds-ico { width: 16px; height: 16px; color: var(--ds-star); }
.ds-hctx__meta b { color: var(--ds-text-strong); font-weight: 700; }
.ds-htabs { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }

/* слой поиска */
.ds-ss { display: flex; flex-direction: column; width: 100%; max-width: 760px; max-height: min(80vh, 760px); border-radius: var(--ds-radius-l); background: #fff; box-shadow: var(--ds-shadow-modal); overflow: hidden; font-family: var(--ds-font); }
.ds-ss__top { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--ds-line-soft); }
.ds-ss__field { position: relative; flex: 1; display: flex; align-items: center; }
.ds-ss__field > .ds-ico { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--ds-icon); pointer-events: none; }
.ds-ss__input { width: 100%; height: 52px; padding: 0 48px 0 50px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--ds-c-blue-500); font: 400 17px/1 var(--ds-font); color: var(--ds-text-strong); outline: none; }
.ds-ss__input::-webkit-search-cancel-button { display: none; }
.ds-ss__input:focus-visible { box-shadow: inset 0 0 0 2px var(--ds-c-blue-500), var(--ds-focus); }
.ds-ss__clear { position: absolute; right: 10px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--ds-c-blue-50); color: var(--ds-text-2); cursor: pointer; }
.ds-ss__clear .ds-ico { width: 14px; height: 14px; color: currentColor; }
.ds-ss__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ds-text); cursor: pointer; }
.ds-ss__close:hover { background: var(--ds-c-blue-50); }
.ds-ss__close .ds-ico { width: 20px; height: 20px; color: currentColor; }
.ds-ss__cancel { border: 0; background: none; padding: 0 4px; font: 600 16px/1 var(--ds-font); color: var(--ds-link); cursor: pointer; }
.ds-ss__body { overflow-y: auto; padding: 8px 16px 18px; }
.ds-ss__hint { margin: 6px 0 4px; font-size: 14px; line-height: 20px; color: var(--ds-text-2); }
.ds-ss__sec { margin-top: 14px; }
.ds-ss__sec h3 { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ds-text-2); }
.ds-ss__sec .ds-chips { gap: 6px; }
.ds-ssr__n { margin-left: 4px; font-size: 12px; color: var(--ds-text-3); font-variant-numeric: tabular-nums; }
.ds-ss__list { margin: 0 -8px; padding: 0; list-style: none; }
.ds-root .ds-ssr { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--ds-text); text-decoration: none; }
.ds-root .ds-ssr:hover, .ds-root .ds-ssr.is-active { background: var(--ds-c-blue-50); }
.ds-ssr__th { width: 48px; height: 40px; flex: none; border-radius: 8px; background: var(--ds-c-blue-50) center / cover; }
.ds-ssr__th--ic { display: grid; place-items: center; width: 40px; border-radius: 50%; background: var(--ds-icon-tile); margin: 0 4px; }
.ds-ssr__th--ic .ds-ico { width: 20px; height: 20px; color: var(--ds-icon); --ds-ico-hole: var(--ds-icon-tile); }
.ds-ssr__txt { flex: 1; min-width: 0; display: grid; }
.ds-ssr__txt b { font-size: 16px; line-height: 22px; font-weight: 600; color: var(--ds-text-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-ssr__txt mark { background: none; color: var(--ds-c-blue-700); font-weight: 800; }
.ds-ssr__txt small { font-size: 13px; line-height: 18px; color: var(--ds-text-2); }
.ds-ssr__txt small b { font-size: 13px; color: var(--ds-text-strong); font-weight: 700; }
.ds-ssr__go { width: 18px; height: 18px; color: var(--ds-text-3); }
/* «Ничего не нашли»: компактно, как в макете — иконка слева от заголовка, кнопка и телефон в одну строку.
   Разметка плоская (иконка, h3, p, .ds-ss__acts, .ds-ss__phone), поэтому раскладка — сеткой по областям.
   Селекторы с .ds-root: чтобы перебить такие же правила в web/ds/design-system.css. */
.ds-root .ds-ss__none { display: grid; grid-template-columns: 32px auto 1fr; grid-template-areas: "ic h h" "p p p" "acts acts ph"; align-items: center; justify-items: start; gap: 8px 12px; padding: 12px 0 4px; }
.ds-root .ds-ss__none-ic { grid-area: ic; width: 32px; height: 32px; color: var(--ds-c-blue-500); }
.ds-root .ds-ss__none h3 { grid-area: h; margin: 0; font-size: 19px; line-height: 26px; font-weight: 700; color: var(--ds-text-strong); }
.ds-root .ds-ss__none p { grid-area: p; margin: 0; font-size: 15px; line-height: 22px; color: var(--ds-text); max-width: 56ch; }
.ds-root .ds-ss__acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.ds-ss__none + .ds-ss__sec { margin-top: 24px; }
.ds-ss__none + .ds-ss__sec h3 { margin-bottom: 12px; }
.ds-ss__none + .ds-ss__sec .ds-chips { gap: 10px 8px; }
.ds-ss__loading { display: flex; align-items: center; gap: 10px; padding: 24px 0; font-size: 15px; color: var(--ds-text-2); }
.ds-ss--ph { max-width: none; max-height: none; height: 100%; border-radius: 0; box-shadow: none; }
.ds-ss--ph .ds-ss__top { padding: 10px 12px; }
.ds-ss--ph .ds-ss__input { height: 48px; font-size: 16px; padding-left: 44px; }
.ds-ss--ph .ds-ss__field > .ds-ico { left: 13px; }
.ds-ss--ph .ds-ss__body { padding: 4px 16px 20px; }
.ds-ss-stage { padding: 16px; border-radius: 16px; background: rgba(18, 56, 74, .38); display: grid; justify-items: center; }
dialog.ds-ss-dlg { padding: 16px; margin: 0 auto; width: 100%; max-width: 792px; max-height: 100vh; border: 0; background: none; overflow: visible; }
dialog.ds-ss-dlg::backdrop { background: rgba(18, 56, 74, .38); }
dialog.ds-ss-dlg .ds-ss { max-height: calc(100vh - 32px); }
.ds-mh__ib:hover { background: var(--ds-c-blue-100); }
.ds-mh--ctx { box-shadow: 0 6px 20px rgba(20, 60, 85, .12); border-bottom: 0; }
.ds-mh__ctx { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 16px; min-height: 56px; }
.ds-mh__ctx p { display: grid; margin: 0; min-width: 0; }
.ds-mh__ctx small { font-size: 12px; line-height: 16px; color: var(--ds-text-2); }
.ds-mh__ctx b { font-size: 16px; line-height: 22px; font-weight: 700; color: var(--ds-text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ds-mh__ctx--card { display: grid; gap: 6px; padding: 10px 0 8px; }
.ds-mh__card { display: flex !important; justify-content: space-between; padding: 0 16px; }
.ds-mh__tabs { display: flex; align-items: center; gap: 4px; min-width: 0; padding-left: 10px; }
.ds-root .ds-mh__back { display: inline-flex; align-items: center; flex: none; height: 34px; padding: 0 8px 0 2px; font-size: 14px; font-weight: 600; text-decoration: none; border-right: 1px solid var(--ds-line-soft); }
.ds-mh__back .ds-ico { width: 16px; height: 16px; color: currentColor; }
.ds-mh__tabs .ds-htabs { padding-right: 12px; }
.ds-mh__tabs .ds-htab { height: 32px; padding: 0 12px; font-size: 14px; }
.ds-mm__top { display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 12px 0 16px; background: #fff; border-bottom: 1px solid var(--ds-line-soft); }
.ds-mm__body { flex: 1; overflow-y: auto; padding: 14px 16px 24px; }
.ds-mm__search .ds-sstrig { max-width: none; width: 100%; height: 48px; }
.ds-mm__sec { margin: 18px 0 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ds-text-2); }
.ds-mm__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ds-mm__search + .ds-mm__tiles { margin-top: 12px; }
.ds-mm__tile { display: grid; gap: 10px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: #fff; box-shadow: var(--ds-shadow-card); text-align: left; font-family: var(--ds-font); cursor: pointer; }
.ds-mm__tile b { font-size: 16px; line-height: 20px; font-weight: 700; color: var(--ds-text-strong); }
.ds-mm__tile span { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ds-text-2); }
.ds-mm__tile .ds-ico, .ds-mm__row > .ds-ico { width: 18px; height: 18px; color: var(--ds-icon); }
.ds-mm__grp { margin: 12px 0 0; padding: 0; list-style: none; border-radius: 12px; background: #fff; box-shadow: var(--ds-shadow-card); overflow: hidden; }
.ds-mm__grp li + li { border-top: 1px solid var(--ds-line-soft); }
.ds-root .ds-mm__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 52px; padding: 10px 14px 10px 16px; border: 0; background: none; font: 500 16px/22px var(--ds-font); color: var(--ds-text); text-align: left; text-decoration: none; cursor: pointer; }
.ds-root .ds-mm__row:hover { background: var(--ds-c-blue-50); }
.ds-mm__row > span { display: grid; min-width: 0; }
.ds-mm__row small { font-size: 13px; line-height: 18px; color: var(--ds-text-2); font-weight: 400; }
.ds-root .ds-mm__row--head { font-weight: 700; color: var(--ds-c-blue-700); }
.ds-root .ds-mm__row[aria-current] { background: var(--ds-c-blue-50); }
.ds-mm__contacts { margin-top: 18px; }
.ds-mm__contacts .ds-hct { padding: 8px 0; }
.ds-mm__msgr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.ds-mm__msgr .ds-ico { width: 20px; height: 20px; }
.ds-mm__cta { margin-top: 12px; }
.ds-root .ds-mm__backbtn { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px 0 0; border: 0; background: none; font: 700 15px/1 var(--ds-font); color: var(--ds-link); cursor: pointer; }
.ds-mm__backbtn .ds-ico { width: 18px; height: 18px; color: currentColor; }
.ds-mm__h { margin: 6px 0 12px; font-size: 24px; line-height: 30px; font-weight: 800; color: var(--ds-text-strong); }
.ds-mm__lbl { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--ds-text-2); }
.ds-bb__i:hover { background: var(--ds-c-blue-50); }
.ds-bb__badge { position: absolute; top: 2px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ds-c-blue-600); color: #fff; font: 700 11px/18px var(--ds-font); font-style: normal; }
.ds-bb__cta { flex: 1; height: 48px; margin-left: 4px; }
.ds-bb--local { gap: 2px; padding-right: 6px; padding-left: 6px; }
.ds-bb--local .ds-bb__i { flex: none; width: 68px; min-width: 0; padding-right: 2px; padding-left: 2px; font-size: 12px; line-height: 14px; }
.ds-bb--local .ds-bb__i:first-child { width: 80px; }
.ds-bb--local .ds-bb__cta { min-width: 0; margin-left: 2px; padding-right: 8px; padding-left: 8px; font-size: 14px; white-space: nowrap; }
/* Узкие телефоны (320–374 px): с кнопкой «Фильтры» в полосе четыре пункта, и «Подобрать» уходил за край экрана
   (на 320 — на 24 px, Андрей предупреждал 22.11.2026). Пункты чуть уже, у кнопки меньше поля и шрифт. */
@media (max-width: 374px) {
  .ds-bb:not(.ds-bb--local) { gap: 2px; padding-right: 6px; padding-left: 6px; }
  .ds-bb:not(.ds-bb--local) .ds-bb__i { min-width: 56px; padding-right: 2px; padding-left: 2px; }
  .ds-bb:not(.ds-bb--local) .ds-bb__badge { right: 4px; }
  .ds-root .ds-bb:not(.ds-bb--local) .ds-bb__cta { min-width: 0; margin-left: 2px; padding-right: 10px; padding-left: 10px; font-size: 15px; white-space: nowrap; }
}

/* шторки */
.ds-sheet { position: relative; padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: #fff; box-shadow: 0 -10px 40px rgba(20, 50, 70, .2); font-family: var(--ds-font); }
.ds-sheet__grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: var(--ds-line); }
.ds-sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ds-sheet__head h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 700; color: var(--ds-text-strong); }
.ds-sheet__x { width: 40px; height: 40px; }
.ds-sheet .ds-hct__note { margin-top: 8px; }
.ds-sheet__list { box-shadow: none; border: 1px solid var(--ds-line-soft); margin-top: 6px; }
.ds-sheet__grp { margin: 0 0 18px; padding: 0; border: 0; display: grid; gap: 10px; }
.ds-sheet__grp legend { margin-bottom: 10px; padding: 0; font-size: 15px; font-weight: 700; color: var(--ds-text-strong); }
.ds-sheet__grp--sw .ds-switch { flex-direction: row-reverse; justify-content: space-between; }
.ds-local-list { display: grid; gap: 4px; max-height: 60vh; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.ds-local-list a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 12px; border-radius: 8px; color: var(--ds-text); text-decoration: none; }
.ds-local-list a:hover, .ds-local-list a:focus-visible { background: var(--ds-c-blue-50); color: var(--ds-c-blue-700); }
.ds-local-list .ds-ico { width: 22px; height: 22px; color: var(--ds-icon); }
.ds-local-list__n { flex: none; min-width: 24px; color: var(--ds-c-blue-700); font-weight: 700; }
.ds-sheet--live { position: fixed; left: 50%; bottom: 0; z-index: 130; width: min(100%, 420px); max-height: 85vh; overflow-y: auto; transform: translateX(-50%); }
.ds-sheet--live[hidden] { display: none; }
.ds-root .ds-sstrig.is-focus { box-shadow: inset 0 0 0 1px var(--ds-c-blue-500), var(--ds-focus); }
.ds-root .ds-hnav__i:focus-visible { box-shadow: var(--ds-focus); }
.ds-ss__loading .ds-btn__spin { width: 20px; height: 20px; color: var(--ds-c-blue-500); }
.ds-hdd__soon { margin-left: auto; padding: 2px 8px; border-radius: 10px; background: var(--ds-c-blue-50); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ds-text-2); }
.ds-mm__row .ds-hdd__soon { margin-left: 0; flex: none; }
.ds-root .ds-hdd__row.is-soon, .ds-root .ds-mm__row.is-soon { color: var(--ds-text-3); cursor: default; }
.ds-root .ds-hdd__row.is-soon:hover, .ds-root .ds-mm__row.is-soon:hover { background: none; color: var(--ds-text-3); }
.ds-ss__sec .ds-chip .ds-ico { width: 18px; height: 18px; color: var(--ds-icon); --ds-ico-hole: #fff; }
.ds-ss__sec .ds-chip:hover .ds-ico { --ds-ico-hole: var(--ds-c-blue-50); }
.ds-root .ds-ss__phone { grid-area: ph; margin: 4px 0 0 8px; }
/* Узкий телефон: кнопка и телефон не помещаются рядом — телефон под кнопку. */
@media (max-width: 520px) {
  .ds-root .ds-ss__none { grid-template-areas: "ic h h" "p p p" "acts acts acts" "ph ph ph"; }
  .ds-root .ds-ss__phone { margin: 0 0 0 -10px; }
}
.ds-ss__clear[hidden] { display: none; }
.ds-hdd--list { width: max-content; max-width: 380px; }
.ds-hdd--list .ds-hdd__row { white-space: nowrap; }
.ds-hdd__mi { width: 28px; height: 28px; flex: none; color: var(--ds-icon); --ds-ico-hole: #fff; }
.ds-root .ds-hdd__link:hover .ds-hdd__mi, .ds-root .ds-hdd__row:hover .ds-hdd__mi, .ds-root .ds-mm__row:hover .ds-hdd__mi { --ds-ico-hole: var(--ds-c-blue-50); }
.is-soon .ds-hdd__mi { opacity: .45; }
.ds-root .ds-mm__row--ic { justify-content: flex-start; gap: 12px; }
.ds-mm__row--ic > span:not(.ds-hdd__soon) { flex: 1; }
@media (max-width: 767px) {
  dialog.ds-ss-dlg {padding: 0; max-width: none; height: 100%; max-height: 100%;}
  dialog.ds-ss-dlg .ds-ss {max-height: none; height: 100%; border-radius: 0;}
}

/* Выделенные пункты меню: огонёк у «Горящих путёвок» (.ds-hfire) выключен в разметке (HOT_FIRE) */
.ds-root .ds-hdd__row.is-hot, .ds-root .ds-mm__row.is-hot { color: var(--ds-text); }
.ds-root .ds-mm__row > .ds-hfire { margin-left: -4px; margin-right: auto; }
.ds-root .ds-mm__row.is-hot:has(> .ds-hfire) > span { flex: 0 1 auto; }

/* только когда огонёк включён */
.ds-root .ds-mm__row.is-hl { font-weight: 800; }
.ds-root .ds-mm__row.is-hl.is-sale { color: var(--ds-c-red-700); }
.ds-root .ds-hdr__r2 .ds-hnav__i[aria-current]::after { bottom: -7px; }
.ds-root .ds-hnav__i.is-sale { color: var(--ds-c-red-700); }
.ds-root .ds-hnav__i.is-sale:hover, .ds-root .ds-hnav__i.is-sale.is-hover, .ds-root .ds-hnav__i.is-sale[aria-expanded="true"] { background: var(--ds-c-red-50); color: var(--ds-c-red-700); }
.ds-hnav__ic { width: 18px; height: 18px; margin-right: 4px; color: var(--ds-sale); }
.ds-hdd--mega2 { width: 660px; }
.ds-root .ds-hdd__link .ds-hfire { margin-left: -4px; }
.ds-root .ds-mm__row.is-hl .ds-hdd__mi.is-sale { color: var(--ds-sale); }

/* ================= телефон: до 767 px ================= */
/* Те же правила, что у превью .ds-phone в документах. */
@media (max-width: 767px) {
  .ds-topline {font-size: 12px; line-height: 26px;}
  .ds-header__in, .ds-nav {display: none;}
  .ds-header-m {display: block; padding: 10px 16px 12px; background: #fff; border-bottom: 1px solid var(--ds-line-soft);}
}

/* Подписи групп и черта перед ценами/отзывами и заболеваниями (меню «Санатории», «Лечение») */
.ds-hdd__cap { margin: 8px 12px 4px; font-size: 14px; font-weight: 600; color: var(--ds-text-2); }
.ds-hdd__cols--tail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ds-line-soft); }
.ds-root .ds-hdd__more { display: inline-flex; align-items: center; gap: 4px; margin: 4px 12px 0; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ds-c-blue-700); cursor: pointer; }
.ds-root .ds-hdd__more:hover { text-decoration: underline; text-underline-offset: 3px; }
