@media print {
  * {
    background: none !important;
    box-shadow: none !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  html, body {
    width: 100 !important;
    overflow: visible !important;
  }
  body {
    font: 12pt/1.4 Georgia, serif !important;
  }
  img {
    max-width: 100% !important;
    height: auto !important;
    page-break-inside: avoid !important;
  }
  a, a:after {
    content: "" !important;
    color: inherit !important;
    text-decoration: none !important;
    pointer-events: none !important;
  }

  section, .section, .content-area, .wp-block-group {
    margin: 1em 0 !important;
    padding: 0 0.5em !important;
    break-inside: avoid-page !important;
  }
  #wpadminbar,
  .nojq {
    filter: invert(1);
    display: none!important;
  } 

  .header-logo img {
    mix-blend-mode: difference!important;
  }

  .events-mini-section, .news-section, .installations-section,
  .history-day-container, .oganeson-blocks-section,
  .media-block-container, footer {
    page-break-before: always !important;
    break-inside: avoid !important;
    margin: 1.5em 0 !important;
  }
  section:first-of-type, .section:first-of-type, .content-area:first-of-type,
  .wp-block-group:first-of-type {
    page-break-before: avoid !important;
  }
  h2, h3 { break-after: avoid-page !important; }


  .header-bar-auth, nav, .icon, .lang-switch, .burger-menu,
  .footer-logo, .footer-nav-short, .footer-socials,
  .footer-line.container, .footer-bottom.container,
  .border-bottom, .oganeson-button, .oganeson-link, .media-arrow,
  .events-slider-arrows, .hero-dots, .slider-controls {
    display: none !important;
  }


  .header nav, .menu, .menu ul {
    display: block !important;
    margin-bottom: 0.5em !important;
    font: 10pt Georgia, serif !important;
  }
  .menu li, .menu a {
    display: inline-block !important;
    margin-right: 1em !important;
    font-weight: 400 !important;
  }


  .hero-banner-slider, .hero-slide, .hero-slide.active {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    margin: 0 !important;
  }
  .hero-slide video, .hero-video-embed, .hero-slide::before {
    display: none !important;
  }
  .hero-content {
    font-size: 42px !important;
    margin: 1em 0 0 !important;
    line-height: 1.2 !important;
  }
  .hero-slide:not(:first-of-type) .hero-content {
    font-size: 28px !important;
    margin: 0.5em 0 !important;
  }
  .hero-banner-slider, .hero-slide:first-of-type {
    page-break-after: always !important;
  }

  .events-mini-section {
    border-bottom: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    position: relative !important;
    top: 0 !important;
  }
  .events-mini-slider-wrapper, .events-mini-cards {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    column-gap: 0.8em !important;
    row-gap: 0.8em !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    page-break-inside: avoid !important;
  }
  .event-mini-card {
    flex: none !important;
    width: 100% !important;
    min-height: 8em !important;
    padding: 0.8em 1em !important;
    border: 1px solid #ccc !important;
    box-sizing: border-box !important;
    break-inside: avoid !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    font-size: 10pt !important;
  }
  .event-mini-title {
    font: 700 11pt/1.3 Georgia, serif !important;
    margin-bottom: 0.5em !important;
  }
  .event-mini-author {
    font: 400 9pt/1.3 Georgia, serif !important;
  }
  .event-mini-meta, .event-category, .event-mini-location {
    font-size: 8pt !important;
    color: #444 !important;
  }


  .news-grid {
    display: grid !important;
    gap: 0.6em !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  }
  .news-card {
    width: 100% !important;
    padding: 1em 1.2em !important;
    border: 1px solid #ccc !important;
    break-inside: avoid !important;
    background: #fff !important;
  }
  .news-card.text { grid-column: auto !important; }
  .news-card.image, .news-card.large { grid-column: 1/-1 !important; }
  .news-title, .text-title { font-size: 12pt !important; }
  .news-time, .text-time { font-size: 9pt !important; color: #555 !important; }
  .news-category, .text-category {
    font-size: 8pt !important;
    background: #eee !important;
    padding: 0.25em 0.5em !important;
  }
  .news-card.large .news-overlay {
    position: static !important;
    background: #fff !important;
    padding: 1.2em 1.5em !important;
    margin-top: 2.5em !important;
    color: #000 !important;
  }
  .news-card.large .news-overlay .news-title,
  .news-card.large .news-overlay .news-time {
    color: #000 !important;
  }
  .news-card.large .news-image img {
    width: 100% !important;
    max-height: 250px !important;
    margin: 0 auto !important;
    page-break-inside: avoid !important;
  }


  .installations-gallery {
    display: block !important;
  }
  .installation-card {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: none !important;
    padding: 0 !important;
    border: none !important;
    margin-bottom: 1.5em !important;
  }
  .installation-card:nth-child(n+3) {
    display: none !important;
  }
  .installations-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 16px !important;
    margin: 1.5em 0 !important;
  }
  .installation-stat {
    flex: 0 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
    break-inside: avoid !important;
    box-sizing: border-box !important;
  }
  .installation-stat .number {
    font-size: 48px !important;
    font-weight: bold !important;
    line-height: 1.1 !important;
  }
  .installation-stat .description {
    font-size: 14px !important;
    line-height: 20px !important;
    max-width: 180px !important;
  }


  .oganeson-blocks-section {
    padding: 48px 24px !important;
  }
  .oganeson-blocks-section .container {
    padding: 0 !important;
  }
  .oganeson-blocks-wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .oganeson-block {
    min-height: auto !important;
    border: 1px solid #ccc !important;
    padding: 0.75em !important;
    color: #000 !important;
    background: #fff !important;
    break-inside: avoid !important;
  }
  .oganeson-block-inner {
    padding: 32px 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    height: 100% !important;
  }
  .oganeson-title {
    font-size: 30px !important;
    line-height: 38px !important;
  }
  .oganeson-text {
    font-size: 16px !important;
    line-height: 24px !important;
    margin-bottom: auto !important;
  }


  .media-block-container {
    padding: 0 24px !important;
  }
  .media-cards-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin: 0 !important;
  }
  .media-card {
    width: 100% !important;
    min-height: auto !important;
    padding: 10px 12px !important;
    border: 1px solid #ccc !important;
    break-inside: avoid !important;
  }
  .media-title {
    font-size: 36px !important;
    line-height: 44px !important;
    margin-bottom: 20px !important;
  }
  .media-card-title { font-size: 11pt !important; }
  .media-source-date, .media-source, .media-date { font-size: 9pt !important; }


  footer.footer-container {
    padding: 24px 18px !important;
    color: #000 !important;
    background: none !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }
  .footer-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }
  .footer-top {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 6px !important;
    row-gap: 20px !important;
    margin: 0 !important;
  }
  .footer-column {
    flex: 0 1 calc(50% - 6px) !important;
    max-width: 100% !important;
    text-align: left !important;
    break-inside: avoid !important;
  }
  .footer-column:nth-child(n+4) { display: none !important; }
  .footer-column h4 { font-size: 12px !important; margin-bottom: 6px !important; }
  .footer-column a {
    font-size: 9pt !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  .footer-bottom {
    text-align: center !important;
    font-size: 9pt !important;
    margin-top: 6px !important;
    position: relative !important;
    top: -8px !important;
  }
  .media-block-container:last-of-type, .oganeson-blocks-section:last-of-type,
  .history-day-container:last-of-type { margin-bottom: 0.5em !important; }


  @media print and (orientation: landscape) {
    body { font-size: 9pt !important; line-height: 1.4 !important; }
    .installations-stats { gap: 12px !important; margin: 1.2em 0 !important; }
    .installation-stat { width: calc(33.33% - 8px) !important; gap: 6px !important; }
    .installation-stat .number { font-size: 40px !important; }
    .installation-stat .description { font-size: 12px !important; line-height: 18px !important; }
    .installations-header { padding: 0 !important; }
    .installations-gallery-header { font-size: 18px !important; }
    .history-title { font-size: 20px !important; margin-top: 12px !important; }
    .history-subtitle { font-size: 12px !important; }
    .oganeson-title { font-size: 18px !important; }
    .oganeson-text { font-size: 10px !important; line-height: 16px !important; }
    .media-title { font-size: 20px !important; margin-top: 12px !important; }
    .events-mini-slider-wrapper, .events-mini-cards {
      grid-template-columns: repeat(4, 1fr) !important;
      column-gap: 0.6em !important;
      row-gap: 0.6em !important;
    }
    .event-mini-card {
      min-height: 10em !important;
      padding: 1em 1.2em !important;
      width: 100% !important;
    }
    .event-mini-title { font-size: 10pt !important; }
    .event-mini-author, .event-mini-meta, .event-category, .event-mini-location { font-size: 8pt !important; }
    .news-grid { gap: 0.6em !important; }
    .news-card {
      padding: 0.8em 1.2em !important;
      width: 100% !important;
    }
    .news-title, .text-title { font-size: 10pt !important; }
    .news-time, .text-time { font-size: 8pt !important; }
    .news-category, .text-category { font-size: 7pt !important; padding: 0.2em 0.4em !important; }
    .news-card.large {
      width: 100% !important;
      padding: 1.5em 2em !important;
    }
    .news-card.large .news-image img {
      width: 100% !important;
      max-height: 300px !important;
      margin: 0 auto !important;
      page-break-inside: avoid !important;
    }
    .media-cards-row {
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 12px !important;
    }
    .media-card {
      padding: 10px 15px !important;
      width: 100% !important;
    }
    .media-card-title { font-size: 10pt !important; }
    .media-source-date, .media-source, .media-date { font-size: 8pt !important; }
    .footer-container { padding: 18px 12px !important; }
    .footer-column h4 { font-size: 10px !important; }
    .footer-column a { font-size: 8pt !important; }
    .footer-bottom {
      font-size: 8pt !important;
      margin-top: 4px !important;
      top: -6px !important;
    }
    .oganeson-blocks-wrapper { gap: 12px !important; }
    .oganeson-block { padding: 0.6em !important; }
    .oganeson-block-inner { padding: 20px 15px !important; }
  }
}


