.section-head {
  max-width: 1180px;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 clamp(20px, 4vw, 48px);
}

.section-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-0);
  text-shadow: 0 2px 10px rgba(39, 47, 24, 0.18);
}

.section-title::before,
.section-title::after {
  content: "";
  display: inline-block;
  width: 0.92em;
  height: 0.92em;
  margin: 0 0.34em;
  background: center / contain no-repeat url("../images/section-star-green.png");
  vertical-align: -0.08em;
}

.section-desc {
  margin: 12px auto 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-1);
  max-width: 60ch;
  text-align: center;
}

.section-desc strong {
  font-family: inherit;
  font-weight: 700;
  color: inherit;
}

.section-desc--specialties {
  max-width: 88ch;
}



.specialty-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px auto 22px;
  max-width: 1084px;
}

.specialty-filter {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: rgba(243, 239, 227, 0.72);
  color: var(--text-1);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
    color 0.25s var(--ease), transform 0.25s var(--ease);
}

.specialty-filter:hover,
.specialty-filter:focus-visible {
  border-color: var(--accent-soft);
  color: var(--text-0);
  transform: translateY(-1px);
}

.specialty-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #f7f5ec;
}

.specialty-filter--limited {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--text-0);
  animation: limitedFilterPulse 2.2s ease-in-out infinite;
}

.specialty-filter--limited.is-active {
  background: var(--accent);
  color: #f7f5ec;
}

.vacancy-search {
  margin: 0 auto 22px;
  max-width: 1084px;
}

.vacancy-search-label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-1);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.vacancy-search-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: rgba(243, 239, 227, 0.72);
  box-shadow: inset 3px 0 0 var(--accent);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.vacancy-search-field:focus-within {
  border-color: var(--accent);
  background: rgba(247, 244, 235, 0.92);
  box-shadow: inset 3px 0 0 var(--accent), 0 5px 18px rgba(39, 47, 24, 0.08);
}

.vacancy-search-icon {
  flex: 0 0 21px;
  width: 21px;
  height: 21px;
  margin-left: 16px;
  color: var(--accent);
}

.vacancy-search-icon circle,
.vacancy-search-icon path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.vacancy-search-input {
  width: 100%;
  min-width: 0;
  padding: 13px 46px 13px 12px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-0);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
}

.vacancy-search-input::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.vacancy-search-input::-webkit-search-cancel-button {
  display: none;
}

.vacancy-search-clear {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-s);
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.vacancy-search-clear:hover,
.vacancy-search-clear:focus-visible {
  background: var(--accent-dim);
  color: var(--accent);
}

.vacancy-search-clear[hidden] {
  display: none;
}

.vacancy-image-note {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.45;
}

@keyframes limitedFilterPulse {
  0%, 100% {
    border-color: rgba(86, 104, 47, 0.58);
    box-shadow: 0 0 0 0 rgba(86, 104, 47, 0.26);
  }
  50% {
    border-color: var(--accent);
    box-shadow: 0 0 0 5px rgba(86, 104, 47, 0.08);
  }
}

.vacancy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vacancy-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(243, 239, 227, 0.72);
  display: flex;
  flex-direction: column;
}

.vacancy-card[hidden] {
  display: none;
}


.vacancy-empty-state {
  margin: 24px auto 0;
  max-width: 680px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(243, 239, 227, 0.58);
  color: var(--text-1);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.vacancy-empty-state[hidden] {
  display: none;
}

.vacancy-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.vacancy-load-more {
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-s);
  background: var(--accent);
  color: #f7f5ec;
  font-size: 13px;
  font-weight: 700;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.vacancy-load-more:hover,
.vacancy-load-more:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.vacancy-load-more[hidden] {
  display: none;
}

.vacancy-card-media {
  position: relative;
  aspect-ratio: 9 / 5.6;
  overflow: hidden;
  background: #b8bab3;
}

.vacancy-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-tag {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 36px);
  padding: 7px 12px;
  border: 1px solid rgba(82, 97, 43, 0.28);
  border-radius: 14px 6px 14px 6px;
  background: linear-gradient(180deg, rgba(251, 249, 241, 0.98), rgba(240, 235, 221, 0.98));
  box-shadow: 0 6px 16px rgba(31, 35, 22, 0.12);
  color: var(--text-0);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.2;
  animation: vacancy-tag-float 3.1s ease-in-out infinite;
}

