* {
  font-family: Inter;
  font-weight: 700;
  font-style: Bold;
  font-size: 24px;
  leading-trim: NONE;
  line-height: 24px;
  letter-spacing: 0%;
}

.container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  //background: #000;
  display: flex;
  transition: background-image 0.5s ease; // Плавный переход между фонами
}

// Полупрозрачный оверлей поверх фона для лучшей читаемости
.backgroundOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; // Под всеми элементами, но поверх фона
}

// Боковое меню
.sidebarMenu {
  position: fixed;
  top: 0;
  right: -480px; // Изменяем с left на right
  width: 480px;
  height: 100vh;
  background: #f9edd71f;
  backdrop-filter: blur(50px);
  z-index: 1001; // Повышаем z-index чтобы быть поверх оверлея
  transition: right 0.3s ease; // Изменяем анимацию с left на right
  overflow-y: auto;

  &.open {
    right: 0; // Изменяем с left на right
  }

  @media (max-width: 768px) {
    width: 100vw;
    right: -100vw; // Изменяем с left на right
  }

  @media (max-width: 600px) {
    width: 100vw;
    right: -100vw;
    padding: 10px;
  }

  @media (max-width: 480px) {
    width: 100vw;
    right: -100vw;
    padding: 5px;
  }
}

.menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000; // Повышаем z-index чтобы быть поверх оверлея
}

.menuHeader {
  padding: 20px 20px 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  h2 {
    font-family: Inter;
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    leading-trim: NONE;
    line-height: 24px;
    letter-spacing: 0%;
    color: #fcefd8;
  }

  @media (max-width: 768px) {
    padding: 15px;

    h2 {
      font-size: 16px;
    }
  }

  @media (max-width: 600px) {
    padding: 12px;

    h2 {
      font-size: 15px;
    }
  }

  @media (max-width: 480px) {
    padding: 10px;

    h2 {
      font-size: 14px;
    }
  }
}

.menuClose {
  background: #f9edd71f;
  backdrop-filter: blur(50px);
  border: 1px solid #fdf3e533;
  border-radius: 8px;
  cursor: pointer;
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    width: 20px;
    height: 20px;
  }

  @media (max-width: 768px) {
    padding: 4px;

    img {
      width: 18px;
      height: 18px;
    }
  }

  @media (max-width: 600px) {
    // padding: 3px;

    // img {
    //   width: 16px;
    //   height: 16px;
    // }
  }

  @media (max-width: 480px) {
    // padding: 2px;

    // img {
    //   width: 14px;
    //   height: 14px;
    // }
  }
}

.menuContent {
  //   padding: 20px;

  @media (max-width: 768px) {
    // padding: 15px;
  }

  @media (max-width: 600px) {
    // padding: 12px;
  }

  @media (max-width: 480px) {
    // padding: 10px;
  }
}

// Вкладки "Автор / Произведение"
.tabsHeader {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 10px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tabButton {
  font-family: Inter;
  font-weight: 400;
  font-style: Regular;
  font-size: 18px;
  leading-trim: NONE;
  line-height: 20px;
  letter-spacing: 0%;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 0;
}

.tabActive {
  color: #ffffff;
}

.schedule {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;

  @media (max-width: 500px) {
    padding: 20px;
  }
}

.bookTwoButton {
  padding: 30px 20px;
  border-radius: 8px;
  background-color: #fcefd81f;
  border: 1px solid transparent;
  font-family: Inter;
  font-weight: 500;
  font-style: Medium;
  font-size: 22px;
  leading-trim: NONE;
  line-height: 20px;
  letter-spacing: 0%;
  color: #fcefd8;
  cursor: pointer;
}

.BookTwoButtonActive {
  border: 1px solid #fcefd8;
}

.workButton {
  padding: 20px;
  background: #fcefd81f;
  border: none;
  border-radius: 8px;
  cursor: pointer;

  &__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  &__title {
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 22px;
    letter-spacing: 0%;
    color: #fcefd8;
    text-align: left;
  }

  &__author {
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 16px;
    letter-spacing: 0%;
    color: #fcefd880;
  }
}

.workButtonActive {
  border: 1px solid #fcefd8;
}

.authorButton {
  padding: 20px;
  border-radius: 8px;
  background: #fcefd81f;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;

  &__photo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-right: 12px;
    overflow: hidden;

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
      display: block; // убирает пробелы от inline-картинок
    }
  }

  &__info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  &__name {
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 22px;
    leading-trim: NONE;
    line-height: 22px;
    letter-spacing: 0%;
    color: #fcefd8;
  }
  &__years {
    font-family: Inter;
    font-weight: 500;
    font-style: Medium;
    font-size: 14px;
    leading-trim: NONE;
    line-height: 16px;
    letter-spacing: 0%;
    color: #fcefd880;
  }
}

