@media (max-width: 1024px) {
  :root {
    --header-h: 76px;
  }

  .container,
  .header-inner,
  .footer-inner {
    padding-inline: var(--space-6);
  }

  .hero-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-inline: var(--space-6);
  }

  .hero-content {
    max-width: 560px;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-4);
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    min-height: 0;
    opacity: 0.55;
  }

  .beacon {
    width: min(85%, 480px);
  }

  .footer-inner {
    flex-direction: column;
    height: auto;
    padding-block: var(--space-6);
    gap: var(--space-3);
    text-align: center;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 72px;
  }

  .container,
  .header-inner,
  .footer-inner {
    padding-inline: var(--space-4);
  }

  .hero-inner {
    padding-inline: var(--space-4);
  }

  .logo-text {
    font-size: 0.85rem;
  }

  .hero-title {
    letter-spacing: -0.01em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn--primary {
    width: 100%;
    justify-content: center;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-hint {
    text-align: center;
    width: 100%;
  }

  .hero-visual {
    opacity: 0.4;
  }

  .beacon {
    width: 70%;
  }

  .bg-grid {
    background-size: 44px 44px;
  }
}

@media (max-height: 480px) and (orientation: landscape) {
  .site-footer {
    display: none;
  }

  .page {
    grid-template-rows: var(--header-h) 1fr;
  }
}
