/* HEADER-PAGE — top-header (SGE), без inline-стилей */

.top-header {
  flex-shrink: 0;
  width: 100%;
  height: var(--header-h, 50px);
  display: flex;
  align-items: center;
  padding: 0 var(--sp-3, 20px);
  gap: 14px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(4, 30, 44, 0.11) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(6px) saturate(110%);
  backdrop-filter: blur(6px) saturate(110%);
  border-bottom: none;
  box-shadow: none;
}

.top-header::before { display: none !important; content: none !important; }

#th-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

#th-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(200, 232, 240, 0.88);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.28s ease;
  transform-origin: center;
}

#th-hamburger span:nth-child(2) { transition: opacity 0.18s ease; }

.th-logo { position: relative; z-index: 1; flex-shrink: 0; cursor: pointer; }
.th-logo img { display: block; width: 36px; height: 36px; object-fit: contain; }

#th-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--mint-soft);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.01em;
}

.th-spacer { flex: 1; }

.th-actions {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-lang { position: relative; z-index: 1; flex-shrink: 0; }

.th-lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 32px; min-width: 72px; padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(200, 230, 245, 0.10);
  background: linear-gradient(135deg, rgba(18,101,128,.22), rgba(7,52,74,.38));
  color: rgba(200, 232, 240, 0.88);
  font: 400 0.78rem var(--font-body); letter-spacing: .06em;
  cursor: pointer; outline: none;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: border-color .18s, color .18s, filter .18s;
}
.th-lang-btn:hover { border-color: rgba(200,230,245,.16); color: rgba(240,250,252,.96); }
.th-lang-btn:focus-visible { outline: 2px solid rgba(120,200,255,.55); outline-offset: 2px; }
.th-lang-caret { width: 10px; height: 6px; margin-left: auto; transition: transform .18s; }
.th-lang.open .th-lang-caret { transform: rotate(180deg); }

.th-lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 300;
  margin: 0; padding: 4px; list-style: none; min-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-2, rgba(180,220,240,.18));
  background: linear-gradient(180deg, var(--grad-card-top, #0F5870), var(--grad-card-bot, #07344A));
  box-shadow: 0 10px 28px rgba(4, 30, 44, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.th-lang-menu li {
  padding: 7px 14px; border-radius: 8px; cursor: pointer;
  color: rgba(200, 232, 240, 0.88);
  font: 400 0.78rem var(--font-body); letter-spacing: .06em;
  transition: background .15s, color .15s;
}
.th-lang-menu li:hover { background: rgba(18, 101, 128, .38); color: rgba(240,250,252,.96); }
.th-lang-menu li.is-active { background: rgba(18, 101, 128, .55); color: #fff; }

.th-logout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid rgba(200, 230, 245, 0.10);
  background: linear-gradient(135deg, rgba(18, 101, 128, 0.22), rgba(7, 52, 74, 0.38));
  color: rgba(200, 232, 240, 0.88);
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s, filter 0.18s, transform 0.16s;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.th-logout-btn:hover {
  border-color: rgba(255, 140, 120, 0.28);
  color: rgba(255, 180, 165, 0.96);
  filter: brightness(1.08);
}

.th-logout-btn:active { transform: scale(0.96); }

.th-logout-btn:focus { outline: none; }

.th-logout-btn:focus-visible {
  outline: 2px solid rgba(120, 200, 255, 0.55);
  outline-offset: 2px;
}

.th-logout-icon {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}
