/* Megawatt staging child theme base. */
:root {
  --mw-blue: #1e365d;
  --mw-blue-dark: #1c2c45;
  --mw-accent: #ffb536;
  --mw-color-dark: #111827;
  --mw-color-text: #1f2933;
  --mw-container: 1146px;
  --mw-font-main: "Open Sans", Arial, sans-serif;
}

body {
  color: var(--mw-color-text);
  font-family: var(--mw-font-main);
}

.site-content {
  overflow: hidden;
}

.site-header,
#site-navigation,
.main-navigation,
.generate-sidebar-nav {
  display: none !important;
}

.mw-header {
  position: relative;
  z-index: 100;
  background: #fff;
  color: var(--mw-blue);
  font-family: var(--mw-font-main);
}

.mw-header__container {
  width: min(var(--mw-container), calc(100% - 48px));
  margin: 0 auto;
}

.mw-header__top {
  height: 40px;
  display: flex;
  align-items: center;
  background: var(--mw-blue);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.mw-header__brand-row {
  height: 93px;
  background: #fff;
}

.mw-header__brand-grid {
  height: 100%;
  display: grid;
  grid-template-columns: 110px minmax(260px, 1fr) minmax(180px, auto) minmax(160px, auto) 33px 0;
  align-items: center;
  column-gap: 25px;
}

.mw-header__logo {
  display: block;
  width: 110px;
  height: 62px;
}

.mw-header__logo img,
.mw-header__call img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mw-header__tagline,
.mw-header__schedule {
  color: rgba(0, 0, 0, 0.5);
  font-size: 13px;
  line-height: 1.52;
}

.mw-header__schedule {
  text-align: right;
}

.mw-header__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.mw-header__phone {
  color: var(--mw-blue);
  text-decoration: none;
}

.mw-header__phone:hover,
.mw-header__phone:focus {
  color: var(--mw-blue-dark);
}

.mw-header__phone--accent {
  color: var(--mw-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mw-header__call {
  display: block;
  width: 33px;
  height: 33px;
}

.mw-header__burger {
  display: none;
}

.mw-header__nav {
  height: 52px;
  border: 1px solid rgba(30, 54, 93, 0.1);
  border-left: 0;
  border-right: 0;
  background: #fff;
}

.mw-header__nav-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
}

.mw-header__menu {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 52px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mw-header__menu-item,
.mw-header__menu > .menu-item {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 17px;
}

.mw-header__menu a {
  display: inline-flex;
  align-items: center;
  color: var(--mw-blue);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.mw-header__menu a:hover,
.mw-header__menu a:focus,
.mw-header__menu .current-menu-item > a,
.mw-header__menu .current_page_item > a {
  color: var(--mw-blue-dark);
}

.mw-header__menu .current-menu-item::after,
.mw-header__menu .current_page_item::after {
  content: "";
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 11px;
  height: 3px;
  background: var(--mw-accent);
}

.mw-header__menu .menu-item-has-children > a::after,
.mw-header__submenu-toggle::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.mw-header__submenu-toggle {
  display: none;
}

.mw-header__submenu,
.mw-header__menu .sub-menu {
  position: absolute;
  left: 17px;
  top: 52px;
  z-index: 10;
  width: 208px;
  margin: 0;
  padding: 12px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #d4d4d4;
  box-shadow: 0 8px 18px rgba(30, 54, 93, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mw-header__menu-item:hover > .mw-header__submenu,
.mw-header__menu-item:focus-within > .mw-header__submenu,
.mw-header__menu .menu-item:hover > .sub-menu,
.mw-header__menu .menu-item:focus-within > .sub-menu,
.mw-header__menu-item.is-open > .mw-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mw-header__submenu li,
.mw-header__menu .sub-menu li {
  display: block;
  margin: 0;
}

.mw-header__submenu a,
.mw-header__menu .sub-menu a {
  display: block;
  padding: 8px 19px;
  color: var(--mw-blue);
  font-size: 14px;
  line-height: 1.1;
  white-space: normal;
}

.mw-header__search {
  position: relative;
  width: 34px;
  height: 52px;
  margin-left: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--mw-blue);
  cursor: pointer;
}

.mw-header__search::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 18px;
  width: 12px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.mw-header__search::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 30px;
  width: 7px;
  height: 1.8px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

@media (max-width: 1100px) {
  .mw-header__container {
    width: min(100% - 32px, var(--mw-container));
  }

  .mw-header__brand-grid {
    grid-template-columns: 110px minmax(180px, 1fr) minmax(150px, auto) 44px;
    column-gap: 18px;
  }

  .mw-header__phones,
  .mw-header__call {
    display: none;
  }

  .mw-header__burger {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    background: transparent;
    color: var(--mw-blue);
    cursor: pointer;
  }

  .mw-header__burger span:not(.screen-reader-text) {
    width: 24px;
    height: 2px;
    background: currentColor;
  }

  .mw-header__nav {
    display: none;
    height: auto;
    border-top: 1px solid rgba(30, 54, 93, 0.1);
  }

  .mw-header.is-open .mw-header__nav {
    display: block;
  }

  .mw-header__nav-inner,
  .mw-header__menu {
    display: block;
    min-height: 0;
  }

  .mw-header__menu-item,
  .mw-header__menu > .menu-item {
    display: block;
    padding: 0;
    border-bottom: 1px solid rgba(30, 54, 93, 0.08);
  }

  .mw-header__menu a {
    display: flex;
    padding: 14px 0;
  }

  .mw-header__menu .current-menu-item::after,
  .mw-header__menu .current_page_item::after {
    display: none;
  }

  .mw-header__menu .menu-item-has-children > a::after {
    display: none;
  }

  .mw-header__submenu-toggle {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-flex;
    width: 44px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--mw-blue);
  }

  .mw-header__submenu,
  .mw-header__menu .sub-menu {
    position: static;
    display: none;
    width: auto;
    padding: 0 0 8px 16px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mw-header__menu-item.is-open > .mw-header__submenu {
    display: block;
  }

  .mw-header__search {
    display: none;
  }
}

@media (max-width: 720px) {
  .mw-header__top {
    min-height: 34px;
    height: auto;
    padding: 8px 0;
  }

  .mw-header__brand-row {
    height: auto;
    padding: 12px 0;
  }

  .mw-header__brand-grid {
    grid-template-columns: 90px 1fr 44px;
    gap: 12px;
  }

  .mw-header__logo {
    width: 90px;
    height: auto;
  }

  .mw-header__tagline {
    font-size: 12px;
  }

  .mw-header__schedule {
    display: none;
  }
}
