/* ==========================================================================
   Oferty pracy — layout in the Agesta Group palette
   (dark #2e3134 background, accent green #747f6b, same fonts as the site)
   ========================================================================== */
.jobs {
  background-color: #33383d;
  padding: 70px 20px 90px;
}

.jobs__head {
  max-width: 1140px;
  margin: 0 auto 50px;
  text-align: center;
  position: relative;
}

.jobs__title {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 14px;
}

.jobs__subtitle {
  color: #747f6b;
  font-family: "Open Sans", sans-serif;
  font-size: 1.25rem;
  margin: 0;
}

/* language switch (PL / RU) */
.lang-switch {
  display: inline-flex;
  gap: 6px;
  margin-top: 26px;
  border: 2px solid #747f6b;
  border-radius: 50px;
  padding: 4px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #fff;
  font: 700 0.8rem/1 "Open Sans", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch button.is-active {
  background: #747f6b;
  color: #fff;
}

/* grid of cards */
.jobs__grid {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 31px;
}

.job-card {
  display: flex;
  flex-direction: column;
  background: #2b2f33;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.job-card__img {
  height: 200px;
  background-size: cover;
  background-position: 50% 50%;
}

.job-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 24px 28px;
}

.job-card__title {
  color: #fff;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

.job-card dl {
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.job-card dl > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.job-card dt {
  color: #747f6b;
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.job-card dd {
  margin: 0;
  color: #e8e8e8;
  font-family: "Open Sans", sans-serif;
  font-size: 0.95rem;
}

.job-card .job-card__btn {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: #747f6b;
  color: #fff;
  font: 700 0.8rem/1 "Open Sans", sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid #747f6b;
  border-radius: 50px;
  padding: 13px 30px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.job-card .job-card__btn:hover {
  background: transparent;
  color: #fff;
}

@media (max-width: 991px) {
  .jobs__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .jobs__title {
    font-size: 2.25rem;
  }
  .jobs__grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}
