@media (max-width: 1200px) {

  .header-inner {
    grid-template-columns:
      1fr
      auto;

    padding-block: 14px;
  }

  .brand {
    grid-column: 1;
  }

  .main-nav {
    grid-column: 1 / -1;
    grid-row: 2;

    justify-content: flex-start;
    flex-wrap: wrap;
    transform: none;
  }

  .header-tools {
    grid-column: 2;
    grid-row: 1;
  }

}


@media (max-width: 980px) {

  .page-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: 2;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    max-width: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 700px) {

  .container {
    width: min(
      calc(100% - 24px),
      var(--maxw)
    );
  }

  .header-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    justify-content: center;
  }

  .header-tools {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search {
    width: 100%;
  }

  .search input {
    width: 100%;
  }

  .language-select {
    width: 100%;
  }

  .card {
    padding: 18px;
  }

  .cta-group {
    flex-direction: column;
  }

  .cta-group .btn {
    width: 100%;
  }

  .phone-actions {
    flex-direction: column;
  }

  .phone-actions .btn {
    width: 100%;
  }

}


@media (max-width: 480px) {

  body {
    font-size: 15px;
  }

  main {
    padding-block: 18px 30px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-photo {
    max-width: none;
  }

  .modal,
  .lightbox {
    padding: 10px;
  }

  .modal-content {
    max-height: calc(100vh - 20px);
    padding: 20px;
  }

}
