.mb-5 {margin-bottom: 1rem !important;}
.display-2 {font-size: 24px; line-height: 32px;}
h2.display-2 {word-break: break-word; word-wrap: break-word; font-weight: 400;margin:0;}
.video-wrapper {overflow: hidden;}
.media-home-block{padding:40px 0 20px 0;}


@media (max-width: 767px) {
  .gallery-home-block .item {
    margin-bottom: 1rem;
  }
}
.gallery-home-block .gallery-image{margin:10px 0;}
.gallery-home-block .item-wrapper {
  height: 100%;
  position: relative;
}
.gallery-home-block .item-wrapper img {
  height: 100%;
  object-fit: cover;
  border: 1px solid #999 !important;
}
.category-block-product h3{font-size:20px; line-height:32px;}
.category-block-product h3{font-size:24px; line-height:36px;}
.gallery-home-block .item-wrapper:hover img {
  filter: brightness(0.7); /* Затемнение изображения */
}
.gallery-home-block .item-wrapper .icon-wrapper {
  pointer-events: none;
  position: absolute;
  width: 60px;
  height: 60px;
  font-size: 24px;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 50%;
  opacity: 0;
  color: #ffffff !important;
  transform: translateX(-50%) translateY(-50%);
  /*background-color: #edefea !important;*/
  transition: 0.2s;
}
.gallery-home-block .fa-magnifying-glass-plus:before {
  content: "\f00e";
}
.gallery-home-block .item-wrapper:hover .icon-wrapper {
  opacity: 1;
}
.gallery-home-block .carousel-control,
.gallery-home-block .close {
  background: #1b1b1b;
}
.gallery-home-block .carousel-control-prev {
  margin-left: 2.5rem;
}
.gallery-home-block .carousel-control-prev i {
  margin-right: 5px;
}
.gallery-home-block .carousel-control-next {
  margin-right: 2.5rem;
}
.gallery-home-block .carousel-control-next i {
  margin-left: 5px;
 
}
.gallery-home-block .carousel-control {
  display: flex;
  top: 50%;
  width: 60px;
  height: 60px;
  margin-top: -1.5rem;
  font-size: 22px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  border-radius: 50%;
  transition: all 0.3s;
}
@media (max-width: 767px) {
  .gallery-home-block .carousel-control {
    top: auto;
    bottom: 1rem;
  }
}
.gallery-home-block .carousel-indicators {
  position: absolute;
  bottom: 0;
  margin-bottom: 3px;
}
.gallery-home-block .carousel-indicators li {
  max-width: 15px;
  height: 15px;
  width: 15px;
  max-height: 15px;
  margin: 3px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 2px solid #fff;
  border-radius: 50%;
  opacity: 0.5;
  transition: all 0.3s;
}
.gallery-home-block .carousel-indicators li.active,
.gallery-home-block .carousel-indicators li:hover {
  opacity: 0.9;
}
.cid-uMC5jm1ssA .carousel-indicators li::after,
.cid-uMC5jm1ssA .carousel-indicators li::before {
  content: none;
}
.gallery-home-block .carousel-indicators.ie-fix {
  left: 50%;
  display: block;
  width: 60%;
  margin-left: -30%;
  text-align: center;
}
@media (max-width: 768px) {
  .gallery-home-block .carousel-indicators {
    display: none !important;
  }
}
@media (max-width: 991px) {
  .gallery-home-block .carousel-indicators {
    margin-bottom: 3.625rem !important;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media (max-width: 767px) {
  .gallery-home-block .carousel-indicators {
    display: none;
  }
}
.gallery-home-block .carousel-inner {
  display: flex;
  align-items: center;
}
.gallery-home-block .carousel-inner > .active {
  display: block;
}
.gallery-home-block .carousel-control.left {
  left: 0;
  margin-left: 2.5rem;
}
.gallery-home-block .carousel-control.right {
  right: 0;
  margin-right: 2.5rem;
}
.gallery-home-block .carousel-control:hover {
  background: #1b1b1b;
  color: #fff;
  opacity: 1;
}
@media (max-width: 768px) {
  .gallery-home-block .carousel-control,
  .gallery-home-block .carousel-indicators,
  .gallery-home-block .modal .close {
    position: fixed;
  }
}
@media (max-width: 767px) {
  .gallery-home-block .mbr-slider .carousel-control {
    top: auto;
    bottom: 20px;
  }
  .gallery-home-block .mbr-slider > .container .carousel-control {
    margin-bottom: 0;
  }
  .h2mob{margin-top:40px;}
}
.gallery-home-block .carousel-indicators .active,
.gallery-home-block .carousel-indicators li {
  width: 7px;
  height: 7px;
  margin: 3px;
  background: #000000;
  opacity: 0.5;
  border: 4px solid #000000;
}
.gallery-home-block .carousel-indicators .active {
  background: #fff;
}
.gallery-home-block .carousel-indicators li {
  max-width: 15px;
  max-height: 15px;
  border-radius: 50%;
}
.gallery-home-block .modal {
  padding-left: 0 !important;
  position: fixed;
  overflow: hidden;
  padding-right: 0 !important;
}
.gallery-home-block .modal-dialog {
  margin: 0 auto;
  max-width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}
.gallery-home-block .modal-content {
  border-radius: 0;
  border: none;
  background: transparent;
}
.gallery-home-block .modal-body {
  padding: 0;
  display: flex;
  align-items: center;
}
.gallery-home-block .modal-body img {
  width: 100%;
  object-fit: contain;
  max-height: calc(100vh - 1.75rem);
}
.gallery-home-block .carousel {
  width: 100%;
}
.gallery-home-block .modal-backdrop.in {
  opacity: 0.8;
}
.gallery-home-block .modal.fade .modal-dialog {
  transition: margin-top 0.3s ease-out;
}
.gallery-home-block .modal.fade .modal-dialog,
.gallery-home-block .modal.in .modal-dialog {
  transform: none;
}
.gallery-home-block .mbr-gallery .item-wrapper {
  cursor: pointer;
}
.gallery-home-block .content-head {
  max-width: 800px;
}


.cid-uNtd2HaNze {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  background-color: #ffffff;
  border-top: 1px solid #e4e4e4;
}
.cid-uNtd2HaNze .mb-4-fb{padding-bottom:3rem !important;}
.cid-uNtd2HaNze .mbr-fallback-image.disabled {
  display: none;
}
.cid-uNtd2HaNze .mbr-fallback-image {
  display: block;
  background-size: cover;
  background-position: center center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
}
.cid-uNtd2HaNze .nav-tabs .nav-item.open .nav-link:focus,
.cid-uNtd2HaNze .nav-tabs .nav-link.active:focus {
  outline: none;
}
.cid-uNtd2HaNze .nav-tabs {
  flex-wrap: wrap;
  border-bottom: none;
}
@media (max-width: 767px) {
  .cid-uNtd2HaNze .nav-item {
    width: 100%;
    margin-right: 0 !important;
    text-align: center;
  }
}
.cid-uNtd2HaNze .nav-tabs .nav-item {
  margin-right: 1.5rem;
}
.cid-uNtd2HaNze .nav-tabs .nav-link {
  transition: padding 0.3s ease, background-color 0.3s ease;
  border: none;
  padding: 1.2rem 0!important;
  background-color: transparent!important;
  overflow: hidden!important;
}
.cid-uNtd2HaNze .nav-tabs .nav-link:not(.active) {
  color: #777777;
  font-weight:700;
}
.cid-uNtd2HaNze .nav-tabs .nav-link.active {
  color: #333333 !important;
  font-weight:700;
  border-radius: 3px;
    box-shadow: 0px 8px 19px rgba(255, 76, 19, 0.3);
  background-color: #FBED1F !important;
  padding: 19px 29px!important;
}
.cid-uNtd2HaNze .mbr-section-title {
  text-align: center;
  color: #ffffff;
}
.cid-uNtd2HaNze .mbr-section-subtitle {
  text-align: center;
  color: #ffffff;
}
.cid-uNtd2HaNze .mbr-text {
  color: #fff;
  margin: 0;
}
.cid-uNtd2HaNze .content-head {
  max-width: 800px;
}
.cid-uNtd2HaNze .item-wrapper {
  background-color: #ffffff;
  /*padding: 2.25rem;*/
}
@media (max-width: 767px) {
  .cid-uNtd2HaNze .item-wrapper {
    padding: 2rem 1.5rem;
  }
}

@media(max-width:1500px) and (min-width:1400px) {
.logo-style3 {
    padding: 0 0 39px 5px !important;}
}
@media (max-width: 1499px) and (min-width: 992px) {
  /* Логотип и верхняя часть */
  .header-layout5 .header-top .container {
    padding-left: 250px;
  }
  
  .logo-style3 {
    padding: 0 50px 39px 0;
  }
  
  .logo-style3:before {
    right: -25px;
    -webkit-clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 100%, 0% 100%);
            clip-path: polygon(0 0, calc(100% - 80px) 0, 100% 100%, 0% 100%);
  }
  
  /* Меню и поиск */
  .header-layout5 .main-menu ul.mega-menu {
    max-width: 95vw;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .header-layout5 .header-button {
    margin-left: 20px;
  }
  
  .header-layout5 .header-button .search-fb {
    width: 200px;
  }
  
  /* Адаптация мега-меню */
  .header-layout5 .main-menu ul.mega-menu > li {
    flex: 0 0 25%;
    padding: 0 10px;
  }
  
  .header-layout5 .main-menu ul.mega-menu > li > ul {
    padding-right: 10px;
  }
  
  /* Телефоны и контакты */
  .header-layout5 .header-links li {
    font-size: 14px;
  }
  
  .header-layout5 .header-links li > i {
    margin-right: 5px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  /* Дополнительные корректировки для средних экранов */
  .header-layout5 .header-top .container {
    padding-left: 200px;
  }
  
  .logo-style3 {
    padding: 0 30px 39px 0;
  }
  
  .header-layout5 .header-button {
    margin-left: 10px;
  }
  
  .header-layout5 .header-button .search-fb {
    width: 180px;
  }
}

/* Оптимизация для 992px - точка перехода */
@media (max-width: 991px) {
  .header-layout5 .header-top {
    padding: 8px 0;
  }
  
  .header-layout5 .header-top .container {
    padding-left: 15px;
  }
  
  .header-layout5 .header-links ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .header-layout5 .header-links li {
    margin: 0 10px 5px;
  }
  
  .logo-style3 {
    padding: 15px 0;
    margin-top: 0;
    text-align: center;
  }
  
  .logo-style3 img {
    max-height: 50px;
  }
  
  .header-layout5 .menu-area {
    padding: 10px 0;
  }
  
  .header-layout5 .main-menu {
    display: none; /* Будет показано при клике на мобильное меню */
  }
  
  .header-layout5 .header-button {
    margin-left: 0;
  }
  
  .header-layout5 .header-button .search-fb {
    width: 150px;
  }
  
  .th-menu-toggle {
    font-size: 24px;
    padding: 5px 10px;
  }
}