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

  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;
}

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

/* ===== Карточка (невысокая, плоская) ===== */
.ordin {
  box-sizing: border-box;
  padding: 16px 26px 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;
}

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

/* 1-я строка: название приказа (может быть длинным) */
.ordin-titlu {
  font-size: 1.05em;
  font-weight: 700;
  line-height: 1.4;
  color: #2f5d1a;
}

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

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

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

.ordin-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;
}

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

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

  .ordin-titlu {
    font-size: 1em;
  }
}

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

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