/* Consistent touch-friendly layout for legacy pages and standalone viewers. */
@media (max-width: 1024px) {
  img,
  video,
  canvas,
  svg,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  main,
  .center-container,
  .container,
  .content,
  .content-wrapper,
  .page-content,
  .main-content,
  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section {
    box-sizing: border-box;
    max-width: 100%;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn {
    width: min(100%, calc(100vw - 32px));
  }

  .center-container > *,
  .container > *,
  .content > * {
    min-width: 0;
    max-width: 100%;
  }

  .window,
  .card,
  .rating-card,
  .image-block {
    min-width: 0;
    max-width: 100%;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    min-width: 320px;
  }

  main,
  .center-container,
  .container,
  .content,
  .content-wrapper,
  .page-content,
  .main-content {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  .center-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    align-content: start;
    gap: 14px;
    min-height: 0;
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 12px;
  }

  .center-container > *,
  .container > *,
  .content > * {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section,
  .window,
  .card,
  .image-block {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    margin-right: 0;
    margin-left: 0;
    padding: 16px;
    border-radius: 16px;
  }

  .block.img,
  .block.img2,
  .block.img4,
  .text1img,
  .img1,
  .img2 {
    height: clamp(240px, 62vh, 360px);
    min-height: 240px;
    background-attachment: scroll;
  }

  .block img,
  .window img,
  .info img,
  .winner img,
  .image-block img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .windows,
  .image-gallery,
  .rating-cards,
  .video-grid,
  .cards,
  .gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding: 10px 0;
  }

  .rating-card-img-wrap {
    height: 230px;
  }

  .rating-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
  }

  .grid > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  img,
  video,
  canvas,
  svg,
  iframe,
  object,
  embed {
    max-width: 100%;
  }

  img {
    height: auto;
  }

  iframe,
  object,
  embed {
    display: block;
    width: 100%;
  }

  table {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  pre {
    max-width: 100%;
    overflow-x: auto;
  }

  input,
  select,
  textarea {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  button,
  .butt,
  .btn,
  .btn-primary,
  .btn-secondary,
  .nav-button,
  .navbar .nav-trigger,
  .tab-btn {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 44px;
    white-space: normal;
  }

  .lang-tab,
  .back-btn,
  .site-language a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

  h1 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.2;
  }

  h2 {
    font-size: clamp(21px, 5.5vw, 28px);
    line-height: 1.25;
  }

  p,
  li,
  a,
  button {
    overflow-wrap: anywhere;
  }

  .lang-quick-nav,
  .tabs-nav,
  .viewer-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .viewer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer {
    flex-direction: column;
    gap: 20px;
    padding: 24px 16px;
  }
}

@media (max-width: 420px) {
  .center-container {
    padding: 8px;
  }

  .info,
  .winner,
  .block,
  .text1,
  .Mukash,
  .warn,
  .rating-container,
  .info-card,
  .video-section,
  .window,
  .card,
  .image-block {
    padding: 12px;
    border-radius: 12px;
  }
}

/* Kazakh-capable Times New Roman typography across site pages. */
body {
  font-family: "Times New Roman", Times, "Noto Serif", "DejaVu Serif", Arial, sans-serif !important;
}

body *:not(i):not(svg) {
  font-family: inherit !important;
}
