/* =============================================
 pagination.css — CRD GAME
 Пагинация для всех модулей: новости, форум,
 пользователи, поиск, архив
 Версия: 2026-05
============================================= */

/* =============================================
 🎯 ПАГИНАЦИЯ ФОРУМА (ul.switches на li)
============================================= */

/* Контейнер ul — горизонтально */
ul.switches,
ul.switchesTbl,
ul.forum-pages,
.forumContent ul.switches,
.forumContent ul.switchesTbl,
.forumContent ul.forum-pages {
 display: flex !important;
 flex-direction: row !important;
 align-items: center !important;
 justify-content: flex-start !important;
 flex-wrap: wrap !important;
 gap: 10px !important;
 list-style: none !important;
 list-style-type: none !important;
 padding: 25px 0 0 !important;
 margin: 30px 0 20px !important;
 border-top: 1px solid rgba(255,255,255,0.08) !important;
 background: none !important;
 width: 100% !important;
 box-sizing: border-box !important;
}

/* li — inline-flex */
ul.switches > li,
ul.switchesTbl > li,
ul.forum-pages > li,
.forumContent ul.switches > li,
.forumContent ul.forum-pages > li {
 display: inline-flex !important;
 flex: 0 0 auto !important;
 width: auto !important;
 max-width: none !important;
 list-style: none !important;
 list-style-type: none !important;
 margin: 0 !important;
 padding: 0 !important;
 background: none !important;
 border: none !important;
 float: none !important;
 clear: none !important;
 vertical-align: middle !important;
}

/* Убираем маркеры :before и :after у li */
ul.switches > li::before,
ul.switches > li::after,
ul.forum-pages > li::before,
ul.forum-pages > li::after {
 display: none !important;
 content: none !important;
}

/* "Страница X из Y" — отдельной строкой */
ul.switches > li.pagesInfo,
ul.forum-pages > li.pagesInfo,
.forumContent ul.switches > li.pagesInfo {
 display: flex !important;
 flex-basis: 100% !important;
 width: 100% !important;
 max-width: 100% !important;
 align-items: center !important;
 justify-content: flex-start !important;
 text-align: left !important;
 color: #888 !important;
 font-family: 'Open Sans', sans-serif !important;
 font-size: 12px !important;
 letter-spacing: 1px !important;
 margin: 0 0 8px 0 !important;
 padding: 0 !important;
 background: none !important;
 border: none !important;
 order: -1 !important;
}
ul.switches > li.pagesInfo .curPage,
ul.switches > li.pagesInfo .numPages,
ul.forum-pages > li.pagesInfo .curPage,
ul.forum-pages > li.pagesInfo .numPages {
 color: #ae8954 !important;
 font-weight: 600 !important;
 margin: 0 4px !important;
}

/* Активная страница */
ul.switches > li.switchActive,
ul.forum-pages > li.switchActive,
.forumContent ul.switches > li.switchActive {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 box-sizing: border-box !important;
 flex: 0 0 auto !important;
 width: 42px !important;
 height: 42px !important;
 min-width: 42px !important;
 max-width: 42px !important;
 min-height: 42px !important;
 max-height: 42px !important;
 padding: 0 !important;
 margin: 0 !important;
 background: rgba(174,137,84,0.08) !important;
 background-image: none !important;
 border: 1px solid #ae8954 !important;
 border-radius: 0 !important;
 color: #fff !important;
 font-family: 'Noto Serif', serif !important;
 font-size: 15px !important;
 font-weight: 400 !important;
 line-height: 1 !important;
 box-shadow: none !important;
 text-shadow: none !important;
 cursor: default !important;
}

/* Ссылки на страницы */
ul.switches > li.switch a,
ul.forum-pages > li.switch a,
ul.switches > li.switch a.switchDigit,
ul.switches > li.switch a.switchBack,
ul.switches > li.switch a.switchNext,
.forumContent ul.switches > li.switch a {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 box-sizing: border-box !important;
 width: 42px !important;
 height: 42px !important;
 min-width: 42px !important;
 min-height: 42px !important;
 padding: 0 !important;
 margin: 0 !important;
 background: transparent !important;
 background-image: none !important;
 border: 1px solid rgba(255,255,255,0.12) !important;
 border-radius: 0 !important;
 color: #888 !important;
 font-family: 'Noto Serif', serif !important;
 font-size: 15px !important;
 font-weight: 400 !important;
 line-height: 1 !important;
 text-decoration: none !important;
 text-shadow: none !important;
 box-shadow: none !important;
 transition: all 0.25s ease !important;
 float: none !important;
}

