/* Мобильные кнопки каталога (Фильтры, Сортировка, Поиск): светлый фон, чтобы не сливались с тёмной страницей */
.t-catalog__filter__opts-mob-btn,
.t-catalog__filter__sort-mob-btn,
.t-catalog__filter__search-mob-btn {
  background-color: #f5f5f5 !important;
  border-color: #f5f5f5 !important;
}

/* Пагинация каталога: светлые цифры и стрелки на тёмном фоне */
.t-catalog__pagination__item {
  color: #f5f5f5 !important;
}
.t-catalog__pagination__arrow,
.t-catalog__pagination__arrow path {
  fill: #f5f5f5 !important;
}

/* Каталоги (/catalog и страницы марок): меньше отступ от заголовка блока до разделов на телефонах (было 45px) */
@media screen and (max-width: 640px) {
  #rec3992064401 .t-section__title,
  #rec6326457501 .t-section__title,
  #rec6327353701 .t-section__title,
  #rec6327354901 .t-section__title,
  #rec6327356201 .t-section__title,
  #rec6327357501 .t-section__title,
  #rec6327358701 .t-section__title,
  #rec6327360101 .t-section__title,
  #rec6327361301 .t-section__title {
    margin-bottom: 20px !important;
  }
}

/* Главная, карточки «Запчасти по маркам техники»: вся карточка кликабельна, надпись белеет при наведении на карточку */
#rec6327398101 .t1196__item .t-card__btn::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3;
}
@media (hover: hover) {
  #rec6327398101 .t1196__item:hover .t-card__btn {
    color: #ffffff !important;
  }
}

/* Главная, карточки марок: фото — обложки страниц марок, показываем правую часть (там детали); у «Все запчасти» — центр */
#rec6327398101 .t1196__bgimg {
  background-position: right center !important;
}
#rec6327398101 .t1196__item:last-child .t1196__bgimg {
  background-position: center center !important;
}

/* Главная, карточки марок на телефонах: компактные, без надписи «Смотреть» — карточка кликабельна целиком.
   Ширина зависит от экрана (не больше 160px), чтобы на любом телефоне был виден край третьей карточки */
@media screen and (max-width: 640px) {
  #rec6327398101 .t1196__item {
    width: min(160px, calc((100vw - 30px) / 2.3)) !important;
  }
  #rec6327398101 .t1196__imgwrapper {
    height: auto !important;
    aspect-ratio: 4 / 3;
  }
  #rec6327398101 .t1196__content {
    padding: 12px 14px 14px !important;
  }
  #rec6327398101 .t-card__title {
    font-size: 18px !important;
    padding-bottom: 2px !important;
  }
  #rec6327398101 .t-card__descr {
    font-size: 13px !important;
    line-height: 1.3 !important;
    padding-bottom: 0 !important;
  }
  #rec6327398101 .t-card__btn-wrapper {
    height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
  }
  #rec6327398101 .t-card__btn {
    font-size: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
  }
}
