/* ===== Фон и страница (как на странице контактов) ===== */
body {
  background-image: url(Agri_3.jpg);
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;

  margin: 0;
  padding: 20px;
  font-family: 'Nunito', sans-serif;
}

h1 {
  font-family: 'Nunito', sans-serif;
  text-align: center;
  color: #ffffef;
  text-shadow: 2px 2px 2px rgb(52, 50, 50);
  margin: 10px 0 40px;
}

/* ===== Кнопка «Назад» — зафиксирована, не скроллится ===== */
.btn-inapoi {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;

  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;

  font-family: 'Nunito', sans-serif;
  font-size: 0.95em;
  font-weight: 800;
  text-decoration: none;
  color: #2f5d1a;
  background-color: rgba(255, 255, 255, 0.95);
  border: 2px solid #5a9a2f;
  border-radius: 24px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-inapoi:hover {
  background-color: #5a9a2f;
  color: #ffffff;
  transform: translateX(-3px);
}

.btn-inapoi-sageata {
  font-size: 1.2em;
  line-height: 1;
}

/* ===== Список: одна карточка на строку ===== */
.vacante {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
}

/* ===== Карточка (невысокая, плоская) ===== */
.vacanta {
  box-sizing: border-box;
  padding: 14px 24px 16px;
  text-align: center;
  background-color: #ffffff;
  border-left: 5px solid #5a9a2f;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vacanta:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.35);
}

/* 1-я строка: дата */
.vacanta-data {
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #5a9a2f;
}

/* красивые чёрточки: ----- ◆ ----- */
.vacanta-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 420px;
  margin: 6px auto 8px;
  color: #5a9a2f;
  font-size: 0.7em;
}

.vacanta-sep::before,
.vacanta-sep::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #b9d4a3;
}

/* 2-я строка: название функции */
.vacanta-functie {
  font-size: 1.15em;
  font-weight: 800;
  line-height: 1.3;
  color: #2f5d1a;
  margin-bottom: 10px;
}

/* 3-я строка: посмотреть и скачать PDF */
.vacanta-linkuri {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.vacanta-linkuri a {
  padding: 5px 16px;
  font-size: 0.9em;
  font-weight: 700;
  text-decoration: none;
  color: #2f5d1a;
  background-color: #eef5e6;
  border: 1px solid #b9d4a3;
  border-radius: 20px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.vacanta-linkuri a:hover {
  background-color: #5a9a2f;
  color: #ffffff;
}

/* ===== Телефоны ===== */
@media (max-width: 560px) {
  .vacanta {
    padding: 12px 14px 14px;
  }
}

@media (max-width: 560px) {
  .btn-inapoi {
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 0.85em;
  }

  h1 {
    margin-top: 44px;   /* чтобы кнопка не налезала на заголовок */
  }
}
