.vacancy-archive,
.vacancy-single,
.vacancies-showcase {
  color: #595a61;
  font-family: Montserrat, Arial, sans-serif;
}

body.post-type-archive-vacancy,
body.single-vacancy {
  overflow-x: hidden;
  overflow-x: clip;
}

.vacancies-showcase { padding: 50px 0 78px; }
.vacancies-showcase--about { padding-top: 88px; }
.vacancies-showcase__head { margin-bottom: 44px; text-align: center; }
.vacancies-showcase__title,
.vacancy-single__title {
  margin: 0;
  color: #585960;
  font-weight: 800;
  line-height: .96;
  text-transform: uppercase;
}
.vacancies-showcase__title { max-width: 680px; margin: 0 auto; color: #b7dbe4; font-size: clamp(36px, 3.1vw, 44px); }
.vacancies-showcase__subtitle { margin: 20px 0 0; font-size: 14px; line-height: 1.5; }
.vacancies-showcase__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
.vacancy-card { min-width: 0; }
.vacancy-card__image-link {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.1 / 1;
  border-radius: 15px;
  background: #f2f2f2;
}
.vacancy-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.vacancy-card__image-link:hover .vacancy-card__image,
.vacancy-card__image-link:focus-visible .vacancy-card__image { transform: scale(1.045); }
.vacancy-card__title { margin: 13px 0 15px; color: #3f4045; font-size: 14px; font-weight: 400; }
.vacancy-card__button {
  display: flex;
  width: 100%;
  min-height: 43px;
  margin-top: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid #5d5e64;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s;
}
.vacancy-card__button--primary { background: #5d5e64; color: #fff; }
.vacancy-card__button--primary:hover { background: #b7dbe4; border-color: #b7dbe4; color: #45464c; }
.vacancy-card__button--secondary { background: #fff; color: #55565c; }
.vacancy-card__button--secondary:hover { background: #f4f4f4; color: #222; }

.important--vacancies { padding-top: 30px; padding-bottom: 70px; }
.important--vacancies .important-group { display: block; margin-bottom: 38px; text-align: center; }
.important--vacancies .important-title { margin-bottom: 8px; font-size: 32px; line-height: 1.05; }
.important--vacancies .important-sup { justify-content: center; font-size: 13px; line-height: 1.45; }
.vacancy-archive__studios { padding: 68px 0 30px; }

.vacancy-single { padding-bottom: 95px; }
.vacancy-single__content { width: min(760px, calc(100% - 40px)); margin: 54px auto 0; }
.vacancy-single__header { text-align: center; }
.vacancy-single__title { font-size: clamp(38px, 3.4vw, 46px); }
.vacancy-single__intro { max-width: 610px; margin: 23px auto 0; font-size: 14px; line-height: 1.55; }
.vacancy-single__hero { overflow: hidden; margin: 35px 0 30px; aspect-ratio: 1.55 / 1; border-radius: 18px; background: #eee; }
.vacancy-single__hero-image { width: 100%; height: 100%; object-fit: cover; }
.vacancy-single__lead h2,
.vacancy-section h2 {
  margin: 0 0 20px;
  color: #585960;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.03;
  text-transform: uppercase;
}
.vacancy-single__prose { color: #57585d; font-size: 13px; line-height: 1.55; }
.vacancy-single__prose p { margin: 0 0 16px; }
.vacancy-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 30px 0 55px; }
.vacancy-stat {
  display: flex;
  min-height: 145px;
  padding: 18px;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 14px;
  background: #b9dae2;
  color: #fff;
}
.vacancy-stat strong { font-size: 25px; font-weight: 800; line-height: 1; }
.vacancy-stat span { font-size: 13px; line-height: 1.35; }
.vacancy-section { margin-top: 50px; }
.vacancy-section h3 { margin: 0 0 20px; color: #38393d; font-size: 15px; font-weight: 700; }
.vacancy-checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.vacancy-single .vacancy-checklist li {
  display: flex;
  min-height: 58px;
  padding: 13px 17px;
  align-items: center;
  gap: 13px;
  border: 1px solid #dedede;
  border-radius: 12px;
  color: #34353a;
  font-size: 13px !important;
  line-height: 1.35;
}
.vacancy-checklist__icon {
  display: inline-flex;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #66676c;
  color: #fff;
  font-size: 14px;
}
.vacancy-requirements { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.vacancy-requirement { min-height: 104px; padding: 18px; border-radius: 13px; background: #f1f1f1; color: #33343a; font-size: 13px; line-height: 1.35; }
.vacancy-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px 34px; }
.vacancy-benefit { display: flex; align-items: flex-start; gap: 13px; color: #33343a; font-size: 13px; line-height: 1.35; }
.vacancy-benefit__icon { width: 27px; height: 27px; flex: 0 0 27px; color: #65666c; }
.vacancy-benefit__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vacancy-single__cta { margin-top: 54px; text-align: center; }
.vacancy-single__button {
  min-width: 310px;
  min-height: 48px;
  padding: 12px 30px;
  border: 0;
  border-radius: 11px;
  background: #b7dbe4;
  color: #fff;
  font-size: 13px;
  transition: background-color .2s, color .2s;
}
.vacancy-single__button:hover { background: #5d5e64; }

.vacancy-modal {
  position: fixed;
  z-index: 2147483647 !important;
  inset: 0;
  display: flex;
  padding: 20px;
  align-items: center;
  justify-content: center;
  background: rgba(25, 26, 29, .68);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.vacancy-modal.is-open { opacity: 1; visibility: visible; }
.vacancy-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(840px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 36px 42px 38px;
  border-radius: 18px;
  background: #fff;
  box-shadow: none;
}
.vacancy-modal__close { position: absolute; top: 12px; right: 15px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent !important; box-shadow: none !important; color: #5b5c62; font-size: 32px; line-height: 1; transition: color .2s; }
.vacancy-modal__close:hover,
.vacancy-modal__close:focus-visible { background: transparent !important; box-shadow: none !important; color: #8fc3cf; outline: 0; }
.vacancy-modal__title { margin: 0 0 10px; color: #56575d; font-size: 30px; font-weight: 800; text-transform: uppercase; }
.vacancy-modal__subtitle { max-width: 560px; margin: 0 0 20px; color: #6a6b70; font-size: 14px; line-height: 1.45; }
.vacancy-form br { display: none; }
.vacancy-form .wpcf7-form > p { margin: 0; }
.vacancy-form__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.vacancy-form label.vacancy-form__field { display: block; width: 100%; margin: 0 0 12px; color: #45464b; font-size: 13px; }
.vacancy-form__grid label.vacancy-form__field { margin-bottom: 0; }
.vacancy-form__label { display: block; margin-bottom: 6px; font-weight: 500; }
.vacancy-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.vacancy-form input.vacancy-form__control,
.vacancy-form textarea.vacancy-form__control {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 9px;
  background: #fff;
  color: #393a3f;
  font: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.vacancy-form textarea.vacancy-form__textarea { height: 88px !important; min-height: 88px; resize: vertical; }
.vacancy-form input.vacancy-form__control:focus,
.vacancy-form textarea.vacancy-form__control:focus { border-color: #8fc3cf; box-shadow: none; outline: 0; }
.vacancy-form__file {
  position: relative;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 64px;
  margin: 0 0 12px;
  padding: 12px 16px 12px 54px;
  flex-direction: column;
  justify-content: center;
  border: 1px dashed #9ecbd6;
  border-radius: 11px;
  background: #f4fafb;
  color: #45464b;
  cursor: pointer;
}
.vacancy-form__file::before {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 23px;
  height: 23px;
  border: 2px solid #84bcc9;
  border-radius: 50%;
  color: #84bcc9;
  content: '+';
  font-size: 21px;
  font-weight: 400;
  line-height: 19px;
  text-align: center;
  transform: translateY(-50%);
}
.vacancy-form__file-title { font-size: 13px; font-weight: 600; }
.vacancy-form__file-name { margin-top: 3px; color: #85868b; font-size: 10px; line-height: 1.35; }
.vacancy-form__file-name.has-file { color: #4e7f8b; font-weight: 500; }
.vacancy-form__file-input { position: absolute; width: 1px !important; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.vacancy-form__consent { margin-bottom: 12px; color: #77787d; font-size: 10px; line-height: 1.4; }
.vacancy-form__consent a { color: #557f89; text-decoration: underline; }
.vacancy-form .wpcf7-list-item { margin: 0; }
.vacancy-form .wpcf7-list-item label { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.vacancy-form .wpcf7-list-item input { width: 16px; height: 16px; margin: 1px 0 0; flex: 0 0 16px; accent-color: #8fc3cf; }
.vacancy-form input.vacancy-form__submit { width: 100%; min-height: 48px; border: 0 !important; border-radius: 9px !important; background: #b7dbe4 !important; box-shadow: none !important; filter: none !important; color: #fff !important; font-size: 13px; transition: background-color .2s !important; }
.vacancy-form input.vacancy-form__submit:hover,
.vacancy-form input.vacancy-form__submit:focus { background: #5d5e64 !important; box-shadow: none !important; filter: none !important; }
.vacancy-form .wpcf7-not-valid-tip { margin-top: 5px; font-size: 11px; }
.vacancy-form .wpcf7-response-output { margin: 14px 0 0 !important; padding: 10px 12px !important; border-radius: 8px; font-size: 11px; line-height: 1.4; }
.vacancy-form .wpcf7-spinner { display: block; margin: 8px auto 0; }

@media (max-width: 767px) {
  .vacancies-showcase { padding: 33px 0 55px; overflow: hidden; }
  .vacancies-showcase--about { padding-top: 62px; }
  .vacancies-showcase__head { padding: 0 12px; margin-bottom: 25px; text-align: left; }
  .vacancies-showcase__title { font-size: 33px; }
  .vacancies-showcase__subtitle { margin-top: 15px; font-size: 12px; }
  .vacancies-showcase__list {
    display: flex;
    width: auto;
    max-width: none;
    margin: 0 -12px 0 12px;
    padding-right: 12px;
    gap: 9px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .vacancies-showcase__list::-webkit-scrollbar { display: none; }
  .vacancy-card { width: 76vw; min-width: 76vw; scroll-snap-align: start; }
  .vacancy-card__image-link { aspect-ratio: .4 / 1; border-radius: 11px; }
  .vacancy-card__title { margin: 8px 0 10px; font-size: 11px; }
  .vacancy-card__button { min-height: 39px; border-radius: 8px; font-size: 10px; }
  .important--vacancies { padding-top: 10px; padding-bottom: 38px; }
  .important--vacancies .important-group { padding: 0 12px; margin-bottom: 20px; text-align: left; }
  .important--vacancies .important-sup { justify-content: flex-start; }
  .important--vacancies .important-title { font-size: 28px; }
  .important--vacancies .important-sup { font-size: 11px; }
  .important--vacancies .important-item { min-height: 478px; }
  .important--vacancies .important-content,
  .important--vacancies .important-hover,
  .important--vacancies .important-img { height: 478px; }

  .vacancies-showcase--about .vacancies-showcase__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: auto;
    margin: 0 12px;
    padding-right: 0;
    gap: 8px;
    overflow: visible;
  }
  .vacancies-showcase--about .vacancy-card { width: auto; min-width: 0; }
  .vacancy-archive__studios { padding-top: 38px; }

  .vacancy-single { padding-bottom: 60px; }
  .vacancy-single__content { width: auto; margin: 34px 12px 0; }
  .vacancy-single__header { text-align: left; }
  .vacancy-single__title { font-size: 33px; line-height: .98; }
  .vacancy-single__intro { margin-top: 18px; font-size: 12px; line-height: 1.45; }
  .vacancy-single__hero { margin: 26px 0 24px; aspect-ratio: 1.08 / 1; border-radius: 13px; }
  .vacancy-single__lead h2, .vacancy-section h2 { margin-bottom: 14px; font-size: 21px; }
  .vacancy-single__prose { font-size: 12px; }
  .vacancy-stats { display: flex; margin: 24px -12px 42px 0; padding-right: 12px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .vacancy-stats::-webkit-scrollbar { display: none; }
  .vacancy-stat { width: 43vw; min-width: 43vw; min-height: 152px; padding: 14px; border-radius: 11px; }
  .vacancy-stat strong { font-size: 20px; }
  .vacancy-stat span { font-size: 11px; }
  .vacancy-section { margin-top: 39px; }
  .vacancy-section h3 { margin-bottom: 15px; font-size: 14px; }
  .vacancy-checklist { gap: 8px; }
  .vacancy-single .vacancy-checklist li { min-height: 62px; padding: 11px 12px; gap: 10px; border-radius: 10px; font-size: 11px !important; }
  .vacancy-checklist__icon { width: 21px; height: 21px; flex-basis: 21px; }
  .vacancy-requirements { grid-template-columns: 1fr; gap: 8px; }
  .vacancy-requirement { min-height: 0; padding: 16px; border-radius: 11px; font-size: 11px; }
  .vacancy-benefits { grid-template-columns: 1fr; gap: 17px; }
  .vacancy-benefit { font-size: 11px; }
  .vacancy-benefit__icon { width: 24px; height: 24px; flex-basis: 24px; }
  .vacancy-single__cta { margin-top: 38px; }
  .vacancy-single__button { width: 100%; min-width: 0; }
  .vacancy-modal { padding: 12px; }
  .vacancy-modal__dialog { padding: 34px 20px 24px; border-radius: 14px; }
  .vacancy-modal__title { font-size: 24px; }
  .vacancy-modal__subtitle { margin-bottom: 17px; }
  .vacancy-form__grid { grid-template-columns: 1fr; gap: 10px; }
  .vacancy-form label.vacancy-form__field { margin-bottom: 10px; }
  .vacancy-form__grid label.vacancy-form__field { margin-bottom: 0; }
  .vacancy-form__file { padding-right: 12px; padding-left: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-card__image, .vacancy-modal { transition: none; }
}
