/* MC menu begin */
.catalog-box-top-mc .tab-content::before {
  display: none;
}
.catalog-box-top-mc .mark, .catalog-box-top-mc mark {
  padding: 0;
  color: #A2C617;
  background-color: transparent;
}

.body-catalog-desktop {
  overflow: hidden;
}

.header .catalog-box__dropdown {
  padding: 0;
  border-radius: 16px;
  box-shadow: unset;
  margin: 24px 0 0 0;
}
.header .catalog-box .tab-content {
  padding: 0;
}

.header.scroll .catalog-box-top-mc-splash:before {
  top: 80px;
}

.top-mc {
  display: flex;
  min-height: 500px;
  position: relative;
  z-index: 101;
}

.top-mc__aside {
  padding: 15px 15px 80px 15px;
  border-right: 1px solid #e5e5e5;
  width: 421px;
  flex-shrink: 0;
  position: relative;
}

.top-mc__search {
  margin-top: 12px;
}

.top-mc__search__input {
  width: 100%;
}

#topMCInnerNavs {
  margin-top: 12px;
}

.top-mc__branch {
  display: flex;
  width: 100%;
  align-items: center;
  text-align: left;
}
.top-mc__branch[disabled] {
  cursor: default;
  opacity: 0.7;
}
.top-mc__branch[disabled] .top-mc__branch-count {
  background-color: #707070;
}
.top-mc__branch[disabled]:hover {
  background: transparent !important;
}

.top-mc__branch-count {
  margin-left: auto;
}

.top-mc__main {
  flex-grow: 1;
  padding: 15px;
}

.top-mc__content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 32px 48px;
  align-content: start;
}

.top-mc__group-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

.top-mc__group-icon {
  display: block;
  width: 25px;
  flex: 0 0 auto;
}
.top-mc__group-icon img {
  display: block;
  width: 100%;
  height: auto;
}

.top-mc__group-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 0 35px;
  list-style: none;
}

.top-mc__list-group {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px 30px;
}

.top-mc__menu-link {
  display: inline-block;
}

.top-mc__search-results__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 20px 32px;
}

.top-mc__search-result {
  display: grid;
  gap: 4px;
}

.top-mc__search-result__path {
  font-size: 12px;
  opacity: 0.65;
}

.nav-tabs-mc {
  border: none;
  padding: 4px;
  background: #f5f5f5;
  border-radius: 16px;
  gap: 4px;
  display: flex;
  flex-wrap: nowrap;
}
.nav-tabs-mc .nav-item {
  flex-grow: 1;
  border: none;
}
.nav-tabs-mc .nav-link {
  border: none;
  background: none;
  display: block;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  line-height: 20px;
  padding: 10px;
  border-radius: 12px;
  color: #0f0f0f;
  margin: 0;
  width: 100%;
}
.nav-tabs-mc .nav-link:hover {
  outline: none;
  border: none;
  color: #0f0f0f;
}
.nav-tabs-mc .nav-link.active {
  background: #fff;
  border: none;
  color: #0f0f0f;
}

.top-mc__search {
  display: block;
  position: relative;
  width: 100%;
}
.top-mc__search:before {
  content: "";
  width: 20px;
  height: 20px;
  background: url("../../i/h-mc-ico-search.svg") no-repeat;
  position: absolute;
  top: 13px;
  left: 18px;
}

.top-mc__search__input {
  height: 46px;
  padding-left: 46px;
  font-size: 14px;
}
.top-mc__search__input::placeholder {
  color: #707070;
}
.top-mc__search__input::-webkit-search-cancel-button {
  display: none;
}

.top-mc__search__clear {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 13px;
  right: 13px;
  cursor: pointer;
  border: none;
  background: url("../../i/h-mc-ico-search-close.svg") center center no-repeat;
}