/* Hover */
ul.switches > li.switch a:hover,
ul.forum-pages > li.switch a:hover {
 background: rgba(174,137,84,0.08) !important;
 border-color: #ae8954 !important;
 color: #fff !important;
 text-decoration: none !important;
}

/* span внутри ссылок (стрелки « ») */
ul.switches > li.switch a > span,
ul.forum-pages > li.switch a > span {
 display: inline !important;
 background: none !important;
 border: none !important;
 padding: 0 !important;
 margin: 0 !important;
 width: auto !important;
 height: auto !important;
 color: inherit !important;
 font: inherit !important;
 line-height: inherit !important;
}

/* Стрелки « и » — шире */
ul.switches > li.switch-back a,
ul.switches > li.switch-next a,
ul.forum-pages > li.switch-back a,
ul.forum-pages > li.switch-next a {
 width: 52px !important;
 min-width: 52px !important;
 font-size: 20px !important;
 color: #ae8954 !important;
 border-color: rgba(174,137,84,0.3) !important;
}
ul.switches > li.switch-back a:hover,
ul.switches > li.switch-next a:hover {
 background: rgba(174,137,84,0.15) !important;
 border-color: #ae8954 !important;
 color: #fff !important;
}

/* Многоточие */
ul.switches > li.switch > span,
ul.forum-pages > li.switch > span {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 width: auto !important;
 min-width: 20px !important;
 height: 42px !important;
 padding: 0 6px !important;
 margin: 0 !important;
 background: none !important;
 border: none !important;
 color: #555 !important;
 font-family: 'Noto Serif', serif !important;
 font-size: 14px !important;
 letter-spacing: 2px !important;
 box-shadow: none !important;
}

/* === Адаптив форума === */
@media only screen and (max-width: 768px) {
 ul.switches,
 ul.forum-pages {
 gap: 6px !important;
 padding: 20px 0 0 !important;
 }
 ul.switches > li.switch a,
 ul.forum-pages > li.switch a,
 ul.switches > li.switchActive,
 ul.forum-pages > li.switchActive {
 width: 36px !important;
 height: 36px !important;
 min-width: 36px !important;
 min-height: 36px !important;
 max-width: 36px !important;
 font-size: 13px !important;
 }
 ul.switches > li.switch-back a,
 ul.switches > li.switch-next a {
 width: 44px !important;
 min-width: 44px !important;
 font-size: 18px !important;
 }
 ul.switches > li.switch > span {
 height: 36px !important;
 }
}

@media only screen and (max-width: 480px) {
 ul.switches,
 ul.forum-pages {
 gap: 4px !important;
 }
 ul.switches > li.switch a,
 ul.forum-pages > li.switch a,
 ul.switches > li.switchActive,
 ul.forum-pages > li.switchActive {
 width: 32px !important;
 height: 32px !important;
 min-width: 32px !important;
 min-height: 32px !important;
 max-width: 32px !important;
 font-size: 12px !important;
 }
}

/* =============================================
 ПАГИНАЦИЯ — ОБЩИЕ КОНТЕЙНЕРЫ (новости, юзеры, поиск)
============================================= */

.pagesBlockuz, .pagesBlockuz1, .pagesBlockuz2,
#pagesBlock1, #pagesBlock2,
.catPages1, .catPages2,
.switch,
.users-pagination,
.users-pagination-top,
.users-pagination-bottom,
.pagination-top,
.pagination-bottom,
.search-pagination,
.archive-pagination-wrapper,
.pagesBottom {
 display: flex !important;
 align-items: center !important;
 justify-content: center !important;
 flex-wrap: wrap !important;
 gap: 10px !important;
 width: 100% !important;
 background: none !important;
 background-color: transparent !important;
 background-image: none !important;
 border: 0 !important;
 border-radius: 0 !important;
 box-shadow: none !important;
 outline: none !important;
 border-top: 1px solid rgba(255,255,255,0.08) !important;
 margin: 30px 0 20px !important;
 padding: 25px 0 0 !important;
 text-align: center !important;
}

