/* Keep producer names and logos within the same responsive grid. */
.bx_catalog_tile .bx_catalog_tile_ul {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px 12px;
  width: 100%;
  max-width: 1200px;
  padding: 0 16px;
}

.bx_catalog_tile .bx_catalog_tile_ul > li {
  float: none;
  width: auto;
  min-width: 100%;
  margin: 0;
  padding: 0;
}

.bx_catalog_tile .bx_catalog_tile_ul > li > .bx_catalog_tile_img {
  width: 100%;
  max-width: min(100px, 100%);
  aspect-ratio: 1;
  height: auto;
}

.bx_catalog_tile .bx_catalog_tile_ul > li > .bx_catalog_tile_title {
  margin: 8px 0 0;
  line-height: 1.3;
}

.bx_catalog_tile .bx_catalog_tile_ul > li > .bx_catalog_tile_title a {
  overflow: visible;
  overflow-wrap: anywhere;
  text-overflow: clip;
  hyphens: auto;
}

.catalog-list .catalog-empty {
  width: calc(100% - 32px);
  max-width: 520px;
  margin: 0 auto;
  padding: 22px;
  border: 1px solid #e1e9e3;
  border-radius: 10px;
  background: #f4f8f5;
  color: #203628;
  font-size: 16px;
  text-align: center;
}

.catalog-list .catalog-empty p {
  margin: 0 0 12px;
}

.catalog-list .catalog-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 6px;
  background: #08763c;
  color: #fff;
  font-weight: 700;
}

.header > button.menu-btn {
  flex: 0 0 44px;
  padding: 0;
  width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  line-height: 1;
  text-align: center;
  cursor: pointer;
}

@media (max-width: 991px) {
  .bx_catalog_tile .bx_catalog_tile_ul {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .bx_catalog_tile .bx_catalog_tile_ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .bx_catalog_tile .bx_catalog_tile_ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .header {
    flex-wrap: nowrap;
    gap: 12px;
    padding-inline: 14px;
  }

  .header > .logo {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .header > .logo a {
    display: block;
    min-width: 0;
  }

  .header > .logo img {
    display: block;
    width: 100%;
    max-width: 265px;
    height: auto;
    top: auto;
  }
}

@media (max-width: 767px) {
  .slider .carousel .carousel-item {
    min-height: 0 !important;
  }

  .slider .carousel-container {
    min-height: 0;
    padding: 24px 16px 76px;
    gap: 14px;
  }

  .slider .text,
  .slider .image-cover {
    width: 100%;
    padding: 0;
  }

  .slider .carousel-item .title {
    font-size: clamp(27px, 6.8vw, 38px);
    line-height: 1.1;
    letter-spacing: 0;
  }

  .slider .carousel-item p {
    margin: 12px 0 0;
    font-size: clamp(16px, 4.4vw, 20px);
    line-height: 1.4;
  }

  .slider .image-cover img {
    width: 100%;
    max-width: 540px;
    max-height: 300px;
    object-fit: contain;
  }

  .slider .carousel-content .counter {
    right: 16px;
    bottom: 16px;
  }

  .slider .carousel-bullets {
    bottom: 20px;
    padding-left: 16px;
  }

  .slider .controls a,
  .slider .counter .round {
    width: 44px;
    height: 44px;
  }

  .slider .counter .round {
    margin-inline: 6px;
    font-size: 17px;
  }

  .catalog-list .products {
    padding-block: 26px 36px;
  }
}

#product-popup-box {
  min-width: 0;
  padding: 12px;
}

#product-popup-box .product-popup-box-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 980px;
  max-height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #fcfcfb;
}

#product-popup-box .product-popup {
  display: flex;
  width: 100%;
  margin: 0;
  min-height: 0;
  overflow: hidden;
}

#product-popup-box .product-card {
  width: 100%;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

#product-popup-box .product-card .text {
  overflow-wrap: anywhere;
}

#product-popup-box .product-popup .js-close-popup {
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #deded7;
  border-radius: 50%;
  background: #fff;
  fill: #454540;
}

#product-popup-box .product-popup .js-close-popup:hover {
  fill: #aa091c;
}

#product-popup-box .arrows-box {
  position: static;
  flex: 0 0 auto;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 6px 14px max(6px, env(safe-area-inset-bottom));
  border-top: 1px solid #e5e5df;
  transform: none;
}

#product-popup-box .arrows-box .js-load-product {
  flex: 0 1 128px;
  width: auto;
  height: 44px;
  padding: 0;
  border: 1px solid #deded7;
  border-radius: 7px;
  background: #fff;
  box-shadow: none;
  fill: #454540;
  fill-opacity: 1;
}

#product-popup-box .arrows-box .js-load-product:hover {
  background: #aa091c;
  fill: #fff;
}

@media (max-width: 767px) {
  #product-popup-box {
    padding: 8px;
  }

  #product-popup-box .product-card > * {
    flex-shrink: 0;
  }

  #product-popup-box .product-card .img-box {
    padding: 12px 44px 8px;
  }

  #product-popup-box .product-card .img img {
    max-height: 34vh;
    object-fit: contain;
  }

  #product-popup-box .product-card .text {
    padding: 18px;
  }

  #product-popup-box .product-card h1 {
    margin-bottom: 18px;
  }
}

body.belferm-product-open {
  overflow: hidden;
}

.feedback .phone-link-tel {
  color: #14643c;
}

.feedback .right {
  background-color: #08763c;
}

.feedback-form .form input:not([type="hidden"]),
.consultation .form input:not([type="hidden"]) {
  min-height: 44px;
}

.feedback-form .form input::placeholder,
.consultation .form input::placeholder {
  color: #fff;
  opacity: 1;
}

.feedback-form .form input:focus-visible,
.consultation .form input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .feedback .right {
    padding-block: 28px;
  }

  .feedback-form {
    padding-inline: 18px;
  }

  .feedback-form .form form {
    padding-inline: 0;
  }

  .feedback-form .form .input input,
  .consultation .form .input input {
    font-size: 16px;
  }
}