.nav-inner-tabs {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  gap: 2px;
}
.nav-inner-tabs .nav-item {
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
}
.nav-inner-tabs .nav-link {
  border: none;
  margin: 0;
  padding: 10px 50px 10px 10px;
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 10px;
}
.nav-inner-tabs .nav-link:before {
  content: "";
  width: 16px;
  height: 16px;
  background: url("../../i/h-mc-ico-arrow-right.svg") no-repeat;
  position: absolute;
  right: 10px;
  top: 50%;
  margin: -8px 0 0 0;
}
.nav-inner-tabs .nav-link img {
  display: block;
  width: 25px;
  height: auto;
}
.nav-inner-tabs .nav-link:hover {
  background: #F5F8E7;
}
.nav-inner-tabs .top-mc__branch-ico img:nth-child(2) {
  display: none;
}
.nav-inner-tabs .nav-link.active {
  background: #F5F8E7;
}
.nav-inner-tabs .nav-link.active .top-mc__branch-ico img:nth-child(1) {
  display: none;
}
.nav-inner-tabs .nav-link.active .top-mc__branch-ico img:nth-child(2) {
  display: block;
}
.nav-inner-tabs .top-mc__branch-text {
  flex-grow: 1;
}
.nav-inner-tabs .top-mc__branch-title {
  font-size: 14px;
  font-weight: 500;
  color: #0f0f0f;
}
.nav-inner-tabs .top-mc__branch-subtitle {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: #808080;
}
.nav-inner-tabs .top-mc__branch-count {
  position: absolute;
  right: 10px;
  top: 50%;
  margin: -10px 0 0 0;
  min-width: 20px;
  line-height: 20px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  border-radius: 16px;
  background: #A2C617;
  color: #fff;
  padding: 0 6px;
}

.top-mc__all-results {
  border: none;
  margin: 12px 0 0 0;
  padding: 10px;
  position: relative;
  background: none;
  display: flex;
  align-items: center;
  gap: 15px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  justify-content: space-between;
  width: 100%;
}
.top-mc__all-results:hover {
  background: #F5F8E7;
}
.top-mc__all-results .p-count {
  min-width: 20px;
  line-height: 20px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  border-radius: 16px;
  background: #A2C617;
  color: #fff;
  padding: 0 6px;
}

.top-mc__tab-count {
  margin-left: 10px;
  min-width: 20px;
  line-height: 20px;
  height: 20px;
  font-size: 12px;
  text-align: center;
  border-radius: 16px;
  background: #A2C617;
  color: #fff;
  padding: 0 6px;
  display: inline-flex;
}

.top-mc__search-results__head {
  border: 1px solid #CACACA;
  border-radius: 10px;
  padding: 10px;
  font-size: 14px;
  color: #0f0f0f;
  font-weight: 500;
  margin: 0 0 15px 0;
}

.button-link-clear {
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
  color: #A2C617;
  text-decoration: underline;
  margin: 0 0 0 5px;
}
.button-link-clear:hover {
  color: #A2C617;
  text-decoration: none;
}

.top-mc__search-results__empty {
  font-size: 14px;
  font-weight: 500;
}
.top-mc__search-results__empty a {
  color: #a2c617;
  text-decoration: underline;
}

.catalog-box_opened .catalog-box-top-mc-splash {
  inset: 0;
  position: fixed;
  z-index: 100;
}
.catalog-box_opened .catalog-box-top-mc-splash:before {
  content: "";
  right: 0;
  left: 0;
  bottom: 0;
  top: 154px;
  position: fixed;
  z-index: 100;
  background: rgba(0, 0, 0, 0.4);
}

.header .catalog-box .tab-pane {
  height: unset;
}

.top-mc__quick-links {
  list-style: none;
  margin: 0;
  padding: 15px 15px 15px;
  display: flex;
  gap: 10px;
  left: 0;
  width: 100%;
  bottom: 0;
  position: absolute;
}
.top-mc__quick-links li {
  padding: 0;
  margin: 0;
  flex-grow: 1;
}
.top-mc__quick-links a {
  display: flex;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #e3e3e3;
  gap: 6px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: #0f0f0f;
  white-space: nowrap;
}
.top-mc__quick-links a img {
  width: 25px;
  height: auto;
  display: block;
  margin: auto;
}
.top-mc__quick-links a:hover {
  background-color: #f5f8e7;
}

