/* GetPower: the slide-in menu (tablets and phones) is frosted glass instead of a solid blue panel. */
@media (max-width: 1024px) {
  .header-menu {
    background:
      linear-gradient(160deg, rgba(109, 238, 255, .10) 0%, rgba(0, 32, 62, 0) 45%, rgba(179, 43, 204, .12) 100%),
      rgba(0, 32, 62, .46) !important;
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
    border-right: .5px solid rgba(255, 255, 255, .18);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, .06), 24px 0 60px rgba(0, 8, 20, .35);
    padding-top: calc(76px + var(--gp-safe-top, 0px)) !important;
    font-family: var(--gp-font);
  }
  .gp-topbar.is-menu-open {
    background: rgba(0, 32, 62, .28);
    border-bottom-color: rgba(255, 255, 255, .1);
  }

  /* Items float in one after another, like an iOS menu. */
  .header-menu .menu-list-item,
  .header-menu .contacts {
    opacity: 0;
    transform: translate3d(-14px, 0, 0);
    transition: opacity .35s ease, transform .55s var(--gp-spring);
  }
  .header-menu.header-menu-active .menu-list-item,
  .header-menu.header-menu-active .contacts { opacity: 1; transform: none; }
  .header-menu.header-menu-active .menu-list-item:nth-child(1) { transition-delay: .08s; }
  .header-menu.header-menu-active .menu-list-item:nth-child(2) { transition-delay: .12s; }
  .header-menu.header-menu-active .menu-list-item:nth-child(3) { transition-delay: .16s; }
  .header-menu.header-menu-active .menu-list-item:nth-child(4) { transition-delay: .20s; }
  .header-menu.header-menu-active .menu-list-item:nth-child(5) { transition-delay: .24s; }
  .header-menu.header-menu-active .menu-list-item:nth-child(6) { transition-delay: .28s; }
  .header-menu.header-menu-active .contacts { transition-delay: .32s; }
  .header-menu .menu-link { display: inline-block; padding: 6px 14px; border-radius: 12px; text-align: center; }
  .header-menu .menu-list-item { text-align: center; }
  .header-menu .menu-link:active { background: rgba(255, 255, 255, .1); }
  /* No underline bar in the glass menu: the current item is a soft glass pill instead. */
  .header-menu .menu-list-item::before, .header-menu .menu-list-item::after { display: none !important; }
  .header-menu .menu-item-active .menu-link { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .22); }

  /* The menu lives inside the first screen; while it is open that whole layer goes on top,
     so form fields and cards further down never show through the glass or flicker. */
  .intro { transition: z-index 0s linear .6s; }
  body.no-scroll .intro { z-index: 10000 !important; transition-delay: 0s; }
  .header-menu { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  @media (max-width: 1024px) { .header-menu { background: rgba(0, 32, 62, .96) !important; } }
}
@media (prefers-reduced-motion: reduce) {
  .header-menu .menu-list-item, .header-menu .contacts { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Desktop header between 1025 and ~1400 px (laptops, browser zoom, 125–150 % screen scaling):
   menu items never break into two lines; type and the phone number scale down a little instead. */
@media (min-width: 1025px) {
  .menu-list-item { white-space: nowrap; }
}
@media (min-width: 1025px) and (max-width: 1440px) {
  .menu { flex: 1 1 auto; min-width: 0; margin-right: 24px; }
  .menu-list-item { font-size: clamp(12px, 1.12vw, 16px); padding: 0 4px; }
  .contacts .phone a { font-size: clamp(18px, 1.72vw, 25px); white-space: nowrap; }
}