/* === Базовые кнопки пагинации === */
.pagesBlockuz a, .pagesBlockuz b,
.pagesBlockuz1 a, .pagesBlockuz1 b,
.pagesBlockuz2 a, .pagesBlockuz2 b,
#pagesBlock1 a, #pagesBlock1 b,
#pagesBlock2 a, #pagesBlock2 b,
.catPages1 a, .catPages1 b,
.catPages2 a, .catPages2 b,
.switch a, .switch b,
.switchActive,
.swchItem, .swchItem a, .swchItem b,
.swchItemA, .swchItemA a, .swchItemA b,
.swchItem1, .swchItem1 a, .swchItem1 b,
.swchItemA1, .swchItemA1 a, .swchItemA1 b,
a.pgSwch,
span.pgSwchA, span.pgSwchA a, span.pgSwchA b,
span[class^="pgSwch"] a, span[class^="pgSwch"] b,
.users-pagination a, .users-pagination b,
.users-pagination-top a, .users-pagination-top b,
.users-pagination-bottom a, .users-pagination-bottom b,
.pagination-top a, .pagination-top b, .pagination-top span,
.pagination-bottom a, .pagination-bottom b, .pagination-bottom span,
.search-pagination a, .search-pagination b, .search-pagination span,
.archive-pagination-wrapper a,
.archive-pagination-wrapper .page-link,
.pagesBottom a, .pagesBottom b {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 box-sizing: border-box !important;
 width: 42px !important;
 height: 42px !important;
 min-width: 42px !important;
 max-width: none !important;
 min-height: 42px !important;
 max-height: 42px !important;
 padding: 0 !important;
 margin: 0 !important;
 background: transparent !important;
 background-color: transparent !important;
 background-image: none !important;
 border: 1px solid rgba(255,255,255,0.12) !important;
 border-radius: 0 !important;
 color: #888 !important;
 font-family: 'Noto Serif', serif !important;
 font-size: 15px !important;
 font-weight: 400 !important;
 font-style: normal !important;
 line-height: 1 !important;
 letter-spacing: 0 !important;
 text-align: center !important;
 text-decoration: none !important;
 text-transform: none !important;
 text-shadow: none !important;
 box-shadow: none !important;
 outline: none !important;
 cursor: pointer !important;
 transition: all 0.25s ease !important;
}

/* === Hover === */
.pagesBlockuz a:hover,
.pagesBlockuz1 a:hover,
.pagesBlockuz2 a:hover,
#pagesBlock1 a:hover,
#pagesBlock2 a:hover,
.catPages1 a:hover,
.catPages2 a:hover,
.switch a:hover,
.swchItem a:hover,
.swchItem1 a:hover,
a.pgSwch:hover,
.users-pagination a:hover,
.users-pagination-top a:hover,
.users-pagination-bottom a:hover,
.pagination-top a:hover,
.pagination-bottom a:hover,
.search-pagination a:hover,
.archive-pagination-wrapper a:hover,
.archive-pagination-wrapper .page-link:hover,
.pagesBottom a:hover {
 color: #fff !important;
 border-color: #ae8954 !important;
 background: rgba(174,137,84,0.08) !important;
 background-color: rgba(174,137,84,0.08) !important;
 text-decoration: none !important;
}

/* === Активная страница === */
.pagesBlockuz b,
.pagesBlockuz1 b,
.pagesBlockuz2 b,
#pagesBlock1 b,
#pagesBlock2 b,
.catPages1 b,
.catPages2 b,
.switch b,
.switchActive,
.swchItemA, .swchItemA a, .swchItemA b,
.swchItemA1, .swchItemA1 a, .swchItemA1 b,
span.pgSwchA, span.pgSwchA a, span.pgSwchA b,
.users-pagination b,
.users-pagination-top b,
.users-pagination-bottom b,
.pagination-top b,
.pagination-bottom b,
.search-pagination b,
.archive-pagination-wrapper .page-item.active .page-link,
.pagesBottom b {
 color: #fff !important;
 border-color: #ae8954 !important;
 background: rgba(174,137,84,0.08) !important;
 background-color: rgba(174,137,84,0.08) !important;
 font-weight: 400 !important;
 cursor: default !important;
}

