.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 8, 0.88);
  backdrop-filter: blur(18px);
}

.topbar .shell.nav {
  width: min(1516px, calc(100% - 48px));
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 0 auto;
  padding: 0;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 220px;
}

.topbar .brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 8px;
  color: var(--text);
  transform: rotate(45deg);
}

.topbar .brand-mark i,
.topbar .brand-mark svg {
  width: 21px;
  height: 21px;
  transform: rotate(-45deg);
}

.topbar .brand-title {
  display: block;
  margin: 0;
  font-family: "Sora", ui-sans-serif, system-ui, sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.topbar .brand-subtitle {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.topbar .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 4vw, 58px);
  color: #d8dcd4;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar .nav-links a {
  position: relative;
  padding: 24px 0 21px;
  color: inherit;
}

.topbar .nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  background: var(--green);
}

.topbar .nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.topbar .language-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(174, 205, 103, 0.38);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
}

.topbar .lang-button {
  min-width: 34px;
  min-height: 30px;
  border: 0;
  border-radius: 3px;
  color: #d8dcd4;
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.topbar .lang-button.is-active {
  color: #071009;
  background: var(--green);
}

.topbar .contact-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 5px;
  padding: 0 28px;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  background: rgba(168, 201, 87, 0.03);
}

@media (max-width: 1020px) {
  .topbar .nav-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar .shell.nav {
    width: min(1516px, calc(100% - 28px));
    height: auto;
    min-height: 0;
    padding: 14px 0;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .topbar .brand {
    min-width: 0;
  }

  .topbar .brand-title {
    font-size: 18px;
  }

  .topbar .nav-actions {
    width: 100%;
    margin-left: 51px;
    justify-content: flex-start;
    gap: 8px;
  }

  .topbar .nav-actions > .contact-button {
    display: none !important;
  }

  .topbar .lang-button {
    min-width: 30px;
    min-height: 28px;
  }
}
