.top-nav {
  position: relative;
  height: 56px;
  background: #004466;
  color: #fff;
  display: flex;
  align-items: center;
}

.top-nav-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.top-nav-actions {
  margin-left: auto;
  margin-right: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-nav-action-wrap {
  position: relative;
}

.top-nav-icon-btn {
  border: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.16s ease;
}

.top-nav-icon-btn:hover,
.top-nav-icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.top-nav-icon-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.22);
}

.top-nav-lang-icon,
.top-nav-menu-icon {
  width: 23px;
  height: 23px;
}

.top-nav-lang-icon {
  display: block;
  filter: brightness(0) invert(1);
}

.top-nav-menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  line-height: 1;
}

.top-nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 68, 102, 0.2);
  padding: 6px;
  z-index: 1200;
}

.top-nav-dropdown[hidden] {
  display: none;
}

.top-nav-menu-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1e2b33;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.top-nav-menu-btn:hover,
.top-nav-menu-btn:focus-visible {
  background: #eaf4fa;
  outline: none;
}

.top-nav-lang-grid {
  display: grid;
  gap: 2px;
}

.top-nav-lang-btn {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #1e2b33;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.95rem;
  cursor: pointer;
}

.top-nav-lang-btn:hover,
.top-nav-lang-btn:focus-visible,
.top-nav-lang-btn.is-active {
  background: #eaf4fa;
  outline: none;
}

@media (max-width: 640px) {
  .top-nav-title {
    font-size: 1.1rem;
    max-width: calc(100% - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .top-nav-actions {
    margin-right: 12px;
  }
}