.authorButtonActive {
  border: 1px solid #fcefd8;
}

.tabUnderline {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: #e6e0d5;
  border-radius: 2px;
  transition: left 0.25s ease, width 0.25s ease;
}

.bookTitle {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-align: center;

  @media (max-width: 768px) {
    font-size: 15px;
    margin-bottom: 15px;
    padding: 12px;
  }

  @media (max-width: 600px) {
    font-size: 14px;
    margin-bottom: 12px;
    padding: 10px;
  }

  @media (max-width: 480px) {
    font-size: 13px;
    margin-bottom: 10px;
    padding: 8px;
  }
}

// Убираем старые стили .menuItem, так как теперь используем grid-сетку

// Grid-сетка для страниц
.pagesGrid {
  display: grid;
  grid-template-columns: 1fr 1fr; // 2 столбца
  gap: 15px; // Отступ между элементами
  padding: 10px 0;

  @media (max-width: 768px) {
    gap: 12px;
  }

  @media (max-width: 600px) {
    gap: 10px;
  }

  @media (max-width: 480px) {
    gap: 8px;
  }
}

// Элемент сетки для страницы
.pageGridItem {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;

  &:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  &.active {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  }

  @media (max-width: 768px) {
    border-radius: 6px;
  }

  @media (max-width: 600px) {
    border-radius: 5px;
  }

  @media (max-width: 480px) {
    border-radius: 4px;
  }
}

// Стили для миниатюр страниц (теперь больше)
.pageThumbnail {
  width: 100%;
  height: 120px; // Увеличиваем высоту
  border-radius: 8px 8px 0 0; // Скругляем только верхние углы
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);

  @media (max-width: 768px) {
    height: 100px;
  }

  @media (max-width: 600px) {
    height: 90px;
  }

  @media (max-width: 480px) {
    height: 80px;
  }
}

.thumbnailImage {
  width: 100%;
  height: 100%;
  object-fit: cover; // Обрезаем изображение по размеру контейнера
  transition: transform 0.3s ease;
}

.pageGridItem:hover .thumbnailImage {
  transform: scale(1.1); // Увеличиваем эффект при наведении
}

// Информация о странице под миниатюрой
.pageInfo {
  padding: 10px;
  text-align: center;

  @media (max-width: 768px) {
    padding: 8px;
  }

  @media (max-width: 600px) {
    padding: 6px;
  }

  @media (max-width: 480px) {
    padding: 5px;
  }
}

.pageTitle {
  color: #fff;
  font-size: 12px;
  font-weight: 600;

  @media (max-width: 768px) {
    font-size: 11px;
  }

  @media (max-width: 600px) {
    font-size: 10px;
  }

  @media (max-width: 480px) {
    font-size: 9px;
  }
}

// Убираем старые стили .itemTitle и .itemNumber, так как теперь используем grid-сетку

// Главный контент
.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2; // Повышаем z-index чтобы быть поверх оверлея
}

.topControls {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  z-index: 100;
}

.menuButton,
.closeButton {
  position: relative; // Для позиционирования псевдоэлемента
  background-color: rgba(239, 229, 205, 0.1); // Уменьшаем прозрачность
  border: 1px solid rgba(239, 229, 205, 0.3);
  border-radius: 8px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden; // Обрезаем псевдоэлемент по границам кнопки

  // Псевдоэлемент для размытия фона
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(239, 229, 205, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: -1; // Помещаем за содержимое кнопки
  }

  &:hover {
    transform: scale(1.1);

    &::before {
      background: rgba(
        239,
        229,
        205,
        0.3
      ); // Увеличиваем прозрачность при наведении
    }
  }

  img {
    width: 24px;
    height: 24px;
    position: relative; // Чтобы быть поверх псевдоэлемента
    z-index: 1;
  }
}

// Область с изображением
.pageDisplay {
  flex: 1;
  display: flex;
  align-items: center; // Центрируем по вертикали
  justify-content: center; // Центрируем по горизонтали
  padding: 65px 20px 75px 20px; // Уменьшаем верхний padding для лучшего центрирования
  position: relative;
  overflow: visible; // Убираем обрезание
}

.navButton {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);

  &:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
  }

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;

    &:hover {
      transform: translateY(-50%) scale(1);
    }
  }

  img {
    width: 24px;
    height: 24px;
    // Убираем filter: invert(1) чтобы SVG отображались в оригинальных цветах
  }

  &.prev {
    left: 20px;
  }

  &.next {
    right: 20px;
  }
}

