/* ==========================================
   Drupal Pager — пагинация
   ========================================== */

.pager {
  margin: 36px 0;
  color: #243b3a;
}

.pager .pager__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin: 0;
  padding: 0;
  list-style: none;
}

/* Элемент пагинации */
.pager .pager__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

/* Ссылки и номер текущей страницы */
.pager .pager__item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 42px;
  min-height: 42px;
  padding: 8px 13px;

  border: 1px solid #dfe9e7;
  border-radius: 10px;
  background: #fff;

  color: #243b3a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;

  box-shadow: 0 2px 5px rgba(36, 59, 58, 0.04);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Наведение */
.pager .pager__item a:hover {
  border-color: #a6d8d4;
  background: #edf8f7;
  color: #243b3a;
  box-shadow: 0 3px 9px rgba(36, 59, 58, 0.08);
}

/* Текущая страница */
.pager .pager__item.is-active a {
  border-color: #a6d8d4;
  background: #a6d8d4;
  color: #243b3a;
  font-weight: 700;
  box-shadow: none;
  cursor: default;
}

/* Следующая страница */
.pager .pager__item--next a {
  font-size: 22px;
  font-weight: 400;
}

/* Последняя страница */
.pager .pager__item--last a {
  padding-right: 15px;
  padding-left: 15px;
  font-size: 14px;
}

/* Клавиатурная навигация */
.pager .pager__item a:focus-visible {
  outline: 2px solid #4d918b;
  outline-offset: 3px;
}

/* Мобильные устройства */
@media (max-width: 480px) {
  .pager {
    margin: 26px 0;
  }

  .pager .pager__items {
    gap: 6px;
  }

  .pager .pager__item a {
    min-width: 38px;
    min-height: 38px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 14px;
  }

  .pager .pager__item--last a {
    padding-right: 10px;
    padding-left: 10px;
    font-size: 12px;
  }
}

/* Уменьшение анимации по настройкам пользователя */
@media (prefers-reduced-motion: reduce) {
  .pager .pager__item a {
    transition: none;
  }
}