/* i18n-слой: переключатель языков, тихая плашка-подсказка, контакты EN/ZH.
   Подключается после main.css на всех страницах всех трёх языков.
   ДНК сайта: Manrope, капс, кислотная подсветка активного, без флагов. */

/* ---------- Переключатель языков ---------- */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
}
.lang-switch a {
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.25s;
}
.lang-switch a + a::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  width: 1px;
  height: 11px;
  transform: translateY(-50%);
  background: var(--line);
}
.lang-switch a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 2px;
  height: 1px;
  background: var(--acid);
  transition: right 0.35s var(--ease-out);
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a:hover::after { right: 0; }
.lang-switch a.on { color: var(--acid); }
.lang-switch a.on::after { right: 0; }
/* иероглифы в переключателе — системным CJK, без разрядки */
.lang-switch a[lang="zh-Hans"] {
  letter-spacing: 0;
  font-size: 13px;
  text-transform: none;
}

/* На 861–1280 зазор в шапке 18–43px — поджимаем сетку и сам переключатель */
@media (max-width: 1280px) {
  .site-header .bar { gap: 16px; }
  .lang-switch { gap: 7px; }
  .lang-switch a { font-size: 11.5px; letter-spacing: 0.06em; }
  .lang-switch a[lang="zh-Hans"] { font-size: 12.5px; }
}

/* Десктопный переключатель прячется вместе с навигацией, компактный — наоборот */
.lang-switch-m { display: none; }
.lang-switch-nav { display: none; }
@media (max-width: 860px) {
  .site-header .bar > .lang-switch:not(.lang-switch-m) { display: none; }
  .lang-switch-m { display: flex; margin-left: auto; }
  .lang-switch-m + .burger { margin-left: 14px; }
  .mobile-nav .lang-switch-nav {
    display: flex;
    gap: 16px;
    margin-top: 26px;
  }
  .mobile-nav .lang-switch-nav a { font-size: 15px; letter-spacing: 0.12em; }
}

/* Переключатель на автономной 404 */
.lang-switch-404 {
  justify-content: center;
  margin-top: 30px;
}

/* ---------- Тихая плашка-подсказка ---------- */

.i18n-hint {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(6, 6, 5, 0.92);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-dim);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.i18n-hint.in { transform: translateY(0); }
.i18n-hint a {
  color: var(--acid);
  border-bottom: 1px solid rgba(215, 255, 0, 0.4);
  padding-bottom: 1px;
}
.i18n-hint button {
  appearance: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.i18n-hint button:hover { border-color: var(--acid); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .i18n-hint { transition: none; }
}

/* ---------- Контакты EN/ZH: e-mail собирается в JS ---------- */

button.i18n-mail {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
/* внутри .btn-обвязки кнопка должна вести себя как ссылка-пилюля */
button.i18n-mail.btn { border: 1px solid var(--line); }
button.i18n-mail.btn-acid { border: 0; }
.mobile-nav .sub button.i18n-mail,
.contact-line button.i18n-mail {
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.3s, color 0.3s;
}
.mobile-nav .sub button.i18n-mail:hover,
.contact-line button.i18n-mail:hover { border-color: var(--acid); color: var(--acid); }
.i18n-revealed {
  display: inline-block;
  margin-left: 10px;
  color: var(--acid);
  user-select: all;
}

/* ---------- Подпись под баннером музея ---------- */

.museum-note {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
}
