.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
  margin-bottom: 46px;
}

.las-brand,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: inherit;
  text-decoration: none;
}

.las-brand-mark,
.brand-mark {
  position: relative;
  width: 46px;
  height: 46px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(146, 91, 255, .24);
  flex: 0 0 auto;
}

.las-brand-mark::before,
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 12px -12px;
  border-top: 2px solid rgba(255,255,255,.88);
  border-radius: 50%;
  transform: rotate(-16deg);
}

.las-brand-mark::after,
.brand-mark::after {
  content: "✦";
  position: absolute;
  right: 8px;
  top: 6px;
  font-size: 13px;
  color: #fff;
}

.las-brand strong,
.las-brand-copy > span,
.brand strong,
.brand span span {
  display: block;
  line-height: 1.1;
}

.las-brand strong,
.brand strong {
  font-size: 1.35rem;
  letter-spacing: .05em;
}

.las-brand-copy > span,
.brand span span {
  margin-top: 4px;
  color: rgba(232, 237, 255, .78);
  font-size: .78rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 48px);
  flex: 1;
}

.nav-links a {
  position: relative;
  padding: 11px 0;
  color: rgba(238, 243, 255, .82);
  text-decoration: none;
}

.nav-links a.active {
  color: #fff;
  font-weight: 700;
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5d7cff, #d26cff);
  box-shadow: 0 0 16px rgba(146, 91, 255, .78);
}

.login,
.my-star,
.login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 116px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(113, 128, 255, .58);
  border-radius: 999px;
  background: rgba(8, 20, 61, .55);
  color: rgba(244, 247, 255, .94);
  text-decoration: none;
}

@media (max-width: 780px) {
  .nav {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 34px;
  }

  .las-brand,
  .brand {
    min-width: auto;
  }

  .las-brand strong,
  .brand strong {
    font-size: 1.22rem;
  }

  .nav-links {
    order: 3;
    display: flex;
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 2px 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 10px;
    border: 1px solid rgba(112, 128, 255, .28);
    border-radius: 999px;
    background: rgba(8, 20, 61, .42);
    font-size: .9rem;
    line-height: 1.2;
    white-space: nowrap;
  }

  .nav-links a.active::after {
    display: none;
  }

  .login,
  .my-star,
  .login-link {
    display: inline-flex;
    min-width: auto;
    min-height: 36px;
    padding: 0 12px;
    font-size: .9rem;
    white-space: nowrap;
  }
}
