body.zgds-home-page--v3 #catalog-pager {
    display: none !important;
}

body.zgds-home-pro .gzd-shelf-cabinet {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 0.2rem;
    border-radius: 0.65rem;
    overflow: hidden;
    border: 1px solid rgba(196, 160, 85, 0.24);
    background: transparent;
    box-shadow: 0 8px 28px rgba(74, 24, 24, 0.06);
}

body.zgds-home-pro .gzd-shelf-cabinet.is-shelf-pager-idle .sp-rail {
    display: none;
}

body.zgds-home-pro[data-page-role="home"] .gzd-shelf-cabinet.is-shelf-pager-idle {
    border-color: rgba(196, 160, 85, 0.24);
    box-shadow: 0 8px 28px rgba(74, 24, 24, 0.06);
}

body.zgds-home-pro .gzd-shelf-cabinet.is-loading .sp-rail__nudge {
    opacity: 0.45;
    pointer-events: none;
}

body.zgds-home-pro .gzd-shelf-cabinet__stage {
    min-width: 0;
    width: 100%;
    position: relative;
    transform-origin: 50% 58%;
    will-change: transform, opacity, filter;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.gzd-bookshelf {
    margin: 0;
}

body.zgds-home-pro .sp-rail {
    position: relative;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

body.zgds-home-pro .sp-rail__plank {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 0 0 0.5rem 0.5rem;
    background:
        linear-gradient(180deg, rgba(255, 248, 220, 0.22) 0%, transparent 16%),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.05) 0, rgba(0, 0, 0, 0.05) 1px, transparent 1px, transparent 8px),
        linear-gradient(180deg, #b07842 0%, #7a4e28 34%, #503020 70%, #382018 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 220, 0.24),
        inset 0 -3px 8px rgba(0, 0, 0, 0.28),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

body.zgds-home-pro .sp-rail__plank::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, transparent 10%, transparent 90%, rgba(0, 0, 0, 0.16) 100%);
}

body.zgds-home-pro .sp-rail__body {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.35rem 0.65rem;
    padding: 0.5rem 0.65rem 0.58rem;
    min-height: 3.1rem;
}

body.zgds-home-pro .sp-rail__nudge {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 248, 220, 0.12);
    border-radius: 0.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.12) 100%);
    color: rgba(255, 236, 200, 0.92);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 220, 0.18),
        0 2px 6px rgba(0, 0, 0, 0.22);
    transition:
        transform 0.2s cubic-bezier(0.22, 1, 0.36, 1),
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

