.gp-vacancies {
  --gp-accent: var(--main-color);
  --gp-text: #5A7A85;
  --gp-light: #F1F9FC;
  --gp-orange: #D44A1E;
  width: 86vw;
  margin: 0 7vw;
  padding: 4vh 0 8vh;
}

/* Hero slider hiring slide — subtitle reads small next to the 56px title, bump it up */
.gp-subtitle--hiring {
  font-size: 26px;
  line-height: 32px;
}

@media screen and (max-width: 1220px) {
  .gp-subtitle--hiring {
    font-size: 20px;
    line-height: 26px;
  }
}

.gp-vacancies__header {
  max-width: 760px;
  margin: 0 0 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gp-vacancies__title {
  margin: 0;
  color: var(--gp-accent);
  font-size: 48px;
  line-height: 52px;
  font-weight: 800;
}

.gp-vacancies__intro p {
  margin: 0 0 12px;
  color: var(--gp-text);
  font-size: 18px;
  line-height: 27px;
}

.gp-vacancies__intro p:last-child {
  margin-bottom: 0;
}

.gp-vacancies__photo {
  margin: 48px 0 0;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.gp-vacancies__photo img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.gp-vacancies__photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 28px;
  background: linear-gradient(0deg, rgba(21, 54, 119, .82) 0%, rgba(21, 54, 119, 0) 100%);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
}

.gp-vacancies__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gp-vacancy-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--gp-light);
  border-radius: 20px;
  padding: 28px 28px 26px 32px;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.gp-vacancy-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gp-orange);
  opacity: 0;
  transition: opacity .25s ease;
}

.gp-vacancy-card:hover {
  box-shadow: 2px 6px 20px rgba(21, 54, 119, .14);
  transform: translateY(-2px);
}

.gp-vacancy-card:hover::before {
  opacity: 1;
}

.gp-vacancy-card__title {
  margin: 0;
  color: var(--gp-accent);
  font-size: 24px;
  line-height: 30px;
  font-weight: 800;
}

.gp-vacancy-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--gp-text);
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
}

.gp-vacancy-card__meta span {
  display: inline-flex;
  align-items: center;
}

.gp-vacancy-card__meta span + span::before {
  content: "\2022";
  margin-right: 18px;
  color: var(--gp-orange);
}

.gp-vacancy-card__cta {
  margin-top: auto;
  color: var(--gp-accent);
  font-size: 16px;
  line-height: 20px;
  font-weight: 800;
}

.gp-vacancies__empty {
  padding: 48px;
  border-radius: 20px;
  background: var(--gp-light);
  color: var(--gp-text);
  font-size: 18px;
  line-height: 26px;
  text-align: center;
}

/* Detail page */

.gp-vacancy-page {
  --gp-accent: var(--main-color);
  --gp-text: #5A7A85;
  --gp-light: #F1F9FC;
  --gp-orange: #D44A1E;
  width: 86vw;
  max-width: 900px;
  margin: 0 auto;
  padding: 4vh 0 8vh;
}

.gp-vacancy-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gp-accent);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 24px;
}

.gp-vacancy-page__back:hover {
  text-decoration: underline;
}

.gp-vacancy-page__title {
  margin: 0 0 20px;
  color: var(--gp-accent);
  font-size: 40px;
  line-height: 46px;
  font-weight: 800;
}

.gp-vacancy-page__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.gp-vacancy-page__meta span {
  background: var(--gp-light);
  color: var(--gp-accent);
  border-radius: 30px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
}

.gp-vacancy-page__body {
  color: #33424A;
  font-size: 17px;
  line-height: 28px;
}

.gp-vacancy-page__body h2,
.gp-vacancy-page__body h3 {
  color: var(--gp-accent);
  margin: 32px 0 12px;
}

.gp-vacancy-page__body ul {
  padding-left: 20px;
  margin: 0 0 20px;
}

.gp-vacancy-page__body li {
  margin-bottom: 8px;
}

.gp-vacancy-page__body p {
  margin: 0 0 16px;
}

.gp-vacancy-page__contact {
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: 20px;
  background: var(--gp-light);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gp-vacancy-page__contact-label {
  color: var(--gp-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.gp-vacancy-page__contact-value {
  color: var(--gp-accent);
  font-size: 22px;
  font-weight: 800;
}

@media screen and (max-width: 1220px) {
  .gp-vacancies,
  .gp-vacancy-page {
    width: 100%;
    margin: 0;
    padding: 24px 20px 56px;
    box-sizing: border-box;
  }

  .gp-vacancies__title {
    font-size: 32px;
    line-height: 36px;
  }

  .gp-vacancies__grid {
    grid-template-columns: 1fr;
  }

  .gp-vacancy-page__title {
    font-size: 28px;
    line-height: 34px;
  }
}
