/* Consistent mobile navigation panel shared by the main pages; tablets (769–1150) use the same panel instead of the burger. */
@media (min-width: 769px) and (max-width: 1150px) {
  .nav .nav-burger {
    display: none !important;
  }

  .nav .nav-links {
    height: auto !important;
  }

  .nav .nav-links li {
    border-bottom: none;
  }
}

@media (max-width: 1150px) {
  .nav .nav-links {
    position: absolute !important;
    top: calc(100% + 0.45rem) !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    max-width: none;
    justify-self: stretch !important;
    display: flex !important;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: stretch;
    gap: 0.35rem;
    box-sizing: border-box;
    margin: 0;
    padding: 0.45rem;
    overflow: visible;
    border-radius: 22px;
  }

  .nav .nav-left {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
  }

  .nav .nav-left .nav-social {
    margin-left: 0.5rem;
  }

  .nav .nav-left .nav-social-phone {
    margin-left: auto;
  }

  .nav .nav-links li {
    display: flex;
    flex: 1 1 auto;
  }

  .nav .nav-links a,
  .nav .nav-links a.active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 0.4rem 0.35rem;
    font-size: clamp(0.64rem, 2.75vw, 0.78rem);
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
  }

  .nav .nav-links.open {
    left: 0 !important;
    right: 0 !important;
  }
}

@media (max-width: 480px) {
  .nav .nav-links {
    gap: 0.2rem;
    padding: 0.4rem;
    justify-content: space-between;
  }

  .nav .nav-links a,
  .nav .nav-links a.active {
    min-height: 34px;
    padding-inline: 0.3rem;
    font-size: clamp(0.64rem, 2.75vw, 0.74rem);
  }
}
