:root {
  --rt-white: #fff;
  --rt-text-primary: #f3f3f3;
  --rt-text-secondary: #cfd5ff;
  --rt-text-muted: #c8ccf0;
  --rt-text-soft: #d2d6ff;
  --rt-text-warm: #ffe9be;
  --rt-accent-pink: #e91e96;
  --rt-accent-orange-1: #ff4a2d;
  --rt-accent-orange-2: #ff8f1f;
  --rt-accent-orange-3: #ffb327;
  --rt-accent-orange-4: #ff9f1c;
  --rt-accent-hover: #ffb347;
  --rt-accent-highlight: #ffc45d;
  --rt-panel-bg-a: rgba(18, 13, 52, 0.9);
  --rt-panel-bg-b: rgba(10, 14, 44, 0.84);
  --rt-panel-border: rgba(160, 93, 255, 0.3);
  --rt-glow-soft: rgba(255, 138, 31, 0.35);
  --rt-glow-strong: rgba(255, 138, 31, 0.55);
  --rt-content-width: min(100%, 760px);
  --rt-content-offset: clamp(0rem, 5vw, 4rem);
}

.header {
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: visible;
}

.navbar {
  background-color: rgba(19, 18, 35, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 64px;
  box-sizing: border-box;
  box-shadow: 5px 5px 16px rgba(0, 0, 0, 0.5);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  overflow: visible;
}

@supports ((backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px))) {
  .navbar {
    background-color: rgba(34, 34, 34, 0.45);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  color: #fff;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar.is-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar.is-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.logo-link {
  display: block;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding-bottom: 0.2rem;
  position: relative;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 5px;
  background: var(--rt-accent-pink);
  transition: width 0.2s;
}

.nav-link:hover {
  color: var(--rt-accent-hover);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:focus-visible,
.social-icon:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--rt-accent-orange-3);
  outline-offset: 2px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  border-radius: 50%;
  transition: background 0.2s;
}

.social-icon svg {
  width: 14px;
  height: 14px;
}

.social-icon:hover {
  background: rgba(0, 0, 0, 0.6);
  filter: brightness(1.05);
  box-shadow: 0 0 24px rgba(255, 179, 39, 0.45);
  box-shadow: 0 0 24px color-mix(in srgb, var(--rt-accent-orange-3) 75%, transparent);
}

.logo {
  display: block;
}

.logo img {
  display: block;
  height: 88px;
  width: auto;
  max-height: 88px;
}

@media (max-width: 992px) {
  .header {
    margin-top: 0.5rem;
    padding: 0.7rem 0.85rem 0;
  }

  .navbar {
    padding: 0 1rem;
    gap: 0.75rem;
  }

  .nav-list {
    gap: 1.25rem;
  }

  .nav-link {
    font-size: 0.8125rem;
  }

  .logo img {
    height: 74px;
    max-height: 74px;
  }
}

@media (max-width: 768px) {
  .header {
    position: sticky;
    top: 0;
    z-index: 100;
    margin-top: 0;
    padding-top: 1rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .navbar {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 0.5rem 0.75rem;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-left: 0;
    padding: 1rem 0;
    gap: 1rem;
    order: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    margin-top: 0.25rem;
  }

  .navbar.is-open .nav-menu {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-link {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .nav-link::after {
    display: none;
  }

  .social-icons {
    display: none;
  }

  .logo img {
    height: 58px;
    max-height: 58px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 55px;
    max-height: 55px;
  }
}
