/* Production hosting fixes — keep Aspro look, fix overflow, CLS, forms, mobile */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}
img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}
iframe {
  border: 0;
}
table {
  max-width: 100%;
}
.table-scroll,
.right_block {
  overflow-x: auto;
}
.item-views.catalog.sections .item img,
.product-block img {
  width: auto;
  max-height: 160px;
  object-fit: contain;
}
.banners-big .item {
  background-size: cover;
  background-position: center;
}

#callback-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#callback-modal.is-open {
  display: flex;
}
#callback-modal .callback-dialog {
  background: #fff;
  border-radius: 12px;
  max-width: 440px;
  width: 100%;
  padding: 24px;
  position: relative;
  color: #222;
}
#callback-modal h2 {
  margin: 0 0 16px;
  font-size: 22px;
  color: #005695;
}
#callback-modal label {
  display: block;
  margin: 10px 0 4px;
  font-size: 13px;
}
#callback-modal input,
#callback-modal textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
}
#callback-modal textarea {
  min-height: 90px;
  resize: vertical;
}
#callback-modal .callback-actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
#callback-modal .callback-actions button,
#callback-modal .callback-actions a.btn {
  cursor: pointer;
}
#callback-modal .callback-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
}
#callback-modal .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}
#callback-status {
  margin-top: 10px;
  font-size: 14px;
}

#mobilemenu.site-mobile-open {
  display: block !important;
  visibility: visible !important;
  left: 0 !important;
  transform: none !important;
}
body.mobile-menu-open {
  overflow: hidden;
}

.search-results-box {
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-top: 8px;
  max-height: 280px;
  overflow: auto;
}
.search-results-box a {
  display: block;
  padding: 8px 12px;
  color: #005695;
}
.search-results-box a:hover {
  background: #f4f7fb;
}

@media (max-width: 991px) {
  .header_1 .slogan,
  .header_1 .menu-only,
  .header_1 .address {
    display: none;
  }
  .white-container {
    margin-left: 12px;
    margin-right: 12px;
    padding: 16px !important;
  }
  .item-views.catalog.sections .item {
    display: block;
  }
  .row-eq-height {
    flex-wrap: wrap;
  }
  .product-block {
    height: auto;
    margin-bottom: 20px;
  }
  body.em-inner .modal-dialog {
    width: min(94vw, 1040px) !important;
    margin: 12px auto !important;
  }
}

@media (max-width: 360px) {
  .callback-block.btn {
    font-size: 12px;
    padding: 6px 10px;
  }
}