@media (max-width: 1240px) {
  .top-mc__list-group, .top-mc__search-results__list {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 994px) {
  .mobile-nav-open--catalog .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
  }
  .mobile-nav-open--catalog .header .header-mobile-search {
    display: none;
  }
  .mobile-nav-open--catalog .main .header-center {
    padding: 20px 0;
  }
  .catalog-box .tab-content {
    height: auto;
  }
  .top-mc__search-results__head {
    display: none !important;
  }
  .header .catalog-box__dropdown {
    border-radius: 0;
    width: 100vw;
    bottom: 58px;
    top: 68px;
    margin: 0;
    height: calc(100dvh - 126px);
    position: fixed;
    border-top: 1px solid #e3e3e3;
  }
  .top-mc__quick-links {
    border-top: 1px solid #e3e3e3;
  }
  .top-mc {
    display: block;
    height: 100%;
    min-height: 0;
  }
  .top-mc__aside {
    border: none;
    width: 100%;
    height: 100%;
    padding: 12px 16px;
  }
  .top-mc__main {
    width: 100%;
    padding: 12px 16px;
  }
  .top-mc__inner-nav {
    width: 30%;
    max-height: calc(100dvh - 320px);
    overflow: hidden;
    overflow-y: auto;
  }
  .top-mc__main {
    width: 72.223%;
    max-height: calc(100dvh - 320px);
    overflow-y: auto;
    position: absolute;
    top: 135px;
    left: 31%;
    padding: 0 15px;
  }
  .nav-inner-tabs .top-mc__branch-subtitle {
    display: none;
  }
  .nav-inner-tabs .nav-link:before {
    display: none;
  }
  .nav-inner-tabs {
    gap: 12px;
  }
  .nav-inner-tabs .nav-link {
    border: 1px solid #e3e3e3;
    flex-direction: column;
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
    justify-content: flex-start;
    font-size: 13px;
  }
  .nav-inner-tabs .nav-link.active {
    border-color: #A2C617;
  }
  .top-mc__list-group {
    gap: 30px 20px;
  }
  .top-mc__quick-links {
    gap: 8px;
    padding: 8px 16px;
  }
  .top-mc__quick-links a {
    padding: 10px 8px;
    font-size: 11px;
  }
  .top-mc__quick-links a img {
    display: none;
  }
}
@media (max-width: 767px) {
  .top-mc__list-group, .top-mc__search-results__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .top-mc__group {
    border: 1px solid #e3e3e3;
    flex-direction: column;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 8px;
  }
  .top-mc__group-title {
    margin: 0 0 5px 0;
  }
  .top-mc__group-list {
    padding: 0;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .top-mc__inner-nav {
    width: 106px;
  }
  .top-mc__main {
    width: calc(100% - 140px);
    left: 128px;
    top: 128px;
    padding: 0;
  }
  .nav-tabs-mc .nav-link {
    font-size: 14px;
    line-height: 14px;
    font-weight: 600;
    padding: 12px;
  }
  .nav-inner-tabs .top-mc__branch-title {
    font-size: 12px;
    font-weight: 500;
  }
}

/* WEB-2272: колонки как на проде, «Все …», заголовок-ссылка, прокрутка меню, переносы */
.top-mc__col {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.top-mc__list-group + .top-mc__list-group {
  margin-top: 40px;
}

.top-mc__group-title.top-mc__menu-link {
  display: flex;
  margin-bottom: 0;
}

.top-mc__menu-link--more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #0f0f0f;
}

.top-mc__menu-link--more::after {
  content: "";
  width: 12px;
  height: 12px;
  background: url("../../i/h-mc-ico-arrow-right.svg") center/contain no-repeat;
}

@media (min-width: 995px) {
  .catalog-box-top-mc .top-mc {
    height: min(calc(100dvh - 180px), 820px);
    min-height: 0;
  }
  .header.scroll .catalog-box-top-mc .top-mc {
    height: min(calc(100dvh - 110px), 820px);
  }
  .catalog-box-top-mc .top-mc__aside {
    display: flex;
    flex-direction: column;
    padding-bottom: 105px;
  }
  .catalog-box-top-mc #topMCInnerNavs {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
  }
  .catalog-box-top-mc .top-mc__main {
    overflow-y: auto;
  }
}

@media (max-width: 994px) {
  .nav-inner-tabs .top-mc__branch-text {
    min-width: 0;
    max-width: 100%;
  }
  .nav-inner-tabs .top-mc__branch-title {
    display: block;
    hyphens: auto;
  }
}