.pageImageContainer {
  position: relative;
  width: 90%;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible; // Убираем overflow: hidden чтобы страницы не обрезались
}

.spreadWrapper {
  display: flex;
  gap: 0px;
  align-items: center;
  justify-content: center;
}

// Ограничения размеров страниц в развороте (книга 2)
.spreadWrapper .pageImage {
  max-height: 80vh; // базовое ограничение высоты разворота
  max-width: 45vw; // чтобы две страницы помещались по ширине
}

@media (max-width: 1700px) {
  .spreadWrapper .pageImage {
    max-height: 80vh; // уменьшаем высоту на экранах <1700px
    max-width: 42vw; // немного уменьшаем ширину каждой страницы
  }
}

.pageImage {
  // Базовые стили для стандартных экранов
  max-width: 90%; // Базовый размер для больших экранов
  max-height: 90%; // Базовый размер для больших экранов
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  // Автоматическое масштабирование под размер экрана
  width: auto;
  height: auto;
}

.pagePlaceholder {
  color: #fff;
  text-align: center;
  font-size: 18px;
}

.pageZoomControls {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px;
  border-radius: 25px;
}

.zoomButton {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
  }

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;

    &:hover {
      transform: scale(1);
    }
  }

  img {
    width: 16px;
    height: 16px;
    // Убираем filter: invert(1) чтобы SVG отображались в оригинальных цветах
  }
}

.zoomLevel {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 40px;
}

// Нижняя панель управления
.bottomControls {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.zoomControls {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 20px;
  border-radius: 25px;
}

.pageCounter {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  padding: 15px 20px;
  border-radius: 25px;
}

// Состояния загрузки и ошибок
.loading,
.error {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loadingSpinner {
  text-align: center;
  color: #fff;

  .spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
  }

  p {
    font-size: 18px;
    margin: 0;
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.errorMessage {
  text-align: center;
  color: #fff;
  max-width: 500px;
  padding: 40px;

  h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  p {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.5;
  }
}

.errorActions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;

  button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;

    &:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: translateY(-2px);
    }
  }
}

// Стили для каталога книги 4
.catalogHeader {
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 100;
}

.catalogBackButton {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 8px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;

  &:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
  }

  img {
    width: 24px;
    height: 24px;
  }
}

.catalogTitle {
  color: #fff;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.catalogGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 100px 40px 40px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.catalogCard {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);

  &:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  }
}

.catalogCardHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.catalogCardNumber {
  background: #ff5722;
  color: #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.catalogCardTitle {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.3;
}

.catalogCardContent {
  margin-bottom: 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.catalogCardDiagram {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border-radius: 8px;
}

.catalogCardIcon {
  font-size: 48px;
  opacity: 0.6;
}

.catalogCardFooter {
  text-align: center;
}

.catalogCardSubtitle {
  font-size: 14px;
  font-weight: 600;
  color: #666;
  margin: 0;
  line-height: 1.2;
}

.studyButton {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: #fff;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;

  &:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
  }
}

// Адаптивность для каталога
@media (max-width: 1200px) {
  .catalogGrid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 100px 30px 40px 30px;
  }
}

@media (max-width: 900px) {
  .catalogGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 100px 20px 40px 20px;
  }

  .catalogTitle {
    font-size: 20px;
  }
}

@media (max-width: 600px) {
  .catalogGrid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 100px 15px 40px 15px;
  }

  .catalogTitle {
    font-size: 18px;
  }

  .catalogCard {
    padding: 16px;
  }

  .catalogCardTitle {
    font-size: 14px;
  }

  .catalogCardSubtitle {
    font-size: 12px;
  }
}

