/* Подключение шрифтов Helvetica Neue Cyr */
@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('catalog/view/theme/default/stylesheet/Helvetica/HelveticaNeueCyr-LightItalic.ttf')
    format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Helvetica Neue Cyr';
  src: url('catalog/view/theme/default/stylesheet/Helvetica/HelveticaNeueCyr-MediumItalic.ttf')
    format('truetype');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

/* Легкий курсив (weight: 300) */
.light-italic-text {
  font-family: 'Helvetica Neue Cyr', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-style: italic;
}

/* Средний курсив (weight: 500) */
.medium-italic-text {
  font-family: 'Helvetica Neue Cyr', Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-style: italic;
}

.video-block-module {
  margin-bottom: 40px;
  background-color: #f8f8f8;
  padding: 30px 0;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.video-block-module .container {
  /* max-width: 960px; */
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.video-block-title {
  text-align: center;
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
  line-height: 1.2;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* Співвідношення сторін 16:9 (9 / 16 * 100%) */
  height: 0;
  overflow: hidden;
  background-color: #000; /* Чорний фон, поки відео не завантажиться */
  border-radius: 8px;
}

.video-container iframe,
.video-container .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  background-color: #000;
  color: #fff;
}

.video-placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Зображення заповнює контейнер */
  opacity: 0.7; /* Трохи затемнити заглушку */
}

.play-button {
  position: absolute;
  width: 80px;
  height: 80px;
  background-color: rgba(255, 0, 0, 0.8); /* Червона кнопка YouTube */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  color: #fff;
  transition: background-color 0.3s ease;
}

.play-button::before {
  content: '\25BA'; /* Символ трикутника (Play) */
  margin-left: 5px; /* Невеликий відступ для трикутника */
}

.play-button:hover {
  background-color: rgba(255, 0, 0, 1);
}

.all-menu-wrap .side-menu-wrap .logo img {
  padding: 0;
  object-fit: contain;
}

.content-main-wrap .header-wrap .side-logo-wrap .logo img {
  width: auto !important;
  max-width: 145px !important;
  height: auto;
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 767px) {
  .video-block-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }
  .play-button {
    width: 60px;
    height: 60px;
    font-size: 30px;
  }
}

/*testimonial*/

.testimonials-module {
  margin-bottom: 30px;
  border: 1px solid #ddd;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  /* padding-bottom: 20px; - Цей padding тепер буде на carousel */
}

.testimonials-module .card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
  padding: 15px;
}

.testimonials-module .card-title {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  text-align: center;
}

.testimonials-module .card-body {
  padding: 20px;
  overflow: hidden; /* Важливо для обрізки контенту, що виходить за межі */
}

/* Стилі для контейнера Swiper */
.testimonials-carousel {
  /* Збільшуємо padding-bottom, щоб дати місце пагінації */
  padding-bottom: 50px; /* Збільшено з 20px, щоб точки були нижче */
  position: relative; /* Для позиціонування пагінації та стрілок */
}

/* Стилі для елементів Swiper */
.swiper-slide.testimonial-item {
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: auto; /* Дозволяємо висоті адаптуватися */
}

.testimonial-image img {
  width: 100px; /* Базовий розмір для сусідніх елементів */
  height: 100px;
  object-fit: cover;
  margin: 0 auto 15px auto;
  display: block;
  border-radius: 50%; /* Зробити зображення круглим */
  transition:
    width 0.3s ease,
    height 0.3s ease,
    border-radius 0.3s ease;
}

.testimonial-author {
  font-weight: bold;
  color: #007bff;
  margin-bottom: 5px;
}

.testimonial-position {
  color: #666;
  font-size: 0.9em;
}

/* Візуальне виділення активного (центрального) елемента в Swiper */
.swiper-slide-active.testimonial-item {
  transform: scale(1.1); /* Збільшення розміру */
  background-color: #ffffff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.swiper-slide-active .testimonial-image img {
  width: 130px; /* Збільшення зображення */
  height: 130px;
}
.swiper-slide-active .testimonial-content {
  display: block;
}
/* Стилі для текстового блоку - керуємо його видимістю та висотою */
.testimonial-content {
  display: none;
  /*opacity: 0;*/
  /*visibility: hidden;*/
  /*height: 0px;*/
  overflow: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0s ease 0.4s,
    height 0.4s ease,
    margin-top 0.4s ease;
}

