/* Keep the full desktop navigation and both phone links inside the viewport. */
@media (min-width: 1451px) {
  body .header .header-inner {
    width: calc(100% - 48px) !important;
    max-width: none !important;
    min-width: 0 !important;
    gap: clamp(10px, 1vw, 18px) !important;
  }

  body .header .brand {
    width: clamp(270px, 19vw, 330px) !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  body .header .structure-nav {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    gap: clamp(8px, .7vw, 12px) !important;
    white-space: nowrap !important;
  }

  body .header .structure-nav > a,
  body .header .nav-mega > summary {
    font-size: clamp(11px, .75vw, 13px) !important;
  }

  body .header .header-phones {
    min-width: 0 !important;
    flex: 0 1 auto !important;
    padding-left: clamp(10px, .8vw, 16px) !important;
  }

  body .header .header-phones .header-phone {
    font-size: clamp(11px, .8vw, 13px) !important;
  }
}

/* Compact laptop and desktop widths: keep the main categories visible above the page. */
@media (min-width: 761px) and (max-width: 1450px) {
  body .header {
    height: auto !important;
    min-height: 88px !important;
  }

  body .header .header-inner {
    width: calc(100% - 32px) !important;
    gap: 8px !important;
    justify-content: flex-start !important;
  }

  body .header .brand {
    width: clamp(136px, 18vw, 230px) !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  body .header .brand-art {
    max-width: 100% !important;
  }

  body .header .structure-nav {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    gap: clamp(4px, .55vw, 8px) !important;
    white-space: nowrap !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body .header .structure-nav > a,
  body .header .structure-nav > .nav-mega > summary {
    display: block !important;
    width: auto !important;
    padding: 12px 0 !important;
    font-size: clamp(10px, .85vw, 12px) !important;
  }

  body .header .header-phones,
  body .header .menu-toggle {
    display: none !important;
  }

  body .header .structure-nav .mega-panel {
    position: absolute !important;
    top: calc(100% - 1px) !important;
    left: 0 !important;
    right: 0 !important;
  }
}

