.hmg-header {
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  position: relative;
  background: rgb(var(--hmg-color-background));
  z-index: 10001;
  box-shadow: 0 0 20px 0 rgba(var(--hmg-color-grey-dark), .2);
}

.hmg-header-logo {
  height: 52px;
}

.hmg-header-contact {
  height: 52px;
  margin-left: auto;
}

.hmg-header-logo__image {
  display: block;
  width: 150px;
  height: auto;
}

.hmg-header-menu {
  max-width: 100%;
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  max-height: 0;
  min-height: 0;
  transition: all 300ms ease;
  overflow: hidden;
}

.hmg-header-menu--open {
  max-height: calc(100vh - 72px);
  min-height: calc(100vh - 72px);
}

.hmg-header-menu .menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 30px;
  height: 100%;
}

.hmg-header-menu .menu br {
  display: none;
}

.hmg-header-menu .menu-menu-1-container {
  height: 100%;
  padding-top: 30px;
}

.hmg-header-menu .menu a {
  text-decoration: none;
  letter-spacing: 0.05em;
  font-family: var(--hmg-heading-font);
  font-weight: 500;
  font-size: 16px;
  text-transform: uppercase;
  color: rgb(var(--hmg-color-grey-dark));
  transition: color 300ms ease-in-out;
}

.hmg-header-menu .menu a:hover,
.hmg-header-menu .menu a:focus {
  color: rgb(var(--hmg-color-main));
}

.hmg-header-contact__button {
  text-decoration: none;
  font-family: var(--hmg-heading-font);
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: rgb(var(--hmg-color-background));
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px;
  background-color: rgb(var(--hmg-color-accent));
  border-radius: 273px;
  display: block;
  transition: background-color 300ms ease-in-out;
}

.hmg-header-contact__button:hover,
.hmg-header-contact__button:focus {
  background-color: rgb(var(--hmg-color-main));
}

.hmg-burger {
  display: block;
  width: 44px;
  height: 44px;
}

.hmg-burger__icon {
  width: 24px;
  height: 3px;
  transition: all .3s ease;
  background: rgb(var(--hmg-color-grey-dark));
  position: absolute;
  left: 13px;
  top: 29px;
}

.hmg-burger__icon:after,
.hmg-burger__icon:before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  transition: transform 150ms ease;
  position: absolute;
  background: rgb(var(--hmg-color-grey-dark));
  transition: all .3s ease;
}

.hmg-burger__icon:before {
  top: 8px;
}

.hmg-burger__icon:after {
  top: -8px;
}

.hmg-burger__icon--open {
  transform: rotate(45deg);
}

.hmg-burger__icon--open:before {
  top: 0;
  opacity: 0;
}

.hmg-burger__icon--open:after {
  top: 0;
  transform: rotate(-90deg);
}

@media screen and (min-width: 1024px) {
  
  #wpadminbar {
    position: absolute;
  }
}

@media screen and (min-width: 1200px) {

  .admin-bar .hmg-header {
    top: 32px;
  }

  .hmg-header-contact__button {
    padding: 14px 24px;
  }

  .hmg-header-contact {
    order: 1;
    margin-left: 0;
  }

  .hmg-header-menu .menu {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 40px;
    justify-content: flex-end;
  }

  .hmg-header {
    padding: 24px 48px;
    gap: 40px;
    position: absolute !important;
    flex-wrap: nowrap;
    align-items: center;
    background: none;
    box-shadow: none;
  }

  .hmg-header-menu .menu br {
    display: block;
  }

  .hmg-header-menu .menu-menu-1-container {
    padding-top: 0;
  }

  .hmg-burger {
    display: none;
  }

  .hmg-header-contact__button {
    padding: 11px 32px;
  }

  .hmg-header-menu {
    max-width: none;
    max-height: none;
    flex: 1;
  }

  .hmg-header-menu .menu a {
    font-size: 20px;
    line-height: 1.2;
    display: block;
  }

  .hmg-header-menu--dark .menu a {
    color: rgb(var(--hmg-color-background));
  }

  .hmg-header--dark .hmg-header-logo__image {
    filter: contrast(0) brightness(10);
  }

}