/* «Услуги» (/uslugi/): t175u — страницы собраны на общих компонентах (карточка mp-ads-listing-card, шаблон
   wizard_preview_detail, sticky-фильтры), здесь остались только фильтры услуг и мелочи. Префикс svc-/us-. */
:root { --svc-accent: #E23737; --svc-accent-h: #c92c2c; --svc-text: #1c1c1e; --svc-muted: #6b7280; --svc-line: #e4e6ea; --svc-card: #fff; --svc-field: #fff; }
[data-ks-theme="dark"] { --svc-text: #f1f3f5; --svc-muted: #9aa0a6; --svc-line: #2c323b; --svc-card: #1d1f23; --svc-field: #1c2026; }
.us-scope[data-us-section="services"] { color: var(--svc-text); }
body[data-us-section="services"] { background: var(--svc-card, #fff); color: var(--svc-text); font-family: Inter-Regular, Inter, system-ui, sans-serif; }
.us-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.us-main, .us-section, .us-filters { min-width: 0; }

/* фильтры: вид как у запчастей/шин/аренды (боковая панель общей оболочки) */
.us-filters .svc-fg-form { display: block; border: 0; padding: 0; margin: 0; background: transparent; }
.us-filters .svc-fg { margin: 0; padding: 14px 0; border: 0; min-width: 0; background: linear-gradient(var(--svc-line), var(--svc-line)) top / 100% 1px no-repeat; }
.us-filters .svc-fg:first-child { background: none; padding-top: 4px; }
.us-filters legend.svc-fg__h { float: left; width: 100%; padding: 0; }
.us-filters legend.svc-fg__h + * { clear: both; }
.us-filters .svc-fg__h { margin: 0 0 8px; font-family: Inter-SemiBold, Inter, sans-serif; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--svc-text); }
.us-filters .svc-fg > :not(legend) { clear: both; }
.us-filters .svc-check { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; font-family: Inter-Regular, Inter, sans-serif; font-size: 14px; line-height: 20px; color: var(--svc-text); }
.us-filters .svc-check input { accent-color: var(--svc-accent); width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.us-filters .svc-check span { flex: 1 1 auto; min-width: 0; }
.us-filters .svc-check.is-on span { color: var(--svc-accent); font-weight: 600; }
.us-filters .svc-sel, .us-filters .svc-range input { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; height: 40px; padding: 0 10px; border: 1px solid var(--svc-line); border-radius: 8px; background: var(--svc-field); color: var(--svc-text); font-size: 14px; }
.us-filters .svc-sel:focus, .us-filters .svc-range input:focus { outline: none; border-color: var(--svc-accent); }
.us-filters .svc-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; min-width: 0; }

/* карточка: фото одной высоты и без искажений — как в других разделах (правила общие, здесь только «нет фото») */
/* t1500u: cover должен быть специфичнее, чем .mp-ads-listing-card … contain !important
   из mp_ads_listing_card.css (тот файл грузится ПОСЛЕ svc.css и перебивал t1491u).
   Общий listing-card CSS не трогаем — packshot запчастей/шин/масел/досок остаётся contain. */
html body .us-card-item.mp-ads-listing-card .catalog__items-picture-image,
html body .us-card-item.mp-ads-listing-card .catalog__items-picture img {
  object-fit: cover !important;
  background: #f2f3f5;
}

/* пустой раздел/фильтр и пагинация — общие блоки (ks_empty_cta, om-pager) */
.us-section .om-pager { margin-top: 20px; }

/* карточка услуги */
.us-price-from { text-transform: none; }
.us-offer-sf-note { margin: 12px 0; font-size: 14px; color: var(--svc-muted); }
.us-offer-sf-note a { color: var(--svc-accent); }
.svc-offer__stopped { display: grid; gap: 2px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid rgba(226,55,55,.35); background: rgba(226,55,55,.06); border-radius: 10px; font-size: 13px; line-height: 18px; }
.svc-offer__stopped b, .svc-offer__stopped a { color: var(--svc-accent); }

/* 404 */
.svc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid transparent; font-size: 14px; text-decoration: none; cursor: pointer; }
.svc-btn--red { background: var(--svc-accent); color: #fff; }
.svc-btn--red:hover { background: var(--svc-accent-h); color: #fff; }
.svc-404 { padding: 60px 20px; text-align: center; }
.svc-404 h1 { margin: 0 0 8px; font-family: Inter-SemiBold, Inter, sans-serif; font-size: 26px; line-height: 1.2; color: var(--svc-text); }
.svc-404 .svc-btn { margin-top: 12px; }

/* GB-23b: обложка раздела + плашка «нет фото» (как масла/доски). Не contain — это фото-обложка, не пакшот. */
html body .us-card-item.mp-ads-listing-card .catalog__items-picture-image.is-nophoto {
  object-fit: cover !important;
  object-position: center;
  background: #f2f3f5;
  padding: 0;
}
body.us-page .mp-ads-listing-card .catalog__items-picture:has(img.is-nophoto) {
  position: relative;
}
body.us-page .mp-ads-listing-card .catalog__items-picture img.is-nophoto {
  filter: brightness(0.92) saturate(0.85);
}
body.us-page .mp-ads-listing-card .catalog__items-picture:has(img.is-nophoto)::after,
body.us-page .items-catalog__slider .slide:has(img.is-nophoto)::after,
body.us-page .mob-items-catalog__slider .slide:has(img.is-nophoto)::after {
  content: 'нет фото';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: #5a5550;
  font-family: Inter-Medium, Inter, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}
body.us-page .items-catalog__slider .slide:has(img.is-nophoto),
body.us-page .mob-items-catalog__slider .slide:has(img.is-nophoto) {
  position: relative;
}
body.us-page .items-catalog__slider img.is-nophoto,
body.us-page .mob-items-catalog__slider img.is-nophoto {
  object-fit: cover !important;
  filter: brightness(0.92) saturate(0.85);
}