/* Стилізація навігаційних стрілок Swiper */
.swiper-button-prev,
.swiper-button-next {
  color: #fff !important; /* Колір стрілок */
  background-color: rgba(0, 0, 0, 0.5); /* Фон стрілок */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  line-height: 40px;
  font-size: 1.5em; /* Розмір іконки */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.2em; /* Розмір символу стрілки */
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

/* Позиціонування стрілок */
.swiper-button-prev {
  left: 10px;
}

.swiper-button-next {
  right: 10px;
}

/* Стилізація пагінації (точок) */
.swiper-pagination {
  position: absolute; /* Абсолютне позиціонування всередині .testimonials-carousel */
  bottom: 10px; /* Розміщуємо 10px від низу .testimonials-carousel */
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 10; /* Переконаємось, що пагінація зверху інших елементів */
}

.swiper-pagination-bullet {
  background-color: #ccc; /* Колір неактивних точок */
  opacity: 1;
  transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  background-color: #007bff; /* Колір активної точки */
}

.sliderTitle {
  text-align: center;
}

.swiper {
  height: 700px;
}

.swiperBlock {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-height: 520px;
}

.swiperBox {
  aspect-ratio: 1 / 1;
}

.swiperTitle {
  font-weight: 800;
  font-size: 18px;
  font-style: italic;
}

.swiperText {
  font-weight: 200;
  font-size: 16px;
  font-style: italic;
}

.swiperText_box {
  text-align: center;
  width: 100%;
  padding: 0.6rem 0;
  background-color: #fff;
}

.swiperImage_box img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  overflow: hidden;
  object-position: center;
}
.swiperImage_box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px; /* ширина тени */
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.4), transparent);
  pointer-events: none;
  z-index: 2; /* чтобы было поверх */
}

.swiper-slide {
  height: auto !important;
}

.swiperBox.swiper-slide-active {
  /* width: calc(100% + 5%) !important; */
  transform: scale(1.05);
  /* z-index: 1; */
  height: 550px !important;
  border: 1px solid #ccc;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.swiperBox.swiper-slide-active .swiperImage_box img {
  aspect-ratio: auto;
}
.swiperBox.swiper-slide-active .swiperImage_box::before {
  background: none;
}

.swiperBox:not(.swiper-slide-active) .swiperText_box {
  display: none;
}

/* .swiperBox.swiper-slide-active .swiperText_box {
  display: block;
 z-index: 2;
} */

.active_slide {
  position: relative;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  height: 550px;
  padding: 1rem;
}

.active_slide .img_block {
  display: flex;
  justify-content: start;
  align-items: center;
  width: 100%;
  height: 20%;
  gap: 0.5rem;
}

.active_slide .img_block img {
  width: 80px;
}
.active_slide .description_block {
  height: 75%;
  text-align: start;
  font-style: italic;
  font-family: Helvetica, sans-serif;
  margin-top: 1.5rem;
  overflow: auto;
}

.active_slide .description_block::-webkit-scrollbar {
  display: none;
}

.swiper-slide-active .swiperImage_box {
  display: none;
}

.swiperText_box {
  flex-direction: column;
  align-items: center;
}
.swiper-slide-active .swiperText_box {
  display: none;
}
.swiper-slide-active .active_slide {
  display: flex;
}

.active_slide .swiperTitle {
  font-size: 14px;
}
.active_slide .swiperText {
  font-size: 12px;
}
.active_slide .author_block {
  text-align: start;
}
/* .active_slide .close_active_slide_btn {
  display: none;
} */

.flip-card-back .active_slide .img_block img {
  width: 120px;
}
.flip-card-back .active_slide .img_block {
  height: auto !important;
}
.flip-card-back .swiperTitle {
  font-size: 24px;
}
.flip-card-back .swiperText {
  font-size: 18px;
}
.flip-card-back .active_slide .description_block {
  margin-top: 1rem;
  font-size: 14px;
  text-align: start;
}

/* Базові Bootstrap класи для показу/приховування */
@media (max-width: 767px) {
  .d-none.d-md-block {
    display: none !important;
  }
  .d-block.d-md-none {
    display: block !important;
  }
}

@media (min-width: 768px) {
  .d-none.d-md-block {
    display: block !important;
  }
  .d-block.d-md-none {
    display: none !important;
  }
}

