.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: 78px;
  gap: 16px;
}

/* In a dir="rtl" grid, column 1 is the RIGHTMOST track (grid respects
   direction for explicit placement) - so brand goes in column 1 to land
   on the right, actions in column 3 to land on the left, matching the
   reference layout: [actions][nav][brand] left-to-right on screen. */
.navbar__brand { grid-column: 1; justify-self: end; }
.navbar__nav { grid-column: 2; justify-self: center; }
.navbar__actions { grid-column: 3; justify-self: start; }

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.navbar__brand-name {
  font-size: 21px;
  font-weight: 800;
  color: var(--color-ink);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar__link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-body);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.navbar__link:hover {
  color: var(--color-ink);
}

.navbar__link--active {
  color: var(--color-primary);
}

.navbar__link--active::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient-brand);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-body);
  font-size: 13px;
  font-weight: 700;
}

.lang-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  padding: 0;
}

.navbar__burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--color-border);
}

.navbar__mobile .navbar__link {
  padding: 10px 4px;
}

.navbar__mobile-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.navbar__mobile-actions .btn {
  flex: 1;
}

.navbar.is-open .navbar__mobile {
  display: flex;
}
