.header {
  display: flex;
  position: relative;
}
.header__container {
  max-width: 1000px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 15px;
}
.logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
}
.logo img {
  width: 100%;
  height: 100%;
}
.header__links {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 22.5px;
  border: 1px solid rgb(77, 77, 77);
}
.header__link {
  padding: 12px;
  color: var(--light-text-color);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  line-height: 1.5em;
  cursor: pointer;
  transition: 0.3s;
  letter-spacing: normal;
  box-sizing: border-box;
}
.header__link:hover {
  color: var(--blue-color);
}
.header__link:focus {
  outline: none;
}
.header__button {
  padding: 11px 20px;
  background-color: rgb(34, 34, 34);
  outline: none;
  border: 1px solid rgb(77, 77, 77);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  line-height: 1.5em;
  border-radius: 5px;
  cursor: pointer;
}
.header__button:hover {
  background-color: rgb(46, 46, 46);
  transition: 0.3s;
}

.header__mobile {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--dark-color);
  padding: 20px;
  height: fit-content;
  scale: 1;
  transition: 0.4s;
  opacity: 1;
  transition-property: padding-top, padding-bottom, scale, opacity;
  border-bottom: 1px solid rgb(40, 40, 40);
}
.header__mobile__links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(199, 0, 0, 0.32);
  padding: 20px 0px;
  border-radius: 20px;
}
.header__mobile__links .header__link {
  font-size: 14px;
  font-weight: 500;
  line-height: 21px;
}
.header__mobile__button {
  margin-top: 20px;
  width: 100%;
}
.header__mobile--hidden {
  height: 0px;
  overflow: hidden;
  padding: 0;
  scale: 1.02;
  opacity: 0;
}

@media(max-width: 1024px) {
  .header { 
    padding: 0 20px;
  }
  .header__button:not(.header__mobile__button) {
    display: none;
  }
}

@media(max-width: 768px) {
  .header__links {
    display: none;
  }
}

@media(max-width: 425px) {}

@media(min-width: 1025px) {
  .header__mobile {
    display: none;
  }
}