/* Стилі для мобільного flip ефекту */
@media (max-width: 767px) {
  .swiper-mobile .swiperBox {
    perspective: 1000px;
    position: relative;
  }

  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 130%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }

  .swiperBox.mobile-active .flip-card-inner {
    transform: rotateY(180deg);
  }

  .flip-card-front,
  .flip-card-back {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    background: #fff;
    border-radius: 10px;
  }

  .flip-card-back {
    transform: rotateY(180deg);
    background: #f8f9fa;
  }

  .mobile_rotate_btn {
    display: inline-block;
    padding: 8px 16px;
    background: #9acbff;
    cursor: pointer;
    margin-top: 10px;
    font-size: 18px;
    font-style: italic;
    transition: background 0.3s;
    border: none;
  }

  .mobile_rotate_btn:hover {
    background: #0056b3;
  }

  .close_active_slide_btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #7d7d7d;
    color: #ccc;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    transition: background 0.3s;
    z-index: 10;
    border: none;
  }
  .swiper-mobile .active_slide {
    display: flex;
    flex-direction: column;
    padding: 1rem;
  }

  .swiper-mobile .swiperImage_box {
    display: flex;
    justify-content: center;
    width: 90%;
    height: 60%;
  }

  .swiper-mobile .swiperText_box {
    display: flex !important;
  }

  .swiper-mobile .swiper-slide-active {
    height: auto !important;
  }

  .swiper-mobile .swiperBlock {
    gap: 0;
  }

  .swiper-mobile .swiperBox.swiper-slide-active .swiperImage_box img {
    aspect-ratio: 1 / 1;
  }
}

/* Медіа-запити для адаптивності Swiper (якщо потрібно додатково до breakpoints) */
@media (max-width: 767px) {
  .swiper-button-prev,
  .swiper-button-next {
    /* display: none;*/
  }
  .testimonials-module .card-body {
    padding-left: 0;
    padding-right: 0;
  }
  .testimonials-carousel {
    padding-bottom: 40px; /* Менший відступ на мобільних */
  }
  .swiper-pagination {
    bottom: 5px; /* Менший відступ знизу на мобільних */
  }
  .swiperBox.swiper-slide-active {
    transform: scale(1) !important; /* Зменшення збільшення на мобільних */
    box-shadow: none !important;
    border: none !important;
  }
  .swiper {
    height: auto !important;
  }
  /* .swiperBox.swiper-slide-active .swiperText_box {
    position: relative;
  }
  .swiperBox:not(.swiper-slide-active) .swiperText_box {
    display: flex;
  } */
  /* .swiperImage_box {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .swiperImage_box img {
    height: 500px !important;
  } */
}

/* START FILTERS */

#filters-selector-wrap {
  /* padding: 0.3rem; */
}

#filters-selector-wrap .panel {
  border-top: 1px solid #d9dee0;
  margin-top: 1rem;
}
#filters-selector-wrap .panel:first-child {
  border-top: none;
  margin-top: 0;
}
#filters-selector-wrap .panel-heading {
  padding: 1rem 1rem 0;
}
#filters-selector-wrap .panel-title {
  margin-bottom: 20px;
  font-size: 14px;
}
#filters-selector-wrap .list-group-item {
  padding: 0.2rem 1.25rem;
  border: none;
}
#filters-selector-wrap .panel-footer {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
#filters-selector-wrap button {
  /* width: 100%; */
  background-color: #2c96b9;
  border-color: #2c96b9;
}
#filters-selector-wrap .list-group-item label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

#filter-selector-wrap .filters-data .inner-wrap {
  padding: 20px 15px !important;
}

/* Start Video */

.formBlock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background-color: #bfdce6;
}

.iconBlock {
  display: flex;
  align-items: center;
  width: 10%;
}

.iconBlock img {
  display: block;
  height: auto;
  width: 100%;
}

.iconBox {
  width: 40%;
}

.textBlock {
  display: flex;
  flex-direction: column;
  width: 45%;
  font-size: 1rem;
}

.textBlock span {
  text-align: center;
  line-height: 22px;
}

.textBlock span:nth-child(1) {
  font-size: 1.5rem;
  font-weight: 600;
}

.buttonBlock {
  display: flex;
  align-items: stretch;
  width: 45%;
}

.phoneInput_box {
  margin-bottom: 0 !important;
  flex: 1;
  min-width: 0;
}

.phoneInput_box .form-control {
  height: 40px;
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.buttonVideo {
  display: inline-block !important;
  width: auto !important;
  flex-shrink: 0;
  height: 40px;
  white-space: nowrap;
  padding: 0 14px;
  border: none;
  border-radius: 0 4px 4px 0;
  background-color: #2c96b9;
}

.form_video_container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 10px;
}

/* END FILTERS */

