@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 70px;
  }

  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 70px 0;
  }

  .section.compact {
    padding: 48px 0;
  }

  .section-header {
    display: grid;
    gap: 14px;
  }

  .page-hero {
    min-height: 520px;
    padding-top: calc(var(--nav-height) + 46px);
    padding-bottom: 46px;
  }

  .page-hero .container {
    width: min(100% - 28px, 560px);
    margin-inline: auto;
    padding: 26px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--nav-height) 14px auto;
    display: grid;
    justify-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  body.menu-open .nav-menu {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link {
    padding: 14px;
    border-radius: 12px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: var(--soft);
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }

  .newsletter,
  .cta-band {
    padding: 38px 24px;
  }

  .modal-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .logo {
    font-size: 0.95rem;
  }

  .logo-mark {
    width: 30px;
    height: 30px;
  }

  .lang-toggle {
    min-height: 38px;
    padding-inline: 13px;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero-content {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    padding-bottom: 36px;
  }

  .hero h1,
  .page-hero h1 {
    letter-spacing: -0.055em;
  }

  .hero-actions,
  .newsletter-form,
  .footer-bottom {
    display: grid;
    width: 100%;
  }

  .btn,
  .newsletter-form input {
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 210px;
  }

  .product-card h3 {
    min-height: auto;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .gallery-item:first-child {
    grid-column: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .footer {
    padding: 78px 0 30px;
  }

  .footer ul {
    justify-items: center;
  }

  .socials {
    justify-content: center;
  }

  .footer-bottom {
    justify-items: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
