:root {
  --header-height: 70px;
}
#switcher {
  position: absolute;
  left: -999999px;
  visibility: hidden;
}

#switcher:checked ~ .header-nav {
  left: 0;
  background: white;
}
#switcher:checked ~ .open > img {
  display: none;
}

.main-header {
  min-height: var(--header-height);
}
.header-nav {
  position: fixed;
  left: 100%;
  top: 0;
  width: 100%;
  height: 100vh;
  transition: all 0.4s ease-out;
  z-index: 999;
}

.open {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 9999;
}

.open > img {
  max-width: 48px;
}

.close {
  height: 70px;
  display: flex;
  justify-content: flex-end;
  z-index: 9999;
}

.close > img {
  max-width: 48px;
}

#menu li {
  margin-bottom: 30px;
}

#menu a,
#menu li > span {
  font-size: 20px;
  color: black;
}
#menu li > span {
  font-size: 13px;
}

#menu > ul {
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
#menu ul > li > ul.dropdown-sub-category,#menu ul > li:hover ul.dropdown-sub-category {
  display: none;
}
.header-nav address a, .header-nav address .text {
  font-size: 1.2em;
  font-weight: 600;
}
@media (min-width: 1024px) {
  .close,
  .open,
  .header-nav address {
    display: none;
  }

  #menu {
    margin-bottom: inherit;
    padding-top: inherit;
    height: 100%;
  }
  #menu > ul {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: nowrap;
  }
  #menu a {
    font-size: 16px;
    margin-right: 20px;
  }
  #menu li {
    border: none;
    margin-bottom: inherit;
  }
  #menu li > a {
    line-height: unset;
  }

#menu ul > li > ul.dropdown-sub-category {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition-property: opacity, visibility;
  transition-duration: 2s;
  transition-delay: 1s;
}
.dropdown-sub-category {
  position: absolute;
}
.dropdown-sub-category {
  left: 0;
  flex-direction: column;
  width: 100%;
  top: -999999px;
  min-height: 200px;
  align-items: center;
  justify-content: center;
  background-color: white;
  box-shadow: 0 8px 10px -4px #999;
}
#menu ul > li > ul.dropdown-sub-category > li {
  display: flex;
  padding: 10px;
  width: 33%;
}
#menu ul > li:hover ul.dropdown-sub-category {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 50px 0;
  background-color: var(--bg-l-gr);
  top: var(--header-height);
  opacity: 1;
  visibility: visible;
  z-index: 99;
}
.dropdown-sub-category li > a > img {
  width: 80px;
  height: auto;
}
.dropdown-sub-category li > a > span {
  display: flex;
  justify-content: center;
}
  #menu ul.dropdown-sub-category > li > a:hover {
    color: var(--a-color-hover);
  }

  #menu li:first-child {
    border-top: none;
  }
  .header-nav {
    position: inherit;
    width: inherit;
    height: inherit;
    background-color: transparent;
    transition: left 0.4s;
    z-index: inherit;
    display: flex;
    align-items: center;
    padding-top: inherit;
  }
  .open {
    order: inherit;
  }
}
