/* Hero Slider Styles from Modave */

/* Header Overlay Styles */
.ps-header.ps-header--1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  box-shadow: none;
}
.ps-header.ps-header--1 .ps-header__middle {
  background-color: transparent;
}
.ps-header.ps-header--1 .ps-navigation {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
}
.ps-header.ps-header--1 .ps-navigation .menu > li > a {
  color: #ffffff;
}
.ps-header.ps-header--1 .ps-header__icons .ps-header__item {
  color: #ffffff;
}
.ps-header.ps-header--1 .ps-menu--sticky {
  color: #ffffff;
}
.ps-header.ps-header--1.ps-header--sticky {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.ps-header.ps-header--1.ps-header--sticky .ps-navigation {
  border-color: #f0f2f5;
}
.ps-header.ps-header--1.ps-header--sticky .ps-navigation .menu > li > a {
  color: #103178;
}
.ps-header.ps-header--1.ps-header--sticky .ps-header__icons .ps-header__item {
  color: #103178;
}
.ps-header.ps-header--1.ps-header--sticky .ps-menu--sticky {
  color: #103178;
}
/* Отступ для контента после слайдера когда header абсолютный */
.ps-home--5 > .ps-home__content {
  position: relative;
  z-index: 2;
}

/* Wrap Slider */
.wrap-slider {
  position: relative;
  height: 60vh;
  min-height: 60vh;
}
.wrap-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
/* Утилиты на случай если нужно показать картинку целиком без обрезки */
.wrap-slider img.hero-fit-contain { object-fit: contain; background-color: #000; }
.wrap-slider img.hero-fit-cover  { object-fit: cover; }
/* Overlay для лучшей читаемости текста */
.wrap-slider::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}
.wrap-slider .content-slider {
  display: grid;
  gap: 20px;
}
.wrap-slider .box-title-slider {
  display: grid;
  gap: 10px;
}
.wrap-slider .box-title-slider .subtitle {
  margin-bottom: 12px;
}
.wrap-slider .btn-square {
  max-width: 200px;
  width: 100%;
}

/* Box Content */
.swiper-slide .box-content {
  opacity: 0;
}
.swiper-slide.swiper-slide-active .box-content {
  opacity: 1;
}

.tf-slideshow .box-content {
  position: absolute;
}
.tf-slideshow .box-content.type-3 .content-slider {
  gap: 32px;
}
.tf-slideshow .box-content.type-3 .tag {
  margin-bottom: -4px;
}

/* TF Slideshow */
.tf-slideshow {
  overflow: hidden;
  position: relative;
  height: 60vh;
  min-height: 60vh;
  z-index: 1;
}
.tf-slideshow .swiper,
.tf-slideshow .swiper-wrapper {
  height: 60vh;
  min-height: 60vh;
}
.tf-slideshow .swiper-slide {
  height: 60vh;
  min-height: 60vh;
}
.tf-slideshow .wrap-pagination {
  position: absolute;
  z-index: 10;
  bottom: 15px;
  left: 0;
  right: 0;
}
.tf-slideshow .wrap-pagination .sw-dots {
  margin-top: 0;
}
.tf-slideshow .wrap-pagination.stype-space-2 {
  bottom: 20px;
}
.tf-slideshow .wrap-pagination.stype-space-3 {
  bottom: 30px;
}
.tf-slideshow .card-box {
  border-radius: 20px;
  padding: 20px;
  background-color: var(--white);
  overflow: hidden;
}
.tf-slideshow .sw-dots {
  margin: 0;
}
.tf-slideshow .sw-dots.type-square .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.tf-slideshow .sw-dots.type-square .swiper-pagination-bullet-active {
  background-color: #ffffff;
}
.tf-slideshow .sw-dots.type-circle .swiper-pagination-bullet {
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.tf-slideshow .sw-dots.type-circle .swiper-pagination-bullet-active {
  background-color: #ffffff;
}
/* Swiper пагинация */
.tf-slideshow .swiper-pagination-bullet {
  background-color: rgba(255, 255, 255, 0.5);
  opacity: 1;
}
.tf-slideshow .swiper-pagination-bullet-active {
  background-color: #ffffff;
}
.tf-slideshow .nav-sw {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.tf-slideshow .nav-sw.nav-sw-left {
  left: 30px;
}
.tf-slideshow .nav-sw.nav-sw-right {
  right: 30px;
}
.tf-slideshow:not(.slider-nav-sw) .nav-sw {
  visibility: hidden;
}
.tf-slideshow:not(.slider-nav-sw) .nav-sw.nav-sw-left {
  margin-left: 20px;
}
.tf-slideshow:not(.slider-nav-sw) .nav-sw.nav-sw-right {
  margin-right: 20px;
}
.tf-slideshow:not(.slider-nav-sw):hover .nav-sw {
  visibility: visible;
  margin: 0;
}

/* Slider Style 2 */
.slider-style2 .box-content {
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 5;
  text-align: left;
}
.slider-style2 .box-content .container {
  position: relative;
  z-index: 2;
}
.slider-style2 .box-content .content-slider {
  position: relative;
  z-index: 2;
  text-align: left;
}
.slider-style2 .box-content .box-title-slider {
  text-align: left;
}
.slider-style2 .box-content .box-btn-slider {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}
/* Цвета текста на слайдере */
.slider-style2 .box-content .heading,
.slider-style2 .box-content .title-display,
.slider-style2 .box-content h1,
.slider-style2 .box-content h2,
.slider-style2 .box-content h3,
.slider-style2 .box-content h4,
.slider-style2 .box-content h5,
.slider-style2 .box-content h6 {
  color: #ffffff;
}
.slider-style2 .box-content .body-text-1,
.slider-style2 .box-content p {
  color: #ffffff;
}
.slider-style2 .box-content .tag.text-primary {
  color: #ffffff;
}

/* Slider Effect Fade */
.slider-effect-fade .swiper-slide .fade-item {
  transform: translateY(100px);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -ms-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.slider-effect-fade .swiper-slide .fade-item.fade-box {
  transition-delay: 0.4s;
}
.slider-effect-fade .swiper-slide .fade-item.fade-item-1 {
  transition-delay: 0.5s;
}
.slider-effect-fade .swiper-slide .fade-item.fade-item-2 {
  transition-delay: 0.6s;
}
.slider-effect-fade .swiper-slide .fade-item.fade-item-3 {
  transition-delay: 0.7s;
}
.slider-effect-fade .swiper-slide .fade-item.fade-item-4 {
  transition-delay: 0.8s;
}
.slider-effect-fade .swiper-slide.swiper-slide-active .fade-item {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Typography */
.title-display {
  font-size: 56px;
  line-height: 66px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.heading {
  font-weight: 600;
}
.font-5 {
  font-family: inherit;
}
.fw-7 {
  font-weight: 700;
}
.body-text-1 {
  font-size: 18px;
  line-height: 28px;
}
.text-primary {
  color: #103178;
}
.text-btn-uppercase {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.tag {
  display: inline-block;
}

/* Hero slider button - unified style */
.edz-hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--edz-btn-gap, 8px);
  padding: 1rem 3rem;
  border-radius: var(--edz-btn-border-radius, 5px);
  background: var(--edz-btn-gradient, linear-gradient(90deg, var(--edz-accent, #FD8D27), var(--edz-accent-2, #2b84d8)));
  background-size: 200% 100%;
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  font-weight: var(--edz-btn-font-weight, 700);
  transition: background-position .35s ease, transform .2s ease;
  border: none;
  text-transform: capitalize;
}
.edz-hero-btn:hover {
  background-position: 100% 0;
  transform: translateY(-2px);
}
.edz-hero-btn .text {
  color: inherit;
}

/* Box Button Slider */
.box-btn-slider {
  margin-top: 10px;
}

/* Responsive */
@media (max-width: 1199px) {
  .title-display {
    font-size: 48px;
    line-height: 58px;
  }
}

@media (max-width: 991px) {
  .title-display {
    font-size: 40px;
    line-height: 50px;
  }
  .body-text-1 {
    font-size: 16px;
    line-height: 26px;
  }
}

/* Переопределение для мобильных - максимальная специфичность */
/* КРИТИЧНО: Этот блок должен переопределить styles.css:23424 */
@media only screen and (max-width: 767px) {
  .title-display {
    font-size: 2.5rem;
    line-height: 3rem;
  }

  .wrap-slider::after{
    background: rgba(0, 0, 0, 0.5);
  }
  /* Повышенная специфичность для переопределения styles.css */
  /* Используем все классы из HTML для максимальной специфичности */
  section.tf-slideshow.slider-style2.slider-effect-fade .wrap-slider,
  .ps-home--5 section.tf-slideshow.slider-style2.slider-effect-fade .wrap-slider,
  .ps-home--5 .tf-slideshow.slider-style2.slider-effect-fade .wrap-slider,
  .tf-slideshow.slider-style2.slider-effect-fade .wrap-slider,
  .tf-slideshow .wrap-slider,
  .wrap-slider {
    height: 90vh;
    min-height: 90vh;
  }
  section.tf-slideshow.slider-style2.slider-effect-fade .swiper,
  section.tf-slideshow.slider-style2.slider-effect-fade .swiper-wrapper,
  .ps-home--5 section.tf-slideshow.slider-style2.slider-effect-fade .swiper,
  .ps-home--5 section.tf-slideshow.slider-style2.slider-effect-fade .swiper-wrapper,
  .ps-home--5 .tf-slideshow.slider-style2.slider-effect-fade .swiper,
  .ps-home--5 .tf-slideshow.slider-style2.slider-effect-fade .swiper-wrapper,
  .tf-slideshow.slider-style2.slider-effect-fade .swiper,
  .tf-slideshow.slider-style2.slider-effect-fade .swiper-wrapper,
  .tf-slideshow .swiper,
  .tf-slideshow .swiper-wrapper {
    height: 90vh;
    min-height: 90vh;
  }
  section.tf-slideshow.slider-style2.slider-effect-fade .swiper-slide,
  .ps-home--5 section.tf-slideshow.slider-style2.slider-effect-fade .swiper-slide,
  .ps-home--5 .tf-slideshow.slider-style2.slider-effect-fade .swiper-slide,
  .tf-slideshow.slider-style2.slider-effect-fade .swiper-slide,
  .tf-slideshow .swiper-slide {
    height: 90vh;
    min-height: 90vh;
  }
  section.tf-slideshow.slider-style2.slider-effect-fade,
  .ps-home--5 section.tf-slideshow.slider-style2.slider-effect-fade,
  .ps-home--5 .tf-slideshow.slider-style2.slider-effect-fade,
  .tf-slideshow.slider-style2.slider-effect-fade,
  .tf-slideshow {
    height: 90vh;
    min-height: 90vh;
  }
  .wrap-slider .content-slider {
    gap: 16px;
  }
  .tf-slideshow .box-content.type-3 .content-slider {
    gap: 20px;
  }
  .edz-hero-btn {
    padding: 1rem 2rem;
    font-size: 1.5rem;
  }
}
