.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  transition: background-color 0.45s ease, box-shadow 0.45s ease, backdrop-filter 0.45s ease;
  background: transparent;
  backdrop-filter: none;
}

.topbar.scrolled {
  background: rgba(248, 248, 248, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 42px rgba(17, 17, 17, 0.08);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--brand);
  font-weight: 700;
}

.brand__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 100%;
  padding: 3px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand__marker img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.25s ease;
}

.brand:hover .brand__marker {
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(17, 17, 17, 0.12);
}

.brand:hover .brand__marker img {
  transform: scale(1.07);
}

.brand__title {
  letter-spacing: -0.02em;
}

.brand__title span {
  color: var(--accent);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  color: var(--gray-premium);
  font-weight: 500;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--gold-primary);
  transition: width 0.28s ease;
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.topbar__burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 16px;
  background: rgba(248, 248, 248, 0.88);
  border: 1px solid rgba(122, 17, 19, 0.14);
  cursor: pointer;
}

.topbar__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dark-red);
  border-radius: 999px;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.topbar.active .topbar__burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.topbar.active .topbar__burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.topbar.active .topbar__burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  width: 100%;
  background: rgba(248, 248, 248, 0.96);
  border-top: 1px solid rgba(122, 17, 19, 0.08);
  overflow: hidden;
}

.mobile-menu__list {
  list-style: none;
  margin: 0;
  padding: 1rem 1.5rem 1.5rem;
  display: grid;
  gap: 1rem;
}

.mobile-menu__list a {
  color: var(--brand);
  font-weight: 600;
}

.topbar.active .mobile-menu {
  display: block;
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .topbar__burger {
    display: flex;
  }
}

@media (max-width: 680px) {
  .topbar__inner {
    flex-wrap: wrap;
  }
}