.footer-top-bar { border-bottom: none !important; }
.history-day-container { border-bottom: none !important; }
.events-mini-section { border-bottom: none !important; }

@page { margin: 10mm; }

.events-mini-slider-wrapper::after,
.events-mini-slider-wrapper::before,
.events-mini-cards::after,
.events-mini-cards::before {
  display: none !important;
  content: none !important;
  background: none !important;
  box-shadow: none !important;
}

.events-mini-slider-wrapper,
.events-mini-cards,
.event-mini-card {
  background-image: none !important;
  box-shadow: none !important;
}

footer.footer-container {
  padding: 32px 24px !important;
  color: #000 !important;
  background: none !important;
  page-break-inside: avoid !important;
  break-inside: avoid !important;
  font-size: 11pt !important;
}

.footer-header {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
}

.footer-flags-row {
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center !important;
}

.footer-top {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 20px !important;
  row-gap: 28px !important;
  margin: 0 !important;
}

.footer-column {
  flex: 0 1 calc(33.33% - 20px) !important;
  max-width: 100% !important;
  text-align: left !important;
  break-inside: avoid !important;
}

.footer-column h4 {
  font-size: 13pt !important;
  margin-bottom: 10px !important;
  font-weight: bold !important;
}

.footer-column a {
  font-size: 11pt !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}

