.background-layerarc {
  /* Прибиваем его к краям окна браузера */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  /* Задаем высоту по самому большому размеру экрана, чтобы он не "прыгал" */
  height: 100vh;

  /* Наша картинка */
  background-image: url('https://res.cloudinary.com/dkkq2bacn/image/upload/v1747845917/archiveFon_fonftr.png');
  background-size: cover;
  background-position: center center;

  /* Отправляем его на самый задний план */
  z-index: -1;
}


.news-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.carousel-item {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: flex;
  flex-direction: column;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: #000;
  text-align: center;
  transition: transform 0.2s ease;
}

.carousel-item:hover {
  transform: translateY(-5px);
}

.carousel-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.carousel-item h3 {
  font-size: 1.1em;
  margin: 0 0 8px;
  flex-shrink: 0;
}

.carousel-item p {
  font-size: 0.9em;
  color: #555;
  margin: 0;
  margin-top: auto;
  flex-grow: 1;
}

/* Адаптивность */

@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .carousel-item img {
    height: auto;
  }
}

.wrapper {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.archive {
  display: flex;
  justify-content: center;
  /* центр по горизонтали */
  align-items: center;
  /* центр по вертикали, если нужно */
  margin-bottom: 0px;
}

.archive h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  background-color: #b8b1a4;
  /* фон */
  padding: 10px 20px;
  border-radius: 10px;
  display: inline-block;
  text-align: center;
}

.header-center a {
  color: white;
  text-decoration: none;
}

.header-center a:visited {
  color: white;
}
