/* Страница "Вакансии" — templates/page-vakansii.php */

.vakansii .container {
  position: relative;
}

/* ---------- Hero ---------- */

.vac-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  display: flex;
  align-items: flex-end;
  min-height: 460px;
}

.vac-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
}

.vac-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.vac-hero .container {
  position: relative;
  z-index: 2;
  padding-top: 160px;
  padding-bottom: 70px;
}

.vac-hero__title {
  font-weight: 700;
  font-size: 60px;
  line-height: 70px;
  max-width: 767px;
  margin: 0 0 20px;
}

.vac-hero__desc {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  max-width: 664px;
  margin: 0;
  opacity: 0.95;
}

.vac-skills_box {
  max-width: 800px;
}

@media (min-width: 992px) {
  .vac-hero {
    min-height: 620px;
  }
}

@media (min-width: 1200px) {
  .vac-hero {
    min-height: 720px;
  }
}

@media (min-width: 1440px) {
  .vac-hero {
    min-height: 811px;
  }
}

/* ---------- Section title (shared) ---------- */

.vac-section-title {
  color: #3f5199;
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  margin: 0 0 40px;
}

/* ---------- Открытые вакансии ---------- */

.vac-list {
  padding: 80px 0;
}

.vacancy-card {
  background: #d8e7ff;
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 30px;
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
}

.vacancy-card__title {
  color: #3f5199;
  font-weight: 600;
  font-size: 26px;
  line-height: 32px;
  margin: 0 0 24px;
}

.vacancy-card__body {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.vacancy-card__label {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #797979;
}

.vacancy-card__value {
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
  color: #18181a;
}

.vacancy-card__value--salary {
  font-size: 20px;
  line-height: 32px;
  color: #3f5199;
}

.vacancy-card__divider {
  height: 1px;
  background: #e5eaf5;
  margin: 20px 0;
}

.vacancy-card__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 20px;
  margin-bottom: 30px;
}

.vacancy-card__btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.vac-empty {
  font-size: 20px;
  line-height: 32px;
  opacity: 0.8;
}

/* ---------- Детальная страница вакансии ---------- */

.vac-detail-head {
  padding: 60px 0 80px;
}

.vacancy-card--detail {
  height: auto;
  margin-bottom: 0;
}

.vac-badge {
  display: inline-flex;
  align-items: center;
  background: #3f5199;
  color: #fff;
  border-radius: 19px;
  padding: 7px 20px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 20px;
}

.vac-detail-title {
  color: #3f5199;
  font-weight: 700;
  font-size: 60px;
  line-height: 70px;
  margin: 0;
}

.vac-quote {
  padding: 0 0 80px;
}

.vac-quote__box {
  position: relative;
  overflow: hidden;
  background: #3f5199;
  border-radius: 20px;
  color: #fff;
  padding: 60px 400px 60px 90px;
}

.vac-quote__decor {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 290px;
  height: 290px;
  opacity: 0.6;
}

.vac-quote__decor img {
  width: 100%;
  height: 100%;
  display: block;
}

.vac-quote__title {
  position: relative;
  z-index: 1;
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  margin: 0 0 24px;
  max-width: 860px;
}

.vac-quote__text {
  position: relative;
  z-index: 1;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  max-width: 787px;
  opacity: 0.95;
}

.vac-quote__text p {
  margin: 0 0 16px;
}

.vac-quote__text p:last-child {
  margin-bottom: 0;
}

.vac-lists {
  padding: 0 0 80px;
}

.vac-requirements {
  padding: 0 0 80px;
}

.vac-requirements__box {
  background: #d8e7ff;
  border-radius: 20px;
  padding: 50px 60px;
}

.vac-requirements__box .vac-section-title {
  margin-bottom: 24px;
}

.vac-bullets {
  list-style: none;
  margin: 0;
  padding: 0;
}

.vac-bullets li {
  position: relative;
  padding-left: 25px;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 16px;
}

.vac-bullets li:last-child {
  margin-bottom: 0;
}

