:root {
  --site-header-height: 88px;
}

html {
  scroll-padding-top: calc(var(--site-header-height) + 18px);
}

.site-header {
  position: fixed;
  z-index: 500;
  inset: 0 0 auto;
  width: 100%;
  color: #fff;
  background: rgba(5, 16, 24, .96);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  min-height: var(--site-header-height);
  height: auto;
  margin-inline: auto;
  gap: 28px;
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  width: 82px;
  min-width: 82px;
  height: 66px;
  overflow: hidden;
}

.site-header .brand img,
.site-header .brand .company-logo {
  display: block;
  width: 76px;
  height: 62px;
  max-height: none;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.site-header .nav {
  position: static;
  display: flex;
  align-items: center;
  padding: 0;
  gap: 34px;
  color: #fff;
  background: transparent;
  border: 0;
  box-shadow: none;
  transform: none;
  font-family: "Manrope", Arial, sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.site-header .nav > a:not(.nav-cta) {
  position: relative;
  padding: 0;
  color: rgba(255, 255, 255, .72);
  border: 0;
  font-size: inherit;
  transition: color .2s ease;
}

.site-header .nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: #34befb;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s ease;
}

.site-header .nav > a:hover {
  color: #fff;
}

.site-header .nav > a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-header .nav-dropdown {
  position: relative;
}

.site-header .nav-products-toggle {
  display: flex;
  align-items: center;
  width: auto;
  padding: 0;
  gap: 7px;
  color: rgba(255, 255, 255, .72);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  transition: color .2s ease;
}

.site-header .nav-products-toggle:hover,
.site-header .nav-products-toggle[aria-expanded="true"] {
  color: #fff;
}

.site-header .nav-products-toggle > span {
  color: #34befb;
  font-size: .94rem;
  line-height: 1;
  transition: transform .2s ease;
}

.site-header .nav-products-toggle[aria-expanded="true"] > span {
  transform: rotate(180deg);
}

.site-header .products-menu {
  position: absolute;
  z-index: 520;
  top: calc(100% + 20px);
  left: 50%;
  display: block;
  width: 315px;
  margin: 0;
  padding: 9px;
  color: #fff;
  background: rgba(7, 19, 29, .98);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 18px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .48);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.site-header .products-menu[hidden] {
  display: none;
}

.site-header .products-menu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 12px;
  height: 12px;
  background: #0a1b28;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-left: 1px solid rgba(255, 255, 255, .14);
  transform: translateX(-50%) rotate(45deg);
}

.site-header .products-menu a {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  padding: 12px;
  gap: 12px;
  color: inherit;
  border: 0;
  border-radius: 12px;
  font-size: inherit;
  letter-spacing: normal;
  text-transform: none;
  transition: background .2s ease, transform .2s ease;
}

.site-header .products-menu a + a {
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.site-header .products-menu a:hover {
  background: rgba(52, 190, 251, .1);
  transform: translateX(2px);
}

.site-header .products-menu img {
  display: block;
  width: 42px;
  height: 42px;
  max-width: none;
  padding: 5px;
  background: #10232f;
  border-radius: 11px;
  object-fit: contain;
}

.site-header .products-menu .time-menu-item img {
  padding: 0;
  background: #0f766e;
}

.site-header .products-menu .gps-menu-item img {
  padding: 3px;
  background: #0b3149;
}

.site-header .products-menu a > span {
  display: grid;
  line-height: 1.25;
}

.site-header .products-menu b {
  color: #fff;
  font-size: .82rem;
}

.site-header .products-menu small {
  margin-top: 3px;
  color: rgba(255, 255, 255, .5);
  font-size: .63rem;
}

.site-header .nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 11px 20px;
  color: #06111a !important;
  background: #34befb;
  border: 1px solid #34befb;
  border-radius: 999px;
  font-size: inherit;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.site-header .nav .nav-cta:hover {
  background: #8cddff;
  border-color: #8cddff;
  transform: translateY(-2px);
}

.site-header .menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  cursor: pointer;
}

.site-header .menu-toggle > span {
  display: block;
  width: auto;
  height: 2px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

@media (min-width: 861px) {
  .site-header .nav > a {
    display: inline-flex !important;
  }
}

@media (max-width: 860px) {
  :root {
    --site-header-height: 76px;
  }

  .site-header .header-inner {
    width: min(calc(100% - 34px), 720px);
  }

  .site-header .brand {
    width: 67px;
    min-width: 67px;
    height: 56px;
  }

  .site-header .brand img,
  .site-header .brand .company-logo {
    width: 63px;
    height: 54px;
  }

  .site-header .menu-toggle {
    position: relative;
    z-index: 530;
    display: block;
  }

  .site-header .menu-toggle[aria-expanded="true"] > span:nth-of-type(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) {
    opacity: 0;
  }

  .site-header .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .nav {
    position: fixed;
    z-index: 510;
    top: var(--site-header-height);
    right: 17px;
    bottom: auto;
    left: 17px;
    display: none;
    max-height: calc(100vh - var(--site-header-height) - 18px);
    padding: 22px;
    gap: 0;
    overflow-y: auto;
    color: #fff;
    background: rgba(5, 16, 24, .99);
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 0 0 18px 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .45);
    transform: none;
  }

  .site-header .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transform: none;
  }

  .site-header .nav > a:not(.nav-cta) {
    display: block;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: .78rem;
  }

  .site-header .nav > a:not(.nav-cta)::after {
    display: none;
  }

  .site-header .nav-dropdown {
    width: 100%;
  }

  .site-header .nav-products-toggle {
    justify-content: space-between;
    width: 100%;
    padding: 13px 4px;
    font-size: .78rem;
  }

  .site-header .products-menu {
    position: static;
    width: 100%;
    margin: 2px 0 8px;
    padding: 6px;
    background: rgba(255, 255, 255, .045);
    border-radius: 13px;
    box-shadow: none;
    transform: none;
  }

  .site-header .products-menu::before {
    display: none;
  }

  .site-header .products-menu a {
    padding: 10px;
  }

  .site-header .nav .nav-cta {
    margin-top: 16px;
    padding: 12px 18px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .site-header *,
  .site-header *::before,
  .site-header *::after {
    transition: none !important;
  }
}
