/* Branded mobile navigation trigger.
 * Loaded after WordPress Additional CSS to override the legacy reset. */
body #burger {
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 0 0 48px;
  color: #096a9f;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #d6e4ee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(9, 106, 159, 0.1);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 180ms ease, border-color 180ms ease,
    box-shadow 180ms ease, transform 180ms ease;
}

body #burger .burger__line {
  left: 50%;
  width: 26px;
  height: 2.5px;
  background: currentColor;
  border-radius: 3px;
  transform-origin: center;
  transition: top 180ms ease, opacity 150ms ease, transform 180ms ease;
}

body #burger .burger__line:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%);
}

body #burger .burger__line:nth-child(2) {
  top: calc(50% - 8px);
  transform: translate(-50%, -50%);
}

body #burger .burger__line:nth-child(3) {
  top: calc(50% + 8px);
  transform: translate(-50%, -50%);
}

body #burger:hover {
  background: #eaf5fb;
  border-color: #a8cfe3;
  box-shadow: 0 8px 22px rgba(9, 106, 159, 0.16);
}

body #burger:focus-visible {
  outline: 3px solid rgba(9, 106, 159, 0.28);
  outline-offset: 3px;
}

body #burger.is-open {
  z-index: 1002;
  color: #fff;
  background: #096a9f;
  border-color: #096a9f;
  box-shadow: 0 8px 24px rgba(9, 106, 159, 0.28);
}

body #burger.is-open .burger__line:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

body #burger.is-open .burger__line:nth-child(2) {
  top: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scaleX(0.2);
}

body #burger.is-open .burger__line:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media all and (max-width: 991px) {
  body #burger {
    display: inline-flex;
  }
}

@supports selector(header:has(#burger.is-open)) {
  @media all and (max-width: 991px) {
    body header.header:has(#burger.is-open) {
      z-index: 1002;
    }

    body #mobile-nav {
      padding-top: 112px;
    }

    body #mobile-nav #menu-close {
      display: none;
    }
  }
}

@media all and (max-width: 767px) {
  header .header__top .header__contacts .contacts {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body #burger,
  body #burger .burger__line {
    transition: none;
  }
}