.vac-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3f5199;
}

.vac-skills {
  padding: 0 0 80px;
}

.vac-skills__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.vac-skills__tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #3f5199;
  border-radius: 19px;
  padding: 7px 16px;
  color: #3f5199;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
}

.vac-skills__note {
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  max-width: 787px;
  opacity: 0.85;
}

.vac-skills--note-only {
  padding: 0 0 40px;
}

/* ---------- Как откликнуться ---------- */

.vac-apply {
  padding: 40px 0 120px;
}

.vac-apply__desc {
  font-weight: 400;
  font-size: 20px;
  line-height: 32px;
  margin: 20px 0 0;
  max-width: 572px;
  opacity: 0.85;
}

.vac-apply-card {
  background: #fff4e7;
  border-radius: 20px;
  padding: 40px;
}

.vacancy-form__field {
  margin-bottom: 20px;
}

.vacancy-form__label {
  display: block;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  margin-bottom: 10px;
  color: #18181a;
}

.vacancy-form__textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
}

.vacancy-form__file {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.vacancy-form__file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0ecff;
  border-radius: 6px;
  padding: 8px 16px;
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  color: #18181a;
  cursor: pointer;
  overflow: hidden;
}

.vacancy-form__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.vacancy-form__file-name {
  font-weight: 500;
  font-size: 16px;
  color: #757575;
}

.vacancy-form .form__submit {
  margin-top: 10px;
}

.vacancy-form .checkbox {
  margin-top: 20px;
}

.vacancy-form__status {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.4;
  min-height: 1px;
}

.vacancy-form__status--ok {
  color: #2e7d32;
}

.vacancy-form__status--error {
  color: #c62828;
}

/* ---------- Адаптив ---------- */

@media (max-width: 1199px) {
  .vac-hero__title {
    font-size: 46px;
    line-height: 54px;
  }

  .vac-section-title {
    font-size: 32px;
    line-height: 40px;
  }
}

@media (max-width: 991px) {
  .vac-hero {
    min-height: 420px;
  }

  .vac-hero .container {
    padding-top: 110px;
    padding-bottom: 50px;
  }

  .vac-hero__title {
    font-size: 34px;
    line-height: 42px;
    max-width: 100%;
  }

  .vac-hero__desc {
    max-width: 100%;
  }

  .vac-list,
  .vac-apply {
    padding: 50px 0;
  }

  .vac-apply-card {
    margin-top: 30px;
    padding: 30px;
  }

  .vac-detail-head {
    padding: 40px 0 50px;
  }

  .vac-detail-title {
    font-size: 34px;
    line-height: 42px;
  }

  .vacancy-card--detail {
    margin-top: 30px;
  }

  .vac-quote,
  .vac-lists,
  .vac-requirements,
  .vac-skills {
    padding-bottom: 50px;
  }

  .vac-quote__box {
    padding: 40px 40px 200px;
  }

  .vac-quote__decor {
    top: auto;
    bottom: 30px;
    right: 30px;
    width: 160px;
    height: 160px;
  }

  .vac-quote__title {
    font-size: 30px;
    line-height: 38px;
  }

  .vac-requirements__box {
    padding: 30px;
  }
}

@media (max-width: 575px) {
  .vac-hero__title {
    font-size: 28px;
    line-height: 34px;
  }

  .vac-section-title {
    font-size: 26px;
    line-height: 32px;
    margin-bottom: 24px;
  }

  .vacancy-card {
    padding: 20px;
  }

  .vacancy-card__body {
    padding: 20px;
  }

  .vacancy-card__stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .vac-apply-card {
    padding: 20px;
  }

  .vac-detail-title {
    font-size: 26px;
    line-height: 32px;
  }

  .vac-badge {
    font-size: 15px;
    padding: 6px 16px;
  }

  .vac-quote__box {
    padding: 30px 30px 180px;
  }

  .vac-quote__title {
    font-size: 24px;
    line-height: 30px;
  }

  .vac-requirements__box {
    padding: 20px;
  }
}
