/* Keep carousel controls inside the viewport on full-width containers. */
body .mainReviews .mainReviewsItems .slick-arrow.slick-prev,
body .mainCertificates .mainCertificatesItems .slick-arrow.slick-prev { left: 0; }
body .mainReviews .mainReviewsItems .slick-arrow.slick-next,
body .mainCertificates .mainCertificatesItems .slick-arrow.slick-next { right: 0; }

@media (max-width: 820px) {
  body .header .leftInfo,
  body .header .rightInfo,
  body .header .rightInfo .currentCityPhones,
  body .header .rightInfo .currentCityPhonesColumn {
    min-width: 0;
  }

  body .header .rightInfo .currentCityPhonesColumnLabel,
  body .header .rightInfo .currentCityPhonesColumnValue,
  body .header .leftInfo .currentCityInfo,
  body .indexSectionItem a,
  body .mainAdvantages .mainAdvantagesItems .mainAdvantagesItem .name {
    overflow-wrap: anywhere;
  }

  body .productItems .productItem .productItemInfo,
  body .productItems .productItem .productItemInfo .productItemButtons {
    min-width: 0;
    align-self: stretch;
    max-width: 100%;
  }

  body .productItems .productItem .productItemInfo .productItemName,
  body .materialTabs .materialItem .materialItemInfo .materialItemName {
    overflow-wrap: anywhere;
  }

  body .productItems .productItem .productItemInfo .productItemButtons .btn {
    min-width: 0;
    max-width: 100%;
    padding-inline: 6px;
    white-space: normal;
    text-align: center;
  }

  body .materialTabs .materialItems .materialItem .materialItemInfo {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  body .productItems .productItem,
  body .catalogPage .catalogWrap .catalogArea .productItems .productItem {
    width: calc((100% - 20px) / 2);
  }

  body .mainHow .mainHowItems .mainHowItem { width: 100%; }
}

@media (max-width: 640px) {
  body .mainHow .mainHowItems .mainHowItem .mainHowItemTop {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  body .mainHow .mainHowItems .mainHowItem .mainHowItemTop .mainHowItemSort {
    padding-right: 0;
    border-right: 0;
  }
  body .mainHow .mainHowItems .mainHowItem .mainHowItemTop .mainHowItemName {
    width: 100%;
    padding: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 480px) {
  body .header .container > .flexRow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
  }
  body .header .container > .flexRow > .leftInfo,
  body .header .container > .flexRow > .rightInfo {
    width: 100%;
    max-width: 100%;
  }
  body .header .rightInfo .currentCityPhones {
    justify-content: flex-end;
    gap: 8px 0;
  }
  body .header .rightInfo .currentCityPhones .currentCityPhonesColumn,
  body .header .leftInfo .currentCityInfo .currentCityInfoColumn {
    margin-inline: 0;
  }
  body .header .rightInfo .currentCityPhones { flex-wrap: wrap; }
  body .header .leftInfo > .btn,
  body .header .rightInfo > .btn {
    min-width: 0;
    padding-inline: 6px;
    white-space: normal;
    max-width: 100%;
    height: auto;
    min-height: 40px;
  }
}
