.header {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
  background-color: var(--main-color);
  padding: 14px 0;
  color: var(--main-text-color);

  position: relative;
  z-index: 1;
  user-select: none;
}

.header::before {
  position: absolute;
  z-index: 2;
  top: -775px;
  left: calc(50% - 620px);
  content: "";
  width: 1240px;
  height: 1240px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);

  pointer-events: none;
}

.header::after {
  position: absolute;
  z-index: 2;
  top: -510px;
  left: calc(50% - 408px);
  content: "";
  width: 816px;
  height: 816px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);

  pointer-events: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: var(--default-font-size);
  cursor: pointer;

  transition: 0.3s linear;
  position: relative;
  z-index: 4;
}

.nav-link:hover {
  color: #cccccc;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link,
.logo,
.header-actions {
  flex: 1;
  display: flex;
}

.nav-link {
  justify-content: flex-start;
}

.logo {
  justify-content: center;
}

.header-actions {
  justify-content: flex-end;

  position: relative;
  z-index: 4;
}

.lang-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
}

.header-actions__lang {
  color: var(--main-text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 300;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: -30px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  min-width: 120px;
}

.dropdown div {
  padding: 8px 12px;
  cursor: pointer;
  color: black;
}
.dropdown div:hover {
  background: #f0f0f0;
}

.header-actions__login-btn {
  background-color: #ffffff20;
  color: var(--main-text-color);
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  width: 180px;
  height: 52px;
  cursor: pointer;

  transition: 0.3s linear;
}

.header-actions__login-btn--short {
  display: none;
}

.header-actions__login-btn:hover {
  background-color: #ffffff10;
}

@media (max-width: 1239px) {
  .header {
    height: 48px;
    padding: 0;
  }

  .header::before {
    width: 371px;
    height: 371px;
    left: calc(50% - 185.5px);
    top: -239.5px;
  }

  .header::after {
    width: 245px;
    height: 245px;
    left: calc(50% - 122.5px);
    top: -176.5px;
  }

  .nav-link {
    font-size: 16px;
  }

  .logo {
    font-size: 20px;
  }

  .header-actions {
    gap: 16px;
  }

  .lang-wrapper {
    gap: 4px;
  }

  .header-actions__login-btn {
    display: none;
  }

  .header-actions__login-btn--short {
    display: block;
  }
}
