/* ===== Pager ===== */

.pager {
  display: flex;
  justify-content: center;
  margin: 40px 0;
}

.pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Общий элемент */
.pager__item {
  margin: 0;
  padding: 0;
}

/* Ссылки */
.pager__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;

  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;

  color: #1f1f1f;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;

  transition: all 0.2s ease;
}

/* Hover */
.pager__item a:hover {
  background: #f5f5f5;
  border-color: #cfcfcf;
}

/* Активная страница */
.pager__item.is-active a {
  background: #820000;
  border-color: #820000;
  color: #fff;
  font-weight: 600;
  cursor: default;
}

/* Стрелки */
.pager__item--next a,
.pager__item--last a {
  font-weight: 500;
}

/* Многоточие */
.pager__item--ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  color: #888;
  font-size: 16px;
}

/* ===== Mobile ===== */

@media (max-width: 767px) {
  .pager {
    margin: 24px 0;
  }

  .pager__items {
    gap: 6px;
  }

  .pager__item a {
    min-width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 6px;
  }
}