:root {
  --black-color: #0b0a33;
  --blue: #2261fa;
  --white: #fdfdfd;
  --background-color: #f3f5ff;
  --gray-text-color: #7a7d9c;
}

* {
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  margin: 0;
  padding: 0;
}

html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  font-family: "Inter";
}

body {
  overflow-x: hidden;
}

header {
  width: 100vw;
  display: flex;
  height: 10rem;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 8rem;
  position: fixed;
  background: var(--background-color);
  z-index: 999;
  font-family: "Inter";
}

.header.sticky {
  background: #fff;
  transition: 0.5s;
}

.nav-list ul {
  gap: 3rem;
  align-items: center;
  display: flex;
  margin-left: 14%;
  width: clamp(20rem, 40rem, 50rem);
}

.nav-list li a {
  color: var(--black-color);
  font-size: 1.6rem;
  font-weight: 400;
}

.nav-list ul a:hover {
  transition: 0.3s;
  color: var(--blue);
}

.nav-list__button-mobile {
  display: none;
}

.nav-list__button-desk {
  background: var(--blue);
  color: #fff;
  border-radius: 6rem;
  padding: 1rem 0;
  width: 20rem;
  height: 5rem;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 1.6rem;
}

.nav-list__btn {
  color: var(--black-color);
  font-size: 1.6rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  background: none;
  font-family: "Inter";
  gap: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-list__btn:hover {
  color: var(--blue);
}

.arrow {
  border: solid black;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  margin-top: -3px;
}

.nav-list__btn:hover,
.nav-list__btn:hover .arrow {
  color: var(--blue);
  border-color: var(--blue);
}

.nav-list__dropdown {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 250px;
  z-index: 1;
  border-radius: 0 0 16px 16px;
  border: 1px solid #c8c8c9;
  border-top: none;
  background-color: var(--background-color);
}

.nav-list__dropdown.sticky {
  background-color: #fff;
  transition: 0.5s;
}

#subMenu {
  font-weight: 600;
}

.nav-list__division {
  width: 80%;
  height: 1px;
  background-color: #c8c8c9;
  margin: 0 auto;
}

.nav-list__dropdown a {
  color: var(--black-color);
  padding: 2rem 2.6rem;
  text-decoration: none;
  display: block;
}

.show {
  display: block;
}

.menu-hamburguer {
  cursor: pointer;
  display: none;
}

.menu-hamburguer div {
  width: 32px;
  height: 2px;
  background: #000;
  margin: 8px;
  transition: 0.3s;
}

@media (max-width: 1024px) {
  header {
    padding: 0 3.2rem;
  }
}

@media (max-width: 800px) {
  .header {
    height: 7rem;
  }
  .nav-list {
    position: absolute;
    width: 100%;
    right: 0;
    top: 7rem;
    display: flex;
    transform: translateY(-150%);
    transition: transform 0.3s ease-in;
    background: var(--background-color);
    border-radius: 0 0 1.6rem 1.6rem;
    padding-bottom: 3rem;
  }

  .nav-list.sticky {
    background-color: #fff;
    transition: 0.5s;
  }

  .nav-list.active {
    transform: translateX(0);
  }

  .nav-list ul {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin-top: 2.4rem;
    gap: 4.4rem;
  }

  .nav-list li a {
    font-size: 2.4rem;
  }
  .nav-list__btn {
    font-size: 2.4rem;
  }

  .nav-list__dropdown {
    width: 100%;
    left: 0;
    height: 14rem;
    border: none;
  }

  .nav-list__dropdown a {
    padding: 2rem 4rem;
  }

  .nav-list__button-mobile {
    background: var(--blue);
    border-radius: 6rem;
    padding: 1rem 0;
    width: 28rem;
    height: 4rem;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
  }

  .nav-list__button-mobile.open {
    margin-top: 10rem;
  }

  .nav-list__button-desk {
    display: none;
  }

  #subMenu {
    font-size: 1.6rem;
    margin-left: 4rem;
    font-weight: 600;
  }

  .nav-list__division {
    width: 80%;
    margin-left: 3rem;
  }

  .menu-hamburguer {
    display: block;
  }

  .menu-hamburguer.active .line1 {
    transform: rotate(-45deg) translate(-8px, 8px);
  }
  .menu-hamburguer.active .line2 {
    opacity: 0;
  }
  .menu-hamburguer.active .line3 {
    transform: rotate(45deg) translate(-5px, -7px);
  }
}
