/* soclink */
.social-network {
    padding: 16px 12px;
    max-width: 100%;
    display: flex;
    justify-content: left;
}

.social-network__list {
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 12px;
    list-style: none;
    max-width: 600px;
    justify-content: center;
}

.social-network__item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-network__link {
    display: block;
    width: 48px;
    height: 48px;
    background-size: cover;
    background-position: center;
    text-indent: -9999px;
    border-radius: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-network__link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.social-network__onlyfans {
    background-image: url("../images/of.jpg");
}

.social-network__fansly {
    background-image: url("../images/fansly.jpg");
}

.social-network__inst {
    background-image: url("../images/insta.jpg");
}

.social-network__linktr {
    background-image: url("../images/linktr.jpg");
}

.social-network__patreon {
    background-image: url("../images/patreon.jpg");
}

.social-network__youtube {
    background-image: url("../images/ytube.jpg");
}

.social-network__tt {
    background-image: url("../images/tt.jpg");
}

.social-network__twitch {
    background-image: url("../images/twitch.jpg");
}

.social-network__tg {
    background-image: url("../images/tg.jpg");
}

.social-network__twitter {
    background-image: url("../images/x.jpg");
}

.social-network__x {
    background-image: url("../images/x.jpg");
}

.social-network__facebook {
    background-image: url("../images/facebook.jpg");
}

.social-network__imdb {
    background-image: url("../images/imdb.jpg");
}

.social-network__wikipedia {
    background-image: url("../images/wikipedia.jpg");
}

@media (max-width: 768px) {
    .social-network__list {
        grid-template-columns: repeat(auto-fit, minmax(40px, 1fr));
        gap: 8px;
    }

    .social-network__link {
        width: 40px;
        height: 40px;
    }
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.contentArticleGallery {
    padding: 18px 6px;
    background: #FFF;
    border-radius: 12px;
}

.contentArticleGallery h2 {
    margin-bottom: 20px;
    text-align: center;
    text-transform: none;
	font: bold 24px / 1.4 "Playfair Display", serif, "Arial";
	text-transform: uppercase;
}

.contentArticleGalleryEntry {
    display: flex;
    flex-direction: column; /* Расположение элементов по вертикали */
    gap: 24px; /* Отступы между элементами внутри */
}

.contentArticleGalleryEntry.random_photos {
    padding-bottom: 12px;
}

.contentArticleGalleryShare {
    margin-top: 20px;
    text-align: center;
}

.justified-gallery .jg-entry,
.justified-gallery img {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* Сетка галереи */
.justified-gallery {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.justified-gallery > a,
.justified-gallery > div,
.justified-gallery > figure {
    position: absolute;
    display: inline-block;
    overflow: hidden;
    /* background: #888888; To have gray placeholders while the gallery is loading with waitThumbnailsLoad = false */
    filter: "alpha(opacity=10)";
    opacity: 0.1;
    margin: 0;
    padding: 0;
}

.justified-gallery > a > img,
.justified-gallery > div > img,
.justified-gallery > figure > img,
.justified-gallery > a > a > img,
.justified-gallery > div > a > img,
.justified-gallery > figure > a > img,
.justified-gallery > a > svg,
.justified-gallery > div > svg,
.justified-gallery > figure > svg,
.justified-gallery > a > a > svg,
.justified-gallery > div > a > svg,
.justified-gallery > figure > a > svg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    padding: 0;
    border: none;
    filter: "alpha(opacity=0)";
    opacity: 0;
}

.justified-gallery > a > .jg-caption,
.justified-gallery > div > .jg-caption,
.justified-gallery > figure > .jg-caption {
    display: none;
    position: absolute;
    bottom: 0;
    padding: 5px;
    background-color: #000000;
    left: 0;
    right: 0;
    margin: 0;
    color: white;
    font-size: 12px;
    font-weight: 300;
    font-family: sans-serif;
}

.justified-gallery > a > .jg-caption.jg-caption-visible,
.justified-gallery > div > .jg-caption.jg-caption-visible,
.justified-gallery > figure > .jg-caption.jg-caption-visible {
    display: initial;
    filter: "alpha(opacity=70)";
    opacity: 0.7;
    -webkit-transition: opacity 500ms ease-in;
    -moz-transition: opacity 500ms ease-in;
    -o-transition: opacity 500ms ease-in;
    transition: opacity 500ms ease-in;
}

.justified-gallery > .jg-entry-visible {
    filter: "alpha(opacity=100)";
    opacity: 1;
    background: none;
}

.justified-gallery > .jg-entry-visible > img,
.justified-gallery > .jg-entry-visible > a > img,
.justified-gallery > .jg-entry-visible > svg,
.justified-gallery > .jg-entry-visible > a > svg {
    filter: "alpha(opacity=100)";
    opacity: 1;
    -webkit-transition: opacity 500ms ease-in;
    -moz-transition: opacity 500ms ease-in;
    -o-transition: opacity 500ms ease-in;
    transition: opacity 500ms ease-in;
}

.justified-gallery > .jg-filtered {
    display: none;
}

.justified-gallery > .jg-spinner {
    position: absolute;
    bottom: 0;
    margin-left: -24px;
    padding: 10px 0 10px 0;
    left: 50%;
    filter: "alpha(opacity=100)";
    opacity: 1;
    overflow: initial;
}

.justified-gallery > .jg-spinner > span {
    display: inline-block;
    filter: "alpha(opacity=0)";
    opacity: 0;
    width: 8px;
    height: 8px;
    margin: 0 4px 0 4px;
    background-color: #000;
    border-radius: 6px;
}


/*tabs*/

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.contentPhotosTab
{
   white-space: nowrap;
   text-transform: uppercase;
   font-weight: bold;
   font-size: 16px;
   line-height: 60px;
}
.contentPhotosTab ul
{
   overflow: hidden;
   box-shadow: inset 0 -2px #E2E2E2;
}
.contentPhotosTab li
{
   float: left;
   margin-right: 6px;
   padding: 0 24px;
   background: #F1F1F1;
   box-shadow: inset 0 -2px #E2E2E2;
   cursor: pointer;
}
.contentPhotosTab li:last-child
{
   margin: 0;
}
.contentPhotosTab li:hover
{
   background: #E2E2E2;
}
.contentPhotosTab li._current
{
   background: #FFF;
   box-shadow: inset 0 2px #DCD5FF;
   cursor: default;
}

.contentPhotosBox
{
   display: none;
   overflow: hidden;
   padding: 20px 12px 0 12px;
   background: #FFF;
}
.contentPhotosBox[data-tabbox="1"]
{
   display: block;
}

.contentPhotosBlock
{
   margin-bottom: 20px;
}
.contentPhotosBlockTitle
{
   overflow: hidden;
   margin-bottom: 6px;
   font-size: 14px;
   line-height: 20px;
}
.contentPhotosBlockTitle span
{
   float: left;
   margin-right: 12px;
   color: #999;
}
.contentPhotosBlockTitle div
{
   float: left;
   padding-left: 18px;
   background: url("../images/icon-arrow.png") 0 50% no-repeat;
   background-size: 6px 12px;
   font-weight: bold;
   font-size: 16px;
   font-family: "Playfair Display", "Arial";
}


/* teasers основные стили h2 */
.teaser-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: space-between;
    font-family: Arial, sans-serif;
    margin: 20px 0;
}

.teaser-container [class^="teaser-block"], 
.teaser-container [class*=" teaser-block"] {
    display: block;
    width: 100%;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    color: inherit;
    text-decoration: none !important;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, sans-serif;
}

.teaser-container [class^="teaser-block"]:hover, 
.teaser-container [class*=" teaser-block"]:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none !important;
}

.teaser-container [class^="teaser-block"] img, 
.teaser-container [class*=" teaser-block"] img {
    width: 220px;
    height: 220px;
    display: block;
    margin: 6px auto;
    object-fit: cover;
    border: none;
    border-radius: 0;
}

.teaser-container [class^="teaser-block"] .teaser-title, 
.teaser-container [class*=" teaser-block"] .teaser-title {
    font-size: 18px;
    font-weight: bold;
    margin: 5px 0;
    color: red;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
}

.teaser-container [class^="teaser-block"]:hover .teaser-title, 
.teaser-container [class*=" teaser-block"]:hover .teaser-title {
    color: black;
    text-decoration: none !important;
}

.teaser-container [class^="teaser-block"] .teaser-subtitle, 
.teaser-container [class*=" teaser-block"] .teaser-subtitle {
    font-size: 18px;
    color: #666;
    margin: 5px 0;
    text-decoration: none !important;
    font-family: Arial, sans-serif;
}

.teaser-container [class^="teaser-block"]:hover .teaser-subtitle, 
.teaser-container [class*=" teaser-block"]:hover .teaser-subtitle {
    color: #666;
    text-decoration: none !important;
}

/* РЎС‚Р°С†РёРѕРЅР°СЂРЅС‹Рµ СѓСЃС‚СЂРѕР№СЃС‚РІР° - 3x1 */
@media (min-width: 1025px) {
    .teaser-container {
        flex-wrap: nowrap;
    }
    
    .teaser-container [class^="teaser-block"], 
    .teaser-container [class*=" teaser-block"] {
        width: 33.33%;
    }
}

/* РџР»Р°РЅС€РµС‚С‹ - 2x1 */
@media (max-width: 1024px) and (min-width: 769px) {
    .teaser-container {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    
    .teaser-container [class^="teaser-block"], 
    .teaser-container [class*=" teaser-block"] {
        width: 50%;
    }
    
    .teaser-container [class^="teaser-block"]:nth-child(n+3), 
    .teaser-container [class*=" teaser-block"]:nth-child(n+3) {
        display: none;
    }
}

/* РњРѕР±РёР»СЊРЅС‹Рµ СѓСЃС‚СЂРѕР№СЃС‚РІР° - 1x2 */
@media (max-width: 768px) {
    .teaser-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .teaser-container [class^="teaser-block"], 
    .teaser-container [class*=" teaser-block"] {
        width: 100%;
        max-width: 300px;
    }
    
    .teaser-container [class^="teaser-block"]:nth-child(n+3), 
    .teaser-container [class*=" teaser-block"]:nth-child(n+3) {
        display: none;
    }
}

/* РћС‡РµРЅСЊ РјР°Р»РµРЅСЊРєРёРµ СЌРєСЂР°РЅС‹ (РјРµРЅСЊС€Рµ 300px) */
@media (max-width: 300px) {
    .teaser-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .teaser-container [class^="teaser-block"], 
    .teaser-container [class*=" teaser-block"] {
        width: 100%;
        max-width: 100%;
    }
    
    .teaser-container [class^="teaser-block"] img, 
    .teaser-container [class*=" teaser-block"] img {
        width: 100%; 
        height: auto;
        max-width: 220px;
    }
}



/*! PhotoSwipe main CSS by Dmytro Semenov | photoswipe.com */

.pswp {
  --pswp-bg: #000;
  --pswp-placeholder-bg: #222;
  

  --pswp-root-z-index: 100000;
  
  --pswp-preloader-color: rgba(79, 79, 79, 0.4);
  --pswp-preloader-color-secondary: rgba(255, 255, 255, 0.9);
  
  /* defined via js:
  --pswp-transition-duration: 333ms; */
  
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: #4f4f4f;
  --pswp-icon-stroke-color: #4f4f4f;
  --pswp-icon-stroke-width: 2px;

  --pswp-error-text-color: var(--pswp-icon-color);
}


/*
	Styles for basic PhotoSwipe (pswp) functionality (sliding area, open/close transitions)
*/

.pswp {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: var(--pswp-root-z-index);
	display: none;
	touch-action: none;
	outline: 0;
	opacity: 0.003;
	contain: layout style size;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

/* Prevents focus outline on the root element,
  (it may be focused initially) */
.pswp:focus {
  outline: 0;
}

.pswp * {
  box-sizing: border-box;
}

.pswp img {
  max-width: none;
}

.pswp--open {
	display: block;
}

.pswp,
.pswp__bg {
	transform: translateZ(0);
	will-change: opacity;
}

.pswp__bg {
  opacity: 0.005;
	background: var(--pswp-bg);
}

.pswp,
.pswp__scroll-wrap {
	overflow: hidden;
}

.pswp__scroll-wrap,
.pswp__bg,
.pswp__container,
.pswp__item,
.pswp__content,
.pswp__img,
.pswp__zoom-wrap {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.pswp__img,
.pswp__zoom-wrap {
	width: auto;
	height: auto;
}

.pswp--click-to-zoom.pswp--zoom-allowed .pswp__img {
	cursor: -webkit-zoom-in;
	cursor: -moz-zoom-in;
	cursor: zoom-in;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img {
	cursor: move;
	cursor: -webkit-grab;
	cursor: -moz-grab;
	cursor: grab;
}

.pswp--click-to-zoom.pswp--zoomed-in .pswp__img:active {
  cursor: -webkit-grabbing;
  cursor: -moz-grabbing;
  cursor: grabbing;
}

/* :active to override grabbing cursor */
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img,
.pswp--no-mouse-drag.pswp--zoomed-in .pswp__img:active,
.pswp__img {
	cursor: -webkit-zoom-out;
	cursor: -moz-zoom-out;
	cursor: zoom-out;
}


/* Prevent selection and tap highlights */
.pswp__container,
.pswp__img,
.pswp__button,
.pswp__counter {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.pswp__item {
	/* z-index for fade transition */
	z-index: 1;
	overflow: hidden;
}

.pswp__hidden {
	display: none !important;
}

/* Allow to click through pswp__content element, but not its children */
.pswp__content {
  pointer-events: none;
}
.pswp__content > * {
  pointer-events: auto;
}


/*

  PhotoSwipe UI

*/

/*
	Error message appears when image is not loaded
	(JS option errorMsg controls markup)
*/
.pswp__error-msg-container {
  display: grid;
}
.pswp__error-msg {
	margin: auto;
	font-size: 1em;
	line-height: 1;
	color: var(--pswp-error-text-color);
}

/*
class pswp__hide-on-close is applied to elements that
should hide (for example fade out) when PhotoSwipe is closed
and show (for example fade in) when PhotoSwipe is opened
 */
.pswp .pswp__hide-on-close {
	opacity: 0.005;
	will-change: opacity;
	transition: opacity var(--pswp-transition-duration) cubic-bezier(0.4, 0, 0.22, 1);
	z-index: 10; /* always overlap slide content */
	pointer-events: none; /* hidden elements should not be clickable */
}

/* class pswp--ui-visible is added when opening or closing transition starts */
.pswp--ui-visible .pswp__hide-on-close {
	opacity: 1;
	pointer-events: auto;
}

/* <button> styles, including css reset */
.pswp__button {
	position: relative;
	display: block;
	width: 50px;
	height: 60px;
	padding: 0;
	margin: 0;
	overflow: hidden;
	cursor: pointer;
	background: none;
	border: 0;
	box-shadow: none;
	opacity: 0.85;
	-webkit-appearance: none;
	-webkit-touch-callout: none;
}

.pswp__button:hover,
.pswp__button:active,
.pswp__button:focus {
  transition: none;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  opacity: 1;
}

.pswp__button:disabled {
  opacity: 0.3;
  cursor: auto;
}

.pswp__icn {
  fill: var(--pswp-icon-color);
  color: var(--pswp-icon-color-secondary);
}

.pswp__icn {
  position: absolute;
  top: 14px;
  left: 9px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  pointer-events: none;
}

.pswp__icn-shadow {
  stroke: var(--pswp-icon-stroke-color);
  stroke-width: var(--pswp-icon-stroke-width);
  fill: none;
}

.pswp__icn:focus {
	outline: 0;
}

/*
	div element that matches size of large image,
	large image loads on top of it,
	used when msrc is not provided
*/
div.pswp__img--placeholder,
.pswp__img--with-bg {
	background: var(--pswp-placeholder-bg);
}

.pswp__top-bar {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 60px;
	display: flex;
  flex-direction: row;
  justify-content: flex-end;
	z-index: 10;

	/* allow events to pass through top bar itself */
	pointer-events: none !important;
}
.pswp__top-bar > * {
  pointer-events: auto;
  /* this makes transition significantly more smooth,
     even though inner elements are not animated */
  will-change: opacity;
}


/*

  Close button

*/
.pswp__button--close {
  margin-right: 6px;
}


/*

  Arrow buttons

*/
.pswp__button--arrow {
  position: absolute;
  top: 0;
  width: 75px;
  height: 100px;
  top: 50%;
  margin-top: -50px;
}

.pswp__button--arrow:disabled {
  display: none;
  cursor: default;
}

.pswp__button--arrow .pswp__icn {
  top: 50%;
  margin-top: -30px;
  width: 60px;
  height: 60px;
  background: none;
  border-radius: 0;
}

.pswp--one-slide .pswp__button--arrow {
  display: none;
}

/* hide arrows on touch screens */
.pswp--touch .pswp__button--arrow {
  visibility: hidden;
}

/* show arrows only after mouse was used */
.pswp--has_mouse .pswp__button--arrow {
  visibility: visible;
}

.pswp__button--arrow--prev {
  right: auto;
  left: 0px;
}

.pswp__button--arrow--next {
  right: 0px;
}
.pswp__button--arrow--next .pswp__icn {
  left: auto;
  right: 14px;
  /* flip horizontally */
  transform: scale(-1, 1);
}

/*

  Zoom button

*/
.pswp__button--zoom {
  display: none;
}

.pswp--zoom-allowed .pswp__button--zoom {
  display: block;
}

/* "+" => "-" */
.pswp--zoomed-in .pswp__zoom-icn-bar-v {
  display: none;
}


/*

  Loading indicator

*/
.pswp__preloader {
  position: relative;
  overflow: hidden;
  width: 50px;
  height: 60px;
  margin-right: auto;
}

.pswp__preloader .pswp__icn {
  opacity: 0;
  transition: opacity 0.2s linear;
  animation: pswp-clockwise 600ms linear infinite;
}

.pswp__preloader--active .pswp__icn {
  opacity: 0.85;
}

@keyframes pswp-clockwise {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/*

  "1 of 10" counter

*/
.pswp__counter {
  height: 30px;
  margin-top: 15px;
  margin-inline-start: 20px;
  font-size: 14px;
  line-height: 30px;
  color: var(--pswp-icon-color);
  text-shadow: 1px 1px 3px var(--pswp-icon-color-secondary);
  opacity: 0.85;
}

.pswp--one-slide .pswp__counter {
  display: none;
}


/* Основные стили пагинации */
.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1rem 0;
  padding: 0 0.5rem;
  width: 100%;
  max-width: 100%; /* Ограничиваем ширину контейнера */
  box-sizing: border-box; /* Учитываем padding и border в ширине */
}

.navigation nav {
  width: 100%;
  max-width: 100%;
}

.pagination {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 1vw, 8px);
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.page-item {
  display: flex;
  flex-shrink: 0;
}

/* Общие стили для четкости текста на всех устройствах */
.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(32px, 8vw, 48px);
  height: clamp(32px, 8vw, 48px);
  padding: 0 clamp(8px, 2vw, 16px);
  text-decoration: none;
  font-weight: 500;
  font-size: clamp(12px, 3.5vw, 16px);
  border-radius: clamp(6px, 2vw, 12px);
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  
  background: #ffffff;
  color: #2a8ba8;
  border: 2px solid #b3e5f3;
  box-shadow: 0 2px 4px rgba(63, 173, 206, 0.05);
  
  /* Улучшение четкости текста */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 0;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}

.page-link:hover {
  background: #d4f1f9;
  border-color: #6dc9e0;
  color: #2a8ba8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(109, 201, 224, 0.15);
}

.page-link:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(109, 201, 224, 0.1);
}

/* Активная страница */
.page-item.active .page-link {
  background: linear-gradient(135deg, #6dc9e0 0%, #3fadce 100%);
  color: #ffffff;
  border-color: #3fadce;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(63, 173, 206, 0.3);
}

.page-item.active .page-link:hover {
  background: linear-gradient(135deg, #6dc9e0 0%, #3fadce 100%);
  transform: none;
  color: #ffffff;
}

/* Отключенные элементы (многоточие) */
.page-item.disabled .page-link {
  background: transparent;
  color: #3fadce;
  border: none;
  cursor: default;
  opacity: 0.6;
  font-weight: 600;
  box-shadow: none;
  padding: 0 clamp(4px, 1vw, 8px);
  min-width: clamp(20px, 5vw, 32px);
}

.page-item.disabled .page-link:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Стрелки навигации */
.page-link[rel="prev"],
.page-link[rel="next"] {
  font-weight: 600;
  padding: 0 clamp(12px, 3vw, 24px);
  background: #6dc9e0;
  color: #ffffff;
  border-color: #6dc9e0;
  min-width: auto;
  max-width: clamp(80px, 20vw, 120px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-link[rel="prev"]:hover,
.page-link[rel="next"]:hover {
  background: #3fadce;
  border-color: #3fadce;
  color: #ffffff;
}

/* Мобильные устройства - все элементы всегда видны */
@media (max-width: 600px) {
  .navigation {
    padding: 0 0.5rem;
    width: 100%;
  }
  
  .pagination {
    width: 100%;
    gap: clamp(4px, 2vw, 8px);
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    align-items: stretch;
    padding: 0.5rem 0;
  }
  
  .page-item {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }
  
  /* Обычные номера страниц */
  .page-item:not([class*="rel"]):not(.disabled) {
    flex: 0 0 clamp(36px, 10vw, 44px);
  }
  
  .page-link {
    width: 100%;
    min-width: clamp(36px, 10vw, 44px);
    height: clamp(36px, 10vw, 44px);
    font-size: clamp(12px, 4vw, 15px);
    padding: 0;
    border-width: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    
    /* Четкость текста на мобильных */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "liga" 0;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
  
  /* Стрелки навигации - занимают оставшееся место */
  .page-item:has([rel="prev"]),
  .page-item:has([rel="next"]) {
    flex: 1 1 clamp(80px, 25vw, 120px);
    min-width: clamp(80px, 25vw, 120px);
    max-width: clamp(120px, 30vw, 160px);
  }
  
  .page-link[rel="prev"],
  .page-link[rel="next"] {
    width: 100%;
    min-width: 100%;
    height: clamp(36px, 10vw, 44px);
    font-size: clamp(11px, 3.5vw, 14px);
    font-weight: 700;
    padding: 0 clamp(6px, 2vw, 12px);
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    
    /* Четкость текста */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
  
  /* Многоточия */
  .page-item.disabled {
    flex: 0 0 clamp(28px, 8vw, 36px);
  }
  
  .page-item.disabled .page-link {
    min-width: 100%;
    width: 100%;
    height: clamp(36px, 10vw, 44px);
    font-size: clamp(14px, 4vw, 16px);
    padding: 0;
    font-weight: 700;
    
    /* Четкость текста */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    backface-visibility: hidden;
    transform: translateZ(0);
  }
  
  /* Если элементов слишком много, используем более компактную раскладку */
  .pagination:has(.page-item:nth-child(9)) {
    gap: clamp(2px, 1vw, 4px);
  }
  
  .pagination:has(.page-item:nth-child(9)) .page-item:not([class*="rel"]):not(.disabled) {
    flex: 0 0 clamp(32px, 8vw, 36px);
  }
  
  .pagination:has(.page-item:nth-child(9)) .page-link {
    min-width: clamp(32px, 8vw, 36px);
    height: clamp(32px, 8vw, 36px);
    font-size: clamp(11px, 3.5vw, 13px);
  }
  
  .pagination:has(.page-item:nth-child(9)) .page-link[rel="prev"],
  .pagination:has(.page-item:nth-child(9)) .page-link[rel="next"] {
    height: clamp(32px, 8vw, 36px);
    font-size: clamp(10px, 3vw, 12px);
  }
  
  .pagination:has(.page-item:nth-child(9)) .page-item.disabled .page-link {
    height: clamp(32px, 8vw, 36px);
    font-size: clamp(12px, 3.5vw, 14px);
  }
}

/* Очень маленькие экраны */
@media (max-width: 350px) {
  .pagination {
    gap: 1px;
  }
  
  .page-item {
    max-width: calc(100% / 5); /* На малых экранах максимум 5 в ряду */
  }
  
  .page-link {
    min-width: clamp(20px, 15vw, 28px);
    height: clamp(20px, 15vw, 28px);
    font-size: clamp(8px, 4.5vw, 11px);
    border-radius: 4px;
  }
  
  .page-link[rel="prev"],
  .page-link[rel="next"] {
    min-width: clamp(45px, 35vw, 70px);
    font-size: clamp(7px, 3.5vw, 10px);
  }
  
  /* На совсем маленьких экранах прячем многоточия */
  .page-item.disabled {
    display: none;
  }
}

/* Средние экраны */
@media (min-width: 481px) and (max-width: 768px) {
  .pagination {
    flex-wrap: wrap;
    gap: clamp(4px, 1.5vw, 6px);
  }
}

/* Планшеты */
@media (min-width: 769px) and (max-width: 1024px) {
  .pagination {
    gap: clamp(6px, 1vw, 8px);
  }
}

/* Десктоп и больше */
@media (min-width: 1025px) {
  .navigation {
    margin: 2rem 0;
  }
  
  .pagination {
    gap: 8px;
  }
  
  .page-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(109, 201, 224, 0.2);
  }
}

/* Сверхширокие экраны */
@media (min-width: 1440px) {
  .pagination {
    gap: 8px;
  }
}

/* Высота экрана влияет на размер */
@media (max-height: 600px) {
  .page-link {
    min-width: clamp(28px, 6vw, 40px);
    height: clamp(28px, 6vw, 40px);
    font-size: clamp(11px, 3vw, 14px);
  }
}

/* Контейнер запросы для более точной адаптации */
@container (max-width: 300px) {
  .pagination {
    gap: 1px;
  }
  
  .page-link {
    min-width: 24px;
    height: 24px;
    font-size: 10px;
    padding: 0 4px;
  }
}

/* Улучшения для доступности */
.page-link:focus {
  outline: 2px solid rgba(109, 201, 224, 0.5);
  outline-offset: 2px;
}

/* Адаптация для ландшафтной ориентации мобильных */
@media (max-width: 812px) and (orientation: landscape) {
  .page-link {
    min-width: clamp(24px, 6vw, 36px);
    height: clamp(24px, 6vw, 36px);
    font-size: clamp(10px, 2.5vw, 13px);
  }
  
  .page-link[rel="prev"],
  .page-link[rel="next"] {
    padding: 0 clamp(8px, 2vw, 16px);
    max-width: clamp(60px, 15vw, 100px);
  }
}