.hero-section {
  position: relative;
}

.vacancy-widget {
  position: absolute;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 11px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a00, #ff5a00);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  box-shadow: 0 5px 16px rgba(217, 83, 0, 0.28);
  transform-origin: center center;
  animation: vacancyGrowFinal 900ms cubic-bezier(.18,.89,.32,1.28) 180ms 1 both;
}

.vacancy-widget:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 20px rgba(217, 83, 0, 0.34);
}

.vacancy-widget:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.4);
  outline-offset: 3px;
}

.vacancy-widget__text {
  white-space: nowrap;
}

.vacancy-widget__arrow {
  display: inline-block;
  flex: 0 0 auto;
  font-size: 1.35em;
  font-weight: 900;
  line-height: 1;
  animation: vacancyArrowHint 1.6s ease-in-out infinite;
}

@keyframes vacancyArrowHint {
  0%, 55%, 100% {
    transform: translateX(0);
  }
  72% {
    transform: translateX(5px);
  }
  86% {
    transform: translateX(1px);
  }
}

@keyframes vacancyGrowFinal {
  0% {
    opacity: 0;
    transform: scale(.035);
  }
  68% {
    opacity: 1;
    transform: scale(1.10);
  }
  84% {
    transform: scale(.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .vacancy-widget {
    width: calc(100% - 16px);
    max-width: calc(100% - 16px);
    padding-left: 8px;
    padding-right: 8px;
    gap: 5px;
    font-size: clamp(11px, 3.35vw, 15px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-widget,
  .vacancy-widget__arrow {
    animation: none;
  }
}

.vacancy-modal[hidden] {
  display: none !important;
}

.vacancy-modal {
  position: fixed;
  inset: 0;
  z-index: 1210;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(72px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(5, 13, 24, 0.74);
}

.vacancy-modal__dialog {
  position: relative;
  box-sizing: border-box;
  width: min(100%, 420px);
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 24px;
  border-radius: 8px;
  color: #f7fbff;
  background: #101d2d;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.vacancy-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.vacancy-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.vacancy-modal__description {
  margin: -4px 0 20px;
  color: rgba(247, 251, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

.vacancy-modal__title {
  margin: 0 44px 18px 0;
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.vacancy-modal__form {
  display: grid;
  gap: 14px;
}

.vacancy-modal__group {
  display: grid;
  gap: 7px;
}

.vacancy-modal__label {
  color: rgba(247, 251, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.35;
  font-weight: 600;
}

.vacancy-modal__field {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #101d2d;
  background: #fff;
  font: inherit;
}

.vacancy-modal__status {
  min-height: 1.35em;
  margin: 2px 0 0;
  color: rgba(247, 251, 255, 0.86);
  font-size: 0.93rem;
  line-height: 1.35;
}

.vacancy-modal__status--success {
  color: #8ee6ad;
}

.vacancy-modal__status--error {
  color: #ffb1a6;
}

.vacancy-modal__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #1668c7;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.vacancy-modal__submit:hover:not(:disabled) {
  background: #0f57ac;
}

.vacancy-modal__submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

body.vacancy-scroll-lock {
  overflow: hidden;
}

@media (max-width: 520px) {
  .vacancy-modal {
    padding-right: 12px;
    padding-left: 12px;
  }

  .vacancy-modal__dialog {
    max-height: calc(100vh - 92px);
    padding: 20px;
  }
}