@media (max-width: 767px) {
  .top-mc__col {
    gap: 12px;
  }
  .top-mc__list-group + .top-mc__list-group {
    margin-top: 12px;
  }
}

/* WEB-2272: плитки разделов не сжимаются; меню кабинета не вылезает за экран */
@media (max-width: 994px) {
  .nav-inner-tabs .nav-item {
    flex-shrink: 0;
  }
}

@media (min-width: 993px) {
  .header-center .dropdown-box_user .dropdown-box__content {
    left: auto;
    right: 0;
  }
}

/* WEB-2272: быстрые ссылки делят ширину колонки по длине текста и переносят текст */
@media (min-width: 993px) {
  .top-mc__quick-links li {
    flex: 1 1 auto;
    display: flex;
  }
  .top-mc__quick-links a {
    flex: 1 1 auto;
    padding: 12px 6px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
    hyphens: auto;
  }
}

/* WEB-2272: поиск по меню — карточки результатов, пустой результат, «Все результаты» */
.top-mc__all-results.active {
  background: #F5F8E7;
}
.top-mc__search-results__list {
  align-items: start;
  gap: 12px;
}
.top-mc__search-result {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #0f0f0f;
  text-decoration: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.top-mc__search-result:hover {
  background: #F5F8E7;
  color: #0f0f0f;
}
.top-mc__search-result__group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.top-mc__search-result__ico {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
}
.top-mc__search-result__title {
  font-size: 14px;
  line-height: 1.35;
}
.top-mc__search-results__empty:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  margin: 0 auto;
  padding: 50px 20px;
  text-align: center;
}
.top-mc__search-results__empty-ico {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}
.top-mc__search-results__empty-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #0f0f0f;
}
.top-mc__search-bridge-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  background: #A2C617;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.top-mc__search-bridge-button:hover {
  background: #88a613;
}
.top-mc .top-mc__search-bridge-button .p-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 16px;
  background: #fff;
  color: #88a613;
  font-size: 12px;
  line-height: 22px;
}
.top-mc__search-results__empty .top-mc__search-results__catalog {
  font-size: 14px;
  font-weight: 500;
  color: #88a613;
}
.top-mc__search-results--empty .top-mc__search-results__head {
  display: none;
}

@media (max-width: 994px) {
  .nav-tabs-mc .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
  }
  .nav-tabs-mc .top-mc__tab-count {
    margin: 0;
  }
  .nav-inner-tabs .nav-link {
    position: relative;
  }
  .nav-inner-tabs .nav-link[disabled] {
    opacity: 0.5;
  }
  .nav-inner-tabs .top-mc__branch-count:not([hidden]) {
    display: inline-block;
    top: 8px;
    right: 8px;
    margin: 0;
  }
  .top-mc__inner-nav .top-mc__all-results:not([hidden]) {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 12px 0;
    padding: 12px;
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    font-size: 13px;
    text-align: left;
  }
  .top-mc__inner-nav .top-mc__all-results.active {
    border-color: #A2C617;
  }
  .top-mc__search-result {
    padding: 8px 12px;
    border-color: #e3e3e3;
    border-radius: 8px;
  }
  .top-mc__search-result:hover {
    border-color: #A2C617;
  }
  .top-mc__search-results__empty:not([hidden]) {
    padding: 20px 0;
  }
  .top-mc__search-results {
    padding-top: 6px;
  }
}

/* WEB-2272: шапка при открытом мобильном каталоге не ниже верха меню (68px), иначе в щели видна страница */
@media (max-width: 994px) {
  .mobile-nav-open--catalog .header {
    min-height: 68px;
  }
}

/* WEB-2272: «Все результаты» — иконка как у разделов, на мобильном счётчик в правом верхнем углу */
.top-mc__all-results__ico {
  display: block;
  width: 25px;
  flex: 0 0 25px;
}
.top-mc__all-results__ico img {
  display: block;
  width: 25px;
  height: 25px;
}
.top-mc__all-results__ico img:nth-child(2),
.top-mc__all-results.active .top-mc__all-results__ico img:nth-child(1) {
  display: none;
}
.top-mc__all-results.active .top-mc__all-results__ico img:nth-child(2) {
  display: block;
}
.top-mc__all-results__text {
  flex-grow: 1;
  text-align: left;
}
@media (max-width: 994px) {
  .top-mc__inner-nav .top-mc__all-results .p-count {
    position: absolute;
    top: 8px;
    right: 8px;
  }
}