.phoneInput_box input {
  background: inherit;
  border: 1px solid #767c7e;
}

.phoneInput_box input.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.25);
}

/* media */
@media only screen and (max-width: 1920px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 550px !important;
  }
  .swiper-mobile .swiperBox.swiper-slide-active,
  .flip-card-back .active_slide {
    height: 520px !important;
  }
  .swiper-mobile .swiperBox.swiper-slide-active {
    height: auto !important;
  }
}
@media only screen and (max-width: 1900px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 540px !important;
  }
}
@media only screen and (max-width: 1880px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 530px !important;
  }
}
@media only screen and (max-width: 1860px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 520px !important;
  }
}
@media only screen and (max-width: 1840px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 510px !important;
  }
}
@media only screen and (max-width: 1820px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 500px !important;
  }
}
@media only screen and (max-width: 1800px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 490px !important;
  }
}
@media only screen and (max-width: 1780px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 480px !important;
  }
  .active_slide .img_block img {
    width: 60px !important;
  }
}
@media only screen and (max-width: 1760px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 470px !important;
  }
}
@media only screen and (max-width: 1740px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 460px !important;
  }
}
@media only screen and (max-width: 1720px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 450px !important;
  }
}
@media only screen and (max-width: 1700px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 440px !important;
  }
}
@media only screen and (max-width: 1680px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 430px !important;
  }
}
@media only screen and (max-width: 1660px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 420px !important;
  }
}
@media only screen and (max-width: 1640px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 410px !important;
  }
}
@media only screen and (max-width: 1620px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 400px !important;
  }

  .formBlock {
    padding: 1rem;
  }

  .textBlock span:nth-child(1) {
    font-size: 1rem;
  }

  .textBlock {
    font-size: 0.8rem;
  }
}

@media only screen and (max-width: 1400px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 380px !important;
  }
}
@media only screen and (max-width: 1350px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 360px !important;
  }
}
@media only screen and (max-width: 1200px) {
  .swiperBox.swiper-slide-active,
  .active_slide {
    height: 350px !important;
  }
}
@media only screen and (max-width: 1400px) {
  /* form-video: buttonBlock drops below text */
  .formBlock {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0.75rem;
  }

  .iconBlock {
    width: auto;
    flex-shrink: 0;
  }

  .iconBox {
    width: 44px;
  }

  .form_video_container {
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .textBlock {
    width: 100%;
    text-align: left;
    font-size: 0.72rem;
  }

  .textBlock span:nth-child(1) {
    font-size: 0.85rem;
  }

  .buttonBlock {
    width: 60%;
    min-width: 300px;
    flex-direction: row;
    align-items: center;
    gap: 0;
  }

  .phoneInput_box {
    flex: 1;
    width: auto;
    margin-bottom: 0 !important;
  }
}

@media only screen and (max-width: 990px) {
  /* .swiperBox.swiper-slide-active,
  .active_slide {
    height: 430px !important;
  } */
  .swiper-mobile .swiper-slide {
    height: 520px !important;
  }
  .swiper-mobile .swiperBox.swiper-slide-active {
    height: 520px !important;
  }

  .iconBox {
    width: 36px;
  }

  .textBlock {
    font-size: 0.65rem;
  }

  .textBlock span:nth-child(1) {
    font-size: 0.78rem;
  }

  .phoneInput_box {
    flex: 1;
    width: auto;
    margin-bottom: 0 !important;
  }

  .buttonVideo {
    position: static;
    width: auto;
    white-space: nowrap;
    height: 34px;
    font-size: 0.75rem;
    padding: 0 10px;
    border-radius: 0 4px 4px 0;
  }

  .phoneInput_box .form-control {
    height: 34px;
    font-size: 0.8rem;
    border-radius: 4px 0 0 4px;
  }
}

@media only screen and (max-width: 576px) {
  .swiper-mobile .swiperImage_box {
    height: 50%;
  }

  .formBlock {
    padding: 0.5rem 0.6rem;
    gap: 6px;
  }

  .iconBox {
    width: 36px;
  }

  .textBlock {
    font-size: 0.65rem;
  }

  .textBlock span:nth-child(1) {
    font-size: 0.78rem;
  }

  .phoneInput_box {
    flex: 1;
    width: auto;
  }

  .buttonVideo {
    font-size: 0.68rem;
    padding: 0 7px;
  }

  .textBlock {
    font-size: 0.65rem;
  }

  .textBlock span:nth-child(1) {
    font-size: 0.78rem;
  }
}

/* media */