// Адаптивность для мобильных устройств
@media (max-width: 768px) {
  .sidebarMenu {
    width: 100vw;
    right: -100vw; // Исправляем - должно быть right, а не left
  }

  .pageDisplay {
    padding: 5px 0px 75px 0px !important; // Минимальный padding для максимального места
  }

  .navButton {
    width: 50px;
    height: 50px;

    &.prev {
      left: 10px;
    }

    &.next {
      right: 10px;
    }
  }

  .pageImageContainer {
    // Адаптивные размеры для маленьких экранов
    max-width: 95vw !important; // 95% ширины viewport
    max-height: 95vh !important; // 95% высоты viewport
    width: 95vw !important; // 95% ширины viewport
    height: 95vh !important; // 95% высоты viewport
    position: relative !important; // Возвращаем relative позиционирование
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
  }

  .pageImage {
    // Принудительное масштабирование для маленьких экранов
    max-width: 95vw !important; // 95% ширины viewport
    max-height: 95vh !important; // 95% высоты viewport
    width: 95vw !important; // 95% ширины viewport
    height: auto !important; // Автоматическая высота для сохранения пропорций
    transform: scale(1) !important; // Без дополнительного увеличения
    object-fit: contain !important;
  }

  .topControls,
  .bottomControls {
    left: 10px;
    right: 10px;
  }

  .pageZoomControls {
    top: 10px;
    right: 10px;
    padding: 10px;
  }

  .zoomControls,
  .pageCounter {
    padding: 10px 15px;
  }
}

// Адаптивность для экранов 600px и меньше - страницы на всю ширину
@media (max-width: 600px) {
  .pageDisplay {
    padding: 10px 0px 70px 0px; // Минимальный padding для максимального места
  }

  .pageImageContainer {
    max-width: 90vw !important; // 90% ширины viewport
    max-height: 90vh !important; // 90% высоты viewport
    width: 90vw !important; // 90% ширины viewport
    height: 90vh !important; // 90% высоты viewport
  }

  .pageImage {
    max-width: 90vw !important; // 90% ширины viewport
    max-height: 90vh !important; // 90% высоты viewport
    width: 90vw !important; // 90% ширины viewport
    height: auto !important; // Автоматическая высота
    transform: scale(1); // Без дополнительного увеличения
  }

  .navButton {
    width: 40px; // Уменьшаем кнопки для экономии места
    height: 40px;

    &.prev {
      left: 5px;
    }

    &.next {
      right: 5px;
    }
  }

  .topControls,
  .bottomControls {
    left: 5px;
    right: 5px;
  }
}

// Адаптивность для очень маленьких экранов
@media (max-width: 480px) {
  .pageDisplay {
    padding: 5px 0px 65px 0px; // Минимальный padding для максимального места
  }

  .pageImageContainer {
    max-width: 85vw !important; // 85% ширины viewport
    max-height: 85vh !important; // 85% высоты viewport
    width: 85vw !important; // 85% ширины viewport
    height: 85vh !important; // 85% высоты viewport
  }

  .pageImage {
    max-width: 85vw !important; // 85% ширины viewport
    max-height: 85vh !important; // 85% высоты viewport
    width: 85vw !important; // 85% ширины viewport
    height: auto !important; // Автоматическая высота
    transform: scale(1); // Без дополнительного увеличения
  }

  .navButton {
    width: 45px;
    height: 45px;

    &.prev {
      left: 5px;
    }

    &.next {
      right: 5px;
    }
  }
}

// Адаптивность для средних экранов
@media (min-width: 769px) and (max-width: 1024px) {
  .pageDisplay {
    padding: 50px 15px 80px 15px; // Уменьшаем верхний padding на 15px
    align-items: center; // Принудительно центрируем по вертикали
  }

  .pageImageContainer {
    // max-width: 94%; // Увеличиваем размер
    // max-height: 90%; // Увеличиваем размер
    align-items: center; // Центрируем содержимое
  }

  .pageImage {
    // max-width: 94% !important; // Увеличиваем размер изображения
    // max-height: 90% !important; // Увеличиваем размер изображения
  }
}

// Адаптивность для больших экранов
@media (min-width: 1025px) and (max-width: 1700px) {
  .pageDisplay {
    padding: 60px 18px 75px 18px; // Уменьшаем верхний padding на 15px
    align-items: center; // Принудительно центрируем по вертикали
  }

  .pageImageContainer {
    max-width: 94%; // Увеличиваем максимальную ширину
    max-height: 92%; // Увеличиваем максимальную высоту
    align-items: center; // Центрируем содержимое
  }

  .pageImage {
    // width: 100%;
    // height: auto;
    // max-width: 90% !important; // Увеличиваем размер изображения
    // max-height: 92% !important; // Увеличиваем размер изображения
  }
}

// Адаптивность для очень больших экранов
@media (min-width: 1701px) {
  .pageDisplay {
    padding: 70px 20px 70px 20px; // Уменьшаем padding для большего места
  }

  .pageImageContainer {
    max-width: 95%; // Увеличиваем размер для больших экранов
    max-height: 92%; // Увеличиваем размер для больших экранов
  }

  .pageImage {
    max-width: 95% !important; // Увеличиваем размер для больших экранов
    max-height: 92% !important; // Увеличиваем размер для больших экранов
  }
}