/* === Стрелки « » ‹ › — шире === */
.swchItem-prev, .swchItem-next,
.swchItem-prev a, .swchItem-next a,
a.pgSwch[onclick*="prev"], a.pgSwch[onclick*="next"] {
 width: 52px !important;
 min-width: 52px !important;
 font-size: 20px !important;
 color: #ae8954 !important;
 border-color: rgba(174,137,84,0.3) !important;
}
.swchItem-prev a:hover, .swchItem-next a:hover,
a.pgSwch[onclick*="prev"]:hover, a.pgSwch[onclick*="next"]:hover {
 background: rgba(174,137,84,0.15) !important;
 border-color: #ae8954 !important;
 color: #fff !important;
}

/* === Многоточие (...) === */
.swchItemDots, .swchItemDots span,
.pag-dots,
span.swchItemDots,
.pagesBlockuz span:not(a):not(b),
#pagesBlock1 span:not(a):not(b),
#pagesBlock2 span:not(a):not(b) {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 width: auto !important;
 min-width: auto !important;
 height: 42px !important;
 padding: 0 6px !important;
 margin: 0 !important;
 background: none !important;
 background-color: transparent !important;
 border: 0 !important;
 border-radius: 0 !important;
 color: #555 !important;
 font-family: 'Noto Serif', serif !important;
 font-size: 14px !important;
 letter-spacing: 2px !important;
 box-shadow: none !important;
}

/* === span внутри кнопок === */
.pagesBlockuz a > span, .pagesBlockuz b > span,
.pagesBlockuz1 a > span, .pagesBlockuz1 b > span,
.pagesBlockuz2 a > span, .pagesBlockuz2 b > span,
#pagesBlock1 a > span, #pagesBlock1 b > span,
#pagesBlock2 a > span, #pagesBlock2 b > span,
.swchItem > span, .swchItemA > span,
.switch b span, .switchActive span,
.pagination-top a > span, .pagination-top b > span,
.pagination-bottom a > span, .pagination-bottom b > span {
 display: inline !important;
 background: none !important;
 background-color: transparent !important;
 background-image: none !important;
 border: 0 !important;
 border-radius: 0 !important;
 padding: 0 !important;
 margin: 0 !important;
 width: auto !important;
 height: auto !important;
 min-width: 0 !important;
 min-height: 0 !important;
 color: inherit !important;
 font: inherit !important;
 line-height: inherit !important;
 box-shadow: none !important;
 text-shadow: none !important;
}

/* === Обёртки swchItem === */
.swchItem, .swchItem1,
.swchItemA, .swchItemA1 {
 width: auto !important;
 height: auto !important;
 min-width: 0 !important;
 background: transparent !important;
 background-image: none !important;
 border: none !important;
 padding: 0 !important;
 margin: 0 !important;
 display: inline-flex !important;
 align-items: center !important;
 box-shadow: none !important;
}

/* === Адаптив общий === */
@media only screen and (max-width: 768px) {
 .pagesBlockuz, .pagesBlockuz1, .pagesBlockuz2,
 #pagesBlock1, #pagesBlock2,
 .catPages1, .catPages2,
 .switch,
 .users-pagination,
 .pagination-top, .pagination-bottom,
 .search-pagination,
 .archive-pagination-wrapper {
 gap: 6px !important;
 padding: 20px 0 0 !important;
 margin: 25px 0 15px !important;
 }
 .pagesBlockuz a, .pagesBlockuz b,
 .pagesBlockuz1 a, .pagesBlockuz1 b,
 .pagesBlockuz2 a, .pagesBlockuz2 b,
 #pagesBlock1 a, #pagesBlock1 b,
 #pagesBlock2 a, #pagesBlock2 b,
 .catPages1 a, .catPages1 b,
 .switch a, .switch b, .switchActive,
 .swchItem a, .swchItemA, .swchItemA a, .swchItemA b,
 .users-pagination a, .users-pagination b,
 .pagination-top a, .pagination-top b,
 .pagination-bottom a, .pagination-bottom b,
 .search-pagination a, .search-pagination b,
 .archive-pagination-wrapper .page-link {
 width: 36px !important;
 height: 36px !important;
 min-width: 36px !important;
 font-size: 13px !important;
 }
 .swchItem-prev a, .swchItem-next a {
 width: 44px !important;
 min-width: 44px !important;
 }
 .swchItemDots, .pag-dots {
 height: 36px !important;
 }
}

