header {
  height: 60px;
  background-color: #fff;
  border-bottom: solid 1px #dedede;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 1rem;
  position: fixed;
  left: 0;
  right: 0;
  z-index: 2051;
}

@media (min-width: 992px) {
  header {
    height: 100px;
  }
}

header ul {
  list-style-type: none;
  margin: 0;
  padding:0
}

header li {
  display: flex;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  header ul {
    display:flex;
    flex-direction: row;
  }
}

header ul.submenu {
  margin-left: 1rem;
  display: none;
  border-left: solid #dedede 1px;
  flex-basis: 100%;
}

header ul.submenu.opened {
  display: block;
}

header ul.submenu li{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

header ul a {
  display: block;
  padding: 0.5rem 1rem;
  transition: 250ms;
}

@media (min-width: 992px) {
  header ul a:last-child {
    padding-right:0;
  }
}

header ul a:first-letter {
  text-transform: uppercase;
}

header ul a.active{
  color: var(--primary-color);
}

header ul a.dropdown{
  margin-left: auto;
  cursor: pointer;
}

header .collapser {
  margin-left: auto;
  font-size: 2rem;
}

header .menu-content {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: #fff;
  border-bottom: solid #dedede 1px;
  padding: inherit;
  display: flex;
  flex-direction: column;
  display: none;
}

@media (min-width: 992px) {
  header .menu-content {
    padding: 0;
  }
}


header .menu-content > ul {
  border-bottom: solid #dedede 1px;
  padding: 1.5rem 0;
}

header .menu-content > ul:last-child {
  border-bottom: 0;
}

header .menu-content.opened {
  display: flex !important;
  height: calc(100vh - 60px);
  overflow: auto;
}

@media (min-width: 992px) {
  header .menu-content {
    display: initial;
    background-color: transparent;
    border-bottom:0;
    position:initial;
    margin-left: auto;
  }
  header .menu-content.opened {
    height: auto;    
  }
}

header.popup {
  position: initial;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}



