/* =========================
   PAGER — DARK UI
========================= */

.pager {
    margin-top: 42px;

    display: flex;
    justify-content: center;
}

/* Список */
.pager__items {
    display: flex;
    align-items: center;
    gap: 10px;

    list-style: none;
    padding: 14px;
    margin: 0;

    background: linear-gradient(
        180deg,
        rgba(23, 26, 33, 0.96) 0%,
        rgba(17, 19, 24, 0.96) 100%
    );

    border: 1px solid #262b36;
    border-radius: 22px;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.28),
        inset 0 1px 0 rgba(255,255,255,0.03);

    position: relative;
    overflow: hidden;
}

/* Item */
.pager__item {
    display: flex;
}

/* Links */
.pager__item a {
    min-width: 46px;
    height: 46px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 16px;

    border-radius: 14px;

    background: transparent;
    border: 1px solid transparent;

    color: #c6ccd6;
    text-decoration: none;

    font-size: 0.95rem;
    font-weight: 600;

    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* Hover */
.pager__item a:hover {
    background: rgba(148, 68, 65, 0.08);
    border-color: rgba(148, 68, 65, 0.24);

    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 6px 18px rgba(148, 68, 65, 0.14);
}

/* Active */
.pager__item.is-active a {
    background: linear-gradient(
        135deg,
        rgb(148, 68, 65) 0%,
        rgb(122, 52, 50) 100%
    );

    color: #ffffff;

    border-color: transparent;

    box-shadow:
        0 10px 22px rgba(148, 68, 65, 0.32),
        inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Active hover */
.pager__item.is-active a:hover {
    transform: translateY(-1px);

    box-shadow:
        0 14px 28px rgba(148, 68, 65, 0.38);
}

/* Next / Last */
.pager__item--next a,
.pager__item--last a {
    padding: 0 18px;
    font-weight: 500;
}

/* Стрелки */
.pager__item--next span[aria-hidden],
.pager__item--last span[aria-hidden] {
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* Accessibility hidden */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Responsive */
@media (max-width: 768px) {

    .pager__items {
        gap: 8px;
        padding: 12px;
        border-radius: 18px;

        flex-wrap: wrap;
        justify-content: center;
    }

    .pager__item a {
        min-width: 42px;
        height: 42px;

        padding: 0 14px;

        font-size: 0.9rem;
    }

    .pager__item--last {
        width: 100%;
        justify-content: center;
    }
}