/* WEB-2272: ссылки меню светло-серые как на проде, между строками 5px */
.top-mc__group-list {
  gap: 5px;
}
.top-mc__group-list .top-mc__menu-link {
  color: #484F54;
}
.top-mc__group-list .top-mc__menu-link:hover {
  color: #556710;
}
.top-mc__group-list .top-mc__menu-link--more {
  color: #0f0f0f;
}

/* WEB-2272: счётчик во вкладке не сдвигает название — стоит поверх, справа */
.nav-tabs-mc .nav-link {
  position: relative;
}
.nav-tabs-mc .top-mc__tab-count {
  position: absolute;
  top: 50%;
  right: 10px;
  margin: 0;
  transform: translateY(-50%);
}

/* WEB-2272: мобильное меню на сетке вместо абсолютного позиционирования:
   сверху вкладки и поиск, ниже колонки «разделы | содержимое», внизу быстрые ссылки.
   Шапку с логотипом перекрываем — меню на весь экран над нижней панелью. */
@media (max-width: 994px) {
  .header .catalog-box__dropdown {
    top: 0;
    height: calc(100dvh - 58px);
    border-top: none;
  }
  .header .catalog-box__dropdown .top-mc {
    display: grid;
    grid-template-columns: min(30%, 180px) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    column-gap: 10px;
    height: 100%;
    padding: 12px 16px 0;
  }
  .header .catalog-box__dropdown .top-mc__aside {
    display: contents;
  }
  .header .catalog-box__dropdown #topMCTabs {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .header .catalog-box__dropdown .top-mc__search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 12px 0;
  }
  .header .catalog-box__dropdown #topMCInnerNavs {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
  }
  .header .catalog-box__dropdown .top-mc__inner-nav {
    width: auto;
    max-height: none;
  }
  .header .catalog-box__dropdown .top-mc__inner-nav.active {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
  }
  .header .catalog-box__dropdown .top-mc__main {
    grid-column: 2;
    grid-row: 3;
    position: static;
    width: auto;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding: 0 6px 12px 0;
  }
  .header .catalog-box__dropdown .top-mc__search-results {
    padding-top: 0;
  }
  .header .catalog-box__dropdown .top-mc__quick-links {
    grid-column: 1 / -1;
    grid-row: 4;
    position: static;
    width: auto;
    margin: 0 -16px;
    padding: 8px 16px;
  }
  .top-mc__list-group,
  .top-mc__search-results__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .top-mc__col {
    gap: 12px;
  }
  .top-mc__list-group + .top-mc__list-group {
    margin-top: 12px;
  }
  .top-mc__group {
    border: 1px solid #e3e3e3;
    flex-direction: column;
    padding: 8px 12px;
    gap: 12px;
    border-radius: 8px;
  }
  .top-mc__group-title {
    margin: 0 0 5px 0;
  }
  .top-mc__group-list {
    padding: 0;
  }
  .nav-tabs-mc .top-mc__tab-count {
    top: -6px;
    right: -2px;
    transform: none;
  }
}
@media (min-width: 641px) and (max-width: 994px) {
  .top-mc__list-group,
  .top-mc__search-results__list {
    grid-template-columns: 1fr 1fr;
  }
}

/* WEB-2272: на десктопе прокрутку страницы при открытом меню не блокируем (как на проде) —
   полоса прокрутки не пропадает и страница не дёргается; колесо внутри колонок меню страницу не листает */
@media (min-width: 993px) {
  html body.body-catalog-desktop,
  html body.main-catalog-open {
    overflow: visible;
  }
  .top-mc #topMCInnerNavs,
  .top-mc .top-mc__main,
  .custom-main-page .catalog-box__navi,
  .custom-main-page .catalog-box__ins {
    overscroll-behavior: contain;
  }
}

/* WEB-2272: название вкладки по центру, цифра сразу после него — без сдвига и без наезда на текст */
.nav-tabs-mc .nav-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 6px;
}
.nav-tabs-mc .top-mc__tab-label {
  grid-column: 2;
}
.nav-tabs-mc .top-mc__tab-count {
  grid-column: 3;
  justify-self: start;
  position: static;
  transform: none;
  margin: 0;
}

