@media print {
  /* Базовые стили для страницы */
  html, body {
    display: block;
    width: 100%;
    height: auto !important; /* Разрешаем неограниченную высоту */
    margin: 0;
    padding: 0;
    background: none;
    color: #000;
    font-family: Arial, sans-serif;
    font-size: 10pt;
    line-height: 1.3;
  }

  /* Основной контейнер контента */
  #c-column {
    display: block;
    width: 19cm; /* 21 см - 2 см отступы */
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    height: auto !important; /* Убираем ограничения по высоте */
    overflow: visible !important; /* Предотвращаем обрезку контента */
    transform: none; /* Убираем transform для печати */
  }

  /* Контейнер контента */
  .hdp-content-wrapper {
    width: 100%;
    max-width: 19cm;
    margin: 0 auto;
    height: auto !important;
    overflow: visible !important;
  }

  /* Галерея */
  .photo-galery-left {
    width: 100%;
    max-width: 18cm;
    page-break-inside: avoid;
  }

  /* Скрываем ненужные элементы */
  #containerdetails_next_block,
  #list-container-column,
  #selection-menu-box,
  #containertopmenu,
  .nav-top-container,
  #search-bar-container,
  #search-sort-bar,
  #search-filters,
  #containerdetails_month,
  #contact-lightbox,
  #footer {
    display: none !important;
  }

  /* Иконки статуса */
  .zest-range-bar [class^="icon-for-status-"] {
    display: block;
  }
  #ZoomCustom{
  height: 413px !important;
  }

  /* Управление разрывами страниц */
  #containerdetails_season {
/*    page-break-before: always;  Новая страница для этого блока */
      height: 100% !important;
      overflow: hidden !important;
      break-after: page;
  }

  .addr_city_size3 {
  margin-bottom: 10px !important;
  min-height: 50px;
  max-height: 100%;
  overflow: hidden !important;
  }
  .clearfix.tab-container.yui3-tabview-list.tab-count-2{
    display: none;
  }
  .zsg-lg-1-1 {
  margin-left: 0px !important;
  }
  article {
    page-break-before: always; /* Каждая статья на новой странице */
    page-break-inside: auto; /* Разрешаем разрыв внутри длинных статей */
  }

  h2, h3 {
    page-break-after: avoid; /* Избегаем разрыва после заголовков */
    page-break-before: auto;
    font-size: 12pt;
  }

  img {
    max-width: 100% !important;
    height: auto;
    page-break-inside: avoid;
  }

  ul {
    page-break-inside: auto;
  }

  li {
    page-break-inside: avoid;
  }

  /* Таблицы */
  table {
    width: 100%;
    page-break-inside: auto;
    border-collapse: collapse;
  }

  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }

  /* Убедимся, что контент не обрезается */
  * {
    overflow: visible !important;
    box-sizing: border-box;
  }

  /* Цвета и фон */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Размер страницы A4 */
  @page {
    size: A4 portrait;
    margin: 2cm;
  }

  /* Номера страниц */
  @page {
    @bottom-right {
      content: counter(page) " из " counter(pages);
      font-size: 8pt;
      color: #555;
    }
  }
}

/* Стили для экрана */
@media screen {
  #c-column, .hdp-content-wrapper, .photo-galery-left { 
    width: auto;
  }
}