body.zgds-home-pro .sp-rail__nudge .zgds-gzd-icon {
    width: 1.05rem;
    height: 1.05rem;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

body.zgds-home-pro .sp-rail__nudge:hover:not(:disabled) {
    transform: translateY(-1px);
    background: linear-gradient(180deg, rgba(255, 248, 235, 0.2) 0%, rgba(0, 0, 0, 0.08) 100%);
    color: #fff8eb;
    box-shadow:
        inset 0 1px 0 rgba(255, 248, 220, 0.28),
        0 4px 10px rgba(0, 0, 0, 0.28);
}

body.zgds-home-pro .sp-rail__nudge--prev:hover:not(:disabled) {
    transform: translate(-1px, -1px);
}

body.zgds-home-pro .sp-rail__nudge--next:hover:not(:disabled) {
    transform: translate(1px, -1px);
}

body.zgds-home-pro .sp-rail__nudge:active:not(:disabled) {
    transform: translateY(0);
}

body.zgds-home-pro .sp-rail__nudge:focus-visible {
    outline: 2px solid rgba(212, 176, 96, 0.85);
    outline-offset: 2px;
}

body.zgds-home-pro .sp-rail__nudge:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

body.zgds-home-pro .sp-rail__gauge {
    min-width: 0;
    text-align: center;
}

body.zgds-home-pro .sp-rail__track {
    position: relative;
    height: 0.2rem;
    margin: 0 0 0.38rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.28);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

body.zgds-home-pro .sp-rail__fill {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(196, 160, 85, 0.75), rgba(255, 232, 180, 0.95));
    box-shadow: 0 0 8px rgba(255, 232, 180, 0.35);
    transition: width 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.zgds-home-pro .sp-rail__label {
    margin: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.28rem 0.4rem;
    line-height: 1.35;
}

body.zgds-home-pro .sp-rail__pages {
    font-family: var(--ui-font-serif, "Noto Serif SC", serif);
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(255, 248, 235, 0.96);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

body.zgds-home-pro .sp-rail__dot {
    color: rgba(212, 176, 96, 0.55);
    font-weight: 700;
}

body.zgds-home-pro .sp-rail__total {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 248, 235, 0.62);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-exiting {
    transition:
        transform 0.36s cubic-bezier(0.55, 0, 0.85, 0.36),
        opacity 0.3s ease,
        filter 0.36s ease;
    pointer-events: none;
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-exit--next {
    transform: perspective(1100px) rotateY(-5deg) translate3d(-2.5%, 0, 0) scale(0.985);
    opacity: 0;
    filter: blur(1.5px);
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-exit--prev {
    transform: perspective(1100px) rotateY(5deg) translate3d(2.5%, 0, 0) scale(0.985);
    opacity: 0;
    filter: blur(1.5px);
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-entering {
    transition:
        transform 0.46s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.4s ease,
        filter 0.46s ease;
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-enter--next {
    transform: perspective(1100px) rotateY(3deg) translate3d(2%, 0, 0) scale(0.99);
    opacity: 0.2;
    filter: blur(2px);
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-enter--next:not(.is-shelf-entering),
body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-enter--prev:not(.is-shelf-entering) {
    transform: none;
    opacity: 1;
    filter: none;
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-enter--prev {
    transform: perspective(1100px) rotateY(-3deg) translate3d(-2%, 0, 0) scale(0.99);
    opacity: 0.2;
    filter: blur(2px);
}

@keyframes spShelfBookIn {
    from {
        opacity: 0;
        transform: translate3d(0, 10px, 0) rotateX(6deg) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-books-in .gzd-bookshelf--grid .gzd-book {
    animation: spShelfBookIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(var(--book-i, 0) * 32ms);
}

body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-shimmer::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 12;
    pointer-events: none;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255, 248, 230, 0.45) 50%,
        transparent 60%
    );
    transform: translateX(-120%);
    animation: spShelfShimmer 0.55s ease-out forwards;
}

@keyframes spShelfShimmer {
    to { transform: translateX(120%); }
}

body.zgds-home-pro .gzd-shelf-cabinet:has(.gzd-bookshelf--list) .gzd-shelf-cabinet__stage.is-shelf-exit--next,
body.zgds-home-pro .gzd-shelf-cabinet:has(.gzd-bookshelf--list) .gzd-shelf-cabinet__stage.is-shelf-exit--prev {
    transform: translateX(var(--shelf-slide, 0));
    filter: none;
}

body.zgds-home-pro .gzd-shelf-cabinet:has(.gzd-bookshelf--list) .gzd-shelf-cabinet__stage.is-shelf-exit--next {
    --shelf-slide: -2%;
}

body.zgds-home-pro .gzd-shelf-cabinet:has(.gzd-bookshelf--list) .gzd-shelf-cabinet__stage.is-shelf-exit--prev {
    --shelf-slide: 2%;
}

body.zgds-home-pro.zgds-search-page--journal .gzd-shelf-cabinet.is-shelf-pager-idle + .gzd-catalog-pager,
body.zgds-home-pro.zgds-search-page--journal .gzd-search-page__panel > .gzd-catalog-pager {
    display: block;
}

body.zgds-home-pro.zgds-search-page--journal .gzd-shelf-cabinet:not(.is-shelf-pager-idle) + .gzd-catalog-pager {
    display: none !important;
}

@media (max-width: 767px) {
    body.zgds-home-pro .sp-rail__body {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        padding: 0.45rem 0.5rem 0.52rem;
        gap: 0.35rem;
    }

    body.zgds-home-pro .sp-rail__gauge {
        grid-column: 1 / -1;
        order: -1;
    }

    body.zgds-home-pro .sp-rail__nudge {
        width: 100%;
        max-width: none;
    }

    body.zgds-home-pro .sp-rail__nudge--prev {
        grid-column: 1;
    }

    body.zgds-home-pro .sp-rail__nudge--next {
        grid-column: 2;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-exiting,
    body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-entering,
    body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-books-in .gzd-book {
        transition: none !important;
        animation: none !important;
        transform: none !important;
        filter: none !important;
        opacity: 1 !important;
    }

    body.zgds-home-pro .gzd-shelf-cabinet__stage.is-shelf-shimmer::after {
        display: none;
    }

    body.zgds-home-pro .sp-rail__fill {
        transition: none;
    }
}