.footer-bottom {
  text-align: center !important;
  font-size: 10pt !important;
  margin-top: 12px !important;
  border-top: 1px solid #ccc !important;
  padding-top: 10px !important;
}


@media print {
  .news-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .news-card.large,
  .news-card.image {
    grid-column: 1 / -1 !important;
    display: block !important;
    border: 1px solid #ccc !important;
    margin-bottom: 0 !important;
    background: #fff !important;
    padding: 0 !important;
  }
  .news-card.large .news-image,
  .news-card.image .news-half-image {
    width: 100% !important;
    margin: 0 0 10px 0 !important;
    height: auto !important;
    border-radius: 8px 8px 0 0 !important;
    overflow: hidden !important;
    display: block !important;
    text-align: center !important;
  }
  .news-card.large .news-image img,
  .news-card.image .news-half-image img {
    width: 100% !important;
    max-width: 600px !important;
    height: auto !important;
    max-height: 240px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
  }
  .news-card.large .news-overlay,
  .news-card.image .news-text {
    padding: 16px 24px 12px 24px !important;
    background: #fff !important;
    position: static !important;
  }
  .news-card.large .news-title,
  .news-card.image .news-title {
    font-size: 16pt !important;
    line-height: 24px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
  }
  .news-card.large .news-time,
  .news-card.image .news-time {
    font-size: 11pt !important;
    color: #666 !important;
    margin-top: 8px !important;
  }
  .news-card.text {
    border: 1px solid #ccc !important;
    background: #fff !important;
    padding: 12px 18px !important;
    font-size: 11pt !important;
    line-height: 1.3 !important;
    break-inside: avoid !important;
    margin: 0 !important;
  }
  .news-card.text .text-title {
    font-size: 12pt !important;
    line-height: 18px !important;
    font-weight: bold !important;
    margin-bottom: 6px !important;
  }
  .news-card.text .text-time {
    font-size: 9pt !important;
    color: #888 !important;
    margin-top: 6px !important;
  }
  .news-card.text { grid-column: auto !important; }
  .news-card.text:nth-of-type(odd) { }
  .news-card.text:nth-of-type(even) { }
}


@media print and (orientation: landscape) {
  .events-mini-slider-wrapper,
  .events-mini-cards {
    grid-template-columns: repeat(2, minmax(320px, 1fr)) !important;
    column-gap: 14px !important;
    row-gap: 14px !important;
  }
  .event-mini-card {
    width: auto !important;
    font-size: 10pt !important;
  }
  .news-card.large {
    padding: 0.8em 1em !important;
  }
  .news-card.large .news-image img {
    width: 100% !important;
    max-height: 230px !important;
  }
  .news-grid {
    display: grid !important;
    gap: 0.55em !important;
    grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
  }
  .news-card.text {
    grid-column: auto !important;
    width: auto !important;
    padding: 0.6em 0.8em !important;
    font-size: 10pt !important;
  }
  .footer-header {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 32px !important;
  }
  .footer-flags-row {
    flex-wrap: nowrap !important;
    gap: 10px !important;
  }
  .footer-top {
    flex-wrap: wrap !important;
    column-gap: 24px !important;
    row-gap: 16px !important;
  }
  .footer-column {
    flex: 0 1 160px !important;
    max-width: 180px !important;
  }
  .footer-column a { word-break: break-word !important; }
}

@media print and (orientation: landscape) {
  .news-card.large .news-image {
    overflow: visible !important;
    max-height: none !important;
  }
  .news-card.large .news-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .news-card.image .news-half-  image {
    overflow: visible !important;
    max-height: none !important;
    flex: 0 0 45% !important;
  }
  .news-card.image .news-half-image img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .news-card.large .news-title { font-size: 13pt !important; }
}