.page-section {
  margin: 50px 0;
}

.widget.c-advantages.c-advantages-template-30 {
  padding: 60px 0;
}

@media (max-width: 768px) {
  .widget.c-advantages.c-advantages-template-30 {
    padding: 0 0 20px !important;
  }

  .page-section {
    margin: 20px 0;
  }
}


.gallery-container {
  position: relative;
  max-width: 1054px;
  margin: 0 auto 30px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-swiper {
  width: 100%;
  height: 745px;
  border-radius: 6px;
  overflow: hidden;
}

.main-swiper.swiper-fade .swiper-wrapper {
  position: relative;
}

.main-swiper.swiper-fade .swiper-slide {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0 !important;
  transition: opacity 0.5s ease;
}

.main-swiper.swiper-fade .swiper-slide-active,
.main-swiper.swiper-fade .swiper-slide-duplicate-active {
  opacity: 1 !important;
  position: relative !important;
}

.gallery-caption {
  position: absolute;
  bottom: -7px;
  left: 5px;
  color: white;
  padding: 10px 15px;
  z-index: 10;
  transition: opacity 0.3s ease;
}

.main-swiper.swiper-fade .swiper-slide:not(.swiper-slide-active) .gallery-caption {
  opacity: 0;
  visibility: hidden;
}

.main-swiper.swiper-fade .swiper-slide-active .gallery-caption {
  opacity: 1;
  visibility: visible;
}

.main-swiper .swiper-slide {
  display: flex;
  flex-direction: column;
}

.main-swiper .swiper-slide img {
  display: block;
  height: auto;
  max-height: 702px;
  min-height: 465px;
  max-width: 100%;
  object-fit: cover;
}

.thumb-swiper {
  height: 150px;
  padding: 20px !important;
}

.thumb-swiper .swiper-slide {
  cursor: pointer;
  transition: opacity 0.3s;
  border-radius: 4px;
  overflow: hidden;
}

.thumb-swiper .swiper-slide-thumb-active {
  border: 2px solid #007bff;
}

.thumb-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-caption {
  padding: 25px 20px 10px;
  color: #2d2d2d;
}

.gallery-controls {
  z-index: 5;
  position: absolute;
  right: 20px;
  bottom: 127px;
  display: flex;
  justify-content: center;
  flex-direction: row-reverse;
  align-items: center;
  margin-top: 15px;
  gap: 6px;
}

.gallery-fullscreen {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background 0.3s;
}

.gallery-fullscreen:hover {
  background: #0056b3;
}

.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.fullscreen-mode .main-swiper .swiper-slide img {
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.fullscreen-mode .main-swiper {
  height: 70vh;
  width: 80vw;
}

.fullscreen-mode .thumb-swiper {
  width: 80vw;
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-button-next,
.swiper-button-prev {
  color: white;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 20px;
}

.gallery-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 15px 0;
}

.gallery-prev,
.gallery-next {
  width: 37px;
  height: 37px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.gallery-prev:hover,
.gallery-next:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-prev i,
.gallery-next i {
  pointer-events: none;
  font-size: 15px;
  color: #ccc;
  transition: color 0.3s ease;
}

.gallery-prev:active,
.gallery-next:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-fullscreen {
  padding: 5px;
  width: 37px;
  height: 37px;
  background-color: #fff;
  color: #ccc;
  border: 1px solid #ccc;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gallery-fullscreen:hover {
  background-color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-fullscreen:active {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.gallery-fullscreen i {
  font-size: 16px;
}

.intec-ui.intec-ui-control-button.intec-ui-mod-round-3 {
  border-radius: 8px !important;
}

.intec-ui.intec-ui-control-button.intec-ui-mod-round-2 {
  border-radius: 8px !important;
}

.menu-item-buttom {
  font-size: 14px;
  line-height: 1.5;
  padding: 20px;
  text-transform: uppercase;
  font-weight: bold;
  background: #e41628;
  display: block;
  text-align: center;
  color: #fff;
}

.intec-template .intec-template-part.intec-template-part-title, .intec-template .widget .widget-header .widget-title {
  font-weight: 500 !important;
  font-size: 30px !important;
  line-height: 37px !important;
  color: #1B1E25;
}

.widget.c-about-ref.c-about-ref-template-1 .widget-name {
  font-weight: 500 !important;
  font-size: 30px !important;
  line-height: 37px !important;
}

@media (max-width: 1399px) {
  .main-swiper {
    height: 650px;
  }

  .main-swiper .swiper-slide img {
    max-height: 600px;
  }
}

@media (max-width: 1225px) {
  .main-swiper {
    height: 630px;
  }
}

/* @media (max-width: 1299px) {
  .main-swiper .swiper-slide img {
    max-height: 595px;
  }
} */

@media (max-width: 1119px) {
  .main-swiper {
    height: 565px;
  }
}


/* @media (max-width: 1199px) {
  .main-swiper .swiper-slide img {
    max-height: 540px;
  }

  .main-swiper {
    height: 590px;
  }
} */

@media (max-width: 1099.98px) {
  .main-swiper {
    height: 560px;
  }
}

@media (max-width: 1069.98px) {
  .fullscreen-mode .main-swiper {
    height: 55vh;
    width: 90vw;
  }

  .main-swiper {
    height: 530px;
  }

  .main-swiper .swiper-slide img {
    min-height: 440px;
  }
}

@media (max-width: 999.98px) {
  .main-swiper {
    height: 490px;
  }

  .gallery-caption {
    left: 3px;
  }
}

@media (max-width: 799.98px) {
  .gallery-caption {
    max-width: 230px;
  }
}


@media (max-width: 767.98px) {

  .gallery-prev i,
  .gallery-next i {
    font-size: 18px;
  }

  .widget.c-about-ref.c-about-ref-template-1 .widget-preview p:last-child {
    margin-bottom: 0;
  }

  .ns-bitrix.c-menu.c-menu-mobile-1 .menu-panel-logotype {
    width: 180px !important;
  }
}

@media (max-width: 576.98px) {
  .main-swiper .swiper-slide img {
    min-height: 365px;
  }

  .main-swiper {
    height: 430px;
  }


  .gallery-caption {
    max-width: 180px;
    padding: 20px 10px;
    font-size: 12px;
  }

  .thumb-swiper {
    height: 115px;
    padding: 10px !important;
  }

  .gallery-controls {
    right: 10px;
    bottom: 110px;
  }

  .intec-template .intec-template-part.intec-template-part-title, .intec-template .widget .widget-header .widget-title {
    font-weight: 500 !important;
    font-size: 30px !important;
    line-height: 37px !important;
    color: #1B1E25;
  }

  .widget.c-about-ref.c-about-ref-template-1 .widget-name {
    font-weight: 500 !important;
    font-size: 30px !important;
    line-height: 37px !important;
  }

  .c-slider.c-slider-template-1 .widget-item-header[data-view] {
    font-weight: 500 !important;
    font-size: 30px !important;
    line-height: 37px !important;
  }
}

@media (max-width: 374.98px) {

  .gallery-caption {
    max-width: 150px;
    padding: 20px 10px;
  }
}

/* Меню */
.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu[data-role="menu"] {
  display: none !important;
  position: static !important;
  opacity: 1 !important;
  left: auto !important;
  top: auto !important;
  box-shadow: none;
  border: none;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item[data-selected=true] .menu-item-submenu[data-role="menu"] {
  display: block !important;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu[data-role="menu"] .menu-item-submenu[data-role="menu"] {
  display: none !important;
  position: absolute !important;
  top: 1px !important;
  left: 0 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu-item:hover .menu-item-submenu[data-role="menu"] {
  display: block !important;
  opacity: 1 !important;
  transform: translateX(100%);
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu-item {
  position: relative;
  border: none;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu .menu-item-submenu-item:last-child {
  border-bottom: none;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu-item:not(:has(.menu-item-submenu)) .menu-item-arrow {
  display: none;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu-item:has(.menu-item-submenu) .menu-item-arrow {
  display: block;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item-submenu[data-view="simple.1"] .menu-item-submenu-item-text {
  padding: 20px 35px 19px 45px;
}

.ns-bitrix.c-menu.c-menu-vertical-1 .menu-item[data-selected=true] .menu-item-text .menu-item-arrow {
  display: none;
}

.menu-submenu-section-items-wrapper[data-limit-items] .hidden-item {
  display: none !important;
}

.menu-submenu-section-items-wrapper .hidden-item {
  display: none !important;
}

.show-more-btn {
  margin-top: 2px;
  text-align: center;
}

.show-more-button {
  display: inline-block;
  padding: 8px;
  background: transparent;
  border-radius: 4px;
  border: none;
  color: #404040;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.show-more-button:hover {
  opacity: 0.7;
}

.show-less-text {
  display: none;
}

.menu-submenu-section-items-wrapper.expanded .show-more-text {
  display: none;
}

.menu-submenu-section-items-wrapper.expanded .show-less-text {
  display: inline;
}