.headerWrapper {
  height: 80px;
}

.header {
  height: 80px;
  background-color: rgba(32, 160, 255, 1);
  color: #fff;
  top: 0;
  left: 0;
  width: 100vw;
  line-height: 80px;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  user-select: none;
  .container {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex: 1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  h1 {
    margin: 0;
    display: flex;
    font-size: 32px;
    font-weight: normal;
    a {
      color: #fff;
      text-decoration: none;
      display: block;
    }
    span {
      font-size: 12px;
      display: inline-block;
      width: 34px;
      height: 18px;
      border: 1px solid rgba(255, 255, 255, .5);
      text-align: center;
      line-height: 18px;
      vertical-align: middle;
      margin-left: 10px;
      border-radius: 3px;
    }
  }
  .nav {
    display: flex;
    height: 100%;
    line-height: 80px;
    background: transparent;
    padding: 0;
    margin: 0;
  }
  .nav-logo,
  .nav-logo-small {
    vertical-align: sub;
  }
  .nav-logo-small {
    display: none;
  }
  .nav-item {
    margin: 0;
    float: left;
    list-style: none;
    position: relative;
    cursor: pointer;
    margin-left: 20px;

    &:last-child {
      cursor: default;
      margin-left: 34px;
      span {
        opacity: .8;
      }
      .nav-lang {
        cursor: pointer;
        display: inline-block;
        height: 100%;
        &:hover {
          opacity: 1;
        }
        &.active {
          font-weight: 700;
          opacity: 1;
        }
      }
    }
    a {
      text-decoration: none;
      color: #fff;
      display: block;
      padding: 0 20px;
      opacity: .8;
      &.active,
      &:hover {
        opacity: 1;
      }

      &.active {
        font-weight: 700;
      }
      &.active::before {
        content: '';
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: #99d2fc;
      }
    }
  }
}

.header-home {
  position: fixed;
  top: 0;
  background-color: rgba(32, 160, 255, 0);
}

@media (max-width: 850px) {
  .header {
    .nav-logo {
      display: none;
    }
    .nav-logo-small {
      display: inline-block;
    }
    .nav-item {
      margin-left: 6px;
      &:last-child {
        margin-left: 10px;
      }

      a {
        padding: 0 5px;
      }
    }
  }
}

@media (max-width: 700px) {
  .header {
    .container {
      padding: 0 12px;
    }
    .nav-item a,
    .nav-lang {
      font-size: 12px;
      vertical-align: top;
    }
  }
}