@media only screen and (max-width: 480px) {
 .pagesBlockuz, .pagesBlockuz1, .pagesBlockuz2,
 #pagesBlock1, #pagesBlock2,
 .pagination-top, .pagination-bottom {
 gap: 4px !important;
 padding: 18px 0 0 !important;
 }
 .pagesBlockuz a, .pagesBlockuz b,
 #pagesBlock1 a, #pagesBlock1 b,
 #pagesBlock2 a, #pagesBlock2 b,
 .pagination-top a, .pagination-top b,
 .pagination-bottom a, .pagination-bottom b {
 width: 32px !important;
 height: 32px !important;
 min-width: 32px !important;
 font-size: 12px !important;
 }
}

/* =============================================
 МИНИ-ПАГИНАЦИЯ В АРХИВЕ (.archive-info-pages)
============================================= */
.archive-info-pages {
 display: flex !important;
 align-items: center !important;
 gap: 4px !important;
 flex-wrap: wrap !important;
 background: transparent !important;
 border: none !important;
 padding: 0 !important;
 margin: 0 !important;
}
.archive-info-pages a,
.archive-info-pages b,
.archive-info-pages span:not(.archive-info-pages-label) {
 display: inline-flex !important;
 align-items: center !important;
 justify-content: center !important;
 min-width: 28px !important;
 height: 28px !important;
 padding: 0 8px !important;
 background: rgba(26, 28, 35, 0.7) !important;
 background-image: none !important;
 border: 1px solid rgba(255, 255, 255, 0.06) !important;
 border-radius: 6px !important;
 color: #c5c5c5 !important;
 font-size: 11px !important;
 font-weight: 600 !important;
 text-decoration: none !important;
 box-shadow: none !important;
 transition: all 0.15s ease !important;
}
.archive-info-pages a:hover {
 background: rgba(255, 107, 0, 0.12) !important;
 background-image: none !important;
 border-color: rgba(255, 107, 0, 0.5) !important;
 color: #ff9a3c !important;
}
.archive-info-pages b {
 background: linear-gradient(180deg, #ff8533 0%, #ae8954 100%) !important;
 background-image: linear-gradient(180deg, #ff8533 0%, #ae8954 100%) !important;
 border-color: #ae8954 !important;
 color: #fff !important;
 box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3) !important;
}
.archive-info-pages .pag-dots {
 background: transparent !important;
 border: none !important;
 color: #6a6a6a !important;
 font-weight: normal !important;
 min-width: auto !important;
 padding: 0 4px !important;
}
/* (продолжение от предыдущего) */
.archive-info-pages-label {
 background: transparent !important;
 border: none !important;
 padding: 0 6px 0 0 !important;
 color: #9a9a9a !important;
 font-size: 11px !important;
 min-width: 0 !important;
 height: auto !important;
}

/* =============================================
 ИСКЛЮЧЕНИЯ ДЛЯ ГЛОБАЛЬНЫХ КНОПОК
 (чтобы pagination не превратилась в "uppercase кнопки")
============================================= */
.pagesBlockuz a, .pagesBlockuz b,
.pagesBlockuz1 a, .pagesBlockuz1 b,
.pagesBlockuz2 a, .pagesBlockuz2 b,
#pagesBlock1 a, #pagesBlock1 b,
#pagesBlock2 a, #pagesBlock2 b,
.catPages1 a, .catPages1 b,
.catPages2 a, .catPages2 b,
.switch a, .switch b,
.users-pagination a, .users-pagination b,
.archive-info-pages a, .archive-info-pages b,
.forumContent .switch td a {
 text-transform: none !important;
 letter-spacing: 0 !important;
 font-family: 'Open Sans', sans-serif !important;
 margin: 0 !important;
 line-height: 1 !important;
}

/* Стрелки навигации без CAPS */
.swchItem-prev, .swchItem-next,
.swchItem-prev a, .swchItem-next a {
 text-transform: none !important;
 letter-spacing: 0 !important;
}