@media (max-width: 994px) {
  /* содержимое раздела — в одну колонку на любой мобильной/планшетной ширине */
  .top-mc__list-group,
  .top-mc__search-results__list {
    grid-template-columns: 1fr;
  }
}
/* WEB-2272: на 601–994px плитки разделов горизонтальные: иконка слева, текст справа */
@media (min-width: 601px) and (max-width: 994px) {
  .nav-inner-tabs .nav-link,
  .top-mc__inner-nav .top-mc__all-results:not([hidden]) {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .nav-inner-tabs .nav-link[data-search-count],
  .top-mc__inner-nav .top-mc__all-results {
    padding-right: 36px;
  }
}

/* WEB-2272: вкладки строго равной ширины (иначе при появлении цифр ширина чуть меняется);
   текст «Все результаты» в плитке переносится */
.nav-tabs-mc .nav-item {
  flex: 1 1 0;
  min-width: 0;
}
.top-mc__all-results__text {
  white-space: normal;
}

/* WEB-2272: справа от названия вкладки всегда есть место под цифру — цифра не вылезает за край */
.nav-tabs-mc .nav-link {
  grid-template-columns: minmax(0, 1fr) auto minmax(24px, 1fr);
  column-gap: 4px;
  padding-left: 8px;
  padding-right: 8px;
}
@media (max-width: 400px) {
  .nav-tabs-mc .nav-link {
    font-size: 13px;
  }
  .nav-tabs-mc .top-mc__tab-count {
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    font-size: 11px;
  }
}

/* WEB-2272: результат поиска — ссылка только найденная строка, без фона при наведении;
   на мобильном нажимается вся карточка (ссылка растянута на неё) */
.top-mc__search-result:hover {
  background: none;
}
.top-mc__search-result__title {
  color: #0f0f0f;
  text-decoration: none;
}
.top-mc__search-result__title:hover {
  color: #556710;
}
@media (max-width: 994px) {
  .top-mc__search-result {
    position: relative;
  }
  .top-mc__search-result__title::after {
    content: "";
    position: absolute;
    inset: 0;
  }
}

/* WEB-2272: чуть больше воздуха: полоса прокрутки плиток — 8px, между колонками — 14px */
@media (max-width: 994px) {
  .header .catalog-box__dropdown .top-mc {
    column-gap: 14px;
  }
  .header .catalog-box__dropdown .top-mc__inner-nav.active {
    padding-right: 8px;
  }
  .header .catalog-box__dropdown .top-mc__main {
    padding-right: 8px;
  }
}

/* WEB-2272: в горизонтальных плитках (601–994px) цифра стоит в конце строки, а не поверх текста */
@media (min-width: 601px) and (max-width: 994px) {
  .nav-inner-tabs .nav-link[data-search-count],
  .top-mc__inner-nav .top-mc__all-results:not([hidden]) {
    padding-right: 12px;
  }
  .nav-inner-tabs .top-mc__branch-text,
  .top-mc__inner-nav .top-mc__all-results__text {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-inner-tabs .top-mc__branch-count:not([hidden]),
  .top-mc__inner-nav .top-mc__all-results .p-count {
    position: static;
    flex: 0 0 auto;
    margin: 0 0 0 auto;
  }
}

/* WEB-2272: тонкая полоса прокрутки в меню «Каталог» и меню брендов
   (стандартные свойства — только для Firefox: в Chrome они отключают настройку ::-webkit-scrollbar) */
@supports not selector(::-webkit-scrollbar) {
  .top-mc #topMCInnerNavs,
  .top-mc .top-mc__inner-nav,
  .top-mc .top-mc__main,
  .custom-main-page .catalog-box__navi,
  .custom-main-page .catalog-box__ins,
  #v-pills-tabContentMainCustom {
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
  }
}
.top-mc #topMCInnerNavs::-webkit-scrollbar,
.top-mc .top-mc__inner-nav::-webkit-scrollbar,
.top-mc .top-mc__main::-webkit-scrollbar,
.custom-main-page .catalog-box__navi::-webkit-scrollbar,
.custom-main-page .catalog-box__ins::-webkit-scrollbar,
#v-pills-tabContentMainCustom::-webkit-scrollbar {
  width: 6px;
}
.top-mc #topMCInnerNavs::-webkit-scrollbar-thumb,
.top-mc .top-mc__inner-nav::-webkit-scrollbar-thumb,
.top-mc .top-mc__main::-webkit-scrollbar-thumb,
.custom-main-page .catalog-box__navi::-webkit-scrollbar-thumb,
.custom-main-page .catalog-box__ins::-webkit-scrollbar-thumb,
#v-pills-tabContentMainCustom::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 3px;
}
.top-mc #topMCInnerNavs::-webkit-scrollbar-track,
.top-mc .top-mc__inner-nav::-webkit-scrollbar-track,
.top-mc .top-mc__main::-webkit-scrollbar-track,
.custom-main-page .catalog-box__navi::-webkit-scrollbar-track,
.custom-main-page .catalog-box__ins::-webkit-scrollbar-track,
#v-pills-tabContentMainCustom::-webkit-scrollbar-track {
  background: transparent;
}

