.header {
  padding: 10px 10px;
  position: relative;
  z-index: 10;
}

.top-menu {
  height: 60px;
  background-color: #000;
  grid-gap: 15px;
  display: grid;
  justify-content: end;
  align-items: center;
}
.top-menu-grid {
  display: flex;
  margin-right: 100px;
  gap: 25px;
}
.top-menu a {
  transition: 0.3s;
  display: flex;
  align-items: center;
  color: #ffed00;
  gap: 5px;
}
.header-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  grid-gap: 20px;
  justify-items: end;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.88rem;
}
.logo img {
  margin-left: 10px;
  max-width: 200px;
}

.nav-menu {
  display: flex;
  /* color: #FEFEFE; */
  align-self: center;
  align-items: center;
  grid-gap: 50px;
  font-size: 1.25rem;
  font-weight: 500;
}
.nav-menu a {
  transition: 0.3s;
}
.nav-menu a::after {
  content: "";
  width: 0px;
  height: 0px;
  display: block;
  background-color: #000;
  transition: 0.3s ease-out;
}
.nav-menu a:hover::after {
  width: 100%;
  height: 4px;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
}
.nav-menu a:last-child {
  background-color: #e30613;
  color: #ffed00;
  padding: 10px 30px;
  border-radius: 10px;
  font-weight: 900;
}
.nav-menu a:last-child:hover {
  box-shadow: 0px 0px 0px 3px #000;
}
.nav-menu a:last-child:hover::after {
  width: 0;
  height: 0;
  border-radius: 10px;
  margin-left: auto;
  margin-right: auto;
}

@media only screen and (min-width: 356px) and (max-width: 700px) {
  .top-menu-grid {
    margin-right: 10px;
  }
}
@media only screen and (min-width: 0px) and (max-width: 355px) {
  .top-menu-grid {
    margin-right: 10px;
    gap: 10px;
  }

  .top-menu a {
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 690px) {
  .top-menu a:nth-child(4) {
    margin-right: 10px;
  }
}

@media only screen and (min-width: 857px) and (max-width: 970px) {
  .nav-menu {
    grid-gap: 15px;
  }
  .nav-menu div:last-child {
    margin-left: 50px;
  }
}
@media only screen and (min-width: 291px) and (max-width: 856px) {
  .nav-menu {
    grid-gap: 15px;
  }
  .nav-menu div:last-child {
    margin-left: 0px;
  }
}

@media only screen and (max-width: 290px) {
  .header-grid {
    display: grid;
    grid-template-columns: 1fr 0.2fr;
  }
  .nav-menu div:last-child {
    margin-left: 0px;
  }
}