.vacancy-tag::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(96, 115, 45, 0.16);
  border-radius: 10px 4px 10px 4px;
  pointer-events: none;
}


.vacancy-card-tag {
  position: absolute;
  left: 18px;
  bottom: 12px;
}

.vacancy-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.vacancy-card-title {
  min-height: 2.5em;
  margin-bottom: auto;
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.18;
  text-transform: uppercase;
  color: var(--text-0);
}

.vacancy-card-pay {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 20px;
}

.vacancy-pay-label {
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.vacancy-pay-value {
  color: var(--text-0);
  font-size: 18px;
  line-height: 1.2;
}

.vacancy-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  padding-top: 22px;
}

.vacancy-more {
  padding: 8px 2px 3px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--text-1);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.vacancy-more:hover,
.vacancy-more:focus-visible {
  border-color: var(--accent-soft);
  color: var(--text-0);
}

.vacancy-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: var(--radius-s);
  background: var(--accent);
  color: #f7f5ec;
  font-size: 12.5px;
  font-weight: 700;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.vacancy-apply:hover,
.vacancy-apply:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.vacancy-card-actions .vacancy-apply,
.vacancy-modal-apply {
  animation: vacancy-card-apply-pulse 2.8s ease-in-out infinite;
  box-shadow: 0 10px 22px rgba(82, 101, 35, 0.16);
  transform-origin: center;
}

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

.vacancy-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: 84px 20px 28px;
}

.vacancy-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(108, 124, 53, 0.16), transparent 42%),
    rgba(18, 21, 13, 0.68);
  backdrop-filter: blur(3px);
}

.vacancy-modal-dialog {
  position: relative;
  isolation: isolate;
  z-index: 1;
  width: min(840px, 100%);
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  padding: 38px 34px 36px;
  border: 1px solid rgba(78, 87, 47, 0.34);
  border-radius: 30px 12px 30px 12px;
  background:
    linear-gradient(180deg, rgba(250, 248, 239, 0.98), rgba(242, 237, 225, 0.98));
  box-shadow:
    0 24px 70px rgba(20, 20, 12, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  animation: vacancy-modal-enter 0.34s cubic-bezier(0.2, 0.75, 0.18, 1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(96, 115, 45, 0.72) rgba(220, 216, 202, 0.9);
}


.vacancy-modal-dialog::-webkit-scrollbar {
  width: 12px;
}

.vacancy-modal-dialog::-webkit-scrollbar-track {
  background: rgba(220, 216, 202, 0.88);
  border-radius: 999px;
}

.vacancy-modal-dialog::-webkit-scrollbar-thumb {
  border: 2px solid rgba(220, 216, 202, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(113, 131, 57, 0.95), rgba(84, 102, 35, 0.95));
}

.vacancy-modal-dialog::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(124, 143, 61, 0.98), rgba(92, 111, 39, 0.98));
}
.vacancy-modal-dialog::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(92, 105, 54, 0.22);
  border-radius: 22px 8px 22px 8px;
  pointer-events: none;
}

.vacancy-modal-dialog::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 170px;
  height: 170px;
  background: linear-gradient(135deg, rgba(96, 115, 45, 0.24), rgba(96, 115, 45, 0));
  clip-path: polygon(36% 0, 100% 0, 100% 66%);
  pointer-events: none;
}