/* WEB-2272: на мобильном полоса прокрутки меню видна как подсказка до первой прокрутки (scroll-hint)
   и во время прокрутки (is-scrolling); после остановки скрывается. Классы ставит scripts-menu.js */
@media (max-width: 994px) {
  .top-mc #topMCInnerNavs::-webkit-scrollbar,
  .top-mc .top-mc__inner-nav::-webkit-scrollbar,
  .top-mc .top-mc__main::-webkit-scrollbar,
  .custom-main-page .catalog-box__navi::-webkit-scrollbar,
  .custom-main-page .catalog-box__ins::-webkit-scrollbar,
  #v-pills-tabContentMainCustom::-webkit-scrollbar {
    width: 4px;
  }
  .top-mc #topMCInnerNavs::-webkit-scrollbar-thumb,
  .top-mc .top-mc__inner-nav::-webkit-scrollbar-thumb,
  .top-mc .top-mc__main::-webkit-scrollbar-thumb,
  .custom-main-page .catalog-box__navi::-webkit-scrollbar-thumb,
  .custom-main-page .catalog-box__ins::-webkit-scrollbar-thumb,
  #v-pills-tabContentMainCustom::-webkit-scrollbar-thumb {
    background: transparent;
  }
  .top-mc .is-scrolling::-webkit-scrollbar-thumb,
  .top-mc .scroll-hint::-webkit-scrollbar-thumb,
  .top-mc #topMCInnerNavs.is-scrolling::-webkit-scrollbar-thumb,
  .top-mc #topMCInnerNavs.scroll-hint::-webkit-scrollbar-thumb,
  .custom-main-page .is-scrolling::-webkit-scrollbar-thumb,
  .custom-main-page .scroll-hint::-webkit-scrollbar-thumb,
  #v-pills-tabContentMainCustom.is-scrolling::-webkit-scrollbar-thumb,
  #v-pills-tabContentMainCustom.scroll-hint::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.25);
  }
}
@supports not selector(::-webkit-scrollbar) {
  @media (max-width: 994px) {
    .top-mc #topMCInnerNavs,
    .top-mc .top-mc__inner-nav,
    .top-mc .top-mc__main,
    .custom-main-page .catalog-box__navi,
    .custom-main-page .catalog-box__ins,
    #v-pills-tabContentMainCustom {
      scrollbar-color: transparent transparent;
    }
    .top-mc .is-scrolling,
    .top-mc .scroll-hint,
    .top-mc #topMCInnerNavs.is-scrolling,
    .top-mc #topMCInnerNavs.scroll-hint,
    .custom-main-page .is-scrolling,
    .custom-main-page .scroll-hint,
    #v-pills-tabContentMainCustom.is-scrolling,
    #v-pills-tabContentMainCustom.scroll-hint {
      scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    }
  }
}

/* WEB-2272: на мобильном полоса прокрутки тонкая (4px) — перед ней 4px, чтобы не прилипала к плиткам и карточкам */
@media (max-width: 994px) {
  .header .catalog-box__dropdown .top-mc__inner-nav.active,
  .header .catalog-box__dropdown .top-mc__main {
    padding-right: 4px;
  }
}

/*# sourceMappingURL=header-mc-menu.css.map */
