.vacancies {
  padding: 70px 0;
  background: var(--white);
  color: var(--text);
}

.vacancies .section-title {
  margin: 0 0 18px;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.15;
}

.vacancy-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter-btn {
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 220ms ease;
}

.filter-btn:hover {
  filter: brightness(0.98);
}

.filter-btn.active {
  border-color: rgba(247, 197, 30, 0.55);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.vacancies-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.vacancy-card {
  border-radius: var(--radius-20);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.vacancy-card.closed {
  opacity: 0.55;
}

.vacancy-card__head {
  position: relative;
  min-height: 240px;
  display: flex;
}

.vacancy-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 180ms ease;
}

.vacancy-card__head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 20, 0.72);
  opacity: 0;
  transition: opacity 180ms ease;
}

.vacancy-card__content {
  position: relative;
  z-index: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.vacancy-card__head:hover .vacancy-card__img {
  opacity: 1;
}

.vacancy-card__head:hover::after {
  opacity: 1;
}

.vacancy-card__title {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
}

.vacancy-card__head:hover .vacancy-card__title,
.vacancy-card__head:hover .vacancy-card__summary,
.vacancy-card__head:hover .salary {
  color: var(--white);
}

.salary {
  margin: 0;
  font-weight: 800;
  color: #ff6b00;
}

.open-vacancy {
  margin-top: auto;
  align-self: flex-start;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  padding: 10px 14px;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.open-vacancy:hover {
  text-decoration: underline;
}

.vacancy-description {
  color: #334155;
  font-size: 16px;
  line-height: 1.5;
}

.vacancy-description h4 {
  margin: 14px 0 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.vacancy-description ul {
  margin: 0 0 12px;
  padding-left: 18px;
}

.read-more-btn {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: var(--text);
  text-decoration: underline;
}

.read-more-btn:hover {
  text-decoration: underline;
}

.apply-btn {
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.apply-btn:hover {
  filter: brightness(0.98);
}

@media (max-width: 1024px) {
  .vacancies-grid {
    grid-template-columns: 1fr;
  }
}

.usm-vacancy-modal__dialog {
  width: min(980px, 100%);
}

.usm-vacancy-modal__body {
  padding: 0;
}

.usm-vacancy-modal__media {
  background: #0b0f14;
}

.usm-vacancy-modal__img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.usm-vacancy-modal__content {
  padding: 18px 18px 22px;
}

.usm-vacancy-modal__title {
  margin: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
}

.usm-vacancy-modal__salary {
  margin-top: 10px;
  font-weight: 800;
  color: #ff6b00;
}

.usm-vacancy-modal__summary {
  margin-top: 12px;
  color: #334155;
  line-height: 1.6;
}

.usm-vacancy-modal__details {
  margin-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 14px;
}

.usm-vacancy-modal__details .apply-btn {
  margin-top: 16px;
}

@media (max-width: 640px) {
  .usm-vacancy-modal__img {
    height: 220px;
  }
}

@media (max-width: 640px) {
  .vacancies {
    padding: 52px 0;
  }

  .vacancies .section-title {
    font-size: 26px;
  }

  .vacancies-grid {
    grid-template-columns: 1fr;
  }
}
