/* ── Секція 005 — Актуальні Вакансії ── */

.vacancies {
  position: relative;
  background-color: transparent;
  padding: 15px 0 30px;
}

.vacancies__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.vacancies__header {
  text-align: center;
}

.vacancies__kicker {
  font-family: "u3", sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #ffa600);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.vacancies__title {
  font-family: "u3", sans-serif;
  font-weight: 500;
  font-size: 38px;
  color: #ffe7ba;
  text-transform: uppercase;
  text-align: center;
  line-height: normal;
  margin: 0;
}

.vacancies__title a {
  color: inherit;
  text-decoration: none;
}

/* Фільтри вакансій */
.vacancies-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 0;
  margin-bottom: 10px;
}

.vacancies-tab {
  background: rgba(14, 34, 43, 0.8);
  border: 1px solid rgba(255, 231, 186, 0.2);
  color: rgba(255, 231, 186, 0.8);
  padding: 8px 18px;
  border-radius: 0;
  font-family: "u3", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.vacancies-tab:hover {
  background: rgba(255, 166, 0, 0.15);
  border-color: var(--gold, #ffa600);
  color: #ffffff;
}

.vacancies-tab.active {
  background: #ffa600;
  border-color: #ffa600;
  color: #001e28;
  font-weight: 700;
  box-shadow: 0 0 12px rgba(255, 166, 0, 0.4);
}

.vacancies-tab__badge {
  background: rgba(0, 0, 0, 0.2);
  padding: 1px 6px;
  border-radius: 0;
  font-size: 11px;
}

.vacancies-tab.active .vacancies-tab__badge {
  background: rgba(0, 30, 40, 0.25);
  color: #001e28;
}

/* Каруселька */
.vacancies__carousel {
  display: flex;
  align-items: center;
  gap: 45px;
}

.vacancies__track-wrap {
  width: min(1100px, 100%);
  overflow: hidden;
}

.vacancies__track {
  display: flex;
  transition: transform 0.4s ease;
}

/* Одна "сторінка" = 6 карток 3×2 */
.vacancies__page {
  display: grid;
  grid-template-columns: repeat(3, 356px);
  gap: 16px;
  flex-shrink: 0;
  width: 1100px;
}

/* Картка */
.vacancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 154px;
  padding: 16px 18px 34px;
  background: rgba(21, 40, 48, 0.9);
  border: 1px solid rgba(255, 231, 186, 0.3);
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.vacancy-card--priority {
  border-color: rgba(255, 166, 0, 0.55);
  background: rgba(20, 48, 60, 0.9);
}

.vacancy-card__badge {
  position: absolute;
  bottom: 11px;
  left: 18px;
  background: #ffa600;
  color: #001e28;
  font-family: "u3", sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 0;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(255, 166, 0, 0.35);
  pointer-events: none;
}

.vacancies__cta-wrap {
  text-align: center;
  margin-top: 24px;
}

.vacancies__cta-link,
.hero__cta-btn--secondary {
  background: transparent;
  color: #ffe7ba;
  border: 1px solid rgba(255, 231, 186, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 30px;
  font-family: "u3", sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vacancies__cta-link:hover,
.hero__cta-btn--secondary:hover {
  background: rgba(255, 231, 186, 0.12);
  border-color: #ffa600;
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 166, 0, 0.28);
  transform: translateY(-2px);
}

.vacancy-card:hover {
  border-color: rgba(255, 166, 0, 0.7);
  background: rgba(21, 40, 48, 1);
}

.vacancy-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vacancy-card__title {
  font-family: "u3", sans-serif;
  font-weight: 500;
  font-size: 21px;
  color: #ffe7ba;
  line-height: 1.25;
  flex: 1;
}

.vacancy-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  color: #ffe7ba;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.vacancy-card:hover .vacancy-card__icon {
  border-color: rgba(255, 166, 0, 0.5);
}

.vacancy-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-family: "u3", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.3;
}

/* Стрілки каруселі */
.vacancies__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 62px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.vacancies__arrow:hover {
  opacity: 1;
}
.vacancies__arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Dots навігація */
.vacancies__dots {
  display: flex;
  gap: 8px;
}

.vacancies__dot {
  width: 8px;
  height: 8px;
  background: rgba(255, 231, 186, 0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s ease;
}

.vacancies__dot.active {
  background: #ffe7ba;
}

/* Лічильник вакансій прихований на десктопі */
.vacancies__counter {
  display: none;
}

/* ── Мобільна Версія — < 768px ── */
@media (max-width: 767px) {
  .vacancy-card {
    height: auto;
    min-height: 148px;
    padding: 14px 16px 32px;
    gap: 6px;
  }

  .vacancy-card__title {
    font-size: 18px;
  }

  .vacancy-card__icon {
    width: 30px;
    height: 30px;
  }

  .vacancy-card__tags {
    font-size: 14px;
    gap: 2px 6px;
    padding-bottom: 0;
  }

  .vacancy-card__badge {
    bottom: 10px;
    left: 16px;
    font-size: 9.5px;
    padding: 2px 6px;
  }

  /* Точки на мобільному показуємо компактною стрічкою */
  .vacancies__dots {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 20px;
    overflow-x: auto;
    overflow-y: hidden;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .vacancies__dots::-webkit-scrollbar {
    display: none;
  }

  .vacancies__dot {
    flex-shrink: 0;
  }

  .vacancies__cta-link,
  .hero__cta-btn--secondary {
    width: 100%;
    max-width: 320px;
    height: 46px;
    font-size: 13px;
    padding: 0 16px;
  }
}

/* ── ПЛАНШЕТ — 768px … 1279px ── */
@media (min-width: 768px) and (max-width: 1279px) {
  .vacancy-card {
    height: 160px;
    min-height: 0;
    padding: 16px 16px 32px;
    gap: 6px;
  }

  .vacancy-card__title {
    font-size: 19px;
  }

  .vacancy-card__icon {
    width: 32px;
    height: 32px;
  }

  .vacancy-card__tags {
    font-size: 15px;
    gap: 2px 6px;
  }

  .vacancy-card__badge {
    bottom: 10px;
    left: 16px;
  }

  .vacancies__dots {
    padding: 0;
    justify-content: center;
  }
}
