.vacancies-video {
  padding-bottom: 50px;
  margin-top: 100px;
}

.vacancies-video .container {
  max-width: 1312px;
  padding: 0 20px;
  margin: 0 auto;
}

.vacancies-video__wrapper {
  display: flex;
  gap: 80px;
  align-items: center;
}

.vacancies-video__content {
  position: relative;
  flex: 0 0 296px;
  width: 296px;
  margin-bottom: 0;
  text-align: center;
}

.vacancies-video__content:before {
  position: absolute;
  right: 0;
  bottom: 100%;
  display: block;
  width: 170px;
  height: 86px;
  content: '';
  background: url(../img/home-hire.svg) center / contain no-repeat;
}

.vacancies-video__title {
  margin: 0 0 8px;
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: 124%; /* 52.08px */
  color: var(--Primary-teal);
  text-align: center;
}

.vacancies-video__subtitle {
  max-width: 236px;
  margin: 0 auto;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  font-variant: all-small-caps;
  line-height: 140%; /* 22.4px */
  color: var(--Neutral-100);
  text-align: center;
  text-transform: uppercase;
}

.vacancies-video__slider-wrapper {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 52px; /* Місце для стрілок навігації */
  overflow: hidden; /* Обрізаємо зайві слайди тут */
}

.vacancies-video__slider {
  width: 100%;
  padding: 30px 0; /* Місце для тіні активного слайду */
  overflow: hidden;
}

.vacancies-video__slider .swiper-wrapper {
  align-items: center;
  padding: 20px 0;
}

.vacancies-video__slider .swiper-slide {
  height: auto;
  max-height: 463px;
  aspect-ratio: 260 / 463;
  transition: transform 0.3s ease;
}

.vacancies-video__slider .swiper-slide-active {
  z-index: 3;
  transform: scale(1.077);
}

/* Кнопки навігації — знаходяться ПОЗА .swiper, відносно __slider-wrapper */
.vacancies-video__nav-prev,
.vacancies-video__nav-next {
  position: absolute;
  top: 50%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 38px;
  padding: 0;
  cursor: pointer;
  background: none;
  border: none;
  transition: opacity 0.1s;
}

.vacancies-video__nav-prev {
  left: 0;
  transform: translateY(-50%) rotate(180deg);
}

.vacancies-video__nav-next {
  right: 0;
  transform: translateY(-50%);
}

.vacancies-video__nav-prev:hover,
.vacancies-video__nav-next:hover {
  opacity: 0.7;
  transition: 0.3s;
}

.vacancies-video__slider .video-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.vacancies-video__slider .swiper-slide-active .video-container {
  box-shadow: 1px 1px 10px 0 rgba(0, 0, 0, 0.38);
}

.vacancies-video__slider .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Постер поверх відео (до відтворення) */
.vacancies-video__slider .video-container .video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.vacancies-video__slider .video-container .action {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vacancies-video__slider .video-container .action__play-icon {
  width: 23%; /* ~60px при ширині картки 260px, масштабується пропорційно */
  height: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.vacancies-video__slider .video-container:hover .action__play-icon {
  transform: scale(1.15);
}

/* Ховати кнопку play під час відтворення */
.vacancies-video__slider .video-container.is-playing .action {
  pointer-events: none;
  opacity: 0;
}

.vacancies-video__slider .video-container.is-playing .video-poster {
  opacity: 0;
}

.vacancies-video__swiper-pagination {
  position: absolute;
  display: none;
  visibility: hidden;
}

@media screen and (max-width: 998px) {
  .vacancies-video__wrapper {
    flex-direction: column;
    gap: 12px;
  }

  .vacancies-video__content {
    flex: 0 0 auto;
  }

  .vacancies-video__slider-wrapper {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .vacancies-video {
    padding-bottom: 0;
    margin-top: 65px;
  }

  .vacancies-video__content {
    width: 100%;
  }

  .vacancies-video__title {
    max-width: 260px;
    margin: 0 auto 9px;
    font-size: 28px;
    line-height: 1.4;
    text-align: center;
  }

  .vacancies-video__subtitle {
    max-width: 280px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    text-align: center;
  }

  .vacancies-video__slider-wrapper {
    padding: 0 40px;
  }
}

/* Пагінація — показуємо лише на мобільних */
.vacancies-video__slider .swiper-pagination {
  display: none;
}

@media screen and (max-width: 560px) {
  .vacancies-video__slider-wrapper {
    padding: 0 32px;
  }

  .vacancies-video__slider .swiper-slide {
    max-width: 280px;
    height: auto;
    max-height: 498px;
    aspect-ratio: 140 / 249;
  }

  .vacancies-video__slider .swiper-slide-active {
    transform: none;
  }

  /* Обрізаємо краї сусідніх слайдів (scale вимкнено, кнопки поза swiper) */
  .vacancies-video__slider {
    padding: 0 0 40px;
    overflow: hidden;
  }

  .vacancies-video__swiper-pagination {
    position: absolute;
    bottom: 0;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    visibility: visible;
  }

  .vacancies-video__swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    margin: 0;
    background-color: var(--Neutral-200);
    border: 2px solid transparent;
    opacity: 1;
  }

  .vacancies-video__swiper-pagination .swiper-pagination-bullet.swiper-pagination-bullet-active {
    background-color: transparent !important;
    border: 2px solid var(--Neutral-200) !important;
  }
}
