.site-language-switcher {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: min(420px, 100%);
  margin-top: 0;
  padding: 0 6px;
  border-top: 0;
}

.site-language-switcher__label {
  color: #969696;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.4;
}

.site-language-switcher__list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-language-switcher__list a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  text-decoration: none;
  text-underline-offset: 4px;
}

.site-language-switcher__list a[aria-current="page"],
.site-language-switcher__list a:hover,
.site-language-switcher__list a:focus-visible {
  color: #fff;
}

.site-language-switcher__list a[aria-current="page"] {
  text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
  .site-language-switcher__list a {
    transition: color 160ms ease;
  }
}

/* Burger picker: typography and colours follow the existing menu footer. */
.header .has-language-picker .site-language-picker {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  z-index: 5;
  font-family: MuseoSansCyrl, sans-serif;
  font-weight: 300;
}
:is(.header, footer.footer-modern) .site-language-picker__trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #969696;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
}
:is(.header, footer.footer-modern) .site-language-picker__trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(2px) rotate(-45deg);
}
:is(.header, footer.footer-modern) .site-language-picker__globe {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
}
:is(.header, footer.footer-modern) .site-language-picker__trigger[aria-expanded="true"]::after {
  transform: translateY(-2px) rotate(135deg);
}
:is(.header, footer.footer-modern) .site-language-picker__trigger:hover { color: #fff; }
:is(.header, footer.footer-modern) .site-language-picker__options {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  margin: 0;
  padding: 8px;
  list-style: none;
  border: 1px solid #3c3c40;
  border-radius: 13px;
  background: #1b1b1e;
  box-shadow: 0 12px 35px #0005;
  color: #ccc;
}
:is(.header, footer.footer-modern) .site-language-picker__options[hidden] { display: none !important; }
:is(.header, footer.footer-modern) .site-language-picker__options li { margin: 0; padding: 0; }
:is(.header, footer.footer-modern) .site-language-picker__options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 7px;
  background: transparent;
  color: #ccc;
  font: inherit;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
:is(.header, footer.footer-modern) .site-language-picker__options a:hover,
:is(.header, footer.footer-modern) .site-language-picker__options a:focus-visible { background: #29292d; color: #fff; }
:is(.header, footer.footer-modern) .site-language-picker__options a[aria-current="page"] { color: #fff; }
:is(.header, footer.footer-modern) .site-language-picker__options a[aria-current="page"]::after { content: "✓"; }
:is(.header, footer.footer-modern) .site-language-picker button:focus-visible,
:is(.header, footer.footer-modern) .site-language-picker a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 768px) {
  .header .has-language-picker { overflow-y: auto !important; overscroll-behavior: contain; }
  .header.active .has-language-picker .menu-overlay-logo,
  .header.active.header--collapsed .has-language-picker .menu-overlay-logo {
    position: absolute !important;
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
  .header.active.header--collapsed .has-language-picker .menu-overlay-logo .header__logo-img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  /* The menu scrolls as one surface; the picker never covers CTA or phone links. */
  .header .has-language-picker .navigation-new {
    overflow: visible !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 100svh;
    overscroll-behavior: contain;
    padding: 0 !important;
  }
  .header .has-language-picker .navigation-new__menu {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 115px 36px calc(28px + env(safe-area-inset-bottom, 0px)) !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
  }
  .header .has-language-picker .navigation-new__menu__list-wrapper { width: 100% !important; }
  .header .has-language-picker .navigation-new__list a {
    padding: 6px 0 !important;
    font-size: 24px !important;
    line-height: 1.4 !important;
  }
  .header .has-language-picker .navigation-new__buttons {
    width: 100% !important;
    margin: 28px 0 0 !important;
    gap: 12px !important;
  }
  .header .has-language-picker .navigation-new__button {
    width: min(280px, 100%) !important;
    min-width: 0 !important;
    height: 48px !important;
  }
  .header .has-language-picker .btns__modal[data-v-7050ddb2] {
    position: relative !important;
    inset: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start !important;
    width: 100% !important;
    gap: 18px !important;
    margin: auto 0 0 !important;
    padding: 28px 0 0 !important;
  }
  .header .has-language-picker .btns__modal .footer-modern__contacts {
    max-width: 100% !important;
    margin: 0 !important;
    order: 0;
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .header .has-language-picker .btns__modal .footer-modern__city-selector { display: flex !important; flex-wrap: wrap; }
  .header .has-language-picker .header-burger-legacy-tel { display: block !important; }
  .header .has-language-picker .btns__modal .footer-modern__phone {
    font-size: 16px !important;
    line-height: 1.4 !important;
    white-space: nowrap;
  }
  .header .has-language-picker .site-language-picker {
    position: relative;
    inset: auto;
    transform: none;
    justify-self: end;
    align-self: start;
    grid-column: 2;
    grid-row: 2;
    order: 1;
    margin: 0 !important;
  }
  .header .has-language-picker .btns__modal[data-v-7050ddb2] .footer-modern__social {
    order: 2;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    justify-self: start;
    margin: 0 !important;
    justify-content: flex-start !important;
    text-align: left;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-top: 12px;
  }
  .header .has-language-picker .btns__modal[data-v-7050ddb2] .social__header {
    text-align: left !important;
    white-space: nowrap;
  }
  :is(.header, footer.footer-modern) .site-language-picker__trigger { font-size: 14px; min-height: 44px; padding-right: 0; }
  :is(.header, footer.footer-modern) .site-language-picker__options { left: auto; right: 0; transform: none; }
}

/* English menu has no phone column: use its left footer grid line. */
html[lang^="en"] :is(.header, footer.footer-modern) .site-language-picker__trigger {
  font-size: 13px;
  gap: 8px;
}
html[lang^="en"] :is(.header, footer.footer-modern) .site-language-picker__trigger::after {
  width: 6px;
  height: 6px;
}
@media (min-width: 769px) {
  html[lang^="en"] .header .has-language-picker .site-language-picker {
    left: 0;
    transform: none;
  }
  html[lang^="en"] :is(.header, footer.footer-modern) .site-language-picker__trigger { padding-left: 0; }
  html[lang^="en"] :is(.header, footer.footer-modern) .site-language-picker__options { left: 0; transform: none; }
}

/* Desktop page footer: social left, language centred, existing CTA right. */
footer.footer-modern .site-language-picker { display: none; }
@media (min-width: 769px) {
  html[lang^="en"] footer.footer-modern .has-footer-language-picker {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
  }
  html[lang^="en"] footer.footer-modern .has-footer-language-picker > .footer-modern__contacts { display: none; }
  html[lang^="en"] footer.footer-modern .footer-modern__social {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin-left: 0;
    margin-right: auto;
    padding-left: 0 !important;
    padding-right: 0 !important;
    align-items: flex-start;
    text-align: left;
  }
  html[lang^="en"] footer.footer-modern .site-language-picker {
    display: block;
    position: relative;
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    z-index: 5;
    font-family: MuseoSansCyrl, sans-serif;
    font-weight: 300;
  }
  html[lang^="en"] footer.footer-modern .site-language-picker__options { left: 50%; transform: translateX(-50%); }
}

@media (min-width: 769px) {
  html[lang^="en"] footer.footer-modern .footer-modern__social .social__header {
    text-align: left !important;
  }
  html[lang^="en"] footer.footer-modern .footer-modern__social-icons {
    justify-content: flex-start !important;
  }
}

/* Align the visible language label with the bottom of the social icons. */
@media (min-width: 769px) {
  html[lang^="en"] footer.footer-modern .site-language-picker { align-self: end; }
  html[lang^="en"] footer.footer-modern .site-language-picker__trigger {
    align-items: flex-end;
    padding-bottom: 3px;
  }
  html[lang^="en"] footer.footer-modern .site-language-picker__globe { margin-bottom: 1px; }
  html[lang^="en"] footer.footer-modern .site-language-picker__trigger::after { margin-bottom: 6px; }
}

/* Russian desktop burger: share the bottom line of contacts and social icons. */
@media (min-width: 769px) {
  html[lang^="ru"] .header .has-language-picker .site-language-picker { bottom: 38px; }
  html[lang^="ru"] .header .site-language-picker__trigger {
    align-items: flex-end;
    padding-bottom: 3px;
  }
  html[lang^="ru"] .header .site-language-picker__globe { margin-bottom: 1px; }
  html[lang^="ru"] .header .site-language-picker__trigger::after { margin-bottom: 6px; }
}

/* Lock the document while the independently scrollable burger is open. */
html:has(.new-static-menu.menu-screen-visible),
body.scroll-menu-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}
