@font-face {
  font-family: "Inter OF";
  src: url(fonts/inter-cyrillic-var.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
.language-switch {
  position: relative;
  flex: 0 0 auto;
  align-self: center;
  border: 0;
  padding: 0;
  font: 500 14px/1.2 var(--sans, "Inter OF", Arial, sans-serif);
}
.language-switch summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
  font: inherit;
}
.language-code { display: none; }
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  content: "";
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-switch ul {
  position: absolute;
  z-index: 2;
  inset: calc(100% + 3px) 0 auto auto;
  width: max-content;
  min-width: 130px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--paper, #f3f1ec);
  border: 1px solid var(--line-2, #c8c3b7);
  box-shadow: 0 4px 12px #1b1c1a18;
}
.language-switch a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  text-decoration: none;
}
.language-switch a:hover,
.language-switch a[aria-current] { background: var(--paper-2, #eae6dd); }
.language-switch a[aria-current] { font-weight: 700; }
html[lang="ru"] body { overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .mast:has(.language-switch), .mast:has(.language-switch) nav { gap: clamp(5px, 1.5vw, 14px); }
  .mast:has(.language-switch) .brand { min-width: 0; }
}
/* Russian and Spanish words run longer: their headers give way to the menu sooner. */
@media (max-width: 1240px) {
  html[lang="ru"] .mast .brand small { display: none; }
}
@media (max-width: 1100px) {
  :is(html[lang="ru"], html[lang="es"]) .mast nav a.wide, :is(html[lang="ru"], html[lang="es"]) .mast .btn { display: none; }
  :is(html[lang="ru"], html[lang="es"]) .mast nav a.only-sm { display: inline-block; }
  :is(html[lang="ru"], html[lang="es"]) .mast .menu { display: block; }
}
@media (max-width: 760px) {
  .language-name { display: none; }
  .language-code { display: inline; }
  .mast:has(.language-switch) .brand .of-lockup { max-width: min(28vw, 146px); }
  .mast:has(.language-switch) nav a, .mast .language-switch { font-size: clamp(11px, 3.25vw, 14px); }
}
@media print {
  .language-switch { display: none !important; }
}