.vacancy-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(47, 56, 25, 0.2);
  border-radius: 16px 8px 16px 8px;
  background: rgba(247, 244, 235, 0.9);
  color: var(--text-1);
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.vacancy-modal-close-icon {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, var(--text-1), var(--accent));
  clip-path: polygon(
    0 12%, 12% 0, 50% 38%, 88% 0, 100% 12%, 62% 50%,
    100% 88%, 88% 100%, 50% 62%, 12% 100%, 0 88%, 38% 50%
  );
  filter: drop-shadow(0 2px 2px rgba(31, 35, 22, 0.14));
  transition: transform 0.28s var(--ease), filter 0.28s var(--ease);
}

.vacancy-modal-close:hover,
.vacancy-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 18px rgba(20, 20, 12, 0.12);
  transform: translateY(-1px);
}

.vacancy-modal-close:hover .vacancy-modal-close-icon,
.vacancy-modal-close:focus-visible .vacancy-modal-close-icon {
  transform: rotate(90deg) scale(1.04);
  filter: drop-shadow(0 3px 3px rgba(31, 35, 22, 0.18));
}

.vacancy-modal-title {
  margin: 0;
  padding: 0 72px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-0);
  text-align: center;
  text-shadow:
    0 2px 3px rgba(31, 35, 22, 0.16),
    0 8px 18px rgba(31, 35, 22, 0.1);
}

.vacancy-modal-title-accent {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.vacancy-modal-title-accent span {
  display: block;
  height: 4px;
  border-radius: 999px;
}

.vacancy-modal-title-accent span:first-child {
  width: 82px;
  background: var(--accent);
}

.vacancy-modal-title-accent span:last-child {
  width: 20px;
  background: rgba(96, 115, 45, 0.45);
}

.vacancy-modal-media {
  position: relative;
  width: min(500px, 100%);
  aspect-ratio: 8 / 5;
  margin: 20px auto 0;
  overflow: hidden;
  border: 1px solid rgba(92, 105, 54, 0.16);
  border-radius: 24px 10px 24px 10px;
  background: #b8bab3;
  box-shadow: 0 16px 34px rgba(34, 38, 25, 0.16);
}

.vacancy-modal-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(17, 20, 11, 0.02), rgba(17, 20, 11, 0.28));
  pointer-events: none;
}

.vacancy-modal-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vacancy-modal-image-tag {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  animation: vacancy-tag-pulse 2.4s ease-in-out infinite;
}

.vacancy-modal-mobile-tag {
  display: none;
}

.vacancy-modal-description {
  max-width: 40em;
  margin: 28px auto 0;
  color: var(--text-0);
  font-size: 16px;
  line-height: 1.7;
}

.vacancy-modal-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
  padding-top: 0;
  border-top: none;
}

.vacancy-modal-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: var(--text-0);
  font-size: 16px;
  line-height: 1.35;
  transform: translateY(-5px);
}

.vacancy-modal-pay strong {
  font-size: 1.22em;
}

.vacancy-modal-apply {
  flex: 0 0 auto;
  align-self: flex-end;
  min-height: 46px;
  margin-bottom: 6px;
  padding: 11px 20px;
  box-shadow: 0 14px 28px rgba(82, 101, 35, 0.18);
}


@keyframes vacancy-card-apply-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 22px rgba(82, 101, 35, 0.16);
  }

  50% {
    transform: scale(1.028);
    box-shadow: 0 14px 30px rgba(82, 101, 35, 0.24);
  }
}

@keyframes vacancy-tag-float {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 16px rgba(31, 35, 22, 0.12);
  }

  50% {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(82, 101, 35, 0.18);
  }
}

@keyframes vacancy-modal-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes vacancy-tag-pulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(31, 35, 22, 0.12);
  }

  50% {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 22px rgba(82, 101, 35, 0.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .vacancy-modal-dialog {
    animation: none;
  }

  .vacancy-modal-close-icon {
    transition: none;
  }

  .vacancy-card-actions .vacancy-apply,
  .vacancy-modal-apply,
  .vacancy-tag,
  .vacancy-modal-image-tag,
  .vacancy-modal-mobile-tag {
    animation: none;
  }
}

body.vacancy-modal-open {
  overflow: hidden;
}

