.site-header .header-inner {
  justify-content: flex-start;
  column-gap: clamp(13px, 1.8vw, 26px);
}
.site-header .site-nav { margin-inline-start: auto; }
.language-switch {
  position: relative;
  flex: none;
  color: var(--ink);
  font: 600 12px/1.25 var(--sans);
}
.language-switch summary {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  list-style: none;
  cursor: pointer;
  letter-spacing: .045em;
  user-select: none;
}
.language-switch summary::-webkit-details-marker { display: none; }
.language-switch summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
}
.language-switch[open] summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}
.language-switch__list {
  position: absolute;
  inset: calc(100% + 2px) 0 auto auto;
  z-index: 2;
  min-width: 166px;
  margin: 0;
  padding: 4px 13px;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 18px -14px #19232c66;
}
.language-switch__list li + li { border-top: 1px solid var(--rule); }
.language-switch__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 44px;
  padding-inline: 3px;
  color: var(--ink);
  text-decoration: none;
  font: 400 16px/1.2 var(--sans);
}
.language-switch__list a[aria-current] { font-weight: 600; }
.language-switch__list a[aria-current]::after {
  content: "";
  width: 15px;
  border-bottom: 2px solid var(--bronze);
}
.language-switch__list a:focus-visible { outline-offset: 0; }
.footer-languages { display: flex; align-items: center; }
.footer-languages a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 44px;
  font: 600 12px/1 var(--sans);
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
}
.footer-languages a + a::before {
  content: "";
  position: absolute;
  inset-inline-start: -1px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--muted);
}
.footer-languages a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: .37em;
  text-decoration-color: var(--bronze);
}
.footer-inner .footer-socials { margin-inline-start: auto; }
@media (hover:hover) {
  .language-switch summary:hover,
  .language-switch__list a:hover,
  .footer-languages a:hover { color: var(--bronze); }
}
@media (min-width: 761px) {
  .language-switch { padding-inline-start: clamp(12px, 1.2vw, 18px); }
  .language-switch::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: calc(50% - 8px);
    height: 16px;
    border-inline-start: 1px solid var(--rule);
    pointer-events: none;
  }
}
@media (min-width:761px) and (max-width:920px) {
  .site-header .site-nav { gap: clamp(12px, 1.6vw, 16px); }
  .site-header:lang(ru) .brand img { width: clamp(128px, calc(100vw - 633px), 156px); }
}
@media (max-width:760px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0 10px;
  }
  .site-header .brand {
    grid-area: 1 / 1;
    max-width: 100%;
    min-width: 0;
  }
  .site-header .brand img { min-width: 0; }
  .site-header .menu-key { grid-area: 1 / 2; }
  .site-header .language-switch { grid-area: 1 / 3; justify-self: end; }
  .site-header .site-nav { grid-row: 2; margin: 0; }
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 10px;
  }
  .footer-inner .brand { justify-self: start; max-width: 100%; }
  .footer-inner .footer-socials {
    grid-column: 1 / -1;
    margin: 0;
  }
  .footer-languages a { min-width: 34px; }
}
@media (max-width:370px) {
  .site-header .header-inner { column-gap: 5px; }
  .site-header .brand img { width: 142px; }
  .site-header .menu-key { gap: 6px; }
}
