.ap-language-switcher {
  position: relative;
  z-index: 2147482000;
  flex: 0 0 auto;
  margin-inline-start: clamp(.35rem, 1vw, .8rem);
  color: #f4efe4;
  font: 800 10px/1 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: .12em;
  white-space: nowrap;
}
.ap2-head:has(.ap-language-switcher) {
  position: relative;
  z-index: 2147481000;
  overflow: visible;
  isolation: isolate;
}
.ap-language-switcher summary {
  display: grid;
  place-items: center;
  min-width: 34px;
  min-height: 30px;
  padding: 0 .55rem;
  border: 1px solid rgba(216, 178, 73, .34);
  background: rgba(5, 9, 8, .88);
  color: #e8c35e;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ap-language-switcher summary::-webkit-details-marker { display: none; }
.ap-language-switcher[open] summary { border-color: rgba(232, 195, 94, .7); }
.ap-language-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  min-width: 72px;
  border: 1px solid rgba(216, 178, 73, .38);
  background: rgba(5, 9, 8, .97);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .4);
  backdrop-filter: blur(16px);
}
.ap-language-menu a {
  display: block;
  padding: .65rem .78rem;
  color: #b9c2bd;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}
.ap-language-menu a + a { border-top: 1px solid rgba(216, 178, 73, .18); }
.ap-language-menu a:hover,
.ap-language-menu a:focus-visible,
.ap-language-menu a.is-active { background: rgba(216, 178, 73, .14); color: #f4d375; }
html[lang="ru"] body,
html[lang="fr"] body { hyphens: none; overflow-wrap: normal; word-break: normal; }
html[lang="ru"] button,
html[lang="ru"] a,
html[lang="fr"] button,
html[lang="fr"] a { hyphens: none; }
@media (max-width: 760px) {
  header:has(.ap-language-switcher) {
    isolation: isolate;
  }
  header:has(.ap-language-switcher) .brand {
    padding-inline-end: 3.75rem;
  }
  header .ap-language-switcher {
    position: absolute;
    inset-block-start: max(.7rem, env(safe-area-inset-top));
    inset-inline-end: .75rem;
    margin: 0;
    align-self: auto;
  }
  .ap-language-switcher summary {
    min-width: 38px;
    min-height: 32px;
    padding-inline: .48rem;
    border-radius: 2px;
  }
  .ap-language-menu {
    top: calc(100% + 6px);
    right: 0;
    grid-template-columns: repeat(3, minmax(42px, 1fr));
    min-width: 132px;
  }
  .ap-language-menu a {
    display: grid;
    min-height: 38px;
    padding: .55rem .45rem;
    place-items: center;
  }
  .ap-language-menu a + a {
    border-top: 0;
    border-left: 1px solid rgba(216, 178, 73, .18);
  }
}
