#header {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  background: #FFFDFF;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  margin-bottom: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  display: none;
}
@media (max-width: 1000px) {
  #header {
    grid-template-columns: 1fr auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
#header .logowrap {
  height: 100%;
  display: grid;
  align-items: center;
}
#header .logo {
  max-width: 225px;
  display: block;
  padding-left: 15px;
  padding-right: 15px;
}
#header .menuwrap {
  display: grid;
  grid-template-columns: 1fr auto;
}
@media (max-width: 1000px) {
  #header .menuwrap {
    display: none;
    grid-column: span 2;
    grid-template-columns: 1fr;
  }
}
#header .menuwrap.active {
  display: grid;
}
#header .mainmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  float: right;
}
@media (max-width: 1000px) {
  #header .mainmenu {
    width: 100%;
  }
}
#header .mainmenu .mainmenu-item {
  display: inline-block;
  position: relative;
  padding: 21px;
  box-sizing: border-box;
  padding-right: 0px;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
}
@media (max-width: 1000px) {
  #header .mainmenu .mainmenu-item {
    display: block;
  }
}
#header .mainmenu .mainmenu-item:hover .hsubmenu {
  display: block;
}
#header .mainmenu .mainmenu-item .mgrid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
  align-items: center;
  justify-self: start;
}
#header .mainmenu .mainmenu-item .mgrid img {
  display: block;
}
#header .mainmenu .mainmenu-item .mgrid .triangle-down {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #000;
}
#header .mainmenu .hsubmenu {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #fff;
  width: 100%;
  position: absolute;
  left: 0;
  top: 50px;
  display: none;
  z-index: 999;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
  padding: 7px;
  min-width: 180px;
}
@media (max-width: 1000px) {
  #header .mainmenu .hsubmenu {
    position: relative;
    top: 0;
    border: none;
  }
}
#header .mainmenu .hsubmenu li {
  padding: 7px;
  color: #1B1816;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 128%;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  min-width: 180px;
}
#header .mainmenu .hsubmenu li img {
  display: block;
}
#header .mainmenu .hsubmenu li a {
  text-decoration: none;
  color: #1B1816;
}
#header .hbutton {
  box-sizing: border-box;
  text-align: center;
  display: grid;
  align-items: center;
  padding: 15px;
}
#header .hbutton a {
  color: #FFFDFF;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 128%;
  text-decoration: none;
  background: #4A208C;
  display: block;
  border-radius: 23px;
  justify-self: center;
  padding: 0.5rem 1rem;
  padding-right: 0.6rem;
  padding-left: 0.6rem;
}
#header .burger {
  display: none;
  cursor: pointer;
}
#header .burger img {
  max-width: 34px;
  display: block;
}
@media (max-width: 1000px) {
  #header .burger {
    display: block;
  }
}