.header-tools {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  z-index: 5;
}
.lang-switch { position: relative; }
.lang-switch-btn {
  min-height: 36px;
  min-width: 52px;
  padding: 0 12px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.lang-switch-btn[aria-expanded="true"] { border-color: #111; }
.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  margin: 0;
  padding: 6px 0;
  list-style: none;
  background: #fff;
  border: 1px solid #e4e4e4;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 60;
}
.lang-menu a {
  display: block;
  padding: 9px 14px;
  color: #222;
  font-size: 14px;
  text-decoration: none;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] { background: #f4f4f4; color: #111; }
.lang-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 16px;
  font-size: 13px;
}
.lang-footer a { color: inherit; text-decoration: underline; }
.teespring-wrap {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 15px;
}
.teespring { display: block; line-height: 0; }
.teespring img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .header-tools .nav-cta { display: none; }
}

html[lang="zh-CN"] .site-nav a {
  letter-spacing: 0.18em;
  text-transform: none;
}
html[lang="ru"] .btn-primary,
html[lang="ru"] .btn-secondary,
html[lang="ru"] .nav-cta,
html[lang="ru"] .official-pill,
html[lang="ru"] .op-pill,
html[lang="ru"] .float-dl {
  padding-left: 22px;
  padding-right: 22px;
}

html[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .lang-menu { right: auto; left: 0; }
html[dir="rtl"] .site-nav {
  flex-direction: row-reverse;
}
html[dir="rtl"] .crumbs { text-align: right; }
html[dir="rtl"] .official-pills,
html[dir="rtl"] .op-pills,
html[dir="rtl"] .store-row { justify-content: flex-start; }
html[dir="rtl"] .core-slide,
html[dir="rtl"] .feature-slide { direction: rtl; }
html[dir="rtl"] .dots { direction: ltr; }
html[dir="rtl"] .btn-primary:hover .arrow,
html[dir="rtl"] .btn-secondary:hover .arrow { transform: translateX(-3px); }
html[dir="rtl"] .float-dl { right: auto; left: 16px; }
html[dir="rtl"] .official-innov ul,
html[dir="rtl"] .list-decimal { padding-right: 20px; padding-left: 0; }
html[dir="rtl"] .site-nav a[aria-current="page"]::after { left: 0; right: 0; }
