.header {
  /* background-color: #fff; */
  background-color: #fbfbfb;
  height: 4.25em;
  z-index: 9;
  position: relative;
  /* margin-top: -1.6rem */
}
.header a {
  cursor: pointer;
}
.header .section {
  padding: 0;
}
.header .logo {
  color: #333;
  /* width: 4em; */
  /* min-height: 4.22em; */
}
.header h1 {
  font-size: 2em;
  padding: 0;
  float: left;
  padding-left: 1em;
  line-height: 1.8em;
  margin-top: 0.2em;
}
.header .logo img {
  margin: 0.95em 0 0 1em;
  max-height: 2.5em;
}
.header .logo:hover {
  background: none;
}
.menu li {
  float: right;
}
.menu a {
  color: #333;
  display: block;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.82;
  padding: 1.24em 1.3em;
}
.menu a:hover,
.menu a.here {
  opacity: 0.75;
}
.menu ul {
  padding: 0;
}
.menu ul li {
  float: right;
}
.menu ul li:first-child a {
  padding-top: 1em;
}
.menu ul li:last-child a {
  padding-bottom: 1em;
}
.menu ul a {
  line-height: 1;
  padding: 0.7em 1.5em;
}
.dropdown-with-avatar {
  margin-right: 1em;
  padding: 0.35em;
}
.dropdown-with-avatar:hover .dropdown-icon {
  opacity: 1;
}
.dropdown-with-avatar ul {
  margin-top: 1px;
  left: -7em;
  text-align: right;
}
.dropdown-with-avatar .avatar {
  display: inline-block;
  max-height: 3em;
  position: relative;
  top: 0.25em;
}
.dropdown-with-avatar .dropdown-icon {
  -webkit-filter: invert(1);
  margin: 0 0.2em;
  opacity: 0.75;
  position: absolute;
  top: 1.7em;
  width: 1em;
}
nav ul {
  padding: 0;
  margin: 0;
}
nav ul li {
  display: inline;
  float: left;
  position: relative;
}
nav ul li ul {
  left: 0;
  top: 100%;
}
nav ul ul {
  display: none;
  background: #fff;
}
nav li:hover > ul {
  display: block;
  position: absolute;
  width: 12.5em;
  z-index: 9000;
}
nav li:hover > ul li {
  width: 100%;
}
nav ul ul li:hover > ul {
  left: auto;
  right: -12.5em;
  top: 0;
}
#menu-toggle-label,
#menu-toggle {
  display: none;
}
.header-center nav {
  display: inline-block;
}
.header-center .menu {
  position: absolute;
  right: 0;
}
.header-center .section {
  text-align: center;
  padding: 0;
}
.header-center .logo img {
  margin-left: 0;
}
@media screen and (max-width: 860px) {
  .header .section {
    width: 100%;
  }
  .header [type="checkbox"] {
    transition: none !important;
  }

  .header h1 {
    font-size: 1.5em;
    padding-top: 0.6em;
    padding-left: 0.2em;
    margin-bottom: 0.45em;
    margin-top: 0;
  }

  .icon-menu {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    height: 4.25em;
    width: 4.25em;
    z-index: -1;
    background-position: 50%;
    background-repeat: no-repeat;
    background-size: 2em;
    background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve"><path d="M0,91.2v20.5h512V91.2H0z M0,244.8v20.5h512v-20.5H0z M0,398.4v20.5h512v-20.5H0z"/></svg>');
  }

  #menu-toggle-label {
    background: transparent;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    cursor: pointer;
    display: block;
    height: 4.2em;
    margin: 0;
    outline: none;
    position: absolute;
    right: 0;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 4.6em;
  }

  #menu-toggle:checked + .icon-menu {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><path d="M44.4 7.7l-2.1-2.1L25 22.9 7.7 5.6 5.6 7.7 22.9 25 5.6 42.3l2.1 2.1L25 27.1l17.3 17.3 2.1-2.1L27.1 25 44.4 7.7z"/></svg>');
    background-color: rgba(0, 0, 0, 0.02);
  }

  .menu {
    position: relative;
  }
  .menu * {
    float: none;
    margin: 0;
  }
  .menu i {
    display: none;
  }
  .menu li {
    background: #fff;
    padding: 0;
  }
  .menu ul {
    padding: 0;
  }
  .menu ul a {
    line-height: 1.82;
    padding: 1.24em 1.3em;
  }

  .dropdown-with-avatar ul {
    left: 0;
    right: 0;
  }
  .dropdown-with-avatar .avatar,
  .dropdown-with-avatar .dropdown-icon {
    display: none;
  }

  nav {
    height: 4.25em;
    border-bottom: 1px solid #eee;
  }
  nav a {
    border-bottom: 1px solid #eee;
    padding: 1em;
  }
  nav a.logo {
    border-bottom: 0;
  }
  nav ul li ul {
    display: block;
  }
  nav ul li {
    border-right: none;
    display: block;
    float: left;
    width: 100%;
    text-align: center;
  }
  nav > ul {
    clear: both;
    display: none;
  }
  nav > input:checked ~ ul {
    display: block;
    opacity: 1;
  }
  nav li:hover ul {
    position: relative;
    width: auto;
  }
  nav ul ul li:hover > ul {
    left: auto;
    right: auto;
    top: auto;
  }
}
