/* Hianma commercial header — final desktop geometry + persistent scroll header.
   The complete horizontal menu remains fixed at the top of the viewport while the page scrolls.
   Brand stays left, visible navigation stays grouped at the true center, language/login actions stay right.
   Mobile/tablet remain unchanged. */

@media (min-width: 1121px) {
  html,
  body,
  #root {
    overflow-x: hidden !important;
  }

  body .hm-marketing {
    padding-top: 92px !important;
    overflow-x: hidden !important;
  }

  body .hm-marketing .hm-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    width: 100% !important;
    height: 92px !important;
    min-height: 92px !important;
    max-height: 92px !important;
    margin: 0 !important;
    padding: 0 clamp(32px, 3.2vw, 52px) !important;
    display: grid !important;
    grid-template-columns: 320px max-content 320px !important;
    grid-template-rows: 92px !important;
    justify-content: space-between !important;
    align-items: center !important;
    column-gap: 0 !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
  }

  body .hm-marketing .hm-brand {
    position: static !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    justify-self: start !important;
    align-self: center !important;
    min-width: 0 !important;
    max-width: 320px !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  body .hm-marketing .hm-nav {
    position: static !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    justify-self: center !important;
    align-self: center !important;
    display: flex !important;
    flex: none !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    min-width: max-content !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 22px !important;
    overflow: visible !important;
    transform: none !important;
    inset: auto !important;
  }

  body .hm-marketing .hm-nav > a {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    margin: 0 !important;
    padding-inline: 0 !important;
    white-space: nowrap !important;
  }

  body .hm-marketing .hm-header-actions {
    position: static !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    justify-self: end !important;
    align-self: center !important;
    display: flex !important;
    align-items: center !important;
    flex: none !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 320px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
}

@media (min-width: 1121px) and (max-width: 1365px) {
  body .hm-marketing {
    padding-top: 88px !important;
  }

  body .hm-marketing .hm-header {
    height: 88px !important;
    min-height: 88px !important;
    max-height: 88px !important;
    grid-template-columns: 290px max-content 290px !important;
    grid-template-rows: 88px !important;
    padding-inline: 24px !important;
  }

  body .hm-marketing .hm-brand {
    max-width: 290px !important;
  }

  body .hm-marketing .hm-nav {
    gap: 14px !important;
  }

  body .hm-marketing .hm-nav > a {
    font-size: .68rem !important;
  }

  body .hm-marketing .hm-header-actions {
    max-width: 290px !important;
  }
}
