/* Mobile production hardening: keep navigation and editorial grids readable
   on narrow phones without horizontal clipping. */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .header-inner {
    width: calc(100% - 28px);
    gap: 8px;
  }

  .site-header .logo {
    padding: 7px 11px;
  }

  .site-header .logo img {
    max-width: 140px;
  }

  .menu-toggle {
    flex-shrink: 0;
    min-height: 40px;
    padding: 9px 14px;
    position: relative;
    z-index: 32;
  }

  .nav {
    top: 64px;
    left: 14px;
    right: 14px;
    z-index: 30;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  .hero-content {
    width: calc(100% - 30px);
  }

  .home .hero h1 {
    font-size: clamp(38px, 12vw, 43px);
  }

  .home .category-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home .category,
  .home .category:nth-child(2),
  .home .category:nth-child(3),
  .home .category:nth-child(4) {
    height: 175px;
  }

  .page-links {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 18px;
    padding-right: 18px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .page-links::-webkit-scrollbar {
    display: none;
  }

  .page-links a {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-top > div:first-child {
    grid-column: auto;
  }

  .footer-gallery {
    max-width: none;
  }
}
