@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 86px;
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 12px;
  }

  .header-actions {
    display: none;
  }

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

@media (max-width: 900px) {
  .search-grid,
  .listing-layout,
  .article-layout,
  .contact-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filter-box {
    position: static;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    padding-bottom: 130px;
  }

  .hero-dots {
    right: 20px;
    bottom: 112px;
  }
}

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

  .header-inner {
    min-height: 74px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand strong {
    font-size: 17px;
  }

  .main-nav {
    top: 74px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .search-panel {
    margin-top: -80px;
    padding: 16px;
  }

  .search-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .tab {
    min-width: 0;
  }

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

  .section-head {
    display: block;
  }

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

  .whatsapp-float {
    right: 14px;
    bottom: 78px;
  }

  .back-top {
    right: 14px;
    bottom: 20px;
  }
}
