.ui-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 10, 15, 0.88);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ui-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 82px;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.ui-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
}
.ui-header__logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(237, 61, 107, 0.28));
}
.ui-header__brand-text {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1;
  white-space: nowrap;
}
.ui-header__nav {
  display: flex;
  justify-content: center;
}
.ui-header__nav-top {
  display: none;
}
.ui-header__menu {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ui-header__menu li {
  margin: 0;
}
.ui-header__menu a {
  position: relative;
  font-size: 0.69rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  font-weight: 700;
  padding: 0.8rem 0;
  transition: color 0.25s ease;
}
.ui-header__menu a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.35rem;
  height: 1px;
  background: var(--accent-ruby);
  transition: right 0.25s ease;
}
.ui-header__menu a:hover,
.ui-header__menu a[aria-current="page"] {
  color: var(--text-primary);
}
.ui-header__menu a:hover::after,
.ui-header__menu a[aria-current="page"]::after {
  right: 0;
}
.ui-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.ui-header__cta {
  white-space: nowrap;
  min-height: 42px;
  padding: 0.55rem 1.05rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  z-index: 10;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover {
  background: rgba(237, 61, 107, 0.15);
  border-color: var(--accent-ruby);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
.nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(237, 61, 107, 0.15);
  border: 1px solid var(--border-architectural);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.nav-close:hover {
  background: var(--accent-ruby);
  color: #fff;
  transform: scale(1.05);
}
@media (max-width: 520px) {
  .ui-header__brand-text {
    font-size: 1.2rem;
  }
}
@media (max-width: 900px) {
  .ui-header__inner {
    grid-template-columns: auto 1fr auto;
  }
  .ui-header__actions {
    grid-column: 3;
  }
  .ui-header__nav {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #080a0f;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 2rem 3rem;
    justify-content: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
    overflow-y: auto;
  }
  .ui-header__nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .ui-header__nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 1.5rem;
  }
  .ui-header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
  }
  .ui-header__menu li {
    width: 100%;
  }
  .ui-header__menu a {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    width: 100%;
  }
  .ui-header__menu a:hover,
  .ui-header__menu a[aria-current="page"] {
    color: var(--accent-ruby);
  }
  .nav-toggle {
    display: flex;
  }
  .ui-header__cta {
    display: none;
  }
}

