#map .ymaps-2-1-79-controls-pane {
  display: block;
}

.copy-notice {
  position: fixed;
  left: 50%;
  bottom: max(32rem, 24px);
  z-index: 9999;
  padding: max(12rem, 12px) max(20rem, 20px);
  color: #fff;
  background: #000;
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity .3s, transform .3s;
}

.copy-notice.in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.articles-home__top {
  position: relative;
  z-index: 2;
}

.cart-solution__fon img {
  width: inherit;
  height: inherit;
  object-position: left bottom;
  transition: inherit;
}

.search-sections {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8rem;
}

.search-p__empty {
  padding: 24rem 0 0;
}

.polit.text table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--gray, #d9d9d9);
}

.polit.text table th,
.polit.text table td {
  border: 1px solid var(--gray, #d9d9d9);
  padding: 12rem;
  vertical-align: top;
}

.polit.text table p {
  margin: 0;
}

@media (max-width: 767px) {
  .polit.text table {
    display: block;
    overflow-x: auto;
  }
}

.detail-props-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--p3);
}

.detail-props-table tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: end;
  gap: 8rem;
  padding: 10rem 16rem;
  color: inherit;
}

.detail-props-table th,
.detail-props-table td {
  padding: 0;
  background: transparent;
  border: 0;
  vertical-align: bottom;
  font-size: var(--p3);
  line-height: 1.35;
}

.detail-props-table th {
  display: flex;
  align-items: end;
  gap: 8rem;
  font-weight: 400;
  text-align: left;
}

.detail-props-table th::after {
  content: "";
  min-width: 24rem;
  flex: 1 1 auto;
  border-bottom: 1px dotted currentColor;
  opacity: .45;
  transform: translateY(-4rem);
}

.detail-props-table td {
  text-align: right;
}

@media (max-width: 767px) {
  .detail-props-table,
  .detail-props-table tbody,
  .detail-props-table tr,
  .detail-props-table th,
  .detail-props-table td {
    display: block;
    width: 100%;
  }

  .detail-props-table tr {
    padding-right: 8rem;
    padding-left: 8rem;
  }

  .detail-props-table th {
    padding-bottom: 4rem;
  }

  .detail-props-table th::after {
    display: none;
  }

  .detail-props-table td {
    padding-top: 4rem;
    text-align: left;
  }
}

.buy-b__top .select-custom__items > ul {
  max-height: 320rem;
  overflow: auto;
}

.buy-b__top .select-custom__items .simplebar-content {
  display: block;
}

.buy-b__top .select-custom__items .simplebar-content > li {
  display: block;
}

.buy-b__top .select-custom__items [data-simplebar] .simplebar-track.simplebar-vertical {
  width: 4rem;
  right: 4rem;
}

.buy-b__top .select-custom__items [data-simplebar] .simplebar-scrollbar::before {
  background: var(--black);
  opacity: 1;
}

.buy-b__contact .link + .link {
  margin-top: 4rem;
}

.weigh__num > div {
  background: var(--green);
  color: var(--white);
}

/* Заливка должна покрывать всю ячейку и по ширине: при коротком значении («1», «4»)
   внутренний div уже min-width ячейки, и по бокам остаются незакрашенные полосы */
.weigh .weigh__num > div {
  width: 100%;
  justify-content: center;
}

.weigh__icon {
  cursor: default;
}

/* Переключатель веса в aside-карточке: заливка выбранного покрывает всю ячейку,
   а не только центр (padding был на .weigh__num, span его не закрашивал) */
.aside-card__info .weigh .weigh__num:has(label) {
  padding: 0;
}

.aside-card__info .weigh .weigh__num label,
.aside-card__info .weigh .weigh__num label span {
  height: 100%;
}

.aside-card__info .weigh .weigh__num label span {
  min-height: max(42rem, 42px);
  min-width: max(37rem, 37px);
}

/* Ячейка «шт. в паллете»: внутри простой div, заливка тоже должна покрывать всю ячейку */
.aside-card__info .weigh .weigh__num:has(> div) {
  padding: 0;
}

.aside-card__info .weigh .weigh__num > div {
  min-height: max(42rem, 42px);
  width: 100%;
  justify-content: center;
}

/* Каталог в мобильном бургере рендерится серверно внутри .burger (второй экземпляр
   .catalog-head). Перебиваем правило `.header__overlay .catalog-head { display:none }`
   из css/style.css (≤1280px) для экземпляра в бургере и прячем десктопный экземпляр,
   который больше не переносится JS'ом (dynamic_adapt). */
@media (max-width: 1280px) {
  .header__overlay .burger .catalog-head {
    display: flex;
  }
}

@media (max-width: 1399px) {
  .header__overlay > .catalog-head {
    display: none;
  }
}

@media (any-hover: hover) {
  .add-calc:not(.is-added):hover .aside-control__btn {
    border-radius: var(--br8) 0;
  }

  .add-calc:not(.is-added):hover .add-calc__btn {
    opacity: 0;
    pointer-events: none;
  }

  .add-calc.is-added .aside-control__btn,
  .add-calc.is-added:hover .aside-control__btn {
    border-radius: 0 0 var(--br8) 0;
  }

  .add-calc.is-added .add-calc__btn,
  .add-calc.is-added:hover .add-calc__btn {
    border-radius: var(--br8) 0 0 0;
    opacity: 1;
    pointer-events: all;
  }
}

/* Популярные категории на главной: пропорция иконки как в карточке каталога
   (.cart-section-c__img → 107/77 = натуральный размер SVG 428x308),
   вместо форсированного квадрата aspect-ratio:1 */
.cart-section__img {
  aspect-ratio: 107 / 77;
  width: 100%;
}

.cart-section__img svg {
  aspect-ratio: auto;
}

.header._fixed .header__content {
  padding-right: 16.3%;
}

@media (max-width: 1919px) {
  .header._fixed .header__content {
    padding-right: 18.1%;
  }
}

/* Заглушка без фото: серый фон + логотип GLIMS.
   Класс ._not выставляет шаблон, когда у товара/новости нет картинки. */
.cart-prod__img._not,
.cart-prod_big .cart-prod__img._not,
.cart-news__img._not,
.cart-article__img._not,
.aside-card__img._not {
  background: var(--grey-light) url(img/catalog/prev/00.svg) center / 50% no-repeat;
}

/* Список товаров каталога заполняет ширину рядом с фиксированным фильтром —
   иначе при пустой выдаче («Товары не найдены») блок сжимается по тексту. */
.catalog__list {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  min-width: 0;
}

/* Слайдеры: скрываем навигацию, когда все слайды помещаются.
   Swiper при watchOverflow блокируется и вешает swiper-button-lock на стрелки. */
.nav-slider:has(.swiper-button-lock) {
  display: none;
}

/* Заглушка главного фото на детальной товара, если картинок нет. */
.big-card__slide._not {
  opacity: 1 !important;
  pointer-events: auto;
  width: 100%;
  aspect-ratio: 1;
  background: var(--grey-light) url(img/catalog/prev/00.svg) center / 40% no-repeat;
}

.cart-news__img {
  aspect-ratio: 20 / 9;
}

.drop-menu__wrap ul li {
  display: flex;
}

.catalog-merch .chekbox-form label {
  flex: 0 0 auto